My system is w2k, with
tomcat 4.0.3, which runs pretty well, I can check out the tomcat page via
http://localhost/ (I have changed the port number from 8080 to 80). And the example
servlets and JSPs also work very well.
Following the tutorial at
http://www.moreservlets.com/Using-Tomcat-4.html, Quote from the tutorial:
"Once you compile HelloServlet.java, put HelloServlet.class in install_dir/webapps/ROOT/WEB-INF/classes. After compiling the code, access the servlet with the URL
http://localhost/servlet/HelloServlet (or
http://localhost:8080/servlet/HelloServlet if you chose not to change the port number as described earlier)."
I compiled a HelloWorld.java servlet code and copied the HelloWorld.class file into install_dir/webapps/ROOT/WEB-INF/classes, that is, the full path to HelloWorld.class is install_dir/webapps/ROOT/WEB-INF/classes/HelloWorld.class. Then I accessed the servlet via the url
http://localhost/servlet/HelloWorld and got tons of exception in the browser.
What might be the problem? Thanks a lot.
Gene