Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet not running

 
Anshul Mathur
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
I am making a project . the problem i am facing is where to save servlet Class file and source code . Below is the directory structure i am folling.

Tomcat
webapps
Admin
JobsSite(Project Folder)
Meta-inf(Copied from Admin folder)
Web-inf(do)
classes
Root
Examples
porblem is that i am not able to run servlet when i save the class file in classes folder in web-inf folder of JobsSite but it works fine when i save it in with the examples floder.
So pls help am i missing some thing

Bye
Anshul mathur
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
make sure it's WEB-INF (all caps) not web-inf.

Also, read up on the invoker servlet.
http://faq.javaranch.com/view?InvokerServlet
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The symptom
i am not able to run servlet when i save the class file in classes folder in web-inf folder of JobsSite but it works fine when i save it in with the examples floder.

really sets off alarm bells. Like Mike says, you better read up on the invoker servlet. Also be sure to put all of your servlet related classes in a package - you will be glad you did.
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic