File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cannot Run WebLogic 8.1 Ant Tasks In IntelliJ

 
Michael Duffy
Ranch Hand
Posts: 163
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm having a problem running WebLogic 8.1 Ant tasks in IntelliJ (e.g., <wlcompile>, <wldeploy>, etc.)

I'm using the build.xml generated by the WL BuildXMLGen tool. It runs perfectly on the command line. It uses Ant 1.5.3, which is bundled inside WL 8.1. The classes that are executed by Ant are packaged in the weblogic.jar.

The problem comes about when I try to run the Ant build inside IntelliJ 5.1.

I'd like to use the Ant 1.6.4 that I have on my hard drive, but when I try to do that IntelliJ fails. If I put the weblogic.jar in the CLASSPATH, so Ant can find the task classes, I get the "Ant build completed successfully in 0s" message, but nothing happens. I think it might be that IntelliJ is finding the earlier version of Ant in the CLASSPATH before my local 1.6.4 version. But if I remove the weblogic.jar from the Ant /lib, Ant won't be able to find the WL task classes.

What to do? Has anyone else experienced this?
 
Michael Duffy
Ranch Hand
Posts: 163
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Michael Duffy:
I'm having a problem running WebLogic 8.1 Ant tasks in IntelliJ (e.g., <wlcompile>, <wldeploy>, etc.)

I'm using the build.xml generated by the WL BuildXMLGen tool. It runs perfectly on the command line. It uses Ant 1.5.3, which is bundled inside WL 8.1. The classes that are executed by Ant are packaged in the weblogic.jar.

The problem comes about when I try to run the Ant build inside IntelliJ 5.1.

I'd like to use the Ant 1.6.4 that I have on my hard drive, but when I try to do that IntelliJ fails. If I put the weblogic.jar in the CLASSPATH, so Ant can find the task classes, I get the "Ant build completed successfully in 0s" message, but nothing happens. I think it might be that IntelliJ is finding the earlier version of Ant in the CLASSPATH before my local 1.6.4 version. But if I remove the weblogic.jar from the Ant /lib, Ant won't be able to find the WL task classes.

What to do? Has anyone else experienced this?


I found the answer. This link sorted me out:

http://support.jetbrains.com/kb/entry.jspa?externalID=59&categoryID=27

I had to add WL_HOME/weblogic/workshop as the Ant executable and put weblogic.jar and tools.jar in "Additional Classpath". That took care of it. I was then able to run all the WebLogic tasks in IntelliJ.

I'm stuck with Ant version 1.5.3. What if I replaced the contents of the directory with Ant version 1.6.4 JARs? Would I be upgraded then? Hmmmmm...
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic