If you look at the servlet spec, the "/servlet" path was a shortcut and propriatery to 
tomcat only.

you have to register your servlet in your web.xml file.
take a look at the /examples/WEB-INF/web.xml to see how the servlets are configured

Filip

-----Original Message-----
From: Christian Rolfs [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 11:18 AM
To: [EMAIL PROTECTED]
Subject: Tomcat default directory for servlets


Dear Tomcat developers,


I am using Tomcat 4.1.18 and two books of which the latter tell me that the
default path for Java servlets is

        %TOMCAT%/webapps/ROOT/WEB_INF/classes

where %TOMCAT% denotes the Tomcat installation directory. For instance, if I
put a servlet called "TestServlet" in that directory and try to access this
servlet via http://localhost:8080/servlet/TestServlet, Tomcat tells me that
the requested servlet can't be found. In contrast to this, I can access the
Tomcat 'homepage' and its examples very well. As the documentation is a bit
confusing, I couldn't help myself.

I'd be very thankful if you can tell me how to configure the (default)
paths. Or has the configuration of the default paths been subject to change,
as the books I mentioned above do base on Tomcat 3.2 ?
My system is as follows: Win2000 without any service pack, browser is Opera
6.05.


With regards & thanks in advance,

Christian


---------------------------------------------------------------------
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]

Reply via email to