Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in deploying servlet in tomcat

 
Brave heart
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic