This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 60765
    
  65

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
 
Similar Threads
how to get the real path of a file
context path in Tomcat 5.5
How to deploy war file in JBoss
web app question
Having a problem to update my tomcat