Bug 296727

Summary: JPA WebLogic Test: hardcoded localhost for stop/start server targets should match weblogic.properties host
Product: z_Archived Reporter: Michael OBrien <michael.f.obrien>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: edwin.tang, kevin.yuan, tom.ware
Version: unspecifiedKeywords: test
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on:    
Bug Blocks: 296271    
Attachments:
Description Flags
patch for the bug none

Description Michael OBrien CLA 2009-12-02 12:48:07 EST
>The following weblogic.xml targets should not hardcode the server host name
Use the weblogic.host property in weblogic.properties - especially in the case that there is 2 network cards on the server.

    <target name="weblogic-start-nosleep"> 
        <wlserver fork="true" spawn="true" weblogichome="${weblogic.home}"
            dir="${weblogic.domain}" host="localhost" generateConfig="true" verbose="true"
    <target name="weblogic-stop">
        <wlserver fork="true" failonerror="false" weblogichome="${weblogic.home}"
            dir="${weblogic.domain}" host="localhost"

>should be
    <target name="weblogic-start-nosleep"> 
        <wlserver fork="true" spawn="true" weblogichome="${weblogic.home}"
            dir="${weblogic.domain}" host="${weblogic.host}" generateConfig="true" verbose="true"
    <target name="weblogic-stop">
        <wlserver fork="true" failonerror="false" weblogichome="${weblogic.home}"
            dir="${weblogic.domain}" host="${weblogic.host}"

>or we get
 [wldeploy] Caused by: javax.naming.CommunicationException [Root exception is java.net.ConnectException: t3://localhost:7001: Destination unreachable;
 nested exception is:
 [wldeploy]     java.net.ConnectException: Connection refused: connect; No available router to destination]
Comment 1 Kevin Yuan CLA 2010-02-01 15:47:27 EST
Created attachment 157838 [details]
patch for the bug

Pass ${weblogic.host} in weblogic.xml instead of localhost hard code.
Comment 2 Kevin Yuan CLA 2010-02-01 15:51:44 EST
Checked in to trunk, revision: 6464, and back port to 2.0.1, revision: 6465.

Code reviewed by Edwin Tang.
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:17:02 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:33:11 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink