wood burning stoves 2.0*
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
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 ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61769
    
  67

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

hth,
bear


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to set application context path in server.xml