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

后端 未结 15 1826
天涯浪人
天涯浪人 2020-12-01 09:21

I have a problem when I deploy a webapp with hibernate 5

Caused by: java.lang.NoSuchMethodError: org.jboss.logging.Logger.debugf(Ljava/lang/String;I)V
at org         


        
15条回答
  •  有刺的猬
    2020-12-01 09:49

    In all probability you've got an outdated JBoss Logging JAR on the application's classpath. The ...f methods are a relatively new addition to the Logger API. Hibernate 5 directly depends on Logging version 3.3.0, but it is possible that somehwere in your pom.xml you have an overriding dependency to an earlier version. Another possibility is that you are deploying to a JBoss container where the logging API is container-provided. Then you may need to upgrade the JBoss server, or introduce a workaround to prefer classes contributed by your application.

提交回复
热议问题