Bonjour,
Je me trouve face a un message d'erreur et je ne comprends pas ce qui cloche .
Tomcat m'envoie ce message d'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
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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
20 avr. 2009 11:06:11 org.apache.catalina.startup.HostConfig checkResources
INFO: Reloading context [/demo1]
20 avr. 2009 11:06:11 org.apache.catalina.core.StandardContext stop
INFO: Le conteneur org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/demo1] n'a pas été démarré
20 avr. 2009 11:06:12 org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - Root WebApplicationContext: initialization started
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - Refreshing org.springframework.web.context.support.XmlWebApplicationContext@131324d: display name [Root WebApplicationContext]; startup date [Mon Apr 20 11:06:12 CEST 2009]; root of context hierarchy
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - Loading XML bean definitions from class path resource [application-context.xml]
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@131324d]: org.springframework.beans.factory.support.DefaultListableBeanFactory@571db0
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@571db0: defining beans [sessionFactory,transactionManager,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,coursService,coursBean]; root of factory hierarchy
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - Hibernate Annotations 3.3.0.GA
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - Hibernate 3.2.5
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - hibernate.properties not found
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - Bytecode provider name : cglib
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - using JDK 1.4 java.sql.Timestamp handling
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - configuring from url: file:/C:/Projects/.metadata/.me_tcat/webapps/demo1/WEB-INF/classes/hibernate.cfg.xml
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - Configured SessionFactory: null
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - Binding entity from annotated class: com.fmiredin.model.Cours
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - Bind entity com.fmiredin.model.Cours on table cours
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - Hibernate Validator 3.0.0.GA
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - Building new Hibernate SessionFactory
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - Using Hibernate built-in connection pool (not for production use!)
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - Hibernate connection pool size: 20
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - autocommit mode: false
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - using driver: org.postgresql.Driver at URL: jdbc:postgresql://localhost:5432/db1
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - connection properties: {user=postgres, password=****}
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - RDBMS: PostgreSQL, version: 8.3.7
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - JDBC driver: PostgreSQL Native Driver, version: PostgreSQL 8.3 JDBC3 with SSL (build 604)
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - Using dialect: org.hibernate.dialect.PostgreSQLDialect
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - Transaction strategy: org.springframework.orm.hibernate3.SpringTransactionFactory
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - Automatic flush during beforeCompletion(): disabled
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - Automatic session close at end of transaction: disabled
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - JDBC batch size: 15
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - JDBC batch updates for versioned data: disabled
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - Scrollable result sets: enabled
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - JDBC3 getGeneratedKeys(): disabled
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - Connection release mode: auto
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - Default batch fetch size: 1
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - Generate SQL with comments: disabled
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - Order SQL updates by primary key: disabled
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - Order SQL inserts for batching: disabled
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - Using ASTQueryTranslatorFactory
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - Query language substitutions: {}
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - JPA-QL strict compliance: disabled
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - Second-level cache: enabled
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - Query cache: disabled
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - Cache provider: org.hibernate.cache.NoCacheProvider
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - Optimize cache for minimal puts: disabled
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - Structured second-level cache entries: disabled
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - Statistics: disabled
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - Deleted entity synthetic identifier rollback: disabled
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - Default entity-mode: pojo
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - Named query checking : enabled
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - building session factory
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@571db0: defining beans [sessionFactory,transactionManager,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,coursService,coursBean]; root of factory hierarchy
ERROR [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in class path resource [application-context.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [application-context.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
	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:429)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
	at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4334)
	at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1105)
	at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1203)
	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
	at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
	at java.lang.Thread.run(Unknown Source)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [application-context.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;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.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
	... 29 more
Caused by: java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V
	at net.sf.cglib.core.ClassEmitter.begin_class(ClassEmitter.java:77)
	at net.sf.cglib.core.KeyFactory$Generator.generateClass(KeyFactory.java:173)
	at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)
	at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:216)
	at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:145)
	at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117)
	at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108)
	at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104)
	at net.sf.cglib.proxy.Enhancer.<clinit>(Enhancer.java:69)
	at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:117)
	at org.hibernate.proxy.pojo.cglib.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:43)
	at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:162)
	at org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:135)
	at org.hibernate.tuple.entity.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:55)
	at org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.<init>(EntityEntityModeToTuplizerMapping.java:56)
	at org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:295)
	at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:434)
	at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:109)
	at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
	at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:226)
	at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)
	at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:915)
	at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:814)
	at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:732)
	at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
	... 39 more
20 avr. 2009 11:06:19 org.apache.catalina.core.StandardContext listenerStart
GRAVE: Exception lors de l'envoi de l'évènement contexte initialisé (context initialized) à l'instance de classe d'écoute (listener) org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in class path resource [application-context.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [application-context.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
	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:429)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
	at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4334)
	at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1105)
	at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1203)
	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
	at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
	at java.lang.Thread.run(Unknown Source)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [application-context.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;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.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
	... 29 more
Caused by: java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V
	at net.sf.cglib.core.ClassEmitter.begin_class(ClassEmitter.java:77)
	at net.sf.cglib.core.KeyFactory$Generator.generateClass(KeyFactory.java:173)
	at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)
	at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:216)
	at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:145)
	at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117)
	at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108)
	at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104)
	at net.sf.cglib.proxy.Enhancer.<clinit>(Enhancer.java:69)
	at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:117)
	at org.hibernate.proxy.pojo.cglib.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:43)
	at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:162)
	at org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:135)
	at org.hibernate.tuple.entity.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:55)
	at org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.<init>(EntityEntityModeToTuplizerMapping.java:56)
	at org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:295)
	at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:434)
	at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:109)
	at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
	at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:226)
	at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)
	at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:915)
	at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:814)
	at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:732)
	at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
	... 39 more
20 avr. 2009 11:06:19 org.apache.catalina.core.StandardContext start
GRAVE: Error listenerStart
20 avr. 2009 11:06:19 org.apache.catalina.core.StandardContext start
GRAVE: Erreur de démarrage du contexte [/demo1] suite aux erreurs précédentes
20 avr. 2009 11:06:19 org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext

D'autre part mon fichier de web.xml est le suivant :
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
 
 
<?xml version="1.0" encoding="UTF-8"?>
<web-app 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-app_2_5.xsd"
		id="webApp_ID" version="2.5">
 
 <display-name> exemple de Démo Spring </display-name>
 
 
  <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
  </welcome-file-list>
 
  <!-- Listener pour le chargement de spring -->
  <listener>
  <listener-class>org.springframework.web.context.ContextLoaderListener
  </listener-class>
  </listener>
 
  <listener>
  <listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
  </listener>
 
  <!-- parazmetre de contexte  pour preciser a QSppring ou allez cherchezr son fichier de configuration -->
  <context-param>
  <param-name>contextConfigLocation</param-name>
  <param-value>classpath:application-context.xml</param-value>
    </context-param>
  <!-- on declare pour jsf une servlet  et un mapping pour dire que toutels requeste en *. jsf devont etre traiter -->
 
  <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>0</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.jsf</url-pattern>
  </servlet-mapping>
 
  <!-- faire pa	sser par ce filtre toutes les requetyes au x  -->
  <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>


pour le fichier de config application-context.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
 
 
<?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:aop="http://www.springframework.org/schema/aop"
	xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx"
 
	xsi:schemaLocation="http://www.springframework.org/schema/beans  <a href="http://www.springframework.org/schema/beans/spring-beans.xsd" target="_blank">http://www.springframework.org/schem...ring-beans.xsd</a>
		<a href="http://www.springframework.org/schema/aop" target="_blank">http://www.springframework.org/schema/aop</a>   <a href="http://www.springframework.org/schema/aop/spring-aop.xsd" target="_blank">http://www.springframework.org/schem...spring-aop.xsd</a>
		<a href="http://www.springframework.org/schema/context" target="_blank">http://www.springframework.org/schema/context</a>  <a href="http://www.springframework.org/schema/context/spring-context.xsd" target="_blank">http://www.springframework.org/schem...ng-context.xsd</a>
		<a href="http://www.springframework.org/schema/tx" target="_blank">http://www.springframework.org/schema/tx</a>  <a href="http://www.springframework.org/schema/tx/spring-tx.xsd" target="_blank">http://www.springframework.org/schema/tx/spring-tx.xsd</a>
		">
 
 
	<bean id="sessionFactory"
		class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean"  lazy-init="true" >
		<property name="configLocation" value="classpath:hibernate.cfg.xml">
		</property>
		<property name="annotatedClasses">
			<list>
				<value>com.fmiredin.model.Cours</value>
			</list>
		</property>
 
 
	</bean>
 
	<bean id="transactionManager"
		class="org.springframework.orm.hibernate3.HibernateTransactionManager">
		<property name="sessionFactory" ref="sessionFactory" />
 
	</bean>
 
	<tx:annotation-driven transaction-manager="transactionManager" />
	<context:annotation-config />
	<context:component-scan base-package="com.fmiredin" />
 
</beans>
et pour le fichier de jsf 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
 
<?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_1_2.xsd"
    version="1.2">
 
 
 
    <application>
    <!-- el resolver permet a jsf d'exploiter des beans declarer dans Spring  sorte de managed Beans -->
<el-resolver> org.springframework.web.jsf.el.SpringBeanFacesELResolver </el-resolver>
</application>
</faces-config>


Merci de votre Aide.