Ver Mensaje Individual
  #1 (permalink)  
Antiguo 23/10/2013, 16:59
albertostudium
 
Fecha de Ingreso: octubre-2012
Mensajes: 55
Antigüedad: 11 años, 6 meses
Puntos: 0
Exclamación Struts2 problema

Buenas noches.

Resulta que he creado mi primer programa en strut2, pero cuando intento ejecutarlo me da el siguiente error.

The Struts dispatcher cannot be found.

Alguien sabe a que puede deberse el error porque a mi parecer los archivos de configuración de web.xml y struts.xml están bien formados.

web.xml:

<?xml version="1.0" encoding="UTF-8"?>

<web-app xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
version="3.0">

<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.Stru tsPrepareAndExecuteFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
</web-app>


struts.xml:

<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<constant name="struts.enable.DynamicMethodInvocation" value="false" />
<constant name="struts.devMode" value="false" />

<package name="default" extends="struts-default">
<action name="Login" class="actions.Login">
<result>/bienvenido.jsp</result>
<result name="input">/index.jsp</result>
</action>
</package>
</struts>