aspose file tools*
The moose likes Servlets and the fly likes tomcat can't find servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "tomcat can Watch "tomcat can New topic
Author

tomcat can't find servlet

Mike Southgate
Ranch Hand

Joined: Jul 18, 2003
Posts: 183
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


ms<br />SCJP, SCJD
Ron Newman
Ranch Hand

Joined: Jun 06, 2002
Posts: 1056
Is the invoker servlet enabled (not commented out) in tomcat/conf/web.xml ?


Ron Newman - SCJP 1.2 (100%, 7 August 2002)
R K Singh
Ranch Hand

Joined: Oct 15, 2001
Posts: 5371
do you have servlet entry in rl/WEB-INF/web.xml file ??
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: tomcat can't find servlet