Junit Report Problems

2001-11-28 Thread Mike Downes

I am running Cruisecontrol 1.2.1a, ant v1.4.1, junit v3.6 and
xalan-j_2_2_D10. I want to parse the xml report generated by the junit tag
in build.xml.

I have included the optional.jar file from apache and have installed
the jaxp.jar and cimson.jar xml parser. On a build i get the following
error:

Has anyone successfully implemented the XML to HTML function in ant?

C:\framework\build.xml:73: 
java.lang.VerifyError: 
(class:
org/apache/tools/ant/taskdefs/optional/junit/AggregateTransformer, 
method: getXSLStreamSource 
signature:
(Ljava/lang/String;)Lorg/apache/xalan/xslt/XSLTInputSource;) 
Incompatible object argument for function call

--- Nested Exception ---
java.lang.VerifyError: (class:
org/apache/tools/ant/taskdefs/optional/junit/Aggr
egateTransformer, method: getXSLStreamSource signature:
(Ljava/lang/String;)Lorg
/apache/xalan/xslt/XSLTInputSource;) Incompatible object argument for
function c
all
at
org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.crea
teReport(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.tools.ant.IntrospectionHelper$1.create(IntrospectionHelper
.java:167)
at
org.apache.tools.ant.IntrospectionHelper.createElement(IntrospectionH
elper.java:275)
at
org.apache.tools.ant.ProjectHelper$NestedElementHandler.init(ProjectH
elper.java:535)
at
org.apache.tools.ant.ProjectHelper$TaskHandler.startElement(ProjectHe
lper.java:499)
at
org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.ja
va:329)
at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1451)
at
org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
at
org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
at
org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
at
org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)

at
org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)

at javax.xml.parsers.SAXParser.parse(SAXParser.java:317)
at
org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java:117)
at
org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.jav
a:85)
at org.apache.tools.ant.Main.runBuild(Main.java:403)
at org.apache.tools.ant.Main.main(Main.java:149)


Mike

To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




winmail.dat
Description: application/ms-tnef

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


RE: Junit Report Problems

2001-11-28 Thread Stephane Bailliez


Compatibility problem between Xalan used when compiling Ant and Xalan you
are running.
Are you really using the compatibility jar from xalan 2 instead of xalan1 ?

if possible stick to xalan2 and do not use the xalan1 api.

-- 
 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: Mike Downes [mailto:[EMAIL PROTECTED]] 
 Sent: Wednesday, November 28, 2001 1:40 PM
 To:   [EMAIL PROTECTED]
 Subject:  Junit Report Problems
 
 I am running Cruisecontrol 1.2.1a, ant v1.4.1, junit v3.6 and
 xalan-j_2_2_D10. I want to parse the xml report generated by the junit tag
 in build.xml.
 
 I have included the optional.jar file from apache and have installed
 the jaxp.jar and cimson.jar xml parser. On a build i get the following
 error:
 
 Has anyone successfully implemented the XML to HTML function in ant?
 
 C:\framework\build.xml:73: 
 java.lang.VerifyError: 
 (class:
 org/apache/tools/ant/taskdefs/optional/junit/AggregateTransformer, 
 method: getXSLStreamSource 
 signature:
 (Ljava/lang/String;)Lorg/apache/xalan/xslt/XSLTInputSource;) 
 Incompatible object argument for function call
 
 --- Nested Exception ---
 java.lang.VerifyError: (class:
 org/apache/tools/ant/taskdefs/optional/junit/Aggr
 egateTransformer, method: getXSLStreamSource signature:
 (Ljava/lang/String;)Lorg
 /apache/xalan/xslt/XSLTInputSource;) Incompatible object argument for
 function c
 all
 at
 org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.crea
 teReport(Unknown Source)
 at java.lang.reflect.Method.invoke(Native Method)
 at
 org.apache.tools.ant.IntrospectionHelper$1.create(IntrospectionHelper
 .java:167)
 at
 org.apache.tools.ant.IntrospectionHelper.createElement(IntrospectionH
 elper.java:275)
 at
 org.apache.tools.ant.ProjectHelper$NestedElementHandler.init(ProjectH
 elper.java:535)
 at
 org.apache.tools.ant.ProjectHelper$TaskHandler.startElement(ProjectHe
 lper.java:499)
 at
 org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.ja
 va:329)
 at
 org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1451)
 at
 org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
 at
 org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
 at
 org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
 at
 org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
 at
 org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
 at
 org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
 at
 org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499)
 at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
 at
 org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
 
 at
 org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
 
 at javax.xml.parsers.SAXParser.parse(SAXParser.java:317)
 at
 org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java:117)
 at
 org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.jav
 a:85)
 at org.apache.tools.ant.Main.runBuild(Main.java:403)
 at org.apache.tools.ant.Main.main(Main.java:149)
 
 
 Mike
 
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
   File: ATT29170.txt  



RE: Junit Report Problems

2001-11-28 Thread Mike Downes

Hi Stephane

Thanks for you input on this, but can I clarify that xalan-j_2_2_D10 which
has xalanj1compat.jar and xalan-j_2_2_D13 which does not have the
xalanj1compat.jar should no longer be used.

Also are they not both xalan 2?

Regards

Mike

-Original Message-
From: Stephane Bailliez [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 28, 2001 1:53 PM
To: Ant Users List
Subject: RE: Junit Report Problems



Compatibility problem between Xalan used when compiling Ant and Xalan you
are running.
Are you really using the compatibility jar from xalan 2 instead of xalan1 ?

if possible stick to xalan2 and do not use the xalan1 api.

--
 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: Mike Downes [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, November 28, 2001 1:40 PM
 To:   [EMAIL PROTECTED]
 Subject:  Junit Report Problems

 I am running Cruisecontrol 1.2.1a, ant v1.4.1, junit v3.6 and
 xalan-j_2_2_D10. I want to parse the xml report generated by the junit tag
 in build.xml.

 I have included the optional.jar file from apache and have installed
 the jaxp.jar and cimson.jar xml parser. On a build i get the following
 error:

 Has anyone successfully implemented the XML to HTML function in ant?

 C:\framework\build.xml:73:
 java.lang.VerifyError:
 (class:
 org/apache/tools/ant/taskdefs/optional/junit/AggregateTransformer,
 method: getXSLStreamSource
 signature:
 (Ljava/lang/String;)Lorg/apache/xalan/xslt/XSLTInputSource;)
 Incompatible object argument for function call

 --- Nested Exception ---
 java.lang.VerifyError: (class:
 org/apache/tools/ant/taskdefs/optional/junit/Aggr
 egateTransformer, method: getXSLStreamSource signature:
 (Ljava/lang/String;)Lorg
 /apache/xalan/xslt/XSLTInputSource;) Incompatible object argument for
 function c
 all
 at
 org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.crea
 teReport(Unknown Source)
 at java.lang.reflect.Method.invoke(Native Method)
 at
 org.apache.tools.ant.IntrospectionHelper$1.create(IntrospectionHelper
 .java:167)
 at
 org.apache.tools.ant.IntrospectionHelper.createElement(IntrospectionH
 elper.java:275)
 at
 org.apache.tools.ant.ProjectHelper$NestedElementHandler.init(ProjectH
 elper.java:535)
 at
 org.apache.tools.ant.ProjectHelper$TaskHandler.startElement(ProjectHe
 lper.java:499)
 at
 org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.ja
 va:329)
 at
 org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1451)
 at
 org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
 at
 org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
 at
 org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
 at
 org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
 at
 org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
 at
 org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
 at
 org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499)
 at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
 at
 org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)

 at
 org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)

 at javax.xml.parsers.SAXParser.parse(SAXParser.java:317)
 at
 org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java:117)
 at
 org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.jav
 a:85)
 at org.apache.tools.ant.Main.runBuild(Main.java:403)
 at org.apache.tools.ant.Main.main(Main.java:149)


 Mike

 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
   File: ATT29170.txt 


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Junit Report Problems

2001-11-28 Thread Stephane Bailliez

 -Original Message-
 From: Mike Downes [mailto:[EMAIL PROTECTED]]
 Hi Stephane

 Thanks for you input on this, but can I clarify that 
 xalan-j_2_2_D10 which
 has xalanj1compat.jar and xalan-j_2_2_D13 which does not have the
 xalanj1compat.jar should no longer be used.

 Also are they not both xalan 2?

Yes they are but as stated they are developpement version that is: not
stable.
The Xalan team will not ship anymore Xalan compatibility API for Xalan 1
with Xalan2.

If you require the Xalan 1 API you'd better migrate to JAXP if possible or
to the Xalan 2 API.

Small note: If you have a code that use the Xalan1 API and that was compiled
with Xalan1 chance is that it will not work with the Xalan1 compatibility
jar. You must compile with the compatibility jar otherwise you will get the
error you have.
Unless we did a mistake, optional.jar was compiled with the Xalan1
compatibility jar.


The current code in JUnit report looks first for Xalan2 then Xalan1. JUnit
report needs Xalan because it makes use in the stylesheet of a
xalan-specific redirect extension.

Stephane

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]