• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Url Pattern Help - Throwing 404 not found error

 
Ranch Hand
Posts: 172
Netbeans IDE MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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???
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic