Meaningless Drivel is fun!*
The moose likes Tomcat and the fly likes Problem in deploying servlet in tomcat 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 "Problem in deploying servlet in tomcat" Watch "Problem in deploying servlet in tomcat" New topic
Author

Problem in deploying servlet in tomcat

Brave heart
Greenhorn

Joined: Aug 11, 2004
Posts: 1
Hi all,
Im having a problem in deploying servlet in tomcat. Im using tomcat 4.I compiled the servlet and put them in web-inf\classes folder.also i wrote the web.xml spicifying the servlet name, class and mappin. But im getting the 404 error. I tried a lot.can u give me any solution for this, Thanx
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12758
    
    5
This is a common problem - browse in the last few weeks of posts.
According to my magic 8-ball, you need to put your class in a package, but the 8-ball has not been too reliable lately.
You might also read
the invoker servlet FAQ here at the ranch.
Bill
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Problem in deploying servlet in tomcat
 
Similar Threads
Running servlet in Tomcat
servlet instantiation error
servlets
Package javax.servlet
javac is not recognized when trying to compile a servlet