Thanks. I had added the WEB-INF\classes directory myself. I did eventually find that if my HelloWorldServlet class in the same place as the HelloWorldExample servlet, it would run! This sent me on the hunt for some other configuration file, and I have found the server.xml file. There, /examples and /manager are specified as valid contexts.
So, I added my app as a context, but somehow have managed to simply set Tomcat down completely. Now, even when I just try to go to http://localhost:8080, I get a HTTP 500 - Internal server error; Internet Explorer error. *sigh* :) -- Jim At 09:41 PM 12/1/2001, you wrote: >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 ___________________________________________________________________________ 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
