[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - How to have 2 context roots point to the same WAR

evyatarkafkafi do-not-reply at jboss.com
Tue Apr 15 02:49:21 EDT 2008


I need a way to have 2 URLs that will direct my client to the same WAR.

For example:
http://localhost:8080/URL1/myServlet
http://localhost:8080/URL2/myServlet

in jboss-web.xml file I can set the context root:
<jboss-web>
	<context-root>URL1</context-root>
</jboss-web>

But I can't put 2 context roots:
<jboss-web>
	<context-root>URL1</context-root>
	<context-root>URL2</context-root>
</jboss-web>


Is there any way to do it?


TIA
Evyatar




View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144131#4144131

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144131



More information about the jboss-user mailing list