File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes 404 Exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "404 Exception" Watch "404 Exception" New topic

404 Exception

Suhani arora

Joined: Jul 03, 2005
Posts: 8
Hi to All.....
Frnds I am creating WEB application in which i am using JSP,Servlet,Bean-Class. I have developed it in Tomcat 4.1.10 but due to some reason it is corrupt and now i have installed Tomcat 4.1.31 .After installed i am facing new problem my servlet is not called .It shows 404 Exception servlet not found .any one please tell me why is this happening .I have checked the spelling and Servlet there is not problem.

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"


<display-name>Security Constraint</display-name>



<realm-name>Form-Based Authentication</realm-name>

<description>Administrator </description>



Chetan Parekh
Ranch Hand

Joined: Sep 16, 2004
Posts: 3640
Post some the error message that you are getting.

My blood is tested +ve for Java.
kirtikumar patel

Joined: Jun 29, 2005
Posts: 14
specify complete path in servlet-class tag in web.xml
and also check url is also written down correcly or not?

if then after u also have same error plz send me ( your class file with web.xm and url those you wirte for access that page in browser

kirti patel<br />software engiener<br />pune
Suhani arora

Joined: Jul 03, 2005
Posts: 8
I got the Solution Actually there is need to write each servlet and their URL mapping in web.xml and the way is that


I agree. Here's the link:
subject: 404 Exception
It's not a secret anymore!