Bonjour tout le monde,
Je suis entrain de faire le tutoriel suivant :
http://www.skill-guru.com/blog/2009/...on-experience/.
Quand je lance l'application, j'ai l'exception suivante :
J'utilise les jar suivants :
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 2011-10-24 11:12:50,015 DEBUG [com.mchange.v2.async.ThreadPoolAsynchronousRunner] - <Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0,5,main] interrupted. Shutting down.> 2011-10-24 11:12:50,015 DEBUG [com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource] - <com.mchange.v2.c3p0.ComboPooledDataSource@76fba0 has been closed. > java.lang.Exception: DEBUG STACK TRACE for PoolBackedDataSource.close(). at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.close(AbstractPoolBackedDataSource.java:417) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.beans.factory.support.DisposableBeanAdapter.invokeCustomDestroyMethod(DisposableBeanAdapter.java:208) at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:165) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:487) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:462) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:430) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:388) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93) at com.test.test.TestContact.main(TestContact.java:23) 2011-10-24 11:12:50,015 DEBUG [com.mchange.v2.resourcepool.BasicResourcePool] - <Preparing to destroy resource: com.mchange.v2.c3p0.impl.NewPooledConnection@12f1bf0> 2011-10-24 11:12:50,015 DEBUG [com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool] - <Preparing to destroy PooledConnection: com.mchange.v2.c3p0.impl.NewPooledConnection@12f1bf0> 2011-10-24 11:12:50,015 DEBUG [com.mchange.v2.c3p0.impl.NewPooledConnection] - <com.mchange.v2.c3p0.impl.NewPooledConnection@12f1bf0 closed by a client.> java.lang.Exception: DEBUG -- CLOSE BY CLIENT STACK TRACE at com.mchange.v2.c3p0.impl.NewPooledConnection.close(NewPooledConnection.java:491) at com.mchange.v2.c3p0.impl.NewPooledConnection.close(NewPooledConnection.java:191) at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.destroyResource(C3P0PooledConnectionPool.java:470) at com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask.run(BasicResourcePool.java:964) at com.mchange.v2.resourcepool.BasicResourcePool.destroyResource(BasicResourcePool.java:989) at com.mchange.v2.resourcepool.BasicResourcePool.access$100(BasicResourcePool.java:32) at com.mchange.v2.resourcepool.BasicResourcePool$5.run(BasicResourcePool.java:1174) 2011-10-24 11:12:50,015 DEBUG [com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool] - <Successfully destroyed PooledConnection: com.mchange.v2.c3p0.impl.NewPooledConnection@12f1bf0> 2011-10-24 11:12:50,015 DEBUG [com.mchange.v2.resourcepool.BasicResourcePool] - <Successfully destroyed resource: com.mchange.v2.c3p0.impl.NewPooledConnection@12f1bf0> 2011-10-24 11:12:50,015 DEBUG [com.mchange.v2.resourcepool.BasicResourcePool] - <Preparing to destroy resource: com.mchange.v2.c3p0.impl.NewPooledConnection@3aff84> Exception in thread "main" 2011-10-24 11:12:50,015 DEBUG [com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool] - <Preparing to destroy PooledConnection: com.mchange.v2.c3p0.impl.NewPooledConnection@3aff84> 2011-10-24 11:12:50,015 DEBUG [com.mchange.v2.c3p0.impl.NewPooledConnection] - <com.mchange.v2.c3p0.impl.NewPooledConnection@3aff84 closed by a client.> java.lang.Exception: DEBUG -- CLOSE BY CLIENT STACK TRACE at com.mchange.v2.c3p0.impl.NewPooledConnection.close(NewPooledConnection.java:491) at com.mchange.v2.c3p0.impl.NewPooledConnection.close(NewPooledConnection.java:191) at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.destroyResource(C3P0PooledConnectionPool.java:470) at com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask.run(BasicResourcePool.java:964) at com.mchange.v2.resourcepool.BasicResourcePool.destroyResource(BasicResourcePool.java:989) at com.mchange.v2.resourcepool.BasicResourcePool.access$100(BasicResourcePool.java:32) at com.mchange.v2.resourcepool.BasicResourcePool$5.run(BasicResourcePool.java:1174) 2011-10-24 11:12:50,015 DEBUG [com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool] - <Successfully destroyed PooledConnection: com.mchange.v2.c3p0.impl.NewPooledConnection@3aff84> 2011-10-24 11:12:50,015 DEBUG [com.mchange.v2.resourcepool.BasicResourcePool] - <Successfully destroyed resource: com.mchange.v2.c3p0.impl.NewPooledConnection@3aff84> 2011-10-24 11:12:50,015 DEBUG [com.mchange.v2.resourcepool.BasicResourcePool] - <Preparing to destroy resource: com.mchange.v2.c3p0.impl.NewPooledConnection@145e2d5> 2011-10-24 11:12:50,015 DEBUG [com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool] - <Preparing to destroy PooledConnection: com.mchange.v2.c3p0.impl.NewPooledConnection@145e2d5> org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.AbstractMethodError: org.slf4j.impl.Log4jLoggerAdapter.trace(Ljava/lang/String;)V at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93) at com.test.test.TestContact.main(TestContact.java:23) Caused by: java.lang.AbstractMethodError: org.slf4j.impl.Log4jLoggerAdapter.trace(Ljava/lang/String;)V at org.hibernate.cfg.annotations.PropertyBinder.make(PropertyBinder.java:184) at org.hibernate.cfg.AnnotationBinder.bindId(AnnotationBinder.java:1911) 2011-10-24 11:12:50,015 DEBUG [com.mchange.v2.c3p0.impl.NewPooledConnection] - <com.mchange.v2.c3p0.impl.NewPooledConnection@145e2d5 closed by a client.> java.lang.Exception: DEBUG -- CLOSE BY CLIENT STACK TRACE at com.mchange.v2.c3p0.impl.NewPooledConnection.close(NewPooledConnection.java:491) at com.mchange.v2.c3p0.impl.NewPooledConnection.close(NewPooledConnection.java:191) at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.destroyResource(C3P0PooledConnectionPool.java:470) at com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask.run(BasicResourcePool.java:964) at com.mchange.v2.resourcepool.BasicResourcePool.destroyResource(BasicResourcePool.java:989) at com.mchange.v2.resourcepool.BasicResourcePool.access$100(BasicResourcePool.java:32) at com.mchange.v2.resourcepool.BasicResourcePool$5.run(BasicResourcePool.java:1174) 2011-10-24 11:12:50,015 DEBUG [com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool] - <Successfully destroyed PooledConnection: com.mchange.v2.c3p0.impl.NewPooledConnection@145e2d5> 2011-10-24 11:12:50,015 DEBUG [com.mchange.v2.resourcepool.BasicResourcePool] - <Successfully destroyed resource: com.mchange.v2.c3p0.impl.NewPooledConnection@145e2d5> at org.hibernate.cfg.AnnotationBinder.processElementAnnotations(AnnotationBinder.java:1279) at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:754) at org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:546) at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:291) at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1148) at org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:1269) at org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:150) at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:888) at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:416) at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:126) at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:224) at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:291) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335) ... 15 more
ejb3-persistence.jar
hibernate-annotations.jar
hibernate-entitymanager-3.3.1.ga.jar
hibernate-tools-3.1.0.alpha5.jar
hibernate3.jar
Alors c'est un problème de config ou bien de conflit des .jar?
Merci pour votre aide.
Partager