RE: Problem with Centipede

"Manocha, Nikunj" <[email protected]>
Newsgroups gmane.comp.krysalis.user
Message-ID <C34B80A4EF89E24491CBE1E50D047C642AB6A0@sghdqms03.global.ad.sabre.com>
Hi Nick,

Thanx for your reply.
Here is the target that I am calling. I hope the code helps. I have narrowed it down to the problem. If i comment out the <formatter type="xml"> line then this problem does not come.
Can you give more concrete suggestions now?

Thanx,
Nikunj

***************************************************************

	<target depends="funct" name="jelly.test">
        <taskdef classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask" name="junit"/>
        <taskdef classname="org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator" name="junitreport"/>
		
        <property name="project.testlog" value="${project.build}/junit/results"/>
		<property name="project.forrestjunitr" value="${project.build}/forrest/junit/results"/>
	<property name="project.testlog" value="${project.build}/testlog"/>
   	 <mkdir dir="${project.testlog}"/>
        <junit fork="yes" maxmemory="256m">
			 <jvmarg value="-DPROJECT_HOME=${project.home}"/>
            <classpath>
              
				<path refid="externaljars.path"/>
                <pathelement path="${project.buildlib}/functionaltests.jar"/>
					
			</classpath>
<!-- PROBLEM IN THIS LINE -->
			 <formatter type="xml"/>
            <batchtest fork="yes" todir="${project.testlog}">
                <fileset dir="${project.classes}">
                    <include name="**/*Test.class"/> 
                </fileset>
            </batchtest>
        </junit>

        <junitreport todir="${project.testlog}">
            <fileset dir="${project.testlog}">
                <include name="TEST-*.xml"/>
            </fileset>
			<report format="frames" todir="${project.forrestjunitr}"/> 
        </junitreport>
      </target>

-----Original Message-----
From: Nick Chalko [mailto:[email protected]]
Sent: Saturday, July 19, 2003 12:07 PM
To: [email protected]
Subject: Re: Problem with Centipede


What is the contents of your build.xml
What JDK are you using.
I assume you are using Beta5.

This is some sortof classloader issue I would think.



Nikunj Manocha wrote:

> Hi All,
>
>   I am executing a jelly.test target using Ant. It executes fine and 
> gives desired results with ANT. But executing the same target with 
> Centipede gives me the following ouput. Though the build was 
> succesfull but the desired result was not. It says it is not able to 
> find org/w3c/dom/Node etc. What could be the problem. My Ant target 
> works fine and I have also specified all libraries in the module.xml.
>
> ***********************************************************************
>
> wmb@cabo <mailto:wmb@cabo> 
> /usr/local/metrics/sample_proj2/dummy_vob/proj>cent -buildfile 
> build.xml jelly.test
> Buildfile: build.xml
>
> init:
>
> funct:
> Copying 5 files to 
> /usr/local/metrics/sample_proj2/dummy_vob/proj/build/sample_proj2/classes/com/sabre/functionaltests
> Copying 5 files to 
> /usr/local/metrics/sample_proj2/dummy_vob/proj/build/sample_proj2/classes/com/sabre/functionaltests
> Building jar: 
> /usr/local/metrics/sample_proj2/dummy_vob/proj/build/sample_proj2/lib/functionaltests.jar
>
> jelly.test:
>
>                 --------- TARGET START: test.jelly -----------
>                 At 11:41 AM on Sat 19 July 2003
>
> Exception in thread "main" java.lang.NoClassDefFoundError: 
> org/w3c/dom/Node
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Class.java:120)
>         at 
> org.apache.tools.ant.taskdefs.optional.junit.FormatterElement.createFormatter(FormatterElement.java:127)
>         at 
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.createAndStoreFormatter(JUnitTestRunner.java:367)
>         at 
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:331)
> TEST com.sabre.functionaltests.ServiceRegressionTest FAILED
> Using Xalan version: Xalan Java 2.4.1
> Transform time: 1228ms
>
>                 --------- TARGET END: test.jelly -----------
>                 At 11:41 AM on Sat 19 July 2003
>
>
> BUILD SUCCESSFUL
> Total time: 3 seconds
> **********************************************************************
>
>  
>
> Thanx for your help.
>
> Regards,
>
> Nikunj
>
>
>  
> ------------------------------------------------------------------------
> Nikunj Manocha                                                      
> www.utdallas.edu/~Nikunj.Manocha/ 
> <http://www.utdallas.edu/%7ENikunj.Manocha/>
>                                               
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------
> Protect your PC - Click here <http://g.msn.com/8HMPENUS/2755??PS=> for 
> McAfee.com VirusScan Online 
> ------------------------------------------------------- This SF.net 
> email is sponsored by: VM Ware With VMware you can run multiple 
> operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / 
> Windows / Novell virtual machines at the same time. Free trial click 
> here: http://www.vmware.com/wl/offer/345/0 
> _______________________________________________ krysalis-users mailing 
> list [email protected] 
> https://lists.sourceforge.net/lists/listinfo/krysalis-users 



-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.