The code looks alright...

Do the example servlets work? Try putting the .class file in with the
examples and try using it that way.

.class file:  Tomcat/webapps/examples/WEB-INF/classes
URL:  http://localhost:8080/examples/servlet/ExampleServlet (or "HelloWorld"
just to make sure it works).

Hope that helps!

Jeff

-----Original Message-----
From: Laura Findley [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 3:08 PM
To: Tomcat Users List
Subject: Servlet not working



I typed in my first example servlet today & cannot seem to get it working.

I made sure all the following were done:

1) Classpath is set
        CATALINA_HOME=$CATALINA_HOME:/usr/java/jakarta-tomcat-4.0.4
        JAVA_HOME=/usr/java/j2sdk1.4.0
        PATH=$PATH:$HOME/bin:/usr/java/j2sdk1.4.0/bin

CLASSPATH=$CLASSPATH:/home/lfindle/java:/usr/java/jakarta-tomcat-4.0.4/commo
n/lib/servlet.jar:.

        export CATALINA_HOME
        export JAVA_HOME
        export PATH
        export CLASSPATH

2) Put the servlet in
/usr/java/usr/java/jakarta-tomcat-4.0.4/webapps/begjsp-ch01/WEB-INF/classes/
ExampleServlet.java
Compiled it from there. Shutdown & restarted Tomcat.

I went to http://localhost:8080/begjsp-ch01/servlet/ExampleServlet & get 404
Error message.

Does anyone have any suggestions?

Thanks.



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to