This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "tomcat can Watch "tomcat can New topic

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
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:
any ideas?

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:
subject: tomcat can't find servlet
Similar Threads
TC can't find my projects html
integrating servlet application into a website
where should the servlet.jar file be?
Stuck on HelloWorldServlet
Basic doubt