Community
Participate
Working Groups
>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]
Created attachment 157838 [details] patch for the bug Pass ${weblogic.host} in weblogic.xml instead of localhost hard code.
Checked in to trunk, revision: 6464, and back port to 2.0.1, revision: 6465. Code reviewed by Edwin Tang.
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink