Hibernate + Spring = org.springframework.util.Assert.noNullElements
Bonjour,
Je teste actuellement hibernate et spring et j'ai un petit problème au lancement de mon application :
Code:
1 2 3 4 5 6 7 8 9 10 11
| 15:07:51,909 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
15:07:51,956 INFO [TomcatDeployer] deploy, ctxPath=/HibernateSpringProject, warUrl=.../deploy/HibernateSpringProject.war/
15:07:52,831 INFO [STDOUT] 12-06-2008 15:07:52:831 0 DEBUG org.springframework.util.ClassUtils - Class [edu.emory.mathcs.backport.java.util.concurrent.ConcurrentHashMap] or one of its dependencies is not present: java.lang.ClassNotFoundException: edu.emory.mathcs.backport.java.util.concurrent.ConcurrentHashMap
15:07:52,847 INFO [STDOUT] 12-06-2008 15:07:52:847 16 DEBUG org.springframework.core.CollectionFactory - Creating [java.util.concurrent.ConcurrentHashMap]
15:07:52,847 INFO [[/HibernateSpringProject]] Initializing Spring root WebApplicationContext
15:07:52,847 INFO [STDOUT] 12-06-2008 15:07:52:847 16 INFO org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization started
15:07:52,940 INFO [STDOUT] 12-06-2008 15:07:52:925 94 ERROR org.springframework.web.context.ContextLoader - Context initialization failed
java.lang.NoSuchMethodError: org.springframework.util.Assert.noNullElements([Ljava/lang/Object;Ljava/lang/String;)V
at org.springframework.context.support.AbstractRefreshableConfigApplicationContext.setConfigLocations(AbstractRefreshableConfigApplicationContext.java:78)
at org.springframework.context.support.AbstractRefreshableConfigApplicationContext.setConfigLocation(AbstractRefreshableConfigApplicationContext.java:69)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:253) |
Voici le code de mon fichier web.xml :
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
| <?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5"
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">
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
/WEB-INF/applicationContext.xml
/WEB-INF/applicationContextManager.xml
/WEB-INF/applicationContextDao.xml
</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
</web-app> |
Et mon classpath :
spring.jar
commons-logging-1.0.4.jar
hibernate3.jar
hibernate-annotations.jar
hibernate-commons-annotations.jar
asm-2.2.3.jar
cglib-nodep-2.1_3.jar
commons-collections-2.1.1.jar
dom4j-1.6.1.jar
ejb3-persistence.jar
javassist.jar
jta.jar
log4j-1.2.14.jar
Help svp .... je ne vois pas bien le problème là ....
Thanks !!