Friday, August 19, 2011

jboss web.xml

<jboss-web>
<context-root><name-of-app></name-of-app>
</context-root>
</jboss-web>

Put the above snippet into a file called jboss-web.xml in your WEB-INF directory of your war to give it a new context root. Replace with whatever your app is called. Without this file, jboss will use whatever the name of your WAR file is as the context root of your application.


Note: This was used with JBOSS 5.1.0 EAP. I believe it works with most new versions of jboss though.

No comments:

Post a Comment