ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 30525] New: - exception using junitreport (java.lang.ClassNotFoundException: redirect)
Date Sun, 08 Aug 2004 17:51:44 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30525>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30525

exception using junitreport (java.lang.ClassNotFoundException: redirect)

           Summary: exception using junitreport
                    (java.lang.ClassNotFoundException: redirect)
           Product: Ant
           Version: 1.6.2
          Platform: PC
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Optional Tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: rumster@tau.ac.il


junitreport stopped working when I upgraded from Ant version 1.6.1 to 1.6.2.
(I have junit.jar on my CLASSPATH).

Here is the target code I am using:
	<target name="runtests"  description="-> runs unit tests">
		<!-- depends="classes, buildtests" -->
		<junit fork="true" printsummary="yes" haltonerror="on">
			<!-- Enable assertions - required by certain tests. -->
			<jvmarg value="-ea"/>
			<classpath>
				<pathelement path="${build}"/>
				<pathelement path="${build.tests}"/>
			</classpath>
			<formatter type="xml"/>
			<!-- fork=true is required to enable assertions in the 
tests' JVM. -->
			<batchtest todir="${build.tests}" fork="true">
				<fileset dir="${src.tests}">
					<include name="**/*Test*.java"/>
				</fileset>
			</batchtest>
		</junit>
		
		<!--  junitreport stopped working with ant-1.6.2 for some 
strange reason. -->
		<junitreport todir="${build.tests}">
			<fileset dir="${build.tests}">
				<include name="TEST-*.xml"/>
			</fileset>
			<report format="frames" todir="${build.tests}"/>
		</junitreport>
	   <!-- -->
	</target>

when I run ant I get the following output:
C:\ProgramAnalysis\tvla>ant -v runtests
Apache Ant version 1.6.2 compiled on July 16 2004
Buildfile: build.xml
Detected Java version: 1.4 in: C:\j2sdk1.4.1_03\jre
Detected OS: Windows XP
parsing buildfile C:\ProgramAnalysis\tvla\build.xml with URI = 
file:///C:/ProgramAnalysis/tvla/build
.xml
Project base dir set to: C:\ProgramAnalysis\tvla
 [property] Loading Environment env.
Build sequence for target `runtests' is [runtests]
Complete build sequence is [runtests, clean, init, classes, jar, buildtests, 
build-everything, tvm,
formula, build, rebuild, tvs, tvp, buc, parsers, jcsc, javadocs, dist, ]

runtests:
    [junit] Implicitly adding 
C:\ProgramAnalysis\tvla\lib\junit.jar;C:\Tools\apache-ant-1.6.2\lib\an
t-launcher.jar;C:\Tools\apache-ant-1.6.2\lib\ant.jar;C:\Tools\apache-ant-1.6.2
\lib\ant-junit.jar to
CLASSPATH
    [junit] Running tvla.RunnerTest
    [junit] Executing 'C:\j2sdk1.4.1_03\jre\bin\java.exe' with arguments:
    [junit] '-ea'
    [junit] '-classpath'
    
[junit] 'C:\ProgramAnalysis\tvla\build;C:\ProgramAnalysis\tvla\build\tests;C:\Pr
ogramAnalysis\tv
la;C:\Tools\soot-2.1.0\classes;C:\Tools\jasmin-sable-1.2
\classes;C:\ProgramAnalysis\tvla\lib\junit.j
ar;C:\Tools\apache-ant-1.6.2\lib\ant-launcher.jar;C:\Tools\apache-ant-1.6.2
\lib\ant.jar;C:\Tools\apa
che-ant-1.6.2\lib\ant-junit.jar'
    [junit] 'org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner'
    [junit] 'tvla.RunnerTest'
    [junit] 'filtertrace=true'
    [junit] 'haltOnError=true'
    [junit] 'haltOnFailure=false'
    
[junit] 'formatter=org.apache.tools.ant.taskdefs.optional.junit.SummaryJUnitResu
ltFormatter'
    [junit] 'showoutput=false'
    
[junit] 'formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFo
rmatter,C:\Progr
amAnalysis\tvla\build\tests\TEST-tvla.RunnerTest.xml'
    [junit] 'propsfile=C:\ProgramAnalysis\tvla\junit1090597304.properties'
    [junit]
    [junit] The ' characters around the executable and arguments are
    [junit] not part of the command.
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.27 sec
    [junit] Implicitly adding 
C:\ProgramAnalysis\tvla\lib\junit.jar;C:\Tools\apache-ant-1.6.2\lib\an
t-launcher.jar;C:\Tools\apache-ant-1.6.2\lib\ant.jar;C:\Tools\apache-ant-1.6.2
\lib\ant-junit.jar to
CLASSPATH
    [junit] Running tvla.core.TVSTest
    [junit] Executing 'C:\j2sdk1.4.1_03\jre\bin\java.exe' with arguments:
    [junit] '-ea'
    [junit] '-classpath'
    
[junit] 'C:\ProgramAnalysis\tvla\build;C:\ProgramAnalysis\tvla\build\tests;C:\Pr
ogramAnalysis\tv
la;C:\Tools\soot-2.1.0\classes;C:\Tools\jasmin-sable-1.2
\classes;C:\ProgramAnalysis\tvla\lib\junit.j
ar;C:\Tools\apache-ant-1.6.2\lib\ant-launcher.jar;C:\Tools\apache-ant-1.6.2
\lib\ant.jar;C:\Tools\apa
che-ant-1.6.2\lib\ant-junit.jar'
    [junit] 'org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner'
    [junit] 'tvla.core.TVSTest'
    [junit] 'filtertrace=true'
    [junit] 'haltOnError=true'
    [junit] 'haltOnFailure=false'
    
[junit] 'formatter=org.apache.tools.ant.taskdefs.optional.junit.SummaryJUnitResu
ltFormatter'
    [junit] 'showoutput=false'
    
[junit] 'formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFo
rmatter,C:\Progr
amAnalysis\tvla\build\tests\TEST-tvla.core.TVSTest.xml'
    [junit] 'propsfile=C:\ProgramAnalysis\tvla\junit474192160.properties'
    [junit]
    [junit] The ' characters around the executable and arguments are
    [junit] not part of the command.
    [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0.41 sec
    [junit] Implicitly adding 
C:\ProgramAnalysis\tvla\lib\junit.jar;C:\Tools\apache-ant-1.6.2\lib\an
t-launcher.jar;C:\Tools\apache-ant-1.6.2\lib\ant.jar;C:\Tools\apache-ant-1.6.2
\lib\ant-junit.jar to
CLASSPATH
    [junit] Running tvla.core.assignments.AssignTest
    [junit] Executing 'C:\j2sdk1.4.1_03\jre\bin\java.exe' with arguments:
    [junit] '-ea'
    [junit] '-classpath'
    
[junit] 'C:\ProgramAnalysis\tvla\build;C:\ProgramAnalysis\tvla\build\tests;C:\Pr
ogramAnalysis\tv
la;C:\Tools\soot-2.1.0\classes;C:\Tools\jasmin-sable-1.2
\classes;C:\ProgramAnalysis\tvla\lib\junit.j
ar;C:\Tools\apache-ant-1.6.2\lib\ant-launcher.jar;C:\Tools\apache-ant-1.6.2
\lib\ant.jar;C:\Tools\apa
che-ant-1.6.2\lib\ant-junit.jar'
    [junit] 'org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner'
    [junit] 'tvla.core.assignments.AssignTest'
    [junit] 'filtertrace=true'
    [junit] 'haltOnError=true'
    [junit] 'haltOnFailure=false'
    
[junit] 'formatter=org.apache.tools.ant.taskdefs.optional.junit.SummaryJUnitResu
ltFormatter'
    [junit] 'showoutput=false'
    
[junit] 'formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFo
rmatter,C:\Progr
amAnalysis\tvla\build\tests\TEST-tvla.core.assignments.AssignTest.xml'
    [junit] 'propsfile=C:\ProgramAnalysis\tvla\junit1842613188.properties'
    [junit]
    [junit] The ' characters around the executable and arguments are
    [junit] not part of the command.
    [junit] Tests run: 7, Failures: 0, Errors: 0, Time elapsed: 0.411 sec
    [junit] Implicitly adding 
C:\ProgramAnalysis\tvla\lib\junit.jar;C:\Tools\apache-ant-1.6.2\lib\an
t-launcher.jar;C:\Tools\apache-ant-1.6.2\lib\ant.jar;C:\Tools\apache-ant-1.6.2
\lib\ant-junit.jar to
CLASSPATH
    [junit] Running tvla.core.base.BaseTVSTest
    [junit] Executing 'C:\j2sdk1.4.1_03\jre\bin\java.exe' with arguments:
    [junit] '-ea'
    [junit] '-classpath'
    
[junit] 'C:\ProgramAnalysis\tvla\build;C:\ProgramAnalysis\tvla\build\tests;C:\Pr
ogramAnalysis\tv
la;C:\Tools\soot-2.1.0\classes;C:\Tools\jasmin-sable-1.2
\classes;C:\ProgramAnalysis\tvla\lib\junit.j
ar;C:\Tools\apache-ant-1.6.2\lib\ant-launcher.jar;C:\Tools\apache-ant-1.6.2
\lib\ant.jar;C:\Tools\apa
che-ant-1.6.2\lib\ant-junit.jar'
    [junit] 'org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner'
    [junit] 'tvla.core.base.BaseTVSTest'
    [junit] 'filtertrace=true'
    [junit] 'haltOnError=true'
    [junit] 'haltOnFailure=false'
    
[junit] 'formatter=org.apache.tools.ant.taskdefs.optional.junit.SummaryJUnitResu
ltFormatter'
    [junit] 'showoutput=false'
    
[junit] 'formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFo
rmatter,C:\Progr
amAnalysis\tvla\build\tests\TEST-tvla.core.base.BaseTVSTest.xml'
    [junit] 'propsfile=C:\ProgramAnalysis\tvla\junit220762388.properties'
    [junit]
    [junit] The ' characters around the executable and arguments are
    [junit] not part of the command.
    [junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 0.44 sec
    [junit] Implicitly adding 
C:\ProgramAnalysis\tvla\lib\junit.jar;C:\Tools\apache-ant-1.6.2\lib\an
t-launcher.jar;C:\Tools\apache-ant-1.6.2\lib\ant.jar;C:\Tools\apache-ant-1.6.2
\lib\ant-junit.jar to
CLASSPATH
    [junit] Running tvla.core.functional.NodePredTVSTest
    [junit] Executing 'C:\j2sdk1.4.1_03\jre\bin\java.exe' with arguments:
    [junit] '-ea'
    [junit] '-classpath'
    
[junit] 'C:\ProgramAnalysis\tvla\build;C:\ProgramAnalysis\tvla\build\tests;C:\Pr
ogramAnalysis\tv
la;C:\Tools\soot-2.1.0\classes;C:\Tools\jasmin-sable-1.2
\classes;C:\ProgramAnalysis\tvla\lib\junit.j
ar;C:\Tools\apache-ant-1.6.2\lib\ant-launcher.jar;C:\Tools\apache-ant-1.6.2
\lib\ant.jar;C:\Tools\apa
che-ant-1.6.2\lib\ant-junit.jar'
    [junit] 'org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner'
    [junit] 'tvla.core.functional.NodePredTVSTest'
    [junit] 'filtertrace=true'
    [junit] 'haltOnError=true'
    [junit] 'haltOnFailure=false'
    
[junit] 'formatter=org.apache.tools.ant.taskdefs.optional.junit.SummaryJUnitResu
ltFormatter'
    [junit] 'showoutput=false'
    
[junit] 'formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFo
rmatter,C:\Progr
amAnalysis\tvla\build\tests\TEST-tvla.core.functional.NodePredTVSTest.xml'
    [junit] 'propsfile=C:\ProgramAnalysis\tvla\junit2017862554.properties'
    [junit]
    [junit] The ' characters around the executable and arguments are
    [junit] not part of the command.
    [junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 0.661 sec
[junitreport] Parsing file: 'C:\ProgramAnalysis\tvla\build\tests\TEST-
tvla.RunnerTest.xml'
[junitreport] Parsing file: 'C:\ProgramAnalysis\tvla\build\tests\TEST-
tvla.core.TVSTest.xml'
[junitreport] Parsing file: 'C:\ProgramAnalysis\tvla\build\tests\TEST-
tvla.core.assignments.AssignTe
st.xml'
[junitreport] Parsing file: 'C:\ProgramAnalysis\tvla\build\tests\TEST-
tvla.core.base.BaseTVSTest.xml
'
[junitreport] Parsing file: 'C:\ProgramAnalysis\tvla\build\tests\TEST-
tvla.core.functional.NodePredT
VSTest.xml'
[junitreport] Using org.apache.xalan.processor Xalan Java 2.2.D11
[junitreport] jar:file:/C:/Tools/apache-ant-1.6.2/lib/ant-
junit.jar!/org/apache/tools/ant/taskdefs/o
ptional/junit/xsl/junit-frames.xsl; Line 41; Column 53; 
javax.xml.transform.TransformerException: ja
va.lang.ClassNotFoundException: redirect
[junitreport] jar:file:/C:/Tools/apache-ant-1.6.2/lib/ant-
junit.jar!/org/apache/tools/ant/taskdefs/o
ptional/junit/xsl/junit-frames.xsl; Line 46; Column 57; 
javax.xml.transform.TransformerException: ja
va.lang.ClassNotFoundException: redirect
[junitreport] jar:file:/C:/Tools/apache-ant-1.6.2/lib/ant-
junit.jar!/org/apache/tools/ant/taskdefs/o
ptional/junit/xsl/junit-frames.xsl; Line 51; Column 64; 
javax.xml.transform.TransformerException: ja
va.lang.ClassNotFoundException: redirect
[junitreport] jar:file:/C:/Tools/apache-ant-1.6.2/lib/ant-
junit.jar!/org/apache/tools/ant/taskdefs/o
ptional/junit/xsl/junit-frames.xsl; Line 56; Column 62; 
javax.xml.transform.TransformerException: ja
va.lang.ClassNotFoundException: redirect
[junitreport] jar:file:/C:/Tools/apache-ant-1.6.2/lib/ant-
junit.jar!/org/apache/tools/ant/taskdefs/o
ptional/junit/xsl/junit-frames.xsl; Line 61; Column 64; 
javax.xml.transform.TransformerException: ja
va.lang.ClassNotFoundException: redirect
[junitreport] jar:file:/C:/Tools/apache-ant-1.6.2/lib/ant-
junit.jar!/org/apache/tools/ant/taskdefs/o
ptional/junit/xsl/junit-frames.xsl; Line 82; Column 76; 
javax.xml.transform.TransformerException: ja
va.lang.ClassNotFoundException: redirect
[junitreport] jar:file:/C:/Tools/apache-ant-1.6.2/lib/ant-
junit.jar!/org/apache/tools/ant/taskdefs/o
ptional/junit/xsl/junit-frames.xsl; Line 89; Column 78; 
javax.xml.transform.TransformerException: ja
va.lang.ClassNotFoundException: redirect
[junitreport] jar:file:/C:/Tools/apache-ant-1.6.2/lib/ant-
junit.jar!/org/apache/tools/ant/taskdefs/o
ptional/junit/xsl/junit-frames.xsl; Line 98; Column 74; 
javax.xml.transform.TransformerException: ja
va.lang.ClassNotFoundException: redirect
[junitreport] jar:file:/C:/Tools/apache-ant-1.6.2/lib/ant-
junit.jar!/org/apache/tools/ant/taskdefs/o
ptional/junit/xsl/junit-frames.xsl; Line 82; Column 76; 
javax.xml.transform.TransformerException: ja
va.lang.ClassNotFoundException: redirect
[junitreport] jar:file:/C:/Tools/apache-ant-1.6.2/lib/ant-
junit.jar!/org/apache/tools/ant/taskdefs/o
ptional/junit/xsl/junit-frames.xsl; Line 89; Column 78; 
javax.xml.transform.TransformerException: ja
va.lang.ClassNotFoundException: redirect
[junitreport] jar:file:/C:/Tools/apache-ant-1.6.2/lib/ant-
junit.jar!/org/apache/tools/ant/taskdefs/o
ptional/junit/xsl/junit-frames.xsl; Line 98; Column 74; 
javax.xml.transform.TransformerException: ja
va.lang.ClassNotFoundException: redirect
[junitreport] jar:file:/C:/Tools/apache-ant-1.6.2/lib/ant-
junit.jar!/org/apache/tools/ant/taskdefs/o
ptional/junit/xsl/junit-frames.xsl; Line 82; Column 76; 
javax.xml.transform.TransformerException: ja
va.lang.ClassNotFoundException: redirect
[junitreport] jar:file:/C:/Tools/apache-ant-1.6.2/lib/ant-
junit.jar!/org/apache/tools/ant/taskdefs/o
ptional/junit/xsl/junit-frames.xsl; Line 89; Column 78; 
javax.xml.transform.TransformerException: ja
va.lang.ClassNotFoundException: redirect
[junitreport] jar:file:/C:/Tools/apache-ant-1.6.2/lib/ant-
junit.jar!/org/apache/tools/ant/taskdefs/o
ptional/junit/xsl/junit-frames.xsl; Line 98; Column 74; 
javax.xml.transform.TransformerException: ja
va.lang.ClassNotFoundException: redirect
[junitreport] jar:file:/C:/Tools/apache-ant-1.6.2/lib/ant-
junit.jar!/org/apache/tools/ant/taskdefs/o
ptional/junit/xsl/junit-frames.xsl; Line 82; Column 76; 
javax.xml.transform.TransformerException: ja
va.lang.ClassNotFoundException: redirect
[junitreport] jar:file:/C:/Tools/apache-ant-1.6.2/lib/ant-
junit.jar!/org/apache/tools/ant/taskdefs/o
ptional/junit/xsl/junit-frames.xsl; Line 89; Column 78; 
javax.xml.transform.TransformerException: ja
va.lang.ClassNotFoundException: redirect
[junitreport] jar:file:/C:/Tools/apache-ant-1.6.2/lib/ant-
junit.jar!/org/apache/tools/ant/taskdefs/o
ptional/junit/xsl/junit-frames.xsl; Line 98; Column 74; 
javax.xml.transform.TransformerException: ja
va.lang.ClassNotFoundException: redirect
[junitreport] jar:file:/C:/Tools/apache-ant-1.6.2/lib/ant-
junit.jar!/org/apache/tools/ant/taskdefs/o
ptional/junit/xsl/junit-frames.xsl; Line 82; Column 76; 
javax.xml.transform.TransformerException: ja
va.lang.ClassNotFoundException: redirect
[junitreport] jar:file:/C:/Tools/apache-ant-1.6.2/lib/ant-
junit.jar!/org/apache/tools/ant/taskdefs/o
ptional/junit/xsl/junit-frames.xsl; Line 89; Column 78; 
javax.xml.transform.TransformerException: ja
va.lang.ClassNotFoundException: redirect
[junitreport] jar:file:/C:/Tools/apache-ant-1.6.2/lib/ant-
junit.jar!/org/apache/tools/ant/taskdefs/o
ptional/junit/xsl/junit-frames.xsl; Line 98; Column 74; 
javax.xml.transform.TransformerException: ja
va.lang.ClassNotFoundException: redirect
[junitreport] Transform time: 1742ms

BUILD SUCCESSFUL
Total time: 14 seconds


Am I doing something wrong?
Thanks,
Roman

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message