This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Servlet not running Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Servlet not running" Watch "Servlet not running" New topic
Author

Servlet not running

Anshul Mathur
Greenhorn

Joined: Nov 07, 2003
Posts: 22
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

Joined: Feb 20, 2001
Posts: 3695

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

Joined: Mar 22, 2000
Posts: 12759
    
    5
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Servlet not running
 
Similar Threads
package class path problem
Setting up contexts somewhere other than webapps
HTTP Status 404 - /ch1/Serv1/
servlets
Yet another tomcat problem