Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JSP and the fly likes Can we define same war with two different context-root? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Can we define same war with two different context-root?" Watch "Can we define same war with two different context-root?" New topic
Author

Can we define same war with two different context-root?

Balaji Ramalingam
Greenhorn

Joined: Nov 08, 2004
Posts: 9
In application.xml, i have the following piece of code. Can we have the same war with two different context-root?


Balaji R<br />SCJP 1.4,SCBCD 1.3, SCEA(In Progress)
Ganesh Gowtham
Ranch Hand

Joined: Mar 30, 2005
Posts: 225

Hi Balaji ,

as far as tomcat is concerned you can do this by writting two context file
in tomcat_dir\conf\catalina\localhost

create two files called app1.xml and app2.xml and place in in tomcat_dir\conf\catalina\localhost folder



Thanks, Ganesh Gowtham
http://ganesh.gowtham.googlepages.com
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Can we define same war with two different context-root?
 
Similar Threads
Problem with contextPath
Changing <context-root>
Multiple war in an ear file
EJB application deployment problem
WAR File Creation in Weblogic 7.0