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

后端 未结 15 1902
天涯浪人
天涯浪人 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:42

    Error that i got was "

    Application run failed: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.jboss.logging.Logger.debugf(Ljava/lang/String;I)V
    
    :::
    :::
    Caused by: java.lang.NoSuchMethodError: org.jboss.logging.Logger.debugf(Ljava/lang/String;I)V"
    

    i deleted the jboss-logging folder <.m2\repository\org\jboss\logging\jboss-logging> and restarted the jboss server.

    The jars got addedback and the error was gone. (i got some other error after that, but atleast this error was gone)

提交回复
热议问题