The generic Invoker servlet is disabled by default in recent versions of Tomcat for security reasons.
Either: - enable the Invoker servlet in your web.xml (not recommended) OR - explicitly map your servlet in web.xml (recommended) If your servlet is com.myCode.MyServlet, and you want to use the URL /MyServlet under your webapp, add the following to your web.xml: <servlet> <servlet-name>MyServletName</servlet-name> <servlet-class>com.myCode.MyServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>MyServletName</servlet-name> <url-pattern>/MyServlet</url-pattern> </servlet-mapping> Follow the web.xml DTD. John > -----Original Message----- > From: Christian Rolfs [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 30, 2003 2:18 PM > 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]
