Hi - I am running Cactus 1.7.2 along with Ant 1.7.1. I have a J2EE web project created inside eclipse that contains a ServletTestCase which is testing a EJB. My build.xml looks like this (and it runs perfectly fine from inside of Eclipse) -
***************************************************************************************************************************************************************************** <?xml version="1.0" encoding="UTF-8"?> <project name="Workspace" default="cactusTest"> <property name="server.lib" value="C:\IBM\WID602\runtimes\bi_v6\lib" /> <property name="installed.channels.lib" value="C:\IBM\WID602\runtimes\bi_v6\installedChannels" /> <property name="project.lib" value="WebContent/WEB-INF/lib" /> <property name="report.dir" value="C:\tmp" /> <property name="src.dir" value="JavaSource" /> <path id="test.classpath"> <fileset dir="${server.lib}"> <include name="j2ee.jar" /> <include name="webservices.jar" /> </fileset> <fileset dir="${installed.channels.lib}"> <include name="*.jar" /> </fileset> <pathelement location="WebContent/WEB-INF/classes" /> </path> <target name="createWar"> <warExport warprojectname="CisAccountEjbUnitTest" warexportfile="C:/tmp/CisAccountEjbV2UnitTest/lib/CisAccountEjbUnitTest.war"/> </target> <target name="createEar"> <earExport earprojectname="CisAccountEjbUnitTestEAR" earexportfile="C:/tmp/CisAccountEjbV2UnitTest/dist/CisAccountEjbUnitTestEAR.ear"/> </target> <path id="cactus.classpath"> <pathelement location="${project.lib}/aspectjrt-1.2.1.jar" /> <pathelement location="${project.lib}/cactus-1.7.2.jar" /> <pathelement location="${project.lib}/cargo-0.5.jar" /> <pathelement location="${project.lib}/cactus-ant-1.7.2.jar" /> <pathelement location="${project.lib}/commons-httpclient-2.0.2.jar" /> <pathelement location="${project.lib}/commons-logging-1.0.4.jar" /> </path> <target name="cactusTest"> <taskdef resource="cactus.tasks" classpathref="cactus.classpath" /> <cactus printsummary="yes" haltonfailure="no" earfile="C:/tmp/CisAccountEjbV2UnitTest/dist/CisAccountEjbUnitTestEAR.ear"> <classpath refid="test.classpath" /> <formatter type="xml" /> <batchtest todir="${report.dir}"> <fileset dir="${src.dir}"> <include name="**/*Test.java" /> </fileset> </batchtest> </cactus> <junitreport todir="${report.dir}/report"> <fileset dir="${report.dir}"> <include name="TEST-*.xml"/> </fileset> <report format="frames" todir="${report.dir}/report/html"/> </junitreport> </target> </project> ***************************************************************************************************************************************************************************** Problem is that when I try to execute this build.xml from outside of my eclipse environment in "headless" mode then I get "*java.lang.VerifyError: (class: org/apache/cactus/integration/ant/RunServerTestsTask, method: execute signature: ()V) Incompatible argument to method*" error. I have not been able to figure out the cause of this error. Btw, I have attached the ant - debug command output with the email. Basically that will tell that I my cactus jars getting loaded by the shell fine. If someone can please help me in trying to resolve this issue then it will be really helpful. Regards Ashish
--------------------------------------------------------------------- To unsubscribe, e-mail: cactus-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: cactus-user-h...@jakarta.apache.org