ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Cryder" <christi...@enhydra.org>
Subject Problem with junitreport in 1.4
Date Mon, 01 Oct 2001 19:09:25 GMT
Hi folks,

I'm having a problem using the junitreport taskdef in 1.4. If I use the 1.3
optional jar it works; if I use the 1.4 optional jar it fails like this (see
attached log for full stacktrace):
----------------
test.report.html:
[junitreport] Using Xalan version: 1.2.2

BUILD FAILED

java.lang.NoClassDefFoundError: com/ibm/bsf/util/BSFEngineImpl
	at java.lang.ClassLoader.defineClass0(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:120)
	at
org.apache.xalan.xpath.ExtensionFunctionHandler.<init>(ExtensionFunctionHand
ler.java:110)
      ...
----------------

Here's what my target looks like in build.xml:

    <target name="test.report.html" if="do.report.tests"
            description="Convert the junit xml files to html" >
        <junitreport todir="${report.tests}">
        	<fileset dir="${report.tests}">
        		<include name="TEST-*.xml"/>
        	</fileset>
        	<report format="frames" todir="${report.tests}/html"/>
        </junitreport>
    </target>

Just to reiterate--if I simply swap in the 1.3 optional jar everything
works. Anyone have a suggestion on how to handle this?

Thanks,
Christian
------------------------------------------------
Christian Cryder [christianc@enhydra.org]
Barracuda - MVC Component Framework for Webapps
http://barracuda.enhydra.org
------------------------------------------------
        "What a great time to be a Geek"

Mime
View raw message