Bonjour à tous
je suis entrain de développer une application j2EE avec jsf et richfaces
j'utilise tomcat 7, lors du run de l'application, la première page s'affiche normalement et si je click sur la bouton cet erreur s'affiche est ce que il y a quelqu'un qui peut m'aider
la page web.xml
le fichier faces-config.xml
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
39
40
41
42
43
44
45 <?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_3_0.xsd" id="WebApp_ID" version="3.0"> <display-name>Mouna</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> <listener> <listener-class> org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <listener> <listener-class> org.springframework.web.context.request.RequestContextListener</listener-class> </listener> <context-param> <param-name>contextConfigLocation</param-name> <param-value>classpath:applicationcontext.xml</param-value> </context-param> <context-param> <param-name>org.richfaces.SKIN</param-name> <param-value>blueSky</param-value> </context-param> <servlet> <servlet-name>Faces Servlet</servlet-name> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>Faces Servlet</servlet-name> <url-pattern>*.jsf</url-pattern> </servlet-mapping> <filter> <filter-name>RichFaces Filter </filter-name> <filter-class>org.ajax4jsf.Filter</filter-class> </filter> <filter-mapping> <filter-name>RichFaces Filter</filter-name> <servlet-name>Faces Servlet</servlet-name> </filter-mapping> </web-app>
le fichier index.jsp
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 <?xml version="1.0" encoding="UTF-8"?> <faces-config 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-facesconfig_2_0.xsd" version="2.0"> <application> <el-resolver>org.springframework.web.jsf.el.SpringBeanFacesELResolver</el-resolver> </application> <managed-bean> <managed-bean-name>serviceBean</managed-bean-name> <managed-bean-class>tn.oxygen.Mouna.web.ServiceBean</managed-bean-class> <managed-bean-scope>session</managed-bean-scope> </managed-bean> <navigation-rule> <from-view-id>*</from-view-id> <navigation-case> <from-outcome>detail</from-outcome> <to-view-id>/detailservice.jsp</to-view-id> </navigation-case> <navigation-case> <from-outcome>list</from-outcome> <to-view-id>/index.jsp</to-view-id> </navigation-case> </navigation-rule> </faces-config>
et le fichier detailservice.jsp
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
39
40
41
42
43 <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%> <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%> <%@taglib uri="http://richfaces.org/a4j" prefix="a4j" %> <%@taglib uri="http://richfaces.org/rich" prefix="rich" %> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Liste des services</title> </head> <body> <f:view> <h:form id="mainForm"> <h:panelGrid columns="1"> <rich:scrollableDataTable id="serviceTable" binding="#{serviceBean.serviceTable}" value="#{serviceBean.serviceList}" var="Service" width="300px" height="200px"> <rich:column id="idService" width="60px"> <f:facet name="header"> <h:outputText value="idService" /></f:facet> <h:outputText value="#{Service.idService}" /> </rich:column> <rich:column id="name" width="200px"> <f:facet name="header"> <h:outputText value="Nom" /></f:facet> <h:outputText value="#{Service.name}" /> </rich:column> <rich:column id="etat" width="200px"> <f:facet name="header"> <h:outputText value="etat" /></f:facet> <h:outputText value="#{Service.etat}" /> </rich:column> </rich:scrollableDataTable> <h:panelGroup> <h:commandButton value="gestion" action="#{serviceBean.viewDetail}" /> </h:panelGroup> </h:panelGrid> </h:form> </f:view> </body> </html>
l'erreur que je reçu est
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 <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%> <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>detail de service</title> </head> <body> <f:view> <h:form id="mainForm"> <h:panelGrid id="2"> <h:outputLabel value="idService" for="idService" /><h:inputText id="idService" value="#{serviceBean.currentService.idService}"/> <h:outputLabel value="Nom" for="name" /><h:inputText id="name" value="#{serviceBean.currentService.name}"/> <h:outputLabel value="etat" for="etat" /><h:inputText id="etat" value="#{serviceBean.currentService.etat}"/> </h:panelGrid> <h:panelGroup> <h:commandButton value="Installer" action="#{serviceBean.currentService.installe }"/> <h:commandButton value="retour" action="list"/> </h:panelGroup> </h:form> </f:view> </body>
svp est ce que il ya quelqu'un qui peut m'aider
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57 Etat HTTP 500 - -------------------------------------------------------------------------------- type Rapport d''exception message description Le serveur a rencontré une erreur interne () qui l'a empêché de satisfaire la requête. exception javax.servlet.ServletException: 2 javax.faces.webapp.FacesServlet.service(FacesServlet.java:256) org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178) org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290) org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368) org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495) cause mère java.lang.IllegalArgumentException: 2 javax.faces.component.UIComponentBase.validateId(UIComponentBase.java:529) javax.faces.component.UIComponentBase.setId(UIComponentBase.java:333) javax.faces.webapp.UIComponentELTag.createComponent(UIComponentELTag.java:218) javax.faces.webapp.UIComponentClassicTagBase.createChild(UIComponentClassicTagBase.java:476) javax.faces.webapp.UIComponentClassicTagBase.findComponent(UIComponentClassicTagBase.java:660) javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:1111) com.sun.faces.taglib.html_basic.PanelGridTag.doStartTag(PanelGridTag.java:344) org.apache.jsp.detailservice_jsp._jspx_meth_h_005fpanelGrid_005f0(detailservice_jsp.java:215) org.apache.jsp.detailservice_jsp._jspx_meth_h_005fform_005f0(detailservice_jsp.java:176) org.apache.jsp.detailservice_jsp._jspx_meth_f_005fview_005f0(detailservice_jsp.java:132) org.apache.jsp.detailservice_jsp._jspService(detailservice_jsp.java:94) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) javax.servlet.http.HttpServlet.service(HttpServlet.java:722) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) javax.servlet.http.HttpServlet.service(HttpServlet.java:722) com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:428) com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:444) com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:116) org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100) org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176) com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106) com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251) com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144) javax.faces.webapp.FacesServlet.service(FacesServlet.java:245) org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178) org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290) org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368) org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495) note La trace complète de la cause mère de cette erreur est disponible dans les fichiers journaux de Apache Tomcat/7.0.26.
merci d'avance
Partager