Hi,
I am trying to get the AntRunner 2.2 ro work with
JBuilder6(update 001 applied), however I am
encountering following issues:-
[Versions Used]
JBuilder : 6.0 with update 001
Ant : 1.5 ( also tried with 1.6.2 )
AntRunner : 2.2
[Problems In JBuilder Interface]
1. After installation and configuration of antrunner,
created the AntRunner Node, but i am unable see the
properties of the node on clicking on the properties
menu on right click.
[Exception : As display by verbose mode]
10826 [AWT-EventQueue-0 ] DEBUG
org.antrunner.ac ( ?) loa
ding icon: /org/antrunner/resources/activatenode.gif
Exception occurred during event dispatching:
java.lang.NoClassDefFoundError:
org.apache.tools.ant.DefaultLogger
at org.antrunner.project.node.ui.LoggerPanel.a
(Unknown Source)
at org.antrunner.project.node.ui.LoggerPanel.a
(Unknown Source)
at org.antrunner.project.node.ui.LoggerPanel.<init>
(Unknown Source)
at org.antrunner.project.node.ui.PageLogger.<init>
(Unknown Source)
at
org.antrunner.project.node.ui.PageAntNode.<init>
(Unknown Source)
at org.antrunner.l.createPropertyPage(Unknown
Source)
at
com.borland.primetime.properties.PropertyDialog.a
(Unknown Source)
at
com.borland.primetime.properties.PropertyDialog.a
(Unknown Source)
at
com.borland.primetime.properties.PropertyDialog.<init>
(Unknown Source
)
at
com.borland.primetime.properties.PropertyManager.showP
ropertyDialog(U
nknown Source)
at
com.borland.primetime.properties.PropertyManager.showP
ropertyDialog(U
nknown Source)
at
com.borland.primetime.properties.p.actionPerformed
(Unknown Source)
at
com.borland.primetime.ide.BrowserAction.actionPerformed
(Unknown Sourc
e)
at
com.borland.primetime.actions.db.actionPerformed
(Unknown Source)
at javax.swing.AbstractButton.fireActionPerformed
(AbstractButton.java:14
50)
at
javax.swing.AbstractButton$ForwardActionEvents.actionP
erformed(Abstra
ctButton.java:1504)
at
javax.swing.DefaultButtonModel.fireActionPerformed
(DefaultButtonModel
.java:378)
at javax.swing.DefaultButtonModel.setPressed
(DefaultButtonModel.java:250
)
at javax.swing.AbstractButton.doClick
(AbstractButton.java:279)
at
javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandl
er.mouseRelease
d(BasicMenuItemUI.java:886)
at java.awt.AWTEventMulticaster.mouseReleased
(AWTEventMulticaster.java:2
30)
at java.awt.Component.processMouseEvent
(Component.java:3715)
at java.awt.Component.processEvent
(Component.java:3544)
at java.awt.Container.processEvent
(Container.java:1164)
at java.awt.Component.dispatchEventImpl
(Component.java:2593)
at java.awt.Container.dispatchEventImpl
(Container.java:1213)
at java.awt.Component.dispatchEvent
(Component.java:2497)
at
java.awt.LightweightDispatcher.retargetMouseEvent
(Container.java:2451
)
at
java.awt.LightweightDispatcher.processMouseEvent
(Container.java:2216)
at java.awt.LightweightDispatcher.dispatchEvent
(Container.java:2125)
at java.awt.Container.dispatchEventImpl
(Container.java:1200)
at java.awt.Window.dispatchEventImpl
(Window.java:914)
at java.awt.Component.dispatchEvent
(Component.java:2497)
at java.awt.EventQueue.dispatchEvent
(EventQueue.java:339)
at
java.awt.EventDispatchThread.pumpOneEventForHierarch
y(EventDispatchTh
read.java:131)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThre
ad.java:98)
at java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run
(EventDispatchThread.java:85)
2. When running the ant, the tab just freezes with all
antrunner buttons disabled and with status as Ant
running.
[Exception: With Jbuilder in verbose mode]
11457 [Thread-6 ] WARN
org.antrunner.ag ( ?) Cou
ld not set active tab! Not trying anymore until the end
of this session!
java.lang.NoSuchMethodError
at org.antrunner.ag.a(Unknown Source)
at org.antrunner.ar.run(Unknown Source)
at java.lang.Thread.run(Thread.java:484)
11457 [Thread-6 ] DEBUG
roject.message.ui.ControlPanel ( ?) no
errors found: disabling all navigation buttons
java.lang.NoClassDefFoundError:
org/apache/tools/ant/BuildListener
at java.lang.ClassLoader.defineClass0(Native
Method)
at java.lang.ClassLoader.defineClass
(ClassLoader.java:486)
at java.security.SecureClassLoader.defineClass
(SecureClassLoader.java:11
1)
at java.net.URLClassLoader.defineClass
(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100
(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run
(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged
(Native Method)
at java.net.URLClassLoader.findClass
(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass
(ClassLoader.java:297)
at sun.misc.Launcher$AppClassLoader.loadClass
(Launcher.java:286)
at java.lang.ClassLoader.loadClass
(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal
(ClassLoader.java:313)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at org.antrunner.ar.c(Unknown Source)
at org.antrunner.ar.d(Unknown Source)
at org.antrunner.ar.c(Unknown Source)
at org.antrunner.ar.run(Unknown Source)
at java.lang.Thread.run(Thread.java:484)
Appreciate if anyone can help on this.
Logged In: YES
user_id=1176895
Hi,
I followed up with one of the threads in the forum and it had
a mention that in case of the issue above the JBuilder is not
able to get the ant.jar and so ant.jar needs to be copied to
JBuilder_Home/lib/ext.
This fixed the following:-
1. I was able to see the properties for the AntRunner node
created in JB.
2. The AntRunner was actually able to run the ant without
freezing the tab.
Everything is working kool.. now!!
[Suggestion]
Please include the mention that the ant.jar needs to be in
the JB_HOME/lib/ext in future builds at least.
[Comment] This is a great integration tool!!
sameer