You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Grivsky, John" <JG...@servicebench.com> on 2003/03/24 17:10:27 UTC

RE: trouble configuring a web app outside Tomcat install director y

hi

did you add the servlets to your web.xml (using the <servlet> and
<servlet-mapping> elements)?



-----Original Message-----
From: Michael Harrison [mailto:goodmike@alumni.princeton.edu]
Sent: Monday, March 24, 2003 10: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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org