tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gaël Oberson <>
Subject RE: Servlet registration
Date Wed, 11 Apr 2001 16:28:25 GMT
try to modify the context definition:

<context path="/" docbase...>

-----Message d'origine-----
De : Chris Andreou []
Envoyé : mercredi, 11. avril 2001 18:05
À : ''
Objet : RE: Servlet registration

I didn't make a difference.  I am frustrated

my context path definition is

<context path=""
reloadable="true" />

my Host name is trw02
I am hitting the server by
http://trw02/servlet/SimpleExample  does not work
http://trw02/servlet/examples.SimpleExample  works
http://trw02/servlet/simple does not work


-----Original Message-----
From: Julien, Timothy []
Sent: Wednesday, April 11, 2001 10:48 AM
To: ''
Subject: RE: Servlet registration

The whitespace in your <servlet-mapping> in your web.xml could be leading to
the failure you see.

what URL are you attempting to hit from your browser?

Tim Julien
HP middleware

-----Original Message-----
From: Chris Andreou []
Sent: Wednesday, April 11, 2001 11:37 AM
To: ''
Subject: RE: Servlet registration

I have the same problem.

I have put my servlets under the WEB-INF/classes:

For example:
directory structure

web.xml file



JkMount /*.jsp ajp12
JkMount /servelt/* ajp12

I am able to see the servlet using a complete path

but not using the names in web.xml

Based on the documentation and examples I am doing right. Please any
suggestions are welcome

Thanks in advance


-----Original Message-----
From: Ron Pitts []
Sent: Wednesday, April 11, 2001 9:57 AM
Subject: RE: Servlet registration


Your missing some stuff

webapps/myapp/WEB-INF/classes     - store servlets/jsp in here

put your web.xml in

-----Original Message-----
From: Zsolt Horvath []
Sent: 11 April 2001 15:55
Subject: Servlet registration

Hi !

How could I register my own servlets into TomCat ??

I put them into the %TOMCAT_HOME%/webapps/myapp/Web-inf/classes directory.
After I create a web.xml file in the %TOMCAT_HOME%/webapps/myapp directory.
The web.xml file contains this:

<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.2//EN" "">


    <display-name> Web Application</display-name>




And I restarted the tomcat, but it doesn`t work ! What`s wrong?
Please help for me:

View raw message