| Subject: | HTTP Status 404 error in The requested resource (/Example) is not available. | |
| Date: | 2007-05-06 22:12:49 | |
| From: | ghada80 | |
|
Response to: HTTP Status 404 error in The requested resource (/Example) is not available.
|
||
|
my servlet file path is C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\examples\WEB-INF\classes\HelloWorldExample.java and it is a famous servlet exists in Tomcat 6.0 installasion I did not build it or change it I try the URL http://localhost:8080/examples/HelloWorldExample And http://localhost:8080/HelloWorldExample And http://localhost:8080/webapps/examples/WEB-INF/classes/HelloWorldExample And http://localhost:8080/examples/WEB-INF/classes/HelloWorldExample And http://localhost:8080/WEB-INF/classes/HelloWorldExample And http://localhost:8080/classes/HelloWorldExample And The following message appears in the browser HTTP Status 404 - /examples/HelloWorldExample
|
||
Showing messages 1 through 2 of 2.
-
HTTP Status 404 error in The requested resource (/Example) is not available.
2007-07-16 02:37:44 hellojava2 [View]
-
HTTP Status 404 error in The requested resource (/Example) is not available.
2009-01-20 21:09:23 Foccii [View]
HTTP Status 404 error in The requested resource (/Emp1/EmpJsp.jsp) is not available.
using struts
change in struts-config file
<form-beans>
<form-bean name="EmpForm" type="com.hr.trainee.EmpForm" />
</form-beans>
<action-mappings>
<action path="/EmpJsp" type="com.hr.trainee.EmpAction"
name="EmpForm"
scope="session"
input="/EmpJsp.jsp" >
<forward name="success" path="/DisplayJsp.jsp" />
<forward name="failure" path="/EmpJsp.jsp" />
</action>
</action-mappings>



<servlet-mapping>
<servlet-name>HelloWorldExample</servlet-name>
<url-pattern>HelloWorldExample</url-pattern>
</servlet-mapping>
to
<servlet-mapping>
<servlet-name>HelloWorldExample</servlet-name>
<url-pattern>/HelloWorldExample</url-pattern>
</servlet-mapping>
Then it is working fine