AFAIK, the Context docBase is relative to the Host's appBase unless declared explicitly.
John
On Mon, 24 Mar 2003 10:43:19 -0600, Madere, Colin <[EMAIL PROTECTED]> wrote:
I think the "docBase" tag in your Context might be Tomcat-home-relative.
Try an absolute path (that's how I have it set up and working with apps outside Tomcat home).
-----Original Message----- From: Michael Harrison [SMTP:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 9:59 AM To: tomcat-user Subject: trouble configuring a web app outside Tomcat install directory
Hello, all,
I'm having trouble with a web app I've located outside the Tomcat install directory: that is, under a webapps/ROOT/ directory that is not under /usr/local/tomcat/. I have my JSPs working fine, but I can't call servlets through the web browser: I get 404's.
Quick background: Apache 2.0.44 and Tomcat 4.1.18 on Linux, mod_jk.so. I'll call my application site 'appsite.com' to protect the innocent: it's set up under "/home/web/appsite.com/webapps/ROOT/".
In my mod_jk.conf file, I have the servlet-specific JkMount directives "JkMount /servlet ajp13" and "JkMount /servlet/* ajp13".
In server.xml, I have the following containers defined: <Engine name="Tomcat-Apache-mod_jk" defaultHost="www.appsite.com" debug="0"> .... <Host name="www.appsite.com" debug="1" appBase="/home/web/www.appsite.com/webapps"> .... <Context path="" docBase="ROOT" debug="0"/>
The servlets are located in "/home/web/appsite.com/webapps/ROOT/WEB-INF/classes/mypackage/". I'm trying to call them as http://www.appsite.com/servlet/mypackage.ServletX, and that's when I get the 404.
Is there something else I need to do to map servlet to the webapps/ROOT/WEB-INF/classes directory of my site?
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
