Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to access my application without storing in webapps

 
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