Could not automatically start jboss via Cargo using Ant?

suferis

New Member
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:\[code\] <taskdef resource="cargo.tasks"> <classpath> <pathelement location="${cargo.core.jar}"/> <pathelement location="${cargo.ant.jar}"/> </classpath> </taskdef>\[/code\]Jar Used:\[code\] cargo-core-uberjar-1.2.1.jar cargo-ant-1.2.1.jar\[/code\]Ant target:\[code\]<!-- 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>\[/code\]Output Error:\[code\]Buildfile: D:\opt\trunk\build.xmlstartJboss:BUILD FAILEDD:\opt\trunk\build.xml:51: Could not create type cargo due to java.lang.NoClassDefFoundError: org/apache/commons/discovery/resource/ClassLoadersTotal time: 2 seconds\[/code\]
 
Back
Top