Bug 296727 - JPA WebLogic Test: hardcoded localhost for stop/start server targets should match weblogic.properties host
Summary: JPA WebLogic Test: hardcoded localhost for stop/start server targets should m...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords: test
Depends on:
Blocks: 296271
  Show dependency tree
 
Reported: 2009-12-02 12:48 EST by Michael OBrien CLA
Modified: 2022-06-09 10:33 EDT (History)
3 users (show)

See Also:


Attachments
patch for the bug (1.88 KB, application/octet-stream)
2010-02-01 15:47 EST, Kevin Yuan CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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