Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tomcat can't find servlet

 
Mike Southgate
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
not sure if this belongs here or in the tomcat forum...
Tomcat 4.1.24 can't find my servlet and I don't know why...
My directory structure is:
tomcat/webapps/rl/signon for my jsp and html
and
tomcat/webapps/rl/WEB-INF/classes/signon
for my servlet
My html has the following:
<form action="../servlet/signon.CreateAccountServlet" method="post">
but I get a 404 from tomcat when I click the submit. I've also tried replacing the .. with rl and /rl and it still gives me the same thing.
I also get the same error if I try to get to the servlet directly from my browser using:
http://localhost:8080/rl/servlet/signon.CreateAccountServlet
any ideas?
ms
 
Ron Newman
Ranch Hand
Posts: 1056
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the invoker servlet enabled (not commented out) in tomcat/conf/web.xml ?
 
R K Singh
Ranch Hand
Posts: 5384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
do you have servlet entry in rl/WEB-INF/web.xml file ??
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic