[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Deploying MyApp as default application on JBoss server
PeterJ
do-not-reply at jboss.com
Tue Feb 5 16:18:41 EST 2008
Two things.
First, use the -b run option to bind the app server to your IP address. For example (assuming your IP address is 123.123.123.123):
./run.sh -b 123.123.123.123
Note that only URLs for that IP address will work (that is, localhost will no longer work). If you want localhost to work also, use 0.0.0.0 as the IP address:
./run.sh -b 0.0.0.0
Second, to change the context name (get rid of the MyApp in the URL), for your application add a jboss-web.xml file to the WEB-INF directory of your war file and set the following:
<jboss-web>
| <context-root>/</context-root>
| </jboss-web>
Or if you have an ear with an application.xml, you could set the context there.
In addition, remove the existing root application, you can find it at server/xxx/deploy/jboss-web.deployer/ROOT.war. Either remove that whole directory, or change its context root to something other than "/".
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126769#4126769
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126769
More information about the jboss-user
mailing list