Hello,
My app using Hibernate-Core 3.6.4 with other libraries such as Spring 3. When I deploy this app on to JBoss, I get the following error
I am building up my libraries using Maven and looking at the dependencies, I am seeing that Hibernate-core depends on SLF4J-API 1.6.1, but it uses Hibernate-commons-annotations 3.2.0 which brings in SLF4J-API 1.5.8 are known to be incompatible.
How can I work past this?
Code:
Maven: Tag
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>3.6.4.Final</version>
<exclusions>
<exclusion>
<artifactId>cglib</artifactId>
<groupId>cglib</groupId>
</exclusion>
<exclusion>
<groupId>asm</groupId>
<artifactId>asm</artifactId>
</exclusion>
</exclusions>
</dependency>
Code:
13:01:36,928 ERROR Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V
at org.apache.commons.logging.impl.SLF4JLocationAwareLog.info(SLF4JLocationAwareLog.java:159)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187)