Bug 296720 - JPA WebLogic test: domain install should stop server on install failure
Summary: JPA WebLogic test: domain install should stop server on install failure
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows NT
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords: test
Depends on: 296271
Blocks:
  Show dependency tree
 
Reported: 2009-12-02 11:42 EST by Michael OBrien CLA
Modified: 2022-06-09 10:19 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael OBrien CLA 2009-12-02 11:42:16 EST
>During the weblogic.xml weblogic-start target a lib copy override will fail if the server is running either standalone or as part of an IDE session.
The script needs to have a exception condition that stops the server on error after starting it.
    <target name="weblogic-install">
        <delete dir="${weblogic.domain}"/>
        <mkdir dir="${weblogic.domain}"/>
        <antcall target="weblogic-start-nosleep" inheritRefs="true"/>
        <copy file="${junit.lib}" todir="${weblogic.domain}/lib"/>
        <copy file="${eclipselink.jar.name}" todir="${weblogic.domain}/lib"/>
        <copy file="F:/view_w35d/jpa/plugins/javax.persistence_2.0.0.v200911041116.jar" todir="${weblogic.domain}/lib"/>
        <copy file="${jdbc.driver.jar}" todir="${weblogic.domain}/lib"/>
        <copy file="${oracle.extensions.depend.dir}/${oracle.xdb.lib}" todir="${weblogic.domain}/lib"/>
        <copy file="${oracle.extensions.depend.dir}/${oracle.spatial.lib}" todir="${weblogic.domain}/lib"/>
        <copy file="${oracle.extensions.depend.dir}/${oracle.xmlparserv2.lib}" todir="${weblogic.domain}/lib"/>
>not called on errors above        <antcall target="weblogic-stop" inheritRefs="true"/>
    </target>
Comment 2 Kevin Yuan CLA 2011-04-28 11:13:48 EDT
Using WLST command (python scripts) to solve this problem. Currently all WLS testing using Python scripts (WLST command) instead of former ant task (WLServer/WLConfig/WLDeploy).
All these changes had been verified on all version of WLS by running JPA server-test-lrg.

Checked in trunk (2.3).
Code reviewed by Edwin Tang.
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:19:40 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink