我正在使用 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-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 artifactId eclipselink artifactId version> 2.4.0 版本依赖
和 javax.persistence-2.0.4.v201112161009.jar