2018-03-29 17:48:17.945 WARN 13508 --- [main] ationConfigEmbeddedWebApplicationContext:在上下文初始化期间遇到异常 - 取消刷新尝试:org.springframework.beans.factory.BeanCreationException:创建名为'entityManagerFactory'的bean时出错在类路径资源[org / springframework / boot / autoconfigure / orm / jpa / HibernateJpaAutoConfiguration.class]中:init方法的调用失败;嵌套异常是java.lang.NoClassDefFoundError:javax / xml / bind / JAXBException 2018-03-29 17:48:17.950 INFO 13508 --- [main] o.apache.catalina.core.StandardService:停止服务[Tomcat] 2018 -03-29 17:48:17.975 INFO 13508 --- [main] utoConfigurationReportLoggingInitializer:启动ApplicationContext时出错 . 要显示自动配置报告,请在启用“debug”的情况下重新运行应用程序 . 2018-03-29 17:48:17.988 ERROR 13508 --- [main] osboot.SpringApplication:应用程序启动失败org.springframework.beans.factory.BeanCreationException:创建名为'entityManagerFactory'的bean在类路径资源中定义时出错[ org / springframework / boot / autoconfigure / orm / jpa / HibernateJpaAutoConfiguration.class]:调用init方法失败;嵌套异常是java.lang.NoClassDefFoundError:org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1628)中的javax / xml / bind / JAXBException~ [spring-beans-4.3.14.RELEASE.jar :4.3.14.RELEASE] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)〜[spring-beans-4.3.14.RELEASE.jar:4.3.14.RELEASE] at org org.springframework.beans.factory.support中的.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)〜[spring-beans-4.3.14.RELEASE.jar:4.3.14.RELEASE] . org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton中的AbstractBeanFactory $ 1.getObject(AbstractBeanFactory.java:306)〜[spring-beans-4.3.14.RELEASE.jar:4.3.14.RELEASE](DefaultSingletonBeanRegistry.java:在org.springframewor上230)〜[spring-beans-4.3.14.RELEASE.jar:4.3.14.RELEASE] org.springframework.beans.factory.support.AbstractBeanFactory上的k.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)〜[spring-beans-4.3.14.RELEASE.jar:4.3.14.RELEASE] .getBean(AbstractBeanFactory.java:197)〜[spring-beans-4.3.14.RELEASE.jar:4.3.14.RELEASE] at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1080)~ [ spring-context-4.3.14.RELEASE.jar:4.3.14.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:857)~ [spring-context-4.3.14.RELEASE.jar :4.3.14.RELEASE] org.springframework上的org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)〜[spring-context-4.3.14.RELEASE.jar:4.3.14.RELEASE] org.springframework.boot上的.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)~ [spring-boot-1.5.10.RELEASE.jar:1.5.10.RELEASE] .SpringApplication.refresh(SpringApplication.java:693)[spring-boot-1.5.10.RELEASE.jar:1.5.10.RELEASE] org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360)[spring- boot-1.5.10.RELEASE.jar:1.5.10.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:303)[spring-boot-1.5.10.RELEASE.jar:1.5.10 . 发布org.springframework.boot.SpringApplication.run(SpringApplication.java:1118)[spring-boot-1.5.10.RELEASE.jar:1.5.10.RELEASE] org.springframework.boot.SpringApplication.run(SpringApplication) .java:1107)[spring-boot-1.5.10.RELEASE.jar:1.5.10.RELEASE] at com.lowes.promo.PromoApplication.main(PromoApplication.java:14)[bin /:na]引起: java.lang.NoClassDefFoundError:org.hibernate.boot.spi.XmlMappingBinderAccess中的javax / xml / bind / JAXBException . (XmlMappingBinderAccess.java:43)〜[hibernate-core-5.0.12.Final.jar:5.0.12.Final在org.hibernate.boot.MetadataSources . (MetadataSources.java:87)〜[hibernate-core-5.0.12.Final.jar:5.0在org.hibernate的org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl . (EntityManagerFactoryBuilderImpl.java:179)〜[hibernate-entitymanager-5.0.12.Final.jar:5.0.12.Final]的.12.Final] . 在org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory的jpa.boot.internal.EntityManagerFactoryBuilderImpl . (EntityManagerFactoryBuilderImpl.java:149)〜[hibernate-entitymanager-5.0.12.Final.jar:5.0.12.Final] SpringHibernateJpaPersistenceProvider.java:54)〜[spring-orm-4.3.14.RELEASE.jar:4.3.14.RELEASE] atorg.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:360)〜[spring-orm-4.3.14.RELEASE.jar:4.3.14.RELEASE] org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory (AbstractEntityManagerFactoryBean.java:382)〜[spring-orm-4.3.14.RELEASE.jar:4.3.14.RELEASE]在org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:371)〜[spring- orm-4.3.14.RELEASE.jar:4.3.14.RELEASE] at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:336)~ [spring-orm-4.3.14.RELEASE.jar:4.3 .14.RELEASE] org.springframework上的org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1687)~ [spring-beans-4.3.14.RELEASE.jar:4.3.14.RELEASE] .beans.factory.support.AbstractAutowireC apableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1624)〜[spring-beans-4.3.14.RELEASE.jar:4.3.14.RELEASE] ... 16个常用帧省略原因:java.lang.ClassNotFoundException:javax.xml . java.base / jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)中的bind.JAXBException:java.base / jdk.internal.loader.ClassLoaders的[na:na] $ AppClassLoader.loadClass(ClassLoaders.java) :185)〜[na:na]在java.base / java.lang.ClassLoader.loadClass(ClassLoader.java:496)〜[na:na] ...省略了27个常用帧
java 初始化应用程序失败,在 Spring 天的上下文初始化期间遇到错误
最新推荐文章于 2023-09-01 16:18:09 发布