Hibernate 5 java.lang.NoSuchMethodError org.jboss.logging.Logger.debugf -


i have problem when deploy webapp hibernate 5

caused by: java.lang.nosuchmethoderror: org.jboss.logging.logger.debugf(ljava/lang/string;i)v @ org.hibernate.internal.namedqueryrepository.checknamedqueries(namedqueryrepository.java:149) [hibernate-core-5.0.0.cr2.jar:5.0.0.cr2] @ org.hibernate.internal.sessionfactoryimpl.checknamedqueries(sessionfactoryimpl.java:759) [hibernate-core-5.0.0.cr2.jar:5.0.0.cr2] @ org.hibernate.internal.sessionfactoryimpl.<init>(sessionfactoryimpl.java:490) [hibernate-core-5.0.0.cr2.jar:5.0.0.cr2] @ org.hibernate.boot.internal.sessionfactorybuilderimpl.build(sessionfactorybuilderimpl.java:444) [hibernate-core-5.0.0.cr2.jar:5.0.0.cr2] @ org.hibernate.cfg.configuration.buildsessionfactory(configuration.java:708) [hibernate-core-5.0.0.cr2.jar:5.0.0.cr2] @ org.hibernate.cfg.configuration.buildsessionfactory(configuration.java:724) [hibernate-core-5.0.0.cr2.jar:5.0.0.cr2] @ org.springframework.orm.hibernate4.localsessionfactorybuilder.buildsessionfactory(localsessionfactorybuilder.java:372) [spring-orm-4.1.7.release.jar:4.1.7.release] @ org.springframework.orm.hibernate4.localsessionfactorybean.buildsessionfactory(localsessionfactorybean.java:454) [spring-orm-4.1.7.release.jar:4.1.7.release] @ org.springframework.orm.hibernate4.localsessionfactorybean.afterpropertiesset(localsessionfactorybean.java:439) [spring-orm-4.1.7.release.jar:4.1.7.release] @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.invokeinitmethods(abstractautowirecapablebeanfactory.java:1633) [spring-beans-4.1.7.release.jar:4.1.7.release] @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.initializebean(abstractautowirecapablebeanfactory.java:1570) [spring-beans-4.1.7.release.jar:4.1.7.release] ... 23 more 

with hibernate 4 ok.

i had @ class namedqueryrepository @ line 149. class calling method debugf in way

        log.debugf( "checking %s named hql queries", namedquerydefinitionmap.size() ); 

i can not see problem

here dependency tree

[info] ------------------------------------------------------------------------ [info] building app maven webapp 1.0-snapshot [info] ------------------------------------------------------------------------ [info] [info] --- maven-dependency-plugin:2.8:tree (default-cli) @ app--- [info] +- org.springframework:spring-aspects:jar:4.1.7.release:compile [info] |  \- org.aspectj:aspectjweaver:jar:1.8.6:compile [info] +- org.springframework:spring-tx:jar:4.1.7.release:compile [info] +- org.springframework:spring-beans:jar:4.1.7.release:compile [info] +- org.springframework:spring-context-support:jar:4.1.7.release:compile [info] +- org.springframework:spring-context:jar:4.1.7.release:compile [info] |  \- org.springframework:spring-expression:jar:4.1.7.release:compile [info] +- org.springframework:spring-core:jar:4.1.7.release:compile [info] |  \- commons-logging:commons-logging:jar:1.2:compile [info] +- org.springframework:spring-orm:jar:4.1.7.release:compile [info] +- org.springframework:spring-web:jar:4.1.7.release:compile [info] +- org.springframework:spring-aop:jar:4.1.7.release:compile [info] |  \- aopalliance:aopalliance:jar:1.0:compile [info] +- org.springframework:spring-jdbc:jar:4.1.7.release:compile [info] +- org.springframework:spring-test:jar:4.1.7.release:test [info] +- junit:junit:jar:4.12:test [info] |  \- org.hamcrest:hamcrest-core:jar:1.3:test [info] +- org.hibernate:hibernate-entitymanager:jar:5.0.0.cr2:compile [info] |  +- org.jboss.logging:jboss-logging:jar:3.3.0.final:compile [info] |  +- org.hibernate:hibernate-core:jar:5.0.0.cr2:compile [info] |  |  +- antlr:antlr:jar:2.7.7:compile [info] |  |  \- org.jboss:jandex:jar:1.2.2.final:compile [info] |  +- dom4j:dom4j:jar:1.6.1:compile [info] |  |  \- xml-apis:xml-apis:jar:1.0.b2:compile [info] |  +- org.hibernate.common:hibernate-commons-annotations:jar:5.0.0.final:compile [info] |  +- org.hibernate.javax.persistence:hibernate-jpa-2.1-api:jar:1.0.0.final:compile [info] |  +- org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar:1.1.1:compile [info] |  \- org.javassist:javassist:jar:3.18.1-ga:compile [info] +- org.hibernate:hibernate-c3p0:jar:5.0.0.cr2:compile [info] |  \- com.mchange:c3p0:jar:0.9.2.1:compile [info] |     \- com.mchange:mchange-commons-java:jar:0.2.3.4:compile [info] +- org.primefaces:primefaces:jar:5.2.rc3:compile [info] +- org.apache.logging.log4j:log4j-api:jar:2.2:compile [info] +- org.apache.logging.log4j:log4j-core:jar:2.2:compile [info] \- net.sourceforge.jtds:jtds:jar:1.2.8:compile [info] ------------------------------------------------------------------------ [info] build success [info] ------------------------------------------------------------------------ 

in glass fish problem caused collision dependencies of glassfish modules. if check lib list in glassfishdir/modules see boss-logging.jar. can delete , replace latest such org.jboss.logging:jboss-logging:jar:3.3.0.final. worked me.


Comments

Popular posts from this blog

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -

YouTubePlayerFragment cannot be cast to android.support.v4.app.Fragment -