ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ANDERSON,JIM (HP-FtCollins,ex1)" <jim_ander...@hp.com>
Subject RE: Another JUnitReport problem
Date Fri, 20 Jul 2001 16:59:15 GMT
OK, So I've got the correct version (1.2.2) and it's in my classpath (along
with xerces) and I'm getting the following error:
XSL Error: Cannot use a DTMLiaison for a input DOM node... pass a
org.apache.xalan.xpath.xdom.XercesLiaison instead!

I'll sign off here before I list all the debug details.
Thanks again for the quick answer on finding xalan!  
jima

------- Details of problem -------
My classpath is currently:
c:\apps\xalan-j_1_2_2\xalan.jar;c:\apps\xalan-j_1_2_2\xerces.jar;

The build.xml file is:
<project name="junitreport test" default="ttt" basedir=".">
  <target name="ttt">
    <junitreport todir="./reports">
      <fileset dir=".">
        <include name="TEST-*.xml"/>
      </fileset>
      <report format="frames" todir="./html"/>
    </junitreport>
  </target>
</project>

The input file (TEST-SimpleTest.xml) is:
<?xml version="1.0"?>
<testsuite name="SimpleTest" tests="2" failures="0" errors="0" time="0.09">
  <testcase name="testGoodFind" time="0"></testcase>
  <testcase name="testBadFind" time="0"></testcase>
</testsuite>

And the output (with -debug) is:
Ant version 1.3 compiled on March 2 2001

Buildfile: build.xml
Setting project property: ant.java.version -> 1.3
Detected Java Version: 1.3
Detected OS: Windows 2000
 +User task: tar     org.apache.tools.ant.taskdefs.Tar
 +User task: fail     org.apache.tools.ant.taskdefs.Exit
 +User task: uptodate     org.apache.tools.ant.taskdefs.UpToDate
 +User task: java     org.apache.tools.ant.taskdefs.Java
 +User task: execon     org.apache.tools.ant.taskdefs.ExecuteOn
 +User task: echo     org.apache.tools.ant.taskdefs.Echo
 +User task: native2ascii
org.apache.tools.ant.taskdefs.optional.Native2Ascii
 +User task: jjtree     org.apache.tools.ant.taskdefs.optional.javacc.JJTree
 +User task: compileTask     org.apache.tools.ant.taskdefs.CompileTask
 +User task: chmod     org.apache.tools.ant.taskdefs.Chmod
 +User task: javadoc2     org.apache.tools.ant.taskdefs.Javadoc
 +User task: deltree     org.apache.tools.ant.taskdefs.Deltree
 +User task: cvs     org.apache.tools.ant.taskdefs.Cvs
 +User task: jlink
org.apache.tools.ant.taskdefs.optional.jlink.JlinkTask
 +User task: tstamp     org.apache.tools.ant.taskdefs.Tstamp
 +User task: unjar     org.apache.tools.ant.taskdefs.Expand
 +User task: patch     org.apache.tools.ant.taskdefs.Patch
 +User task: sound
org.apache.tools.ant.taskdefs.optional.sound.SoundTask
 +User task: cccheckout
org.apache.tools.ant.taskdefs.optional.clearcase.CCCheckout
 +User task: mail     org.apache.tools.ant.taskdefs.SendEmail
 +User task: gzip     org.apache.tools.ant.taskdefs.GZip
 +User task: p4label
org.apache.tools.ant.taskdefs.optional.perforce.P4Label
 +User task: wlrun     org.apache.tools.ant.taskdefs.optional.ejb.WLRun
 +User task: copy     org.apache.tools.ant.taskdefs.Copy
 +User task: filter     org.apache.tools.ant.taskdefs.Filter
 +User task: jar     org.apache.tools.ant.taskdefs.Jar
 +User task: unzip     org.apache.tools.ant.taskdefs.Expand
 +User task: rename     org.apache.tools.ant.taskdefs.Rename
 +User task: propertyfile
org.apache.tools.ant.taskdefs.optional.PropertyFile
 +User task: copyfile     org.apache.tools.ant.taskdefs.Copyfile
 +User task: p4submit
org.apache.tools.ant.taskdefs.optional.perforce.P4Submit
 +User task: gunzip     org.apache.tools.ant.taskdefs.GUnzip
 +User task: antcall     org.apache.tools.ant.taskdefs.CallTarget
 +User task: taskdef     org.apache.tools.ant.taskdefs.Taskdef
 +User task: mkdir     org.apache.tools.ant.taskdefs.Mkdir
 +User task: sql     org.apache.tools.ant.taskdefs.SQLExec
 +User task: replace     org.apache.tools.ant.taskdefs.Replace
 +User task: ant     org.apache.tools.ant.taskdefs.Ant
 +User task: style     org.apache.tools.ant.taskdefs.XSLTProcess
 +User task: p4sync
org.apache.tools.ant.taskdefs.optional.perforce.P4Sync
 +User task: fixcrlf     org.apache.tools.ant.taskdefs.FixCRLF
 +User task: vssget     org.apache.tools.ant.taskdefs.optional.vss.MSVSSGET
 +User task: genkey     org.apache.tools.ant.taskdefs.GenerateKey
 +User task: p4edit
org.apache.tools.ant.taskdefs.optional.perforce.P4Edit
 +User task: zip     org.apache.tools.ant.taskdefs.Zip
 +User task: antstructure     org.apache.tools.ant.taskdefs.AntStructure
 +User task: javah     org.apache.tools.ant.taskdefs.optional.Javah
 +User task: javac     org.apache.tools.ant.taskdefs.Javac
 +User task: test     org.apache.tools.ant.taskdefs.optional.Test
 +User task: cab     org.apache.tools.ant.taskdefs.optional.Cab
 +User task: mparse
org.apache.tools.ant.taskdefs.optional.metamata.MParse
 +User task: ccuncheckout
org.apache.tools.ant.taskdefs.optional.clearcase.CCUnCheckout
 +User task: ejbjar     org.apache.tools.ant.taskdefs.optional.ejb.EjbJar
 +User task: available     org.apache.tools.ant.taskdefs.Available
 +User task: p4have
org.apache.tools.ant.taskdefs.optional.perforce.P4Have
 +User task: vsslabel
org.apache.tools.ant.taskdefs.optional.vss.MSVSSLABEL
 +User task: wljspc     org.apache.tools.ant.taskdefs.optional.jsp.WLJspc
 +User task: move     org.apache.tools.ant.taskdefs.Move
 +User task: junitreport
org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator
 +User task: csc     org.apache.tools.ant.taskdefs.optional.dotnet.CSharp
 +User task: p4change
org.apache.tools.ant.taskdefs.optional.perforce.P4Change
 +User task: signjar     org.apache.tools.ant.taskdefs.SignJar
 +User task: javacc     org.apache.tools.ant.taskdefs.optional.javacc.JavaCC
 +User task: cccheckin
org.apache.tools.ant.taskdefs.optional.clearcase.CCCheckin
 +User task: property     org.apache.tools.ant.taskdefs.Property
 +User task: unwar     org.apache.tools.ant.taskdefs.Expand
 +User task: touch     org.apache.tools.ant.taskdefs.Touch
 +User task: ilasm     org.apache.tools.ant.taskdefs.optional.dotnet.Ilasm
 +User task: get     org.apache.tools.ant.taskdefs.Get
 +User task: stylebook     org.apache.tools.ant.taskdefs.optional.StyleBook
 +User task: javadoc     org.apache.tools.ant.taskdefs.Javadoc
 +User task: netrexxc     org.apache.tools.ant.taskdefs.optional.NetRexxC
 +User task: antlr     org.apache.tools.ant.taskdefs.optional.ANTLR
 +User task: untar     org.apache.tools.ant.taskdefs.Untar
 +User task: delete     org.apache.tools.ant.taskdefs.Delete
 +User task: ejbc     org.apache.tools.ant.taskdefs.optional.ejb.Ejbc
 +User task: ddcreator
org.apache.tools.ant.taskdefs.optional.ejb.DDCreator
 +User task: copydir     org.apache.tools.ant.taskdefs.Copydir
 +User task: war     org.apache.tools.ant.taskdefs.War
 +User task: ccupdate
org.apache.tools.ant.taskdefs.optional.clearcase.CCUpdate
 +User task: depend     org.apache.tools.ant.taskdefs.optional.depend.Depend
 +User task: renameext
org.apache.tools.ant.taskdefs.optional.RenameExtensions
 +User task: exec     org.apache.tools.ant.taskdefs.ExecTask
 +User task: apply     org.apache.tools.ant.taskdefs.Transform
 +User task: wlstop     org.apache.tools.ant.taskdefs.optional.ejb.WLStop
 +User task: rmic     org.apache.tools.ant.taskdefs.Rmic
 +User datatype: fileset     org.apache.tools.ant.types.FileSet
 +User datatype: patternset     org.apache.tools.ant.types.PatternSet
 +User datatype: path     org.apache.tools.ant.types.Path
 +User datatype: mapper     org.apache.tools.ant.types.Mapper
Setting project property: java.runtime.name -> Java(TM) 2 Runtime
Environment, Standard Edition
Setting project property: sun.boot.library.path -> C:\JDK1.3.0_02\jre\bin
Setting project property: java.vm.version -> 1.3.0_02
Setting project property: java.vm.vendor -> Sun Microsystems Inc.
Setting project property: java.vendor.url -> http://java.sun.com/
Setting project property: path.separator -> ;
Setting project property: java.vm.name -> Java HotSpot(TM) Client VM
Setting project property: file.encoding.pkg -> sun.io
Setting project property: java.vm.specification.name -> Java Virtual Machine
Specification
Setting project property: user.dir -> C:\cps\at
Setting project property: java.runtime.version -> 1.3.0_02
Setting project property: java.awt.graphicsenv ->
sun.awt.Win32GraphicsEnvironment
Setting project property: os.arch -> x86
Setting project property: java.io.tmpdir ->
C:\DOCUME~1\jimander\LOCALS~1\Temp\
Setting project property: line.separator -> 

Setting project property: java.vm.specification.vendor -> Sun Microsystems
Inc.
Setting project property: java.awt.fonts -> 
Setting project property: os.name -> Windows 2000
Setting project property: ant.home -> C:\apps\ant
Setting project property: java.library.path ->
C:\JDK1.3.0_02\BIN;.;C:\WINNT\System32;C:\WINNT;c:\jdk1.3.0_02\bin;C:\Perl\b
in\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;c:\program
files\Microsoft Visual Studio\VC98\bin;c:\JONAS\bin\nt;c:\apps\ant\bin;
Setting project property: java.specification.name -> Java Platform API
Specification
Setting project property: java.class.version -> 47.0
Setting project property: os.version -> 5.0
Setting project property: user.home -> C:\Documents and Settings\jimander
Setting project property: user.timezone -> 
Setting project property: java.awt.printerjob -> sun.awt.windows.WPrinterJob
Setting project property: file.encoding -> Cp1252
Setting project property: java.specification.version -> 1.3
Setting project property: java.class.path ->
c:\jdk1.3.0_02\lib\tools.jar;C:\apps\ant\lib\parser.jar;C:\apps\ant\lib\opti
onal.jar;C:\apps\ant\lib\jaxp.jar;C:\apps\ant\lib\jakarta-ant-1.3-optional.j
ar;C:\apps\ant\lib\ant.jar;c:\apps\xalan-j_1_2_2\xalan.jar;c:\apps\xalan-j_1
_2_2\xerces.jar;c:\apps\checkstyle\checkstyle-all-1.2.jar
Setting project property: user.name -> JIMANDER
Setting project property: java.vm.specification.version -> 1.0
Setting project property: java.home -> C:\JDK1.3.0_02\jre
Setting project property: user.language -> en
Setting project property: java.specification.vendor -> Sun Microsystems Inc.
Setting project property: awt.toolkit -> sun.awt.windows.WToolkit
Setting project property: java.vm.info -> mixed mode
Setting project property: java.version -> 1.3.0_02
Setting project property: java.ext.dirs -> C:\JDK1.3.0_02\jre\lib\ext
Setting project property: sun.boot.class.path ->
C:\JDK1.3.0_02\jre\lib\rt.jar;C:\JDK1.3.0_02\jre\lib\i18n.jar;C:\JDK1.3.0_02
\jre\lib\sunrsasign.jar;C:\JDK1.3.0_02\jre\classes
Setting project property: java.vendor -> Sun Microsystems Inc.
Setting project property: file.separator -> \
Setting project property: java.vendor.url.bug ->
http://java.sun.com/cgi-bin/bugreport.cgi
Setting project property: sun.io.unicode.encoding -> UnicodeLittle
Setting project property: sun.cpu.endian -> little
Setting project property: user.region -> US
Setting project property: sun.cpu.isalist -> pentium i486 i386
Setting ro project property: ant.file -> C:\cps\at\build.xml
parsing buildfile C:\cps\at\build.xml with URI = file:C:/cps/at/build.xml
Setting ro project property: ant.project.name -> junitreport test
Setting project property: basedir -> C:\cps\at
Project base dir set to: C:\cps\at
 +Target: ttt
   +Task: junitreport
Build sequence for target `ttt' is [ttt]
Complete build sequence is [ttt]

ttt:
[junitreport] Parsing file: 'C:\cps\at\TEST-SimpleTest.xml'
[junitreport] Applying 'all-packages.xsl'. Generating
'C:\cps\at\html\all-packages.html'
XSL Error: Cannot use a DTMLiaison for a input DOM node... pass a
org.apache.xalan.xpath.xdom.XercesLiaison instead!
XSL Error: SAX Exception
org.apache.xalan.xslt.XSLProcessorException: 
	at
org.apache.xalan.xslt.XSLTEngineImpl.error(XSLTEngineImpl.java:1799)
	at
org.apache.xalan.xslt.XSLTEngineImpl.error(XSLTEngineImpl.java:1691)
	at
org.apache.xalan.xslt.XSLTEngineImpl.getSourceTreeFromInput(XSLTEngineImpl.j
ava:919)
	at
org.apache.xalan.xslt.XSLTEngineImpl.process(XSLTEngineImpl.java:643)
	at
org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.transform(
AggregateTransformer.java:460)
	at
org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.createPack
ageList(AggregateTransformer.java:310)
	at
org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.transform(
AggregateTransformer.java:233)
	at
org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.execute(XML
ResultAggregator.java:169)
	at org.apache.tools.ant.Target.execute(Target.java:153)
	at org.apache.tools.ant.Project.runTarget(Project.java:898)
	at org.apache.tools.ant.Project.executeTarget(Project.java:536)
	at org.apache.tools.ant.Project.executeTargets(Project.java:510)
	at org.apache.tools.ant.Main.runBuild(Main.java:421)
	at org.apache.tools.ant.Main.main(Main.java:149)

BUILD FAILED

C:\cps\at\build.xml:5: Errors while applying transformations
--- Nested Exception ---
org.apache.xalan.xslt.XSLProcessorException: 
	at
org.apache.xalan.xslt.XSLTEngineImpl.error(XSLTEngineImpl.java:1799)
	at
org.apache.xalan.xslt.XSLTEngineImpl.error(XSLTEngineImpl.java:1691)
	at
org.apache.xalan.xslt.XSLTEngineImpl.getSourceTreeFromInput(XSLTEngineImpl.j
ava:919)
	at
org.apache.xalan.xslt.XSLTEngineImpl.process(XSLTEngineImpl.java:643)
	at
org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.transform(
AggregateTransformer.java:460)
	at
org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.createPack
ageList(AggregateTransformer.java:310)
	at
org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.transform(
AggregateTransformer.java:233)
	at
org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.execute(XML
ResultAggregator.java:169)
	at org.apache.tools.ant.Target.execute(Target.java:153)
	at org.apache.tools.ant.Project.runTarget(Project.java:898)
	at org.apache.tools.ant.Project.executeTarget(Project.java:536)
	at org.apache.tools.ant.Project.executeTargets(Project.java:510)
	at org.apache.tools.ant.Main.runBuild(Main.java:421)
	at org.apache.tools.ant.Main.main(Main.java:149)

Total time: 1 second

> -----Original Message-----
> From: Conor MacNeill [mailto:conor@cortexebusiness.com.au]
> Sent: Friday, July 20, 2001 9:59 AM
> To: ant-user@jakarta.apache.org
> Subject: Re: Another JUnitReport problem
> 
> 
> Try here
> http://xml.apache.org/dist/xalan-j/old/
> 
> You should be able to find the version you want.
> 
> Conor
> 
> 
> ----- Original Message -----
> From: "ANDERSON,JIM (HP-FtCollins,ex1)" <jim_anderson@hp.com>
> To: <ant-user@jakarta.apache.org>
> Sent: Saturday, July 21, 2001 1:46 AM
> Subject: RE: Another JUnitReport problem
> 
> 
> OK - I give.  I might have to admit that I'm not smart enough 
> to use this
> tool.  I can't for the life of me find xalan 1.2.2.  If it's 
> on the ant
> website (jakarta.apache.org/ant) I couldn't see it.
> Could some kind soul give me a pointer to where to find it?
> 
> Thanks!
> jima
> jim_anderson@Hp.com
> 
> > -----Original Message-----
> > From: Stephane Bailliez [mailto:sbailliez@imediation.com]
> > Sent: Thursday, July 12, 2001 8:32 AM
> > To: ant-user@jakarta.apache.org
> > Subject: RE: Another JUnitReport problem
> >
> >
> >
> > It does not work with xalan 2 (sorry the doc says it works
> > but it does not
> > because optional.jar was not built with xalan1 compatibility
> > jar). <report>
> > works only with xalan 1.2.2
> >
> > Plus I'm not sure that the xsl works with Xalan 2.2D6. I
> > submitted a bug
> > that I had with a xsl was similar to the junit one to
> > xalan-dev a few days
> > ago (EmptyStackException) that Scott Boag kindly fixed in the
> > next hours.
> > Should be fixed in CVS.
> >
> > --
> >  St├ęphane Bailliez
> >  Software Engineer, Paris - France
> >  iMediation - http://www.imediation.com
> >  Disclaimer: All the opinions expressed above are mine and
> > not those from my
> > company.
> >
> >
> >
> > > -----Original Message-----
> > > From: Klara Ward [mailto:klara.ward@debitech.com]
> > > Sent: Thursday, July 12, 2001 11:46 AM
> > > To: ant-user
> > > Subject: Another JUnitReport problem
> > >
> > >
> > > I use (or at least try out for a possible later need)
> > > junitreport. I've
> > > succeded in getting the
> > > TESTS-TestSuites.xml, I didn't have to add anything to my
> > > classpath (it's
> > > really non-existing on my machine, I use different classpaths
> > > for different
> > > situations) I just had to put xalan.jar and xerces.jar in
> > > ANT_HOME/lib. But
> > > I couldn't use the nested report tag. I read what was said on
> > > the list about
> > > it but I couldn't find the solution to the problem. I tried adding
> > > xalanj1compat.jar and I got from one error
> > >
> > > (java.lang.NoClassDefFoundError:
> > > org/apache/xalan/xslt/XSLTInputSource) to
> > > another
> > >
> > > (java.lang.VerifyError: (class: org/apache/tools/ant/taskde
> > > fs/optional/junit/AggregateTransformer, method: getXSLStreamSource
> > > signature: (Ljava/lang/String;)Lo
> > > rg/apache/xalan/xslt/XSLTInputSource;) Incompatible object
> > > argument for
> > > function call).
> > >
> > > I also tried removing jaxp.jar and parser.jar from the lib,
> > > but that didn't
> > > help either.
> > >
> > > My junitreport looks like this:
> > >     <target name="junitreport" depends="init">
> > >         <junitreport todir="${testresults}">
> > >     <fileset dir="${testresults}">
> > >                 <include name="TEST-*.xml"/>
> > >             </fileset>
> > >     <report format="frames" />
> > >         </junitreport>
> > >     </target>
> > > the report tag is on line 167
> > > and I get this error:
> > >
> > > C:\anttestvecommon\builddebitech.xml:167:
> > > java.lang.VerifyError: (class:
> > > org/apache/tools/ant/taskde
> > > fs/optional/junit/AggregateTransformer, method: getXSLStreamSource
> > > signature: (Ljava/lang/String;)Lo
> > > rg/apache/xalan/xslt/XSLTInputSource;) Incompatible object
> > > argument for
> > > function call
> > > --- Nested Exception ---
> > > java.lang.VerifyError: (class:
> > >
> > 
> org/apache/tools/ant/taskdefs/optional/junit/AggregateTransformer, me
> > > thod: getXSLStreamSource signature:
> > > (Ljava/lang/String;)Lorg/apache/xalan/xslt/XSLTInputSource;) Inc
> > > ompatible object argument for function call
> > >         at
> > > org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregat
> > > or.createRepor
> > > t(XMLResultAg
> > > gregator.java:114)
> > >         at java.lang.reflect.Method.invoke(Native Method)
> > >         at
> > > org.apache.tools.ant.IntrospectionHelper$1.create(Introspectio
> > > nHelper.java:1
> > > 67)
> > >         at
> > > org.apache.tools.ant.IntrospectionHelper.createElement(Introsp
> > > ectionHelper.j
> > > ava:275)
> > >         at
> > > org.apache.tools.ant.ProjectHelper$NestedElementHandler.init(P
> > > rojectHelper.j
> > > ava:535)
> > >         at
> > > org.apache.tools.ant.ProjectHelper$TaskHandler.startElement(Pr
> > > ojectHelper.ja
> > > va:499)
> > >         at
> > > org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAda
> > > pter.java:329)
> > >         at
> > >
> > 
> org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
> > >         at
> > > org.apache.xerces.validators.common.XMLValidator.callStartElem
> > > ent(XMLValidat
> > > or.java:1191)
> > >
> > >         at
> > > org.apache.xerces.framework.XMLDocumentScanner.scanElement(XML
> > > DocumentScanne
> > > r.java:1862)
> > >         at
> > > org.apache.xerces.framework.XMLDocumentScanner$ContentDispatch
> > > er.dispatch(XM
> > > LDocumentScan
> > > ner.java:1238)
> > >         at
> > > org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDo
> > > cumentScanner.
> > > java:381)
> > >         at
> > > org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
> > >         at
> > >
> > 
> org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
> > >         at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
> > >         at
> > > org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java:117)
> > >         at
> > > org.apache.tools.ant.ProjectHelper.configureProject(ProjectHel
> > > per.java:85)
> > >         at org.apache.tools.ant.Main.runBuild(Main.java:403)
> > >         at org.apache.tools.ant.Main.main(Main.java:149)
> > >
> > > Does anyone know how to fix this, preferably without adding
> > > anything to the
> > > classpath.
> > > I use xalan-j_2_2_D6
> > >
> >
> 
> 

Mime
View raw message