Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Url Pattern Help - Throwing 404 not found error

 
Pranit Sonawane
Ranch Hand
Posts: 172
Java MySQL Database Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic