Hi
I'm trying to create a new application using Struts 1.1 and Tomcat 5.0.16 (SDK 1.4.2_03). I am getting the following error when I try accessing my home page.
HTTP Status 404 - Servlet action is not available
------------------------------------------------------------
type: Status report
message: Servlet action is not available
description: The requested resource (Servlet action is not available) is not available.
my web.xml file currently looks like this
-----------------------------------------
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"
<web-app>
<display-name>doc</display-name>
<!-- Action Servlet Configuration -->
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<!-- Action Servlet Mapping -->
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<!-- The Welcome File List -->
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<!-- Application Tag Library Descriptor -->
<taglib>
<taglib-uri>/WEB-INF/app.tld</taglib-uri>
<taglib-location>/WEB-INF/app.tld</taglib-location>
</taglib>
<!-- Struts Tag Library Descriptors -->
<taglib>
<taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-nested.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-nested.tld</taglib-location>
</taglib>
</web-app>
and my struts-config.xml looks like this
------------------------------------------
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "
<!-- This is the Struts configuration file for the example application, using the proposed new syntax. -->
<struts-config>
<!-- ========== Form Bean Definitions =================================== -->
<form-beans>
<form-bean name="" type=""/>
</form-beans>
<!-- ========== Action Mapping Definitions ============================== -->
<action-mappings>
<!-- GlobalForward Action mapping -->
<action path="/home" forward="/jsp/manuals.jsp" />
<action path="/display" forward="/jsp/display.jsp" />
<action path="/javamanual" forward="/docs/javamanual.jsp" />
<action path="/loadtest" forward="/docs/loadtest.pdf" />
</action-mappings>
<!-- Global Forward declarations -->
<global-forwards>
<forward name = "home" path = "/home.do" />
<forward name = "display" path = "/display.do" />
<forward name = "javamanual" path = "/javamanual.do" />
<forward name = "loadtest" path = "/loadtest.do" />
</global-forwards>
</struts-config>
------------------------------------------------------------
I would truly appreciate it if anyone would take a look at this problem.
Thanks in advance,
Kumar
I'm trying to create a new application using Struts 1.1 and Tomcat 5.0.16 (SDK 1.4.2_03). I am getting the following error when I try accessing my home page.
HTTP Status 404 - Servlet action is not available
------------------------------------------------------------
type: Status report
message: Servlet action is not available
description: The requested resource (Servlet action is not available) is not available.
my web.xml file currently looks like this
-----------------------------------------
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"
<web-app>
<display-name>doc</display-name>
<!-- Action Servlet Configuration -->
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<!-- Action Servlet Mapping -->
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<!-- The Welcome File List -->
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<!-- Application Tag Library Descriptor -->
<taglib>
<taglib-uri>/WEB-INF/app.tld</taglib-uri>
<taglib-location>/WEB-INF/app.tld</taglib-location>
</taglib>
<!-- Struts Tag Library Descriptors -->
<taglib>
<taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-nested.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-nested.tld</taglib-location>
</taglib>
</web-app>
and my struts-config.xml looks like this
------------------------------------------
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "
<!-- This is the Struts configuration file for the example application, using the proposed new syntax. -->
<struts-config>
<!-- ========== Form Bean Definitions =================================== -->
<form-beans>
<form-bean name="" type=""/>
</form-beans>
<!-- ========== Action Mapping Definitions ============================== -->
<action-mappings>
<!-- GlobalForward Action mapping -->
<action path="/home" forward="/jsp/manuals.jsp" />
<action path="/display" forward="/jsp/display.jsp" />
<action path="/javamanual" forward="/docs/javamanual.jsp" />
<action path="/loadtest" forward="/docs/loadtest.pdf" />
</action-mappings>
<!-- Global Forward declarations -->
<global-forwards>
<forward name = "home" path = "/home.do" />
<forward name = "display" path = "/display.do" />
<forward name = "javamanual" path = "/javamanual.do" />
<forward name = "loadtest" path = "/loadtest.do" />
</global-forwards>
</struts-config>
------------------------------------------------------------
I would truly appreciate it if anyone would take a look at this problem.
Thanks in advance,
Kumar