This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Servlet Problem In Tomcat5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet Problem In Tomcat5" Watch "Servlet Problem In Tomcat5" New topic

Servlet Problem In Tomcat5

Santosh Maskar
Ranch Hand

Joined: Jul 02, 2003
Posts: 226
I have One Servlet which Print the NAme butIn Tomcat 5 IT is giving me 404 Error code

For Eg.
JDK : d:\jdk1.4.2
Tomcat d:\tomcat5
Class D;\tomcat\webapps\MyServlet\WEB-INf\classes\HelloServelt.classs
Web.xml D;\tomcat\webapps\MyServlet\WEB-INf\Web.xml

is here anything that missed out

please help me why this show 404
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

1) all your classes (servlets included) should be in a package.
2) web.xml (not Web.xml) and WEB-INF (not WEB-INf)
3) you are probably thinking the invoker is active?
Invoker FAQ
Navin Ramineni

Joined: Jul 28, 2004
Posts: 3
Santosh- what is the URL which you used to access the servlet?
Consider Paul's rocket mass heater.
subject: Servlet Problem In Tomcat5
Similar Threads
Deploying My WebApp in Tomcat
TOMCAT can't find classes in /WEB-INF/classes
servlet 404 error
Help Me