| 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: | Eclipselink | Assignee: | Nobody - feel free to take it <nobody> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | michael.f.obrien |
| Version: | unspecified | Keywords: | test |
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
| Bug Depends on: | 296269, 297711 | ||
| Bug Blocks: | |||
|
Description
Kevin Yuan
>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 |