Community
Participate
Working Groups
The following bundle jars under \\glassfishv3\glassfish\modules need to overwrite before running JPA testing on it: org.eclipse.persistence.antlr.jar org.eclipse.persistence.asm.jar org.eclipse.persistence.core.jar org.eclipse.persistence.jpa.jar org.eclipse.persistence.jpa.modelgen.jar org.eclipse.persistence.oracle.jar Also don't need to copy javax.persistence_2.0_preview.jar to \\glassfishv3\glassfish\modules.
>We need an ant target that builds the separate bundle jars for Glassfish - there may be one in SVN but I have not found it. https://bugs.eclipse.org/bugs/show_bug.cgi?id=296269#c4 >bug 297711 was closed after a user request but should be reopened as part of this request.
>actually there is an existing dev-package-bundles that we can use on the root that writes to <trunk>/bundles in the form <target name="dev-package-bundles" depends="clean-runtime-checkedin"> F:\view_w35f\plugins\org.eclipse.persistence.antlr_2.2.0.qualifier.jar F:\view_w35f\plugins\org.eclipse.persistence.asm_2.2.0.qualifier.jar F:\view_w35f\plugins\org.eclipse.persistence.core_2.2.0.qualifier.jar F:\view_w35f\plugins\org.eclipse.persistence.jpa_2.2.0.qualifier.jar F:\view_w35f\plugins\org.eclipse.persistence.oracle_2.2.0.qualifier.jar >non-standard F:\view_w35f\plugins\org.eclipse.persistence.jpa.modelgen_2.2.0.qualifier.jar
Thanks for Michael's tips, I have found them, but currently our scripts copy too many bundle jars (not only those six jars), and we hit ClassCastException sometimes, so we need to only copy those six bundle jars. The scripts (glassfish.xml) fix just like the following: <target name="copy-eclipselink-and-persistence-latest-jars-to-glassfish3" if="is.v3"> <delete> <fileset dir="${glassfish.home}/modules"> <include name="javax.persistence*.jar"/> <include name="org.eclipse.persistence.*.jar"/> </fileset> </delete> <copy todir="${glassfish.home}/modules" overwrite="true" failonerror="false"> <fileset dir="${eclipselink.jpa.test}/../plugins/"> <include name="javax.persistence_2*.jar"/> <exclude name="javax.persistence_2*_preview.jar"/> </fileset> <fileset dir="${eclipselink.jpa.test}/../../plugins/" includes="org.eclipse.persistence.antlr_*.jar org.eclipse.persistence.asm_*.jar org.eclipse.persistence.core_*.jar org.eclipse.persistence.jpa_*.jar org.eclipse.persistence.jpa.modelgen_*.jar org.eclipse.persistence.oracle_*.jar" excludes="org.eclipse.persistence.*.source*.jar"/> </copy> </target>
Checked in trunk, revision: 7584 Code reviewed by Yiping Zhao.
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink