File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cant find servlet