I hope this doesn't seem like too simple of a question but I'm working through Jason Hunters book learning servlets on Tomcat and I'm having a problem getting started. I've put the compiled version of the HelloWorld servlet in the C:\Tomcat 5.0\webapps\ROOT\WEB-INF\classes directory but when I attempt to access it using http://localhost:8080/servlet/Hello
Tomcat returns a 404 page saying:
type Status report
description The requested resource (/servlet/Hello) is not available.
I think I may need to set the home directory, perhaps in an environmental variable but I'm not sure exactly what needs to be done.
Christopher Skinner<br />SCJP2 1.4<br />SCWCD (in training)
Description The requested resource (/servlet/Hello) is not available. Once again, this is the "invoker" servlet problem -earlier versions of Tomcat had the invoker turned on by default, in Tomcat 4 it is off by default. See the Ranch FAQ on the invoker. Bill PS put your servlet class in a package and avoid all sorts of mysterious bugs.
[ July 01, 2004: Message edited by: William Brogden ] [ July 01, 2004: Message edited by: William Brogden ]