tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sunil Kumar Ancha <>
Subject RE: Can't get servlets to work in a new context
Date Tue, 30 May 2000 12:36:43 GMT
I have followed the same instructions that William McCarthy has followed
and get the same problem, I have been struggling with it since quite
some time, any help shall be appreciated.

Thanks in advance.

Sunil Ancha

-----Original Message-----
From: J. William McCarthy []
Sent: Monday, May 29, 2000 11:16 PM
To: Apache Jakarta
Subject: Can't get servlets to work in a new context

I can't seem to get any servlets working in new contexts for the life of
me.  I followed the directions exactly.  Here's what I did:

1. I created a new directory, /home/tomcat/webapps/develop
2. In /develop, I created a WEB-INF/classes directory
3. I place a copy of in the /classes folder.  I
compile it.  It compiles fine.
4. I copy a web.xml from /home/tomcat/ROOT/WEB-INF into my WEB-INF
5. I add the following lines to my server.xml file (right below where
the "example" entry:

    <Context path="/develop"
        debug="0" reloadable="true">

6. I add the following lines to my tomcat-apache.conf file, which I
include in the apache httpd.conf file:

    ApJServMount /develop/servlet /develop
    <Location /develop/WEB-INF/ >
        AllowOverride None
        deny from all

7. I restart both apache and tomcat.  I can browse to
http://localhost/develop.  If I have static pages there, I can see
them.  If I try to access the servlet at
http://localhost/develop/servlet/HelloWorldExample - No good.  I get a
404 from Tomcat. (Not apache)  If I misspell HelloWorldExample, but
leave the rest of the URL the same, I get a 404 from Apache.

All the examples, both servlets and JSPs, work fine.  Any ideas?


To unsubscribe, email:
For additional commmands, email:

View raw message