为什么我的war文件部署在wildfly-17.0.1.Final上失败?

时间:2019-09-10 06:23:55

标签: mysql spring-boot spring-data-jpa wildfly

我正在尝试在Wildfly服务器上上传.war文件。下面给出了错误。

我正在尝试寻找问题的解决方案,我的项目得到了一些与弹簧依赖相关的结果。但是我无法解决我的问题。

下面是错误代码的快照,当部署失败时,我会得到它。

{"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"learningpod-api-test.war\".undertow-deployment" => "java.lang.RuntimeException: 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 javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory; nested exception is org.hibernate.MappingException: Could not get constructor for org.hibernate.persister.entity.SingleTableEntityPersister
    Caused by: java.lang.RuntimeException: 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 javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory; nested exception is org.hibernate.MappingException: Could not get constructor for org.hibernate.persister.entity.SingleTableEntityPersister
    Caused by: 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 javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory; nested exception is org.hibernate.MappingException: Could not get constructor for org.hibernate.persister.entity.SingleTableEntityPersister
    Caused by: javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory; nested exception is org.hibernate.MappingException: Could not get constructor for org.hibernate.persister.entity.SingleTableEntityPersister
    Caused by: org.hibernate.MappingException: Could not get constructor for org.hibernate.persister.entity.SingleTableEntityPersister
    Caused by: org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer]
    Caused by: java.lang.reflect.InvocationTargetException
    Caused by: java.lang.NullPointerException"}}

我正在使用wildfly-17.0.1.final。我的war文件已在wildfly-10.0.1.final版本上成功部署,并且运行良好。因此,我想知道为什么在更新Wildfly服务器时会出现此问题吗?我该如何解决我的错误?

0 个答案:

没有答案