Bug Reports

Use this forum to report problems you are having with Go and to seek resolution with fellow community members

This is a public Discussion Area  publicRSS

Post

    Ramin
    Cruise needs Java 1.6: Weblogic Ant task needs 1.5
    Post posted January 28, 2009 by Ramin
    4285 Views, 2 Comment
    Topic:
    Cruise needs Java 1.6: Weblogic Ant task needs 1.5
    Body:
    Hi, I am having an issue trying to deploy my project using Cruise and the Weblogic Ant Task. Our code base currently compiles under Java 1.5 and we have achieved this by setting the javac target value to 1.5, which is fine and dandy. The problem is the Weblogic Ant Task seems to only work with Java 1.5 and I can’t figure out a way to tell either the Task or Cruise to use Java 1.5 when it is running this task. Anyone have any ideas? Is there a way to tell Ant to use a certain Java version for all targets? Thank you,Ramin

    Comment

    • Jez Humble
      posted January 28, 2009 by Jez Humble

      Probably the easiest workaround is to use Cruise’s exec builder to run a shell script, and have the shell script set the PATH and JAVA_HOME to the correct values to pick up Java 1.5 instead of Java 1.6, and then run ant from the shell script.

      I’d be interested to know what the error you’re seeing is when running the task from Java 6 – if it’s not too much bother, could you cut and paste it into a reply?

      Thanks,

      Jez.

    • Ramin
      posted February 2, 2009 by Ramin

      I will explore the exec option and see how it goes. Alternatively, I may push our group to upgrade to a more recent version of Weblogic (like 10) that works better with Java 1.6.

      This is the error I am getting with Weblogic 9.2 when it tries to invoke the wldeploy Ant Task using Java 1.6:

      weblogic.Deployer$DeployerException: weblogic.deploy.api.tools.deployer.DeployerException: Unable to connect to ‘t3://localhost:7001’: Destination unreachable; nested exception is: java.net.ConnectException: Connection refused: connect; No available router to destination. Ensure the url represents a running admin server and that the credentials are correct. If using http protocol, tunneling must be enabled on the admin server.

      It seems like a connectivity issue, but Weblogic IS running and I am able to deploy to it just fine when I run the Ant task manually from the command prompt using JAVA_HOME=Java 1.5

      Thank you for your help,
      Ramin