aspose file tools*
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
Author

Cant find servlet

EJ Dinglasan
Ranch Hand

Joined: Jun 08, 2003
Posts: 47
Hi!
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.
Thanks.
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:

Joe
EJ Dinglasan
Ranch Hand

Joined: Jun 08, 2003
Posts: 47
Wow it worked!
Thanks a lot dude!
 
 
subject: Cant find servlet
 
Similar Threads
servlet in both WEB-INF/lib and WEB-INF/classes
JSP cannot call Servlet
Servlet not available?
404 errors in servlets
Using Sun App Server instead of Orion