You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by David Bazell <ba...@home.com> on 2002/01/02 14:38:42 UTC
Examples run but my servlets won't run under 4.0.1
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: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>