aspose file tools*
The moose likes Tomcat and the fly likes How to access my application without storing in webapps Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "How to access my application without storing in webapps" Watch "How to access my application without storing in webapps" New topic
Author

How to access my application without storing in webapps

sreenivas jeenor
Ranch Hand

Joined: Jan 09, 2005
Posts: 125
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

Joined: Dec 11, 2004
Posts: 13410

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.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
jQuery in Action, 2nd edition
 
subject: How to access my application without storing in webapps