Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 316365

Summary: JPA testing on Glassfish v3 should use the same bundle jars to overwrite the existing bundle jars in Glassfish install
Product: z_Archived Reporter: Kevin Yuan <kevin.yuan>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: michael.f.obrien
Version: unspecifiedKeywords: test
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on: 296269, 297711    
Bug Blocks:    

Description Kevin Yuan CLA 2010-06-09 15:31:44 EDT
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.
Comment 1 Michael OBrien CLA 2010-06-09 15:39:14 EDT
>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.
Comment 2 Michael OBrien CLA 2010-06-09 15:47:57 EDT
>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
Comment 3 Kevin Yuan CLA 2010-06-09 16:14:39 EDT
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>
Comment 4 Kevin Yuan CLA 2010-06-10 09:52:35 EDT
Checked in trunk, revision: 7584

Code reviewed by Yiping Zhao.
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:19:01 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink