Bonjour
J ai suivi un tutoriel Struts 2.
Au demarrage de tomcat J'obtiens l'erreur suivante
Mon struts.xml se trouve sous le folder src/
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3 GRAVE: Exception au démarrage du filtre struts2 java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.FilterDispatcher at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1645)
que voici
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12 <?xml version="1.0" encoding="UTF-8"?> <struts> <constant name="struts.enable.DynamicMethodInvocation" value="true"></constant> <constant name="struts.devMode" value="true"></constant> <constant name="struts.custom.i18n.resources" value="package"></constant> <package name="frontoffice" namespace="/back-office" extends="struts-default"> <default-action-ref name="index"></default-action-ref> <action name="gotoPage2"> <result type="redirect">page2.jsp</result> </action> </package> </struts>
Mon web.xml se trouve sous WebContent/WEB-INF/
que voici
Voici ce que j ai sous lib [IMG][/IMG]
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35 <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5"> <display-name>ProjectName2</display-name> <welcome-file-list> <welcome-file>index.html</welcome-file> <welcome-file>index.htm</welcome-file> <welcome-file>index.jsp</welcome-file> <welcome-file>default.html</welcome-file> <welcome-file>default.htm</welcome-file> <welcome-file>default.jsp</welcome-file> </welcome-file-list> <context-param> <param-name>dataSourceJNDI </param-name> <param-value>un parametre</param-value> </context-param> <filter> <filter-name>struts2</filter-name> <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class> </filter> <filter-mapping> <filter-name>struts2</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <resource-ref> <description>Connextion a la base de donnes mySQL</description> <res-ref-name>jdbc_blog_mySQL</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> </resource-ref> </web-app>
Configuration apache tomcat 6.0.29
MErci
Je vois pas ce qui est mal configuré jusqu'ici !!
Partager