Voila un petit projet qui fait l'ajout d'une personne dans une base des données Mysql/Phpmyadmin le problème c'est que je n'arrive pas a localiser le problème :oops: :arf:
Version imprimable
Voila un petit projet qui fait l'ajout d'une personne dans une base des données Mysql/Phpmyadmin le problème c'est que je n'arrive pas a localiser le problème :oops: :arf:
Avant de regarder tes sources, peux tu dire ce qui cloche ?
Erreur, persistence, affichage , ... ?
ok, merci pour ta réponse
j'ai une classe Personne qui est mappé avec hibernate, puis l'injection de dépendance entre la couche dao et metier est faite par spring IOC,le managed beans est fait par jsf et le design par Primefaces.
le problème lorsque je j'envoi la requête pour appeler la page qui de saisie le serveur tomcat il me donne :
type Rapport d''état
message /Personne_JSF/addPersonne.jsp
description La ressource demandée n''est pas disponible.
et le console n'affiche aucune erreur.
le projet est un dynamique web project sous eclipse
vous pouvez nous montrer le stacktrace?
Code:
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182 août 21, 2013 6:39:35 PM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.7.0_21\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jre7/bin/client;C:/Program Files/Java/jre7/bin;C:/Program Files/Java/jre7/lib/i386;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;. août 21, 2013 6:39:36 PM org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:JSF2HelloWorld' did not find a matching property. août 21, 2013 6:39:36 PM org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:PersonneJSF' did not find a matching property. août 21, 2013 6:39:36 PM org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:premiereapplijsf' did not find a matching property. août 21, 2013 6:39:37 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["http-bio-8081"] août 21, 2013 6:39:37 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["ajp-bio-8010"] août 21, 2013 6:39:37 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 3390 ms août 21, 2013 6:39:37 PM org.apache.catalina.core.StandardService startInternal INFO: Démarrage du service Catalina août 21, 2013 6:39:37 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.42 août 21, 2013 6:39:39 PM org.apache.catalina.util.SessionIdGenerator createSecureRandom INFO: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [115] milliseconds. août 21, 2013 6:39:41 PM org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter INFO: No context init parameter 'org.apache.myfaces.RENDER_CLEAR_JAVASCRIPT_FOR_BUTTON' found, using default value false août 21, 2013 6:39:41 PM org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter INFO: No context init parameter 'org.apache.myfaces.RENDER_HIDDEN_FIELDS_FOR_LINK_PARAMS' found, using default value false août 21, 2013 6:39:41 PM org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter INFO: No context init parameter 'org.apache.myfaces.SAVE_FORM_SUBMIT_LINK_IE' found, using default value false août 21, 2013 6:39:41 PM org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter INFO: No context init parameter 'org.apache.myfaces.READONLY_AS_DISABLED_FOR_SELECTS' found, using default value true août 21, 2013 6:39:41 PM org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter INFO: No context init parameter 'org.apache.myfaces.RENDER_VIEWSTATE_ID' found, using default value true août 21, 2013 6:39:41 PM org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter INFO: No context init parameter 'org.apache.myfaces.STRICT_XHTML_LINKS' found, using default value true août 21, 2013 6:39:41 PM org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter INFO: No context init parameter 'org.apache.myfaces.RENDER_FORM_SUBMIT_SCRIPT_INLINE' found, using default value false août 21, 2013 6:39:41 PM org.apache.myfaces.shared_impl.config.MyfacesConfig getLongInitParameter INFO: No context init parameter 'org.apache.myfaces.CONFIG_REFRESH_PERIOD' found, using default value 2 août 21, 2013 6:39:41 PM org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter INFO: No context init parameter 'org.apache.myfaces.VIEWSTATE_JAVASCRIPT' found, using default value false août 21, 2013 6:39:41 PM org.apache.myfaces.shared_impl.config.MyfacesConfig getStringInitParameter INFO: No context init parameter 'org.apache.myfaces.REFRESH_TRANSIENT_BUILD_ON_PSS' found, using default value auto août 21, 2013 6:39:41 PM org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter INFO: No context init parameter 'org.apache.myfaces.REFRESH_TRANSIENT_BUILD_ON_PSS_PRESERVE_STATE' found, using default value false août 21, 2013 6:39:41 PM org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter INFO: No context init parameter 'org.apache.myfaces.VALIDATE_XML' found, using default value false août 21, 2013 6:39:41 PM org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter INFO: No context init parameter 'org.apache.myfaces.WRAP_SCRIPT_CONTENT_WITH_XML_COMMENT_TAG' found, using default value true août 21, 2013 6:39:41 PM org.apache.myfaces.shared_impl.config.MyfacesConfig createAndInitializeMyFacesConfig INFO: Tomahawk jar not available. Autoscrolling, DetectJavascript, AddResourceClass and CheckExtensionsFilter are disabled now. août 21, 2013 6:39:41 PM org.apache.myfaces.config.FacesConfigurator feedStandardConfig INFO: Reading standard config META-INF/standard-faces-config.xml août 21, 2013 6:39:41 PM org.apache.myfaces.config.FacesConfigurator getWebAppConfig INFO: Reading config /WEB-INF/faces-config.xml août 21, 2013 6:39:41 PM org.apache.myfaces.config.FacesConfigurator startLib INFO: Starting up MyFaces-package : myfaces-api in version : 2.0.2 from path : file:/C:/Users/Amine/Eclipse_projects/.metadata/.plugins/org.eclipse.wst.server.core/tmp2/wtpwebapps/JSF2HelloWorld/WEB-INF/lib/myfaces-api-2.0.2.jar août 21, 2013 6:39:41 PM org.apache.myfaces.config.FacesConfigurator startLib INFO: Starting up MyFaces-package : myfaces-impl in version : 2.0.2 from path : file:/C:/Users/Amine/Eclipse_projects/.metadata/.plugins/org.eclipse.wst.server.core/tmp2/wtpwebapps/JSF2HelloWorld/WEB-INF/lib/myfaces-impl-2.0.2.jar août 21, 2013 6:39:41 PM org.apache.myfaces.config.FacesConfigurator startLib INFO: MyFaces-package : tomahawk not found. août 21, 2013 6:39:41 PM org.apache.myfaces.config.FacesConfigurator startLib INFO: MyFaces-package : tomahawk12 not found. août 21, 2013 6:39:41 PM org.apache.myfaces.config.FacesConfigurator startLib INFO: MyFaces-package : tomahawk-sandbox not found. août 21, 2013 6:39:41 PM org.apache.myfaces.config.FacesConfigurator startLib INFO: MyFaces-package : tomahawk-sandbox12 not found. août 21, 2013 6:39:41 PM org.apache.myfaces.config.FacesConfigurator startLib INFO: MyFaces-package : tomahawk-sandbox15 not found. août 21, 2013 6:39:41 PM org.apache.myfaces.config.FacesConfigurator startLib INFO: MyFaces-package : myfaces-orchestra-core not found. août 21, 2013 6:39:41 PM org.apache.myfaces.config.FacesConfigurator startLib INFO: MyFaces-package : myfaces-orchestra-core12 not found. août 21, 2013 6:39:41 PM org.apache.myfaces.config.FacesConfigurator startLib INFO: MyFaces-package : trinidad-api not found. août 21, 2013 6:39:41 PM org.apache.myfaces.config.FacesConfigurator startLib INFO: MyFaces-package : trinidad-impl not found. août 21, 2013 6:39:41 PM org.apache.myfaces.config.FacesConfigurator startLib INFO: MyFaces-package : tobago not found. août 21, 2013 6:39:41 PM org.apache.myfaces.config.FacesConfigurator startLib INFO: MyFaces-package : commons-el not found. août 21, 2013 6:39:41 PM org.apache.myfaces.config.FacesConfigurator startLib INFO: MyFaces-package : jsp-api not found. août 21, 2013 6:39:41 PM org.apache.myfaces.util.ExternalSpecifications isBeanValidationAvailable INFO: MyFaces Bean Validation support disabled août 21, 2013 6:39:42 PM org.apache.myfaces.application.ApplicationImpl getProjectStage INFO: Couldn't discover the current project stage, using Production août 21, 2013 6:39:42 PM org.apache.myfaces.config.FacesConfigurator handleSerialFactory INFO: Serialization provider : class org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory août 21, 2013 6:39:42 PM org.apache.myfaces.config.annotation.DefaultLifecycleProviderFactory getLifecycleProvider INFO: Using LifecycleProvider java.lang.String août 21, 2013 6:39:42 PM org.apache.myfaces.webapp.AbstractFacesInitializer initFaces INFO: ServletContext 'C:\Users\Amine\Eclipse_projects\.metadata\.plugins\org.eclipse.wst.server.core\tmp2\wtpwebapps\JSF2HelloWorld\' initialized. août 21, 2013 6:39:42 PM org.apache.myfaces.webapp.StartupServletContextListener contextInitialized INFO: MyFaces already initialized août 21, 2013 6:39:49 PM org.apache.catalina.loader.WebappClassLoader validateJarFile INFO: validateJarFile(C:\Users\Amine\Eclipse_projects\.metadata\.plugins\org.eclipse.wst.server.core\tmp2\wtpwebapps\PersonneJSF\WEB-INF\lib\servlet-2.3.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class août 21, 2013 6:40:00 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: <a href="http://www.springframework.org/tags/form" target="_blank">http://www.springframework.org/tags/form</a> is already defined août 21, 2013 6:40:00 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: <a href="http://www.springframework.org/tags" target="_blank">http://www.springframework.org/tags</a> is already defined août 21, 2013 6:40:00 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: <a href="http://www.springframework.org/tags" target="_blank">http://www.springframework.org/tags</a> is already defined août 21, 2013 6:40:00 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: <a href="http://www.springframework.org/tags/form" target="_blank">http://www.springframework.org/tags/form</a> is already defined août 21, 2013 6:40:00 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: <a href="http://java.sun.com/jstl/core_rt" target="_blank">http://java.sun.com/jstl/core_rt</a> is already defined août 21, 2013 6:40:00 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: <a href="http://java.sun.com/jstl/core" target="_blank">http://java.sun.com/jstl/core</a> is already defined août 21, 2013 6:40:00 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: <a href="http://java.sun.com/jsp/jstl/core" target="_blank">http://java.sun.com/jsp/jstl/core</a> is already defined août 21, 2013 6:40:00 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: <a href="http://java.sun.com/jstl/fmt_rt" target="_blank">http://java.sun.com/jstl/fmt_rt</a> is already defined août 21, 2013 6:40:00 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: <a href="http://java.sun.com/jstl/fmt" target="_blank">http://java.sun.com/jstl/fmt</a> is already defined août 21, 2013 6:40:00 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: <a href="http://java.sun.com/jsp/jstl/fmt" target="_blank">http://java.sun.com/jsp/jstl/fmt</a> is already defined août 21, 2013 6:40:00 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: <a href="http://java.sun.com/jsp/jstl/functions" target="_blank">http://java.sun.com/jsp/jstl/functions</a> is already defined août 21, 2013 6:40:00 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: <a href="http://jakarta.apache.org/taglibs/standard/permittedTaglibs" target="_blank">http://jakarta.apache.org/taglibs/st...rmittedTaglibs</a> is already defined août 21, 2013 6:40:00 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: <a href="http://jakarta.apache.org/taglibs/standard/scriptfree" target="_blank">http://jakarta.apache.org/taglibs/standard/scriptfree</a> is already defined août 21, 2013 6:40:00 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: <a href="http://java.sun.com/jstl/sql_rt" target="_blank">http://java.sun.com/jstl/sql_rt</a> is already defined août 21, 2013 6:40:00 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: <a href="http://java.sun.com/jstl/sql" target="_blank">http://java.sun.com/jstl/sql</a> is already defined août 21, 2013 6:40:00 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: <a href="http://java.sun.com/jsp/jstl/sql" target="_blank">http://java.sun.com/jsp/jstl/sql</a> is already defined août 21, 2013 6:40:00 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: <a href="http://java.sun.com/jstl/xml_rt" target="_blank">http://java.sun.com/jstl/xml_rt</a> is already defined août 21, 2013 6:40:00 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: <a href="http://java.sun.com/jstl/xml" target="_blank">http://java.sun.com/jstl/xml</a> is already defined août 21, 2013 6:40:00 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: <a href="http://java.sun.com/jsp/jstl/xml" target="_blank">http://java.sun.com/jsp/jstl/xml</a> is already defined août 21, 2013 6:40:01 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: <a href="http://java.sun.com/jsf/core" target="_blank">http://java.sun.com/jsf/core</a> is already defined août 21, 2013 6:40:01 PM org.apache.catalina.core.ApplicationContext log INFO: No Spring WebApplicationInitializer types detected on classpath - Root WebApplicationContext: initialization started août 21, 2013 6:40:01 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring root WebApplicationContext - Refreshing Root WebApplicationContext: startup date [Wed Aug 21 18:40:01 WEST 2013]; root of context hierarchy - Loading XML bean definitions from ServletContext resource [/WEB-INF/application-context.xml] - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@afba6: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.web.servlet.view.InternalResourceViewResolver#0]; root of factory hierarchy - Root WebApplicationContext: initialization completed in 1107 ms août 21, 2013 6:40:02 PM com.sun.faces.config.ConfigureListener contextInitialized INFO: Initialisation de Mojarra 2.1.4 (SNAPSHOT 20111107) pour le contexte «/Personne_JSF» août 21, 2013 6:40:03 PM com.sun.faces.spi.InjectionProviderFactory createInstance INFO: JSF1048 : Présence dannotations PostConstruct/PreDestroy Les méthodes de beans gérés marquées avec ces annotations auront des annotations dites traitées. SLF4J: This version of SLF4J requires log4j version 1.2.12 or later. See also <a href="http://www.slf4j.org/codes.html#log4j_version" target="_blank">http://www.slf4j.org/codes.html#log4j_version</a> - Hibernate Validator 4.0.2.GA - Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver. août 21, 2013 6:40:04 PM org.primefaces.webapp.PostConstructApplicationEventListener processEvent INFO: Running on PrimeFaces 3.5 - PrettyFilter starting up... - PrettyFilter initialized. août 21, 2013 6:40:07 PM com.sun.faces.config.ConfigureListener contextInitialized INFO: Initialisation de Mojarra 2.1.4 (SNAPSHOT 20111107) pour le contexte «/Jsf2Primefaces» août 21, 2013 6:40:07 PM com.sun.faces.spi.InjectionProviderFactory createInstance INFO: JSF1048 : Présence dannotations PostConstruct/PreDestroy Les méthodes de beans gérés marquées avec ces annotations auront des annotations dites traitées. août 21, 2013 6:40:08 PM org.primefaces.webapp.PostConstructApplicationEventListener processEvent INFO: Running on PrimeFaces 3.4.2 août 21, 2013 6:40:08 PM com.sun.faces.config.ConfigureListener$WebConfigResourceMonitor$Monitor <init> INFO: Monitoring jndi:/localhost/Jsf2Primefaces/WEB-INF/faces-config.xml for modifications août 21, 2013 6:40:08 PM com.sun.faces.config.ConfigureListener contextInitialized INFO: Initialisation de Mojarra 2.1.4 (SNAPSHOT 20111107) pour le contexte «/Jsf2Primefaces» août 21, 2013 6:40:08 PM com.sun.faces.spi.InjectionProviderFactory createInstance INFO: JSF1048 : Présence dannotations PostConstruct/PreDestroy Les méthodes de beans gérés marquées avec ces annotations auront des annotations dites traitées. août 21, 2013 6:40:09 PM com.sun.faces.mgbean.BeanManager addBean WARNING: JSF1074 : Le bean géré nommé «registrationBean» a déjà été enregistré. Remplacement du type de classe du bean géré existant com.primefaces.sample2.RegistrationBean par com.primefaces.sample2.RegistrationBean. août 21, 2013 6:40:09 PM com.sun.faces.mgbean.BeanManager addBean WARNING: JSF1074 : Le bean géré nommé «userManagedBean» a déjà été enregistré. Remplacement du type de classe du bean géré existant com.primefaces.sample.UserManagedBean par com.primefaces.sample.UserManagedBean. août 21, 2013 6:40:09 PM org.primefaces.webapp.PostConstructApplicationEventListener processEvent INFO: Running on PrimeFaces 3.4.2 août 21, 2013 6:40:09 PM org.primefaces.webapp.PostConstructApplicationEventListener processEvent INFO: Running on PrimeFaces 3.4.2 août 21, 2013 6:40:09 PM com.sun.faces.config.ConfigureListener$WebConfigResourceMonitor$Monitor <init> INFO: Monitoring jndi:/localhost/Jsf2Primefaces/WEB-INF/faces-config.xml for modifications août 21, 2013 6:40:09 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["http-bio-8081"] août 21, 2013 6:40:09 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["ajp-bio-8010"] août 21, 2013 6:40:09 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 31561 ms