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>&lt;?xml version=
=3D&quot;1.0&quot; encoding=3D&quot;UTF-8&quot;?&gt;</div>

<div>&lt;project name=3D&quot;Workspace&quot; default=3D&quot;cactusTest&qu=
ot;&gt;</div><div><span class=3D"Apple-tab-span" style=3D"white-space:pre">=
	</span>&lt;property name=3D&quot;server.lib&quot; value=3D&quot;C:\IBM\WID=
602\runtimes\bi_v6\lib&quot; /&gt;</div>

<div><span class=3D"Apple-tab-span" style=3D"white-space:pre">	</span>&lt;p=
roperty name=3D&quot;installed.channels.lib&quot; value=3D&quot;C:\IBM\WID6=
02\runtimes\bi_v6\installedChannels&quot; /&gt;</div><div><span class=3D"Ap=
ple-tab-span" style=3D"white-space:pre">	</span>&lt;property name=3D&quot;p=
roject.lib&quot; value=3D&quot;WebContent/WEB-INF/lib&quot; /&gt;</div>

<div><span class=3D"Apple-tab-span" style=3D"white-space:pre">	</span>&lt;p=
roperty name=3D&quot;report.dir&quot; value=3D&quot;C:\tmp&quot; /&gt;</div=
><div><span class=3D"Apple-tab-span" style=3D"white-space:pre">	</span>&lt;=
property name=3D&quot;src.dir&quot; value=3D&quot;JavaSource&quot; /&gt;<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>&lt;=
path id=3D&quot;test.classpath&quot;&gt;</div><div><span class=3D"Apple-tab=
-span" style=3D"white-space:pre">		</span>&lt;fileset dir=3D&quot;${server.=
lib}&quot;&gt;<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&quot;j2ee.jar&quot; /&gt;</div><div><span class=3D"Apple-t=
ab-span" style=3D"white-space:pre">			</span>&lt;include name=3D&quot;webse=
rvices.jar&quot; /&gt;</div>

<div><span class=3D"Apple-tab-span" style=3D"white-space:pre">		</span>&lt;=
/fileset&gt;</div><div><span class=3D"Apple-tab-span" style=3D"white-space:=
pre">		</span>&lt;fileset dir=3D&quot;${installed.channels.lib}&quot;&gt;<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>&lt=
;include name=3D&quot;*.jar&quot; /&gt;</div><div><span class=3D"Apple-tab-=
span" style=3D"white-space:pre">		</span>&lt;/fileset&gt;</div><div><span c=
lass=3D"Apple-tab-span" style=3D"white-space:pre">		</span>&lt;pathelement =
location=3D&quot;WebContent/WEB-INF/classes&quot; /&gt;</div>

<div><span class=3D"Apple-tab-span" style=3D"white-space:pre">	</span>&lt;/=
path&gt;</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>&lt;target name=3D&quot;createWar&quot;&gt;</div>

<div><span class=3D"Apple-tab-span" style=3D"white-space:pre">		</span>&lt;=
warExport warprojectname=3D&quot;CisAccountEjbUnitTest&quot; warexportfile=
=3D&quot;C:/tmp/CisAccountEjbV2UnitTest/lib/CisAccountEjbUnitTest.war&quot;=
/&gt;</div>

<div><span class=3D"Apple-tab-span" style=3D"white-space:pre">	</span>&lt;/=
target&gt;</div><div><span class=3D"Apple-tab-span" style=3D"white-space:pr=
e">	</span>&lt;target name=3D&quot;createEar&quot;&gt;</div><div><span clas=
s=3D"Apple-tab-span" style=3D"white-space:pre">			</span>&lt;earExport earp=
rojectname=3D&quot;CisAccountEjbUnitTestEAR&quot; earexportfile=3D&quot;C:/=
tmp/CisAccountEjbV2UnitTest/dist/CisAccountEjbUnitTestEAR.ear&quot;/&gt;=A0=
</div>

<div><span class=3D"Apple-tab-span" style=3D"white-space:pre">		</span>&lt;=
/target&gt;</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>&lt;path id=3D&quot;cactus.classpath&quot;&gt;</div>

<div><span class=3D"Apple-tab-span" style=3D"white-space:pre">		</span>&lt;=
pathelement location=3D&quot;${project.lib}/aspectjrt-1.2.1.jar&quot; /&gt;=
</div><div><span class=3D"Apple-tab-span" style=3D"white-space:pre">		</spa=
n>&lt;pathelement location=3D&quot;${project.lib}/cactus-1.7.2.jar&quot; /&=
gt;</div>

<div><span class=3D"Apple-tab-span" style=3D"white-space:pre">		</span>&lt;=
pathelement location=3D&quot;${project.lib}/cargo-0.5.jar&quot; /&gt;</div>=
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre">		</span>&lt;=
pathelement location=3D&quot;${project.lib}/cactus-ant-1.7.2.jar&quot; /&gt=
;</div>

<div><span class=3D"Apple-tab-span" style=3D"white-space:pre">		</span>&lt;=
pathelement location=3D&quot;${project.lib}/commons-httpclient-2.0.2.jar&qu=
ot; /&gt;</div><div><span class=3D"Apple-tab-span" style=3D"white-space:pre=
">		</span>&lt;pathelement location=3D&quot;${project.lib}/commons-logging-=
1.0.4.jar&quot; /&gt;<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>&lt;/=
path&gt;</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>&lt;target name=3D&quot;cactusTest&quot;&gt;</div>

<div><span class=3D"Apple-tab-span" style=3D"white-space:pre">		</span>&lt;=
taskdef resource=3D&quot;cactus.tasks&quot; classpathref=3D&quot;cactus.cla=
sspath&quot; /&gt;</div><div><span class=3D"Apple-tab-span" style=3D"white-=
space:pre">		</span>&lt;cactus printsummary=3D&quot;yes&quot; haltonfailure=
=3D&quot;no&quot; earfile=3D&quot;C:/tmp/CisAccountEjbV2UnitTest/dist/CisAc=
countEjbUnitTestEAR.ear&quot;&gt;</div>

<div><span class=3D"Apple-tab-span" style=3D"white-space:pre">			</span>&lt=
;classpath refid=3D&quot;test.classpath&quot; /&gt;<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;formatter type=3D&quot;xm=
l&quot; /&gt;</div>

<div><span class=3D"Apple-tab-span" style=3D"white-space:pre">			</span>&lt=
;batchtest todir=3D&quot;${report.dir}&quot;&gt;<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>&lt;fileset dir=3D&quot;${src.=
dir}&quot;&gt;<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&quot;**/*Test.java&quot; /&gt;<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>&lt;/fileset&gt;</div>

<div><span class=3D"Apple-tab-span" style=3D"white-space:pre">			</span>&lt=
;/batchtest&gt;<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;/cactus&gt;</div>

<div><span class=3D"Apple-tab-span" style=3D"white-space:pre">		</span>&lt;=
junitreport todir=3D&quot;${report.dir}/report&quot;&gt;</div><div><span cl=
ass=3D"Apple-tab-span" style=3D"white-space:pre">			</span>&lt;fileset dir=
=3D&quot;${report.dir}&quot;&gt;</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>&lt;in=
clude name=3D&quot;TEST-*.xml&quot;/&gt;</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>&lt;/fileset&gt;</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>&lt;report=
 format=3D&quot;frames&quot; todir=3D&quot;${report.dir}/report/html&quot;/=
&gt;</div>

<div><span class=3D"Apple-tab-span" style=3D"white-space:pre">		</span>&lt;=
/junitreport&gt;</div><div><span class=3D"Apple-tab-span" style=3D"white-sp=
ace:pre">	</span>&lt;/target&gt;</div><div>&lt;/project&gt;</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 &quot;headless&quot; mode then I ge=
t &quot;<b>java.lang.VerifyError: (class: org/apache/cactus/integration/ant=
/RunServerTestsTask, method: execute signature: ()V) Incompatible argument =
to method</b>&quot; 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--