This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to access my application without storing in webapps  RSS feed

 
sreenivas jeenor
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have to run my web application which is located in other drive than that of webapps folder.

I am using tomcat5.5

help me

Thanks
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The old way to do this was to add a <Context ...> node to the <Host> element in the TOMCAT_INSTALL/conf/server.xml file.
More recently, Tomcat has started to support 'context fragment' files.
These files are named after your context with a '.xml' extension.
For example, if your application is named myApp, then the fragment file would be named 'myApp.xml'.
In this file, put only the <Context ..> tag.
The file goes in the TOMCAT_INSTALL/conf/Catalina/localhost directory.

For information on the attributes of the context element, see this page:
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

The docBase attribute is the one that allows you to tell Tomcat where you're keeping your applications files.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!