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