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

advertisement

AddThis Social Bookmark Button
Article:
  Java Web Applications
Subject:   error 404- servlet would not load
Date:   2003-07-14 04:40:52
From:   anonymous2
Response to: error 404- servlet would not load

I have my project folder and i have made modification in my server.xml i have added


context path



in the web.xml in the webapps /web-inf folder i am doing the servlet mapping.. but it is taking the file from the root only



<web-app>


<display-name>Application </display-name>
<session-timeout>30</session-timeout>


<servlet>
<servlet-name>LoginServlet</servlet-name>
<servlet-class>com.project.LoginServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>


<servlet-mapping>
<servlet-name>LoginServlet</servlet-name>
<url-pattern>project/servlet/*</url-pattern>
</servlet-mapping>


</web-app>


what is the solution ?..plz write back soon


vijay_shah_78@rediffmail.com


1 to 1 of 1
  1. error 404- servlet would not load
    2005-11-17 02:41:24  Shreyas [View]

1 to 1 of 1