It's not a secret anymore!
The moose likes Servlets and the fly likes Cant  find servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Cant  find servlet" Watch "Cant  find servlet" New topic

Cant find servlet

EJ Dinglasan
Ranch Hand

Joined: Jun 08, 2003
Posts: 47
My question is kinda dumb.
I'm used to map my servlet and it works pretty fine
but if I only use applicationFolder/servlet/SampleServlet it does'nt work.
I'm pretty sure that the Servlet Container can find the servlet if its under
WEB-INF/classes without having to put it in the classpath because the
it automatically searches the WEB-INF/classes folder.
Any ideas why its not working?
Anyway I'm using Tomcat and the classes are not in a package.
Joe Pluta
Ranch Hand

Joined: Jun 23, 2003
Posts: 1376
You need to have the invoker servlet running. By default, Tomcat ships with the invoker servlet disabled. Go look in your web.xml and make sure the following lines are in there:

EJ Dinglasan
Ranch Hand

Joined: Jun 08, 2003
Posts: 47
Wow it worked!
Thanks a lot dude!
I agree. Here's the link:
subject: Cant find servlet
It's not a secret anymore!