ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Java Web Applications
Subject:   404 Error - resolution
Date:   2003-01-29 08:34:04
From:   anonymous2
I have noted that the only way to get around the 404 Error when trying to load servlets is to place the following code in web.xml before the servlet initialisation, inside <web-app></web-app>:
"
<servlet-mapping>
<servlet-name>YourServlet</servlet-name>
<url-pattern>/YourServlet</url-pattern>
</servlet-mapping>
"
This should solve the 404 error. Cheers, Shannon

1 to 2 of 2
1 to 2 of 2