Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cant find servlet

 
EJ Dinglasan
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1376
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wow it worked!
Thanks a lot dude!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic