tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marinko, Jeff" <Jeff_Mari...@intuit.com>
Subject RE: Servlet not working
Date Fri, 09 Aug 2002 22:27:57 GMT
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:lfindle@mindspring.com]
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:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message