• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Cannot Run WebLogic 8.1 Ant Tasks In IntelliJ

 
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
It's a beautiful day in this neighborhood - Fred Rogers. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic