-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: NoSuchMethodError with Hibernate 3.6.4
PostPosted: Tue Aug 02, 2011 5:25 pm 
Newbie

Joined: Thu Jan 24, 2008 1:35 am
Posts: 9
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)



Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.