Bonjour

J'ai créer une toute petite application web pour ajouter, modifier, supprimer des enregistrement (personne). Mais lorsque je l'exécute sur Jboss, j'obtiens une erreur :

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
JBoss - server.log 
--------------------------
2009-03-20 11:27:25,187 INFO  [org.apache.coyote.http11.Http11Protocol] (main) D�marrage de Coyote HTTP/1.1 sur http-localhost%2F127.0.0.1-8080
2009-03-20 11:27:25,218 INFO  [org.apache.coyote.ajp.AjpProtocol] (main) Starting Coyote AJP/1.3 on ajp-localhost%2F127.0.0.1-8009
2009-03-20 11:27:25,234 INFO  [org.jboss.bootstrap.microcontainer.ServerImpl] (main) JBoss (Microcontainer) [5.0.0.GA (build: SVNTag=JBoss_5_0_0_GA date=200812042120)] Started in 2m:36s:844ms
2009-03-20 11:28:48,984 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] (Thread-12) Periodic recovery - first pass <ven., 20 mars 2009 11:28:48>
2009-03-20 11:28:48,984 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] (Thread-12) StatusModule: first pass 
2009-03-20 11:28:48,984 DEBUG [com.arjuna.ats.txoj.logging.txojLoggerI18N] (Thread-12) [com.arjuna.ats.internal.txoj.recovery.TORecoveryModule_3] - TORecoveryModule - first pass
2009-03-20 11:28:48,984 DEBUG [com.arjuna.ats.jta.logging.loggerI18N] (Thread-12) [com.arjuna.ats.internal.jta.recovery.info.firstpass] Local XARecoveryModule - first pass
2009-03-20 11:28:58,984 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] (Thread-12) Periodic recovery - second pass <ven., 20 mars 2009 11:28:58>
2009-03-20 11:28:58,984 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] (Thread-12) AtomicActionRecoveryModule: Second pass 
2009-03-20 11:28:58,984 DEBUG [com.arjuna.ats.txoj.logging.txojLoggerI18N] (Thread-12) [com.arjuna.ats.internal.txoj.recovery.TORecoveryModule_6] - TORecoveryModule - second pass
2009-03-20 11:28:58,984 DEBUG [com.arjuna.ats.jta.logging.loggerI18N] (Thread-12) [com.arjuna.ats.internal.jta.recovery.info.secondpass] Local XARecoveryModule - second pass
2009-03-20 11:29:02,906 DEBUG [org.jboss.web.tomcat.service.jasper.TagLibCache] (http-localhost%2F127.0.0.1-8080-1) Scanning for tlds in: vfsfile:/C:/noscan/tools/jboss-5.0.0.GA/server/default/deploy/jbossweb.sar/jsf-libs/jsf-impl.jar
2009-03-20 11:29:03,031 DEBUG [org.jboss.web.tomcat.service.jasper.TagLibCache] (http-localhost%2F127.0.0.1-8080-1) Scanning for tlds in: vfsfile:/C:/noscan/tools/jboss-5.0.0.GA/server/default/deploy/jbossweb.sar/jstl.jar
2009-03-20 11:29:05,078 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/GestEmp].[jsp]] (http-localhost%2F127.0.0.1-8080-1) "Servlet.service()" pour la servlet jsp a g�n�r� une exception
org.apache.jasper.JasperException: /index.jspx(19,3) The content of elements must consist of well-formed character data or markup.
	at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
	at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
	at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:88)
	at org.apache.jasper.compiler.JspDocumentParser.parse(JspDocumentParser.java:214)
	at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:222)
	at org.apache.jasper.compiler.ParserController.parseDirectives(ParserController.java:120)
	at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:166)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:333)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:313)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:300)
	at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:585)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:312)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
	at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
	at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
	at java.lang.Thread.run(Unknown Source)
 
--------------------------
et donc je ne comprends pas bien cette erreur. Pour créer l'application j'ai utiliser eclipse, spring, hibernate et jsf (icefaces).

Je mes les fichiers de configuration :

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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
WebContent/WEB-INF/applicationContext.xml
---------------------------
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	   xmlns:tx="http://www.springframework.org/schema/tx"
	   xmlns:aop="http://www.springframework.org/schema/aop"
	   xsi:schemaLocation="
	http://www.springframework.org/schema/beans 
	http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
	http://www.springframework.org/schema/tx
	http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
	http://www.springframework.org/schema/aop
	http://www.springframework.org/schema/aop/spring-aop-2.5.xsd">
 
 
	<!-- DataSource Definition -->
	<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
		<property name="driverClassName" value="org.postgresql.Driver" />
		<property name="username" value="Manu"/>
		<property name="password" value="manu" />
		<property name="url" value="jdbc:postgresql://localhost/test" />
	</bean>
 
 
 
 
	<!-- Spring Data Access Exception Translator Defintion -->
	<bean id="jdbcExceptionTranslator" class="org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator">
		<property name="dataSource">
			<ref bean="dataSource" />
		</property>
	</bean>
 
	<!-- Hibernate Transaction Manager Definition -->
	<bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
		<property name="sessionFactory">
			<ref local="sessionFactory" />
		</property>
	</bean>
 
	<!-- Hibernate SessionFactory Definition -->
	<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
		<property name="dataSource">
			<ref local="dataSource"/>
		</property>
		<property name="mappingResources">
			<list>
				<value>resources/Personne.hbm.xml</value>
			</list>
		</property>
		<property name="hibernateProperties">
			<props>
				<prop key="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect</prop>
				<prop key="hibernate.show_sql">true</prop>
				<prop key="hibernate.hbm2ddl.auto">update</prop>
			</props>
		</property>
	</bean>
 
	<!-- Hibernate Template Definition -->
	<bean id="hibernateTemplate" class="org.springframework.orm.hibernate3.HibernateTemplate">
		<property name="sessionFactory">
			<ref bean="sessionFactory"/>
		</property>
 
 
	</bean>
 
	<!-- ==================== dao definitions ==================== -->
 
	<bean id="personneDao" class="dao.PersonneDaoImpl">
		<property name="hibernateTemplate">
			<ref bean="hibernateTemplate"/>
		</property>
	</bean>
 
	<!-- ==================== service definitions ==================== -->
 
	<bean id="personneServiceTarget" class="service.PersonneServiceImpl">
		<property name="personneDaoImpl">
			<ref bean="personneDao"/>
		</property>
	</bean>
 
	<!-- transactional proxy for the personne service -->
 
	<bean id="personneService" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
		<property name="transactionManager">
			<ref local="transactionManager"/>
		</property>
		<property name="target">
			<ref local="personneServiceTarget"/>
		</property>
		<property name="transactionAttributes">
			<props>
				<prop key="get*">PROPAGATION_REQUIRED, readOnly</prop>
				<prop key="save*">PROPAGATION_REQUIRED</prop>
				<prop key="update*">PROPAGATION_REQUIRED</prop>
				<prop key="delete*">PROPAGATION_REQUIRED</prop>
			</props>
		</property>
	</bean>
 
</beans>
---------------------------
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
58
59
60
61
62
63
64
65
66
67
68
69
WebContent/WEB-INF/faces-config.xml
---------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
"http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
 
<faces-config>
 
	<managed-bean>
 
		<description>visual bean which contains a business bean and a simple bean</description>
 
		<managed-bean-name>personneBean</managed-bean-name>
 
		<managed-bean-class>backEndBean.PersonneBean</managed-bean-class>
 
		<managed-bean-scope>request</managed-bean-scope>
 
		<managed-property>
			<property-name>personneService</property-name>
			<value>#{personneService}</value>
		</managed-property>
 
		<managed-property>
			<property-name>personneId</property-name>
			<value>#{param.personneId}</value>
		</managed-property>
 
	</managed-bean>
 
		<navigation-rule>
			<from-view-id>/createPersonne.jsp</from-view-id>
			<navigation-case>
				<from-outcome>success</from-outcome>
				<to-view-id>/viewAllPeople.jsp</to-view-id>
			</navigation-case>
			<navigation-case>
				<from-outcome>failure</from-outcome>
				<to-view-id>/error.jsp</to-view-id>
			</navigation-case>
		</navigation-rule>
 
		<navigation-rule>
			<from-view-id>/editPersonne.jsp</from-view-id>
			<navigation-case>
				<from-outcome>success</from-outcome>
				<to-view-id>/viewAllPeople</to-view-id>
			</navigation-case>
			<navigation-case>
				<from-outcome>failure</from-outcome>
				<to-view-id>/error.jsp</to-view-id>
			</navigation-case>
		</navigation-rule>
 
	<!-- this jsf variable resolver lets you reference jsf managed beans
		from a spring context, or a spring bean from a managed bean -->
 
	<application>
		<variable-resolver>
			org.springframework.web.jsf.DelegatingVariableResolver
		</variable-resolver>
	</application>
 
	<lifecycle/>
 
	<factory/>
 
</faces-config>
---------------------------
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
WebContent/WEB-INF/web.xml
---------------------------
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee	
	http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
	version="2.4">
 
	<context-param>
		<param-name>contextConfigLocation</param-name>
		<param-value>/WEB-INF/applicationContext.xml</param-value>
	</context-param>
 
	<context-param>
		<param-name>com.icesoft.faces.standardRequestScope</param-name>
		<param-value>true</param-value>
	</context-param>
 
	<context-param>
		<param-name>com.icesoft.faces.synchronousUpdate</param-name>
		<param-value>true</param-value>
	</context-param>
 
	<context-param>
		<param-name>com.icesoft.faces.concurrentDOMViews</param-name>
		<param-value>false</param-value>
	</context-param>
 
	<context-param>
		<param-name>com.icesoft.faces.actionURLSuffix</param-name>
		<param-value>.iface</param-value>
	</context-param>
 
	<context-param> <!-- toutes les pages sont par défaut $.jspx -->
		<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
		  <param-value>.jspx</param-value>
	</context-param>
 
	<context-param> <!-- jsf config file -->
		<param-name>javax.faces.CONFIG_FILES</param-name>
		<param-value>/WEB-INF/faces-config.xml
		</param-value>
	</context-param>
 
 
	<listener>
		<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
	</listener>
 
	<listener>
		<listener-class>com.icesoft.faces.util.event.servlet.ContextEventRepeater</listener-class>
	</listener>
 
	<!-- Listener for initializing contexts in 3rd party servlet environment -->
	<listener>
		<listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
	</listener>
 
 
 
	<!-- The front controller for the JSF application, responsible for handling all
	application requests -->
	<servlet>
		<servlet-name>Faces Servlet</servlet-name>
		<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
		<load-on-startup>1</load-on-startup>
	</servlet>
	<servlet>
		<servlet-name>Persistent Faces Servlet</servlet-name>
		<servlet-class>com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet</servlet-class>
		<load-on-startup> 1 </load-on-startup>
	</servlet>
	<servlet>
		<servlet-name>Blocking Servlet</servlet-name>
		<servlet-class>com.icesoft.faces.webapp.xmlhttp.BlockingServlet</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>	
 
	<servlet-mapping>
		<servlet-name>Persistent Faces Servlet</servlet-name>
		<url-pattern>*.iface</url-pattern>
	</servlet-mapping>
 
	<servlet-mapping>
		<servlet-name>Persistent Faces Servlet</servlet-name>
		<url-pattern>/xmlhttp/*</url-pattern>
	</servlet-mapping>
 
	<servlet-mapping>
		<servlet-name>Persistent Faces Servlet</servlet-name>
		<url-pattern>*.faces</url-pattern>
	</servlet-mapping>
 
	<servlet-mapping>
		<servlet-name>Blocking Servlet</servlet-name>
		<url-pattern>/block/*</url-pattern>
	</servlet-mapping>
 
	<servlet-mapping>
		<servlet-name>Persistent Faces Servlet</servlet-name>
		<url-pattern>*.jsp</url-pattern>
	</servlet-mapping>
 
	<welcome-file-list>
		<welcome-file>index.jspx</welcome-file>
	</welcome-file-list> 
</web-app>
---------------------------
et voici index.jspx et createPersonne.jspx

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
WebContext/index.jspx
<?xml version="1.0" encoding="ISO-8859-1" ?>
<jsp:root version="1.2" 
  xmlns:jsp="http://java.sun.com/JSP/Page"
   xmlns:f="http://java.sun.com/jsf/core"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:ice="http://www.icesoft.com/icefaces/component">
<jsp:directive.page contentType="text/html;charset=ISO-8859-1" pageEncoding="ISO-8859-1"/>
<f:view>
  <ice:outputDeclaration doctypeRoot="HTML" doctypePublic="-//W3C//DTD HTML 4.01 Transitional//EN" doctypeSystem="http://www.w3.org/TR/html4/loose.dtd"/>
  <html>
    <head>
     <title><ice:outputText value="ICEfaces, Ajax for Java EE" /></title>
    </head>
    <body>
     <ice:outputText value="Thank you for using ICEfaces." />
     <ice:form>
      	<ice:messages/>
     </ice:form>
	<% response.sendRedirect("/createPersonne.jspx"); %>
    </body>
  </html>
</f:view>
</jsp:root>

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
WebContext/createPersonne.jspx
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ice="http://www.icesoft.com/icefaces/component">
	    <ice:outputDeclaration doctypeRoot="HTML"
	        doctypePublic="-//W3C//DTD XHTML 1.0 Transitional//EN"
	        doctypeSystem="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
	    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	    <head>
	    <title>create personne</title>
	    </head>
	    <f:view>
	    	<h:form id="createPersonneForm">
	    		<h:panelGrid columns="2">
	    			<h:outputText value="nom : " />
	    			<h:inputText value="#{PersonneBean.personne.nom}" />
	    			<h:outputText value="prenom : " />
	    			<h:inputText value="#{PersonneBean.personne.prenom}" />
	    			<h:outputText value="date de naissance JJ-MM-AAAA : " />
	    			<h:inputText value="#{PersonneBean.personne.naissance}" />
	    			<h:outputText value="province : " />
	    			<h:inputText value="#{PersonneBean.personne.province}" />
	    			<h:commandButton action="#{PersonneBean.createPersonneAction}" value="submit" />
	    		</h:panelGrid>
	    	</h:form>
	    </f:view>
</html>
j'espère que vous pourriez m'aider car là je suis en manque d'idée.

Merci