ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Lyon" <m...@stargus.com>
Subject junitreport task requirements question
Date Mon, 09 Jul 2001 16:05:42 GMT
Greetings,

I apologize in advance if this question has been clearly answered before on
the list. However, I've searched the list somewhat extensively and cannot
clearly determine what the answer is. Basically, I am totally mystified as
to what version of xalan.jar and xerces.jar I need to add to my \ant\lib
directory (and CLASSPATH?) to get the junitreport task to work correctly.

The Ant User Manual suggests that I can use the Xalan1 compatibility jar of
Xalan2, and the link from the Ant User Manual to Xalan1
(http://xml.apache.org/xalan/) leads to a page that indicates that,
"Xalan-Java 1 is no longer supported. Please see Xalan-Java 2". I have
downloaded the xalan-j_2_2_D6.zip distribution and extracted the files
'xerces.jar' and 'xalanj1compat.jar' to my ant\lib directory. I have also
added these files to my CLASSPATH, taking care to add xerces.jar as the
first CLASSPATH entry before *all* other classes. I have also removed
jaxp.jar and parser.jar from the ant\lib directory and my CLASSPATH.

I am using Ant 1.3 with Sun's JDK v1.3.02 and JUnit 3.7. There are no other
parsers in my CLASSPATH, or in the JAVA_HOME lib or lib\ext directory. Here
are some environment variable settings of note:

ANT_HOME=C:\ant

CLASSPATH=.;C:\ant\lib\xerces.jar;C:\jdk1.3.0_02\jre\lib\rt.jar;C:\jdk1.3.0_
02\lib\tools.jar;C:\junit3.7\junit.jar;C:\ant\lib\ant.jar;C:\ant\lib\xalanj1
compat.jar;C:\JDepend\lib\jdepend.jar;C:\javancss14.31\lib\javancss.jar;C:\j
avancss14.31\lib\ccl.jar;C:\javancss14.31\lib\jhbasic.jar

JAVA_HOME=C:\jdk1.3.0_02

I did not explicitly add the jakarta-ant-1.3-optional.jar to my CLASSPATH,
as the ANT_HOME environment variable is set, and all other optional Ant
tasks are working fine (e.g. VSSGET, FTP, JUnit, etc.).  I saw a post which
indicated that Ant 1.3 is only compatible with the Xalan1 compatibility jar
if it is compiled with it, but I am using the 1.3 binary release. When I try
to run a build, I receive the following error message:

BUILD FAILED

C:\latest\starman\projects\Master\build.xml:435: java.lang.VerifyError:
(class:
org/apache/tools/ant/taskdefs/optional/junit/AggregateTransformer, method:
getXS
LStreamSource signature:
(Ljava/lang/String;)Lorg/apache/xalan/xslt/XSLTInputSou
rce;) 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(XMLResultAggregator.java:114)
        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.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)

        at
org.apache.xerces.validators.common.XMLValidator.callStartElement(XML
Validator.java:1191)
        at
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumen
tScanner.java:1862)
        at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.disp
atch(XMLDocumentScanner.java:1238)
        at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS
canner.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(ProjectHelper.jav
a:85)
        at org.apache.tools.ant.Main.runBuild(Main.java:403)
        at org.apache.tools.ant.Main.main(Main.java:149)

Total time: 0 seconds
C:\latest\starman\projects\Master>

Sorry for the verbosity of this post. If anyone can shed any light on the
issue for me, I would be most appreciative!

Cheers,

Matthew Lyon
QA Engineer
Stargus, Inc.
300 Brickstone Square
c/o YAS Corporation, Fifth Floor
Andover, MA 01810
Phone: +1 (978) 749-0007x235
Fax: +1 (978) 749-2922
Mobile: +1 (617) 733-0944
E-Mail: matt@stargus.com
http://www.stargus.com




Mime
View raw message