ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 645] New - XSL Failure on JUnit TestCase/TestSuite
Date Mon, 19 Feb 2001 22:57:25 GMT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=645

*** shadow/645	Mon Feb 19 14:57:24 2001
--- shadow/645.tmp.10033	Mon Feb 19 14:57:24 2001
***************
*** 0 ****
--- 1,106 ----
+ +============================================================================+
+ | XSL Failure on JUnit TestCase/TestSuite                                    |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 645                         Product: Ant                     |
+ |       Status: NEW                         Version: 1.3 Beta 2              |
+ |   Resolution:                            Platform: PC                      |
+ |     Severity: Major                    OS/Version: Windows NT/2K           |
+ |     Priority:                           Component: Build Process           |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: ant-dev@jakarta.apache.org                                   |
+ |  Reported By: patrick.stdennis@med.ge.com                                  |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ I get a SAX exception when generating a junit report.  I've tried against a 
+ TestCase and a TestSuite, Frames and NoFrames settings.  I've included the 
+ stack trace.  I'm using JDK 1.2.2/Junit 3.4/ant 1.3beta2/NT4.0SP6.  My 
+ build.xml file is not too complicated:
+ 
+ <project name="MyProject" default="dist" basedir=".">
+ 
+   <!-- set global properties for this build -->
+   <property name="src" value="." />
+   <property name="build" value="build" />
+   <property name="dist"  value="dist" />
+ 
+   <target name="prepare">
+     <!-- Create the time stamp -->
+     <tstamp/>
+     <!-- Create the build directory structure used by compile -->
+     <mkdir dir="${build}" />
+   </target>
+ 
+   <target name="compile" depends="prepare">
+     <!-- Compile the java code from ${src} into ${build} -->
+     <property name="build.compiler" value="jikes"/>
+     <javac srcdir="${src}" destdir="${build}" />
+   </target>
+ 
+   <target name="unittest" depends="compile">
+     <junit printsummary="yes" haltonfailure="no">
+       <test name="PatrickTest" haltonfailure="no" outfile="result" >
+         <formatter type="xml" />
+       </test>
+     </junit>
+     <mkdir dir="reports"/>    
+     <junitreport todir="./reports">
+       <fileset dir="./reports">
+         <include name="result.xml"/>
+       </fileset>
+       <report format="noframes" todir="./report/html"/>
+     </junitreport>
+   </target>
+   
+ 
+   
+   <target name="dist" depends="unittest">
+     <!-- Create the ${dist}/lib directory -->
+     <mkdir dir="${dist}/lib" />
+ 
+     <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
+     <jar jarfile="${dist}/lib/MyProject-${DSTAMP}.jar" basedir="${build}" />
+   </target>
+ 
+   <target name="clean">
+     <!-- Delete the ${build} and ${dist} directory trees -->
+     <delete dir="${build}" />
+     <delete dir="${dist}" />
+   </target>
+ </project>
+ 
+ Here's the stack trace
+ 
+ XSL Error: Cannot use a DTMLiaison for a input DOM node... pass a 
+ org.apache.xalan.xpath.xdom.Xerces
+ Liaison instead!
+ XSL Error: SAX Exception
+ org.apache.xalan.xslt.XSLProcessorException:
+         at org.apache.xalan.xslt.XSLTEngineImpl.error(XSLTEngineImpl.java:1676)
+         at org.apache.xalan.xslt.XSLTEngineImpl.error(XSLTEngineImpl.java:1568)
+         at org.apache.xalan.xslt.XSLTEngineImpl.getSourceTreeFromInput
+ (XSLTEngineImpl.java:826)
+         at org.apache.xalan.xslt.XSLTEngineImpl.process(Compiled Code)
+         at 
+ org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.transform
+ (AggregateTran
+ sformer.java:454)
+         at 
+ org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.createSinglePa
+ geSummary
+ (AggregateTransformer.java:266)
+         at 
+ org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.transform
+ (AggregateTran
+ sformer.java:229)
+         at 
+ org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.execute
+ (Compiled Code)
+         at org.apache.tools.ant.Target.execute(Compiled Code)
+         at org.apache.tools.ant.Project.runTarget(Project.java:898)
+         at org.apache.tools.ant.Project.executeTarget(Compiled Code)
+         at org.apache.tools.ant.Project.executeTargets(Compiled Code)
+         at org.apache.tools.ant.Main.runBuild(Compiled Code)
+         at org.apache.tools.ant.Main.main(Main.java:149)

Mime
View raw message