I have installed tomcat 4.0.1 on my redhat 7.1 system. I can successfully run the example servlets and jps's. I wrote my own example helloworld servlet and deployed it using ant. I installed ANT and created the suggested directory structure. I then wrote a sample servlet and ran ant to compile and deploy the servlet. However, when I try to access it as http://localhost:8080/sample/servlet/sampleServlet I get a 404 error. I then copied the HelloWorldExample servlet that came with tomcat to my own directory and ran ant on it. Tomcat stores the original java file and the class file in webapps/examples/WEB_INF/classes. When I deploy my own version it ends up in a directly that is exactly parallel to where tomcat has it. But when I try to access it as above I still am locked out.
This is probably a problem with my web.xml file. I am trying to set <sevlet-name> and <servlet-class> and such. The web.xml for the examples that come with tomcat don't define these but rather use <filter>. I would appreciate any help in the configuration problem. Thanks, Dave -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
