Exception 异常[EclipseLink-28019](Eclipse持久性服务-2.5.0.v20130507-3faac2b):
我正在使用glassfish 4部署我的应用程序,但遇到以下错误:Exception 异常[EclipseLink-28019](Eclipse持久性服务-2.5.0.v20130507-3faac2b):,exception,jpa,eclipselink,Exception,Jpa,Eclipselink,我正在使用glassfish 4部署我的应用程序,但遇到以下错误: can not Deploy myapplication deploy is failing = Error occurred during deployment: Exception while deploying the app [MyApplication]: Exception [EclipseLink-28019] (Eclipse Persistence Services - 2.5.0.v20130507-3faa
can not Deploy myapplication
deploy is failing = Error occurred during deployment: Exception while deploying the app [MyApplication]: Exception [EclipseLink-28019] (Eclipse Persistence Services - 2.5.0.v20130507-3faac2b): org.eclipse.persistence.exceptions.EntityManagerSetupException
Exception Description: Deployment of PersistenceUnit [PU] failed. Close all factories for this PersistenceUnit.
Internal Exception: Exception [EclipseLink-0] (Eclipse Persistence Services - 2.5.0.v20130507-3faac2b): org.eclipse.persistence.exceptions.IntegrityException
Descriptor Exceptions:
-------------------------------------------------- -------
Runtime Exceptions:
-------------------------------------------------- -------
java.lang.NullPointerException
. Please see server.log for more details.
还不了解这个问题的原因和解决办法。
详细信息是,我正在使用以下JPA实现:
附属国
groupId>org.eclipse.persistence groupId
日食
版本>2.4.0版本
依赖性
和javax.persistence-2.0.4.v201112161009.jar我遇到的一个错误场景是当一个抽象JPA实体下面没有具体类时。确保所有抽象的JPA实体都被扩展以创建具体的JPA实体。我在将eclipselink从2.6.5升级到2.7时遇到了类似的问题 因为,我的POM.xml在下面有一行,我必须删除它,然后将新版本放到2.7.4 对于人工日食到最新版本,问题已经解决
<dependency>
<groupId>org.eclipse.persistence</groupId>
<artifactId>org.eclipse.persistence.jpa.modelgen.processor</artifactId>
<version>2.6.5</version>
<scope>provided</scope>
</dependency>
org.eclipse.persistence
org.eclipse.persistence.jpa.modelgen.processor
2.6.5
假如
您是否检查了服务器日志?应该有一个例外,其中(希望)有更多关于故障原因的信息。