ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeffrey E Care <ca...@us.ibm.com>
Subject Re: A problem with the ant <junitreport> task in a WLS 9.1 environmen t
Date Wed, 08 Mar 2006 17:42:52 GMT
This sounds like a problem for BEA support, not the Ant user mailing 
list....

____________________________________________________________________________________________


Jeffrey E. (Jeff) Care 
carej@us.ibm.com 
IBM WebSphere Application Server Development 
WAS Pyxis Lead Release Engineer 




John Lindwall <JLindwall@Xifin.com> wrote on 03/08/2006 12:00:47 PM:

> I'm migrating from WLS 6.1 to 91. and can no longer run the 
> <junitreport> task in my build.  I get an error like the following:
> 
>    Could not find a valid processor version implementation from 
> weblogic.xml.jaxp.RegistrySAXTransformerFactory
> 
> I'm using junit 3.8.1 but also tried 3.8.2 with no success.  My 
> example below runs on Windows but I get the same error on Solaris.
> 
> To reproduce:
> 
> 
> 1. Save this snippet as run.cmd
> 
> : ---------- START 
> set CLASSPATH=
> set PATH=
> 
> call d:\bea\weblogic91\server\bin\setWLSEnv.cmd
> 
> set CLASSPATH=%CLASSPATH%;junit.jar
> 
> ant -v test
> : ----------- END
> 
> 
> 
> 2. Save this snippet as build.xml:
> 
> <!-- ========== START  -->
> <project name="junitreport-problem" default="test">
> 
>    <target name="test">
>       <junit printsummary="yes" haltonfailure="no">
>         <test name="MyTest" outfile="result">
>             <formatter type="xml"/>
>              </test>
>       </junit>
> 
>       <junitreport>
>          <fileset dir=".">
>             <include name="result.xml"/>
>          </fileset>
>          <report format="frames" todir="."/>
>       </junitreport>
> 
>    </target>
> </project>
> <!-- ========== END -->
> 
> 
> 
> 3.  Copy junit.jar into the same directory
> 
> 
> 
> 4. Execute run.cmd. This will use ant to run a junit test that does 
> not exist -- this
> is done simple to create a result.xml file for the <junitreport> to 
> process. It is OK that the
> unit test does not exist -- I just needed an XML file to process and
> wanted to keep this
> example simple.
> 
> The <junitreport> task then attempts to run but terminates with an 
error:
> 
>    D:\tmp\wl\build.xml:10: Could not find a valid processor version 
> implementation from weblogic.xml.jaxp.RegistrySAXTransformerFactory
> 
> Why does this happen?  How can i get the junitreport task to work 
> again?  It worked fine in a WLS 6.1
> environment.
> 
> Thanks!
> 
> 
> Example output:
> 
> D:\tmp\wl>set CLASSPATH= 
> 
> D:\tmp\wl>set PATH= 
> 
> D:\tmp\wl>call d:\bea\weblogic91\server\bin\setWLSEnv.cmd 
> 
> CLASSPATH=D:
> 
\bea\patch_weblogic910\profiles\default\sys_manifest_classpath\weblogic_patch.
> jar;D:\bea\JROCKI~1\lib\tools.jar;D:
> \bea\WEBLOG~1\server\lib\weblogic_sp.jar;D:
> \bea\WEBLOG~1\server\lib\weblogic.jar;D:
> \bea\WEBLOG~1\server\lib\webservices.jar;
> 
> PATH=D:\bea\patch_weblogic910\profiles\default\native;D:
> \bea\WEBLOG~1\server\native\win\32;D:\bea\WEBLOG~1\server\bin;D:
> \bea\JROCKI~1\jre\bin;D:\bea\JROCKI~1\bin;;D:
> \bea\WEBLOG~1\server\native\win\32\oci920_8
> 
> Your environment has been set.
> Apache Ant version 1.6.2 compiled on August 5 2004
> Buildfile: build.xml
> Detected Java version: 1.5 in: D:\bea\JROCKI~1\jre
> Detected OS: Windows 2000
> parsing buildfile D:\tmp\wl\build.xml with URI = 
file:///D:/tmp/wl/build.xml
> Project base dir set to: D:\tmp\wl
> Build sequence for target `test' is [test]
> Complete build sequence is [test, ]
> 
> test:
>     [junit] Using System properties {java.vm.vendor.url.bug=http:
> //support.bea.com, java.runtime.name=Java(TM) 2 Runtime Environment,
> Standard Edition, sun.boot.library.path=D:\bea\JROCKI~1\jre\bin, 
> java.vm.version=R26.0.0-189-53463-1.5.0_04-20051122-2041-win-ia32, 
> ant.library.dir=D:\bea\weblogic91\server\lib\ant, java.vm.vendor=BEA
> Systems, Inc., java.vendor.url=http://www.bea.com/, path.
> separator=;, java.vm.name=BEA JRockit(R), file.encoding.pkg=sun.io, 
> user.country=US, sun.os.patch.level=Service Pack 4, java.vm.vendor.
> url=http://www.bea.com/, java.vm.specification.name=Java Virtual 
> Machine Specification, user.dir=D:\tmp\wl, java.runtime.version=1.5.
> 0_04-b05, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, 
> java.endorsed.dirs=D:\bea\JROCKI~1\jre\lib\endorsed, os.arch=x86, 
> java.io.tmpdir=C:\DOCUME~1\JohnL\LOCALS~1\Temp\, line.separator=
>     [junit] , java.vm.specification.vendor=Sun Microsystems Inc., 
> user.variant=, os.name=Windows 2000, ant.home=D:
> \bea\WEBLOG~1\server\bin\.., sun.jnu.encoding=Cp1252, java.library.
> path=D:\bea\JROCKI~1\bin;.;C:\WINNT\system32;C:\WINNT;D:
> \bea\JROCKI~1\jre\bin;D:\bea\WEBLOG~1\server\bin;D:
> \bea\JROCKI~1\jre\bin;D:\bea\JROCKI~1\bin;D:
> \bea\patch_weblogic910\profiles\default\native;D:
> \bea\WEBLOG~1\server\native\win\32;D:\bea\WEBLOG~1\server\bin;D:
> \bea\JROCKI~1\jre\bin;D:\bea\JROCKI~1\bin;D:
> \bea\patch_weblogic910\profiles\default\native;D:
> \bea\WEBLOG~1\server\native\win\32;D:\bea\WEBLOG~1\server\bin;D:
> \bea\JROCKI~1\jre\bin;D:\bea\JROCKI~1\bin;;D:
> \bea\WEBLOG~1\server\native\win\32\oci920_8;D:
> \bea\WEBLOG~1\server\native\win\32\oci920_8, java.specification.
> name=Java Platform API Specification, java.class.version=49.0, sun.
> management.compiler=BEA JRockit(R) Optimizing Compiler, jrockit.
> launcher.type=jrockit.shipment, os.version=5.0, user.home=C:
> \Documents and Settings\JohnL, user.timezo
>  ne=, java.awt.printerjob=sun.awt.windows.WPrinterJob, java.
> specification.version=1.5, file.encoding=Cp1252, user.
> name=JLindwall, java.class.path=D:
> 
\bea\patch_weblogic910\profiles\default\sys_manifest_classpath\weblogic_patch.
> jar;D:\bea\JROCKI~1\lib\tools.jar;D:
> \bea\WEBLOG~1\server\lib\weblogic_sp.jar;D:
> \bea\WEBLOG~1\server\lib\weblogic.jar;D:
> \bea\WEBLOG~1\server\lib\webservices.jar;;junit.jar;D:
> \bea\WEBLOG~1\server\lib\weblogic.jar;D:\bea\WEBLOG~1\server\bin\..
> \lib\ant\ant-launcher.jar;D:\bea\JROCKI~1\lib\tools.jar;D:
> 
\bea\patch_weblogic910\profiles\default\sys_manifest_classpath\weblogic_patch.
> jar;D:\bea\JROCKI~1\lib\tools.jar;D:
> \bea\WEBLOG~1\server\lib\weblogic_sp.jar;D:
> \bea\WEBLOG~1\server\lib\weblogic.jar;D:
> \bea\WEBLOG~1\server\lib\webservices.jar;D:\tmp\wl\junit.jar;D:
> \bea\weblogic91\server\lib\ant\ant-antlr.jar;D:
> \bea\weblogic91\server\lib\ant\ant-apache-bsf.jar;D:
> \bea\weblogic91\server\lib\ant\ant-apache-resolver.jar;D:
> \bea\weblogic91\server\lib\ant\ant-commons-logging
>  .jar;D:\bea\weblogic91\server\lib\ant\ant-commons-net.jar;D:
> \bea\weblogic91\server\lib\ant\ant-contrib-1.0b1.jar;D:
> \bea\weblogic91\server\lib\ant\ant-icontract.jar;D:
> \bea\weblogic91\server\lib\ant\ant-jai.jar;D:
> \bea\weblogic91\server\lib\ant\ant-jakarta-bcel.jar;D:
> \bea\weblogic91\server\lib\ant\ant-jakarta-log4j.jar;D:
> \bea\weblogic91\server\lib\ant\ant-jakarta-oro.jar;D:
> \bea\weblogic91\server\lib\ant\ant-jakarta-regexp.jar;D:
> \bea\weblogic91\server\lib\ant\ant-javamail.jar;D:
> \bea\weblogic91\server\lib\ant\ant-jdepend.jar;D:
> \bea\weblogic91\server\lib\ant\ant-jmf.jar;D:
> \bea\weblogic91\server\lib\ant\ant-jsch.jar;D:
> \bea\weblogic91\server\lib\ant\ant-junit.jar;D:
> \bea\weblogic91\server\lib\ant\ant-launcher.jar;D:
> \bea\weblogic91\server\lib\ant\ant-netrexx.jar;D:
> \bea\weblogic91\server\lib\ant\ant-nodeps.jar;D:
> \bea\weblogic91\server\lib\ant\ant-starteam.jar;D:
> \bea\weblogic91\server\lib\ant\ant-stylebook.jar;D:
> 
\bea\weblogic91\server\lib\ant\ant-swing.jar;D:\bea\weblogic91\server\lib\a
>  nt\ant-trax.jar;D:\bea\weblogic91\server\lib\ant\ant-vaj.jar;D:
> \bea\weblogic91\server\lib\ant\ant-weblogic.jar;D:
> \bea\weblogic91\server\lib\ant\ant-xalan1.jar;D:
> \bea\weblogic91\server\lib\ant\ant-xalan2.jar;D:
> \bea\weblogic91\server\lib\ant\ant-xslp.jar;D:
> \bea\weblogic91\server\lib\ant\ant.jar;D:
> \bea\weblogic91\server\lib\ant\commons-net-1.1.0.jar;D:
> \bea\weblogic91\server\lib\ant\jakarta-oro-2.0.7.jar;D:
> \bea\weblogic91\server\lib\ant\junit.jar, java.vm.specification.
> version=1.0, sun.arch.data.model=32, java.home=D:\bea\JROCKI~1\jre, 
> java.specification.vendor=Sun Microsystems Inc., user.language=en, 
> awt.toolkit=sun.awt.windows.WToolkit, java.vm.info=, java.version=1.
> 5.0_04, java.ext.dirs=D:\bea\JROCKI~1\jre\lib\ext, sun.boot.class.
> path=D:\bea\JROCKI~1\jre\bin\jrockit\jrockit.jar;D:
> \bea\JROCKI~1\jre\bin\jrockit\managementapi.jar;D:
> \bea\JROCKI~1\jre\lib\managementapi.jar;D:\bea\JROCKI~1\jre\lib\rt.
> jar;D:\bea\JROCKI~1\jre\lib\i18n.jar;D:
> \bea\JROCKI~1\jre\lib\sunrsasign.jar;D:\bea
>  \JROCKI~1\jre\lib\jsse.jar;D:\bea\JROCKI~1\jre\lib\jce.jar;D:
> \bea\JROCKI~1\jre\lib\charsets.jar;D:\bea\JROCKI~1\jre\classes, 
> java.vendor=BEA Systems, Inc., file.separator=\, java.vendor.url.
> bug=http://support.bea.com, sun.cpu.endian=little, sun.io.unicode.
> encoding=UnicodeLittle, sun.desktop=windows, sun.cpu.
> isalist=pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86}
>     [junit] Running MyTest
>     [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
>     [junit] Test MyTest FAILED
> [junitreport] Parsing file: 'D:\tmp\wl\result.xml'
> 
> BUILD FAILED
> D:\tmp\wl\build.xml:10: Could not find a valid processor version 
> implementation from weblogic.xml.jaxp.RegistrySAXTransformerFactory
>    at org.apache.tools.ant.taskdefs.optional.junit.Xalan2Executor.
> getProcVersion(Xalan2Executor.java:67)
>    at org.apache.tools.ant.taskdefs.optional.junit.XalanExecutor.
> newInstance(XalanExecutor.java:91)
>    at org.apache.tools.ant.taskdefs.optional.junit.
> AggregateTransformer.transform(AggregateTransformer.java:144)
>    at org.apache.tools.ant.taskdefs.optional.junit.
> XMLResultAggregator.execute(XMLResultAggregator.java:135)
>    at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>    at org.apache.tools.ant.Task.perform(Task.java:364)
>    at org.apache.tools.ant.Target.execute(Target.java:341)
>    at org.apache.tools.ant.Target.performTasks(Target.java:369)
>    at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
>    at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
>    at org.apache.tools.ant.Main.runBuild(Main.java:673)
>    at org.apache.tools.ant.Main.startAnt(Main.java:188)
>    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
>    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
> 
> Total time: 3 seconds
> 
> 

Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message