GeeCON Prague 2014*
The moose likes IDEs, Version Control and other tools and the fly likes Url Pattern Help - Throwing 404 not found error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Url Pattern Help - Throwing 404 not found error" Watch "Url Pattern Help - Throwing 404 not found error" New topic
Author

Url Pattern Help - Throwing 404 not found error

Pranit Sonawane
Ranch Hand

Joined: Jul 29, 2011
Posts: 155

Hi all, I'm using Netbeans IDE 7.2. and in my web application I have my JSP page at Web Pages/Cardiology Patients/new_cardio_entry.jsp and my servlet in Source Packages folder but when I'm trying to access that servlet it give 404 not found error as if the resource is not available where it is present in a Source Packages folder. Below is my web-xml.xml file



Please help me understanding where am I going wrong???
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5835
    
    7

Below is my web-xml.xml file

Is that a typo? Did you mean web.xml?

What URL are you using in the browser when you get the 404? It's hard to say why you are getting a 404 if we don't know the URL you were using.

Do you actually have a class named add_cardio_patient? That is not a typical Java class naming convention.

It might also be helpful if you posted the contents of the deployed WAR file. You can get that by running "jar -tf xxx.war" where xxx.war is your war file name (including the path).


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Url Pattern Help - Throwing 404 not found error