problem with the unfolding of an application
Hello! I have a problem with the unfolding of an application.The mistake is:
I imagine it´s because of the struts-config.xml, but I ignore the real cause. I adjunct the
web.xml. Here it is:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>application</param-name>
<param-value>AviacionResources</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet>
<servlet-name>dbInit</servlet-name>
<servlet-class>utilidad.DBInitServlet</servlet-class>
<init-param>
<param-name>driverClass</param-name>
<param-value>org.gjt.mm.mysql.Driver</param-value>
</init-param>
<init-param>
<param-name>jdbcURL</param-name>
<param-value>jdbc:mysql://localhost:3306/aviacion_db</param-value>
</init-param>
<init-param>
<param-name>minCount</param-name>
<param-value>1</param-value>
</init-param>
<init-param>
<param-name>maxCount</param-name>
<param-value>10</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<taglib>
<taglib-uri>/bean</taglib-uri>
<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/html</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/logic</taglib-uri>
<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/template</taglib-uri>
<taglib-location>/WEB-INF/struts-template.tld</taglib-location>
</taglib>
</web-app>
this is the sruts config.xml:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.0//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd">
<struts-config>
<form-beans>
<form-bean name="paisForm" type="estadoEntidad.Pais"/>
</form-beans>
<action-mappings>
<action path="/home" type="acciones.HomeAction" unknown="true">
<forward name="success" path="/home.jsp"/>
</action>
<action path="/verPais"
type="acciones.VerPaisAction"
input="/home.do">
<forward name="success" path="/verPais.jsp"/>
</action>
<action path="/altaPais"
type="acciones.AltaPaisAction"
input="/altaPais.jsp"
name="paisForm"
scope="request">
<forward name="success" path="/confirmRegistration.jsp"/>
</action>
</action-mappings>
</struts-config>
the problem/error message is:
HTTP Status 500 - No action instance for path /home could be created
type Status report
message No action instance for path /home could be created
description The server encountered an internal error (No action instance for path /home could be created) that prevented it from fulfilling this request.
Apache Tomcat/4.1.30
Thank you very very much.
|