Am kind of stuck in trying to start JBoss automatically from Ant script with the help of Cargo open source project. Am getting this error shown underneath. Many Thanks!
taskdef:
<taskdef resource="cargo.tasks">
<classpath>
<pathelement location="${cargo.core.jar}"/>
<pathelement location="${cargo.ant.jar}"/>
</classpath>
</taskdef>
Jar Used:
cargo-core-uberjar-1.2.1.jar
cargo-ant-1.2.1.jar
Ant target:
<!-- Start JBoss -->
<target name="startJboss" depends="prepare">
<cargo id="mycontainerid" containerId="jboss51x" home="C:/opt/jboss/jboss-4.0.5.GA/bin" action="start" wait="false" />
</target>
Output Error:
Buildfile: D:\opt\trunk\build.xml
startJboss:
BUILD FAILED
D:\opt\trunk\build.xml:51: Could not create type cargo due to java.lang.NoClassDefFoundError: org/apache/commons/discovery/resource/ClassLoaders
Total time: 2 seconds