I have a situation in which my web application can't exist as a single WAR file. I have exploded it into a direction (i.e. d:\....\jboss\server\default\deploy\webapp.war. It works great at the context "/webapp". But now I want to have this webapp be accessed through the "/" context. How should I specify the proper config in my application.xml so that it finds my exploded WAR direction. I have already tried this:
<display-name>mywebapp</display-name>
<web-uri>webapp.war</web-uri>
<context-root>/</context-root>
I do know that if I include the WAR file inside the EAR file the above will work. However, files under the WAR directory structure can be changed frequently through interfaces I have created. You can't upload and download files unless the WAR is exploded out.
thanks
You can specify the context root using a jboss-web.xml
rather than putting it in an ear. See the FAQ forum
You can put the expanded war inside an expanded ear.
i.e. a directory structure
Regards,
Adrian