3 Replies Latest reply on Oct 15, 2003 10:49 AM by sbocquet

    Run packaging not working but generated build.xml files fine



      I have a very strange problem !!!
      We work on an EJB project with JBoss & Eclipse. We used to have an ANT build file to build our project.

      Now, I would like to use JBoss IDE.
      I have configured a packaging configuration with our project, and a packaging-build.xml is created. But when I start to "run packaging", nothing appends !!! Strangelly, when I use a command mode with the generated xml file, It works properly !!!

      After searching in Eclipse log files, I have founded that error :

      !ENTRY org.eclipse.ant.core 4 1 oct. 14, 2003 10:29:05.531
      !MESSAGE Could not find one or more classes: "org.apache.tools.ant.BuildException". Please check the Ant classpath.
      !STACK 0
      java.lang.NoClassDefFoundError: org/apache/tools/ant/BuildException
      at java.lang.Class.getDeclaredConstructors0(Native Method)
      at java.lang.Class.privateGetDeclaredConstructors(Class.java:1590)
      at java.lang.Class.getConstructor0(Class.java:1762)
      at java.lang.Class.newInstance0(Class.java:276)
      at java.lang.Class.newInstance(Class.java:259)
      at org.eclipse.ant.core.AntRunner.run(AntRunner.java:283)
      at org.eclipse.ui.externaltools.internal.ant.launchConfigurations.AntLaunchDelegate.launch(AntLaunchDelegate.java:189)
      at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:156)
      at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:676)
      at org.eclipse.debug.ui.DebugUITools.buildAndLaunch(DebugUITools.java:538)
      at org.eclipse.debug.ui.DebugUITools$2.run(DebugUITools.java:487)
      at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)

      Any idea to solve this ?

      Configuration :
      - JBoss 3.2.1
      - Eclipse 2.1.1 + JBoss IDE
      - J2SE 1.4.02
      - ANT 1.5.2