在jboss服务器中部署springboot应用程序时出现Jboss日志记录错误

时间:2018-08-09 05:50:14

标签: spring hibernate spring-boot jboss jboss-logging

22:40:03,522错误[org.springframework.boot.SpringApplication](ServerService线程池-2265)应用程序启动失败:org.springframework.beans.factory.BeanCreationException:创建名称定义为'entityManagerFactory'的bean时出错类路径资源[org / springframework / boot / autoconfigure / orm / jpa / HibernateJpaAutoConfiguration.class]:调用init方法失败;嵌套的异常是java.lang.NoSuchMethodError:org.jboss.logging.Logger.debugf(Ljava / lang / String; I)V

甚至试图删除jboss-logging

<dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-jpa</artifactId>

            <exclusions>
                <exclusion>
                    <groupId>org.jboss.logging</groupId>
                    <artifactId>jboss-logging</artifactId>
                </exclusion>
            </exclusions>
        </dependency>


<dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
            <exclusions>
                <exclusion>
                    <groupId>org.jboss.logging</groupId>
                    <artifactId>jboss-logging</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

0 个答案:

没有答案