IntelliJ Java IDE
The moose likes Tomcat and the fly likes How to set application context path in server.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "How to set application context path in server.xml" Watch "How to set application context path in server.xml" New topic
Author

How to set application context path in server.xml

Ruchik Bhatt
Greenhorn

Joined: Jul 30, 2002
Posts: 13
Hi,
How can i set an application context path in server.xml if the application folder is not in webapps folder (windows)?
eg.
Tomcat folder - c:\tomcat\
Application folder - c:\myapp\
Thanx in Advance


SCJP
Bear Bibeault
Author and opinionated walrus
Marshal

Joined: Jan 10, 2002
Posts: 50693

Here's an example lifted directly from my server.xml on my Windoze box:

hth,
bear


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Chirag Shah
Greenhorn

Joined: May 02, 2001
Posts: 9
I have an apache connected to the tomcat and have multiple virtual hosts listed on the apache end. How do I define a root application for each virtual host on tomcat's end.
I have the first site (web-inf parent directory) in the root currently and it responds to request like www.mysite1.com.
Now i want another tomcat web-application to respond to requests for the other site(www.mysite2.com) without any addition parameters.
Thanks in advance
 
 
subject: How to set application context path in server.xml
 
Threads others viewed
context path in Tomcat 5.5
web app question
how to get the real path of a file
Having a problem to update my tomcat
How to deploy war file in JBoss
IntelliJ Java IDE