• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to access my application without storing in webapps

 
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic