Jim, I don't think there is a WEB-INF directory under %CATALINA_HOME%/webapps/ in the default installation. I'd suggest that you put the class file in the %CATALINA_HOME%/webapps/ examples/WEB-INF/classes directory and then attempt to run the servlet by putting localhost:8080/examples/servlet/HelloWorldServlet in the address of your browser.
Regards, Richard At 04:44 PM 12/1/2001 -0800, you wrote: >I have a hello world servlet, and tomcat 4.0.1. No matter where I put the >friggin' class, tomcat doesn't seem to be able to find it. I studied the >examples that come with Tomcat. > >I am simply using the index.html in %CATALINA_HOME%/webapps/root. There, >I have a reference to "/servlet/HelloWorldServlet". I placed this servlet >in %CATALINA_HOME%/webapps/WEB-INF/classes. The class is not placed in a >package, because I am simply trying to get anything to work. I still get >an error page from Tomcat as follows: >Apache Tomcat/4.0.1 - HTTP Status 404 - /servlet/HelloWorldServlet > >type Status report >message /servlet/HelloWorldServlet >description The requested resource (/servlet/HelloWorldServlet) is not >available. > >Can someone please tell me what I'm doing wrong? > >TIA. > >-- Jim >******************************************************** >* Jim Lindsay >* [EMAIL PROTECTED] >* 510-527-8025 >* 510-681-6484 (cell) >* 510-528-8317 (fax) >* 555 Pierce St. #141 >* Albany, CA 94706 >******************************************************** ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
