14 Replies Latest reply on Apr 3, 2008 11:39 AM by Peter Johnson

    Can't build using ant

    Leonid Mirsky Newbie

      Hi all,
      I am new to Jboss.
      I am trying to build Jboss 5 beta 4 using ant.
      I followed the installation documentation but still getting the following errors after running ant from the build dir:


      compile-classes:
      [javac] Compiling 137 source files to C:\jboss-5.0.0.Beta4-src\j2se\output\classes
      C:\jboss-5.0.0.Beta4-src\j2se\src\tests\org\jboss\test\jmx\compliance\loading\support\Trivial.java:27: cannot find symbol
      symbol: class TrivialMBean
      public class Trivial implements TrivialMBean
      ^
      C:\jboss-5.0.0.Beta4-src\j2se\src\tests\org\jboss\test\jmx\compliance\loading\support\Trivial2.java:27: cannot find symbol
      symbol: class Trivial2MBean
      public class Trivial2 implements Trivial2MBean
      ^
      C:\jboss-5.0.0.Beta4-src\j2se\src\tests\org\jboss\test\jmx\compliance\metadata\support\Trivial.java:24: cannot find symbol
      symbol: class TrivialMBean
      public class Trivial implements TrivialMBean
      ^
      C:\jboss-5.0.0.Beta4-src\j2se\src\tests\org\jboss\test\jmx\compliance\monitor\MonitorTestCase.java:48: package org.jboss.test.jmx.compliance.monitor.support does not exist
      import org.jboss.test.jmx.compliance.monitor.support.CounterSupport;
      ^
      C:\jboss-5.0.0.Beta4-src\j2se\src\tests\org\jboss\test\jmx\compliance\monitor\MonitorTestCase.java:49: package org.jboss.test.jmx.compliance.monitor.support does not exist
      import org.jboss.test.jmx.compliance.monitor.support.GaugeSupport;
      ^
      C:\jboss-5.0.0.Beta4-src\j2se\src\tests\org\jboss\test\jmx\compliance\monitor\MonitorTestCase.java:50: package org.jboss.test.jmx.compliance.monitor.support does not exist
      import org.jboss.test.jmx.compliance.monitor.support.MonitorSupport;
      ^
      C:\jboss-5.0.0.Beta4-src\j2se\src\tests\org\jboss\test\jmx\compliance\monitor\MonitorTestCase.java:51: package org.jboss.test.jmx.compliance.monitor.support does not exist
      import org.jboss.test.jmx.compliance.monitor.support.StringSupport;
      ^
      C:\jboss-5.0.0.Beta4-src\j2se\src\tests\org\jboss\test\jmx\compliance\monitor\MonitorTestCase.java:89: cannot find symbol
      symbol : class MonitorSupport
      location: class org.jboss.test.jmx.compliance.monitor.MonitorTestCase
      MonitorSupport monitored;
      .
      .
      .
      .
      .

      Note: Some input files use unchecked or unsafe operations.
      Note: Recompile with -Xlint:unchecked for details.
      100 errors
      12 warnings

      BUILD FAILED

      C:\jboss-5.0.0.Beta4-src\j2se\build.xml:143: Compile failed; see the compiler error output for details.
      at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:999)
      at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:820)
      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
      at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
      at org.apache.tools.ant.Task.perform(Task.java:348)
      at org.apache.tools.ant.Target.execute(Target.java:357)
      at org.apache.tools.ant.Target.performTasks(Target.java:385)
      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
      at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
      at org.jboss.tools.buildmagic.task.CallTarget.execute(CallTarget.java:141)
      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
      at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
      at org.apache.tools.ant.Task.perform(Task.java:348)
      at org.apache.tools.ant.Target.execute(Target.java:357)
      at org.apache.tools.ant.Target.performTasks(Target.java:385)
      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
      at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
      at org.jboss.tools.buildmagic.task.Ant.execute(Ant.java:261)
      at org.jboss.tools.buildmagic.task.module.ExecuteModules$1.run(ExecuteModules.java:361)
      at org.jboss.tools.buildmagic.task.module.ExecuteModules.executeModule(ExecuteModules.java:376)
      at org.jboss.tools.buildmagic.task.module.ExecuteModules.execute(ExecuteModules.java:241)
      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
      at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
      at org.apache.tools.ant.Task.perform(Task.java:348)
      at org.apache.tools.ant.Target.execute(Target.java:357)
      at org.apache.tools.ant.Target.performTasks(Target.java:385)
      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
      at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
      at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
      at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
      at org.apache.tools.ant.Main.runBuild(Main.java:698)
      at org.apache.tools.ant.Main.startAnt(Main.java:199)
      at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
      at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)


      Someone familiar with that error?

      Regards,
      Leonid M.