Bonjour,
Je suis actuellement en train de développer un site web, et j'aimerai utiliser richfaces pour plusieurs de ses composants. Cependant, impossible de l'installer correctement.
J'ai commencé par l'installer directement dans mon appli, mais çà plantait toujours quoi que je fasse. Donc j'ai créé un nouveau projet JSF sur netbeans (que j'ai nommé richfaces), et j'ai suivi la doc fourni avec richfaces (version 3.2.1.GA).
J'ai donc importé les 3 .jar, puis rajouté ce que l'on m'indiquait à mon web.xml :
Et c'est à ce moment que çà me fait tout planter. Voici le message d'erreur dans la console :
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 <context-param> <param-name>org.richfaces.SKIN</param-name> <param-value>blueSky</param-value> </context-param> <filter> <display-name>RichFaces Filter</display-name> <filter-name>richfaces</filter-name> <filter-class>org.ajax4jsf.Filter</filter-class> </filter> <filter-mapping> <filter-name>richfaces</filter-name> <servlet-name>Faces Servlet</servlet-name> <dispatcher>REQUEST</dispatcher> <dispatcher>FORWARD</dispatcher> <dispatcher>INCLUDE</dispatcher> </filter-mapping>
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
36
37
38 init: deps-module-jar: deps-ear-jar: deps-jar: library-inclusion-in-archive: library-inclusion-in-manifest: compile: compile-jsps: Incrementally deploying http://localhost:8084/richfaces Completed incremental distribution of http://localhost:8084/richfaces Incrementally redeploying http://localhost:8084/richfaces Start is in progress... start?path=/richfaces ECHEC - L'application pour le chemin de contexte /richfaces n'a pas puêtredémarrée Deployment error: The module has not been deployed. See the server log for details. at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:166) at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:104) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) at sun.reflect.GeneratedMethodAccessor108.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:357) at org.apache.tools.ant.Target.performTasks(Target.java:385) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329) at org.apache.tools.ant.Project.executeTarget(Project.java:1298) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1181) at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:277) at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:460) at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151) Caused by: The module has not been deployed. at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:160) ... 16 more BUILD FAILED (total time: 1 second)
Visiblement cela vient du fichier web.xml (d'après le log tomcat) :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5 6 juin 2008 20:48:17 org.apache.catalina.core.StandardContext stop INFO: Le conteneur org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/richfaces] n'a pas été démarré 6 juin 2008 20:48:18 org.apache.tomcat.util.digester.Digester fatalError GRAVE: Parse Fatal Error at line 33 column 2: The markup in the document following the root element must be well-formed. org.xml.sax.SAXParseException: The markup in the document following the root element must be well-formed.
Si quelqu'un pouvait m'aider, cela me serait très utile
Merci d'avance.
Partager