在Netbeans中升级eclipselink 2.4
嗨,我把Eclipse链接升级到了2.4。但是我得到了这个输出。 我担心这条消息:“(Eclipse持久性服务-2.3.0.v20110604-r9504)” 这是否意味着我再次使用2.3库在Netbeans中升级eclipselink 2.4,netbeans,eclipselink,Netbeans,Eclipselink,嗨,我把Eclipse链接升级到了2.4。但是我得到了这个输出。 我担心这条消息:“(Eclipse持久性服务-2.3.0.v20110604-r9504)” 这是否意味着我再次使用2.3库 In-place deployment at /Users/danielrojas/Dropbox/ToursysFunctional/build/web Initializing... deploy?DEFAULT=/Users/danielrojas/Dropbox/ToursysFunctional/
In-place deployment at /Users/danielrojas/Dropbox/ToursysFunctional/build/web
Initializing...
deploy?DEFAULT=/Users/danielrojas/Dropbox/ToursysFunctional/build/web&name=Toursys& contextroot=/Toursys&force=true failed on GlassFish Server 3.x
Error occurred during deployment: Exception while preparing the app : Exception [EclipseLink-28018] (Eclipse Persistence Services - 2.3.0.v20110604-r9504): org.eclipse.persistence.exceptions.EntityManagerSetupException
Exception Description: Predeployment of PersistenceUnit [WebApplication1PU] failed.
Internal Exception: Exception [EclipseLink-7220] (Eclipse Persistence Services - 2.3.0.v20110604-r9504): org.eclipse.persistence.exceptions.ValidationException
Exception Description: The @JoinColumns on the annotated element [field userRoles] from the entity class [class jpa.Users] is incomplete. When the source entity class uses a composite primary key, a @JoinColumn must be specified for each join column using the @JoinColumns. Both the name and the referencedColumnName elements must be specified in each such @JoinColumn.. Please see server.log for more details.
/Users/danielrojas/Dropbox/ToursysFunctional/nbproject/build-impl.xml:1035: The module has not been deployed.
See the server log for details.
BUILD FAILED (total time: 2 seconds)
是的,这意味着您正在使用旧版本。你可能错过了一个罐子或者忘记删除旧的 以下是如何在Glassfish中更新EclipseLink的简短分步说明:
EclipseLink 2.5.1 OSGi捆绑包Zip(19MB)
$GLASSFISH\u HOME/GLASSFISH/modules
并删除以下文件:
- org.eclipse.persistence.antlr.jar
- org.eclipse.persistence.jpa.jar
- org.eclipse.persistence.asm.jar
- org.eclipse.persistence.jpa.modelgen.jar
- org.eclipse.persistence.core.jar
- org.eclipse.persistence.oracle.jar
- javax.persistence.jar
org.eclipse.persistence
开始但不包含source
(这些是源代码,您可能不需要它们)和文件javax.persistence\u 2xxx.jar
解压缩到文件夹$GLASSFISH\u HOME/GLASSFISH/modules