java.lang.VerifyError: (class: org/apache/cactus/integration/ant/RunServerTestsTask, method: execute signature: ()V) Incompatible argument to method
Ashish Aggarwal <[email protected]> Wed, 17 Feb 2010 12:05:17 -0800
| Newsgroups | gmane.comp.jakarta.cactus.user |
|---|---|
| Message-ID | <[email protected]> |
--002215401c12b6707e047fd15f24
Content-Type: multipart/alternative; boundary=002215401c12b67072047fd15f22
--002215401c12b67072047fd15f22
Content-Type: text/plain; charset=ISO-8859-1
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
--002215401c12b67072047fd15f22
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Hi -=A0<div><br></div><div>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 ServletTes=
tCase =A0which is testing a EJB. My build.xml looks like this (and it runs =
perfectly fine from inside of Eclipse) -=A0</div>
<div><br></div><div>*******************************************************=
***************************************************************************=
*******************************************</div><div><div><?xml version=
=3D"1.0" encoding=3D"UTF-8"?></div>
<div><project name=3D"Workspace" default=3D"cactusTest&qu=
ot;></div><div><span class=3D"Apple-tab-span" style=3D"white-space:pre">=
</span><property name=3D"server.lib" value=3D"C:\IBM\WID=
602\runtimes\bi_v6\lib" /></div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span><p=
roperty name=3D"installed.channels.lib" value=3D"C:\IBM\WID6=
02\runtimes\bi_v6\installedChannels" /></div><div><span class=3D"Ap=
ple-tab-span" style=3D"white-space:pre"> </span><property name=3D"p=
roject.lib" value=3D"WebContent/WEB-INF/lib" /></div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span><p=
roperty name=3D"report.dir" value=3D"C:\tmp" /></div=
><div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span><=
property name=3D"src.dir" value=3D"JavaSource" /><sp=
an class=3D"Apple-tab-span" style=3D"white-space:pre"> </span></div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span></div=
><div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span><=
path id=3D"test.classpath"></div><div><span class=3D"Apple-tab=
-span" style=3D"white-space:pre"> </span><fileset dir=3D"${server.=
lib}"><span class=3D"Apple-tab-span" style=3D"white-space:pre"> <=
/span></div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span><=
;include name=3D"j2ee.jar" /></div><div><span class=3D"Apple-t=
ab-span" style=3D"white-space:pre"> </span><include name=3D"webse=
rvices.jar" /></div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span><=
/fileset></div><div><span class=3D"Apple-tab-span" style=3D"white-space:=
pre"> </span><fileset dir=3D"${installed.channels.lib}"><s=
pan class=3D"Apple-tab-span" style=3D"white-space:pre"> </span></div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span><=
;include name=3D"*.jar" /></div><div><span class=3D"Apple-tab-=
span" style=3D"white-space:pre"> </span></fileset></div><div><span c=
lass=3D"Apple-tab-span" style=3D"white-space:pre"> </span><pathelement =
location=3D"WebContent/WEB-INF/classes" /></div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span></=
path></div><div><span class=3D"Apple-tab-span" style=3D"white-space:pre"=
> </span></div><div><span class=3D"Apple-tab-span" style=3D"white-space:pre=
"> </span><target name=3D"createWar"></div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span><=
warExport warprojectname=3D"CisAccountEjbUnitTest" warexportfile=
=3D"C:/tmp/CisAccountEjbV2UnitTest/lib/CisAccountEjbUnitTest.war"=
/></div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span></=
target></div><div><span class=3D"Apple-tab-span" style=3D"white-space:pr=
e"> </span><target name=3D"createEar"></div><div><span clas=
s=3D"Apple-tab-span" style=3D"white-space:pre"> </span><earExport earp=
rojectname=3D"CisAccountEjbUnitTestEAR" earexportfile=3D"C:/=
tmp/CisAccountEjbV2UnitTest/dist/CisAccountEjbUnitTestEAR.ear"/>=A0=
</div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span><=
/target></div><div><span class=3D"Apple-tab-span" style=3D"white-space:p=
re"> </span></div><div><span class=3D"Apple-tab-span" style=3D"white-space:=
pre"> </span><path id=3D"cactus.classpath"></div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span><=
pathelement location=3D"${project.lib}/aspectjrt-1.2.1.jar" />=
</div><div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </spa=
n><pathelement location=3D"${project.lib}/cactus-1.7.2.jar" /&=
gt;</div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span><=
pathelement location=3D"${project.lib}/cargo-0.5.jar" /></div>=
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span><=
pathelement location=3D"${project.lib}/cactus-ant-1.7.2.jar" />=
;</div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span><=
pathelement location=3D"${project.lib}/commons-httpclient-2.0.2.jar&qu=
ot; /></div><div><span class=3D"Apple-tab-span" style=3D"white-space:pre=
"> </span><pathelement location=3D"${project.lib}/commons-logging-=
1.0.4.jar" /><span class=3D"Apple-tab-span" style=3D"white-space:pr=
e"> </span></div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span></=
path></div><div><span class=3D"Apple-tab-span" style=3D"white-space:pre"=
> </span></div><div><span class=3D"Apple-tab-span" style=3D"white-space:pre=
"> </span><target name=3D"cactusTest"></div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span><=
taskdef resource=3D"cactus.tasks" classpathref=3D"cactus.cla=
sspath" /></div><div><span class=3D"Apple-tab-span" style=3D"white-=
space:pre"> </span><cactus printsummary=3D"yes" haltonfailure=
=3D"no" earfile=3D"C:/tmp/CisAccountEjbV2UnitTest/dist/CisAc=
countEjbUnitTestEAR.ear"></div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span><=
;classpath refid=3D"test.classpath" /><span class=3D"Apple-tab=
-span" style=3D"white-space:pre"> </span></div><div><span class=3D"Apple-=
tab-span" style=3D"white-space:pre"> </span><formatter type=3D"xm=
l" /></div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span><=
;batchtest todir=3D"${report.dir}"><span class=3D"Apple-tab-sp=
an" style=3D"white-space:pre"> </span></div><div><span class=3D"Apple-ta=
b-span" style=3D"white-space:pre"> </span><fileset dir=3D"${src.=
dir}"><span class=3D"Apple-tab-span" style=3D"white-space:pre"> =
</span></div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>&=
lt;include name=3D"**/*Test.java" /><span class=3D"Apple-tab-s=
pan" style=3D"white-space:pre"> </span></div><div><span class=3D"Apple-=
tab-span" style=3D"white-space:pre"> </span></fileset></div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span><=
;/batchtest><span class=3D"Apple-tab-span" style=3D"white-space:pre"> =
</span></div><div><span class=3D"Apple-tab-span" style=3D"white-space:pre">=
</span></cactus></div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span><=
junitreport todir=3D"${report.dir}/report"></div><div><span cl=
ass=3D"Apple-tab-span" style=3D"white-space:pre"> </span><fileset dir=
=3D"${report.dir}"></div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span> =A0=
=A0<span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span><in=
clude name=3D"TEST-*.xml"/></div><div><span class=3D"Apple-tab=
-span" style=3D"white-space:pre"> </span> =A0<span class=3D"Apple-tab-span=
" style=3D"white-space:pre"> </span></fileset></div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span> =A0=
<span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span><report=
format=3D"frames" todir=3D"${report.dir}/report/html"/=
></div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span><=
/junitreport></div><div><span class=3D"Apple-tab-span" style=3D"white-sp=
ace:pre"> </span></target></div><div></project></div><div>*****=
***************************************************************************=
***************************************************************************=
******************</div>
<div><br></div><div>Problem is that when I try to execute this build.xml fr=
om outside of my eclipse environment in "headless" mode then I ge=
t "<b>java.lang.VerifyError: (class: org/apache/cactus/integration/ant=
/RunServerTestsTask, method: execute signature: ()V) Incompatible argument =
to method</b>" error. I have not been able to figure out the cause of =
this error.=A0Btw, 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.=A0</div>
<div><br></div><div>If someone can please help me in trying to resolve this=
issue then it will be really helpful.=A0</div><div><br></div><div>Regards<=
/div><div>Ashish</div></div>
--002215401c12b67072047fd15f22--
--002215401c12b6707e047fd15f24
Content-Type: text/plain; charset=us-ascii
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
--002215401c12b6707e047fd15f24--