You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Laura Findley <lf...@mindspring.com> on 2002/08/10 00:08:26 UTC
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.
Re: Servlet not working
Posted by Paul Yunusov <py...@rogers.com>.
On Friday 09 August 2002 06:08 pm, Laura Findley wrote:
> 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/comm
>o 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
^^^^^^^^^^^^^^^^^^^
is this a typo?
also check catalina.out, the log for your host and the log for your context in
$CATALINA_HOME/logs
>/ 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.
Paul
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>