This content has been marked as final.
Show 2 replies
-
1. Re: Can you change the context root of a deployed ear?
visolvejboss Jun 2, 2006 6:53 AM (in response to apill)Hello,
The context-root of an EAR file is taken from the application.xml incase if you have specified the context-root, otherwise take it from the warfile name.
In your case, you have to configure the context path in application.xml file as shown below.<module> <web> <web-uri>my-application-1.1.war</web-uri> <context-root>my-application</context-root> </web> </module>
Regards,
ViSolve JBoss Team -
2. Re: Can you change the context root of a deployed ear?
apill Jun 2, 2006 7:06 AM (in response to apill)Thanks for the reply, but your example changes the war context root, not the ear context root.
I am trying to change the context root of the ear being deployed, not the war.
i.e. if i deploy an ear named my-ear-1.2.ear containing a war my-war-1.2.war it will deploy with the JNDI contextmy-ear-1.2/my-war-1.2
.
If i do what you say and add the following application.xml<module> <web> <web-uri>my-war-1.2.war</web-uri> <context-root>my-war</context-root> </web> </module>
it will deploy with JNDI context ofmy-ear-1.2/my-war
.
What I want to be able to do is deploy my ear to the following JNDI context, for example.my-ear/my-war
.