On Sat, 2011-07-02 at 19:01 +0200, Simone Tripodi wrote: > Hi Thorsten, > can you please tell me wich environment are you using? Because on both > my Java5/6 on Mac os and Jenkins@ASF we don't get such failure!
Hmm that is weird then! I am on Ubuntu 11.04. thorsten@mcKenny:~/src/apache/cocoon3$ java -version java version "1.6.0_25" Java(TM) SE Runtime Environment (build 1.6.0_25-b06) Java HotSpot(TM) 64-Bit Server VM (build 20.0-b11, mixed mode) thorsten@mcKenny:~/src/apache/cocoon3$ mvn -version Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200) Java version: 1.6.0_25 Java home: /home/thorsten/opt/jdk1.6.0_25/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux" version: "2.6.38-8-generic" arch: "amd64" Family: "unix" If I remove the dep like: thorsten@mcKenny:~/src/apache/cocoon3$ svn diff Index: cocoon-optional/pom.xml =================================================================== --- cocoon-optional/pom.xml (revision 1142145) +++ cocoon-optional/pom.xml (working copy) @@ -92,12 +92,6 @@ <optional>true</optional> </dependency> <dependency> - <groupId>org.apache.xmlgraphics</groupId> - <artifactId>xmlgraphics-commons</artifactId> - <version>1.4</version> - <optional>true</optional> -</dependency> - <dependency> <groupId>org.apache.cocoon</groupId> <artifactId>cocoon-serializers-charsets</artifactId> <optional>true</optional> Then I get: Tests in error: testPipelineWithFOPSerializer(org.apache.cocoon.optional.pipeline.components.sax.fop.FopSerializerTestCase) Tests run: 12, Failures: 0, Errors: 1, Skipped: 0 [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] There are test failures. You can find the surefire report attached. salu2 > TIA, all the best, have a nice weekend! > Simo > > http://people.apache.org/~simonetripodi/ > http://www.99soft.org/ > > > > On Sat, Jul 2, 2011 at 4:39 PM, Reinhard Pötz <reinh...@apache.org> wrote: > > On 07/02/2011 02:48 AM, thors...@apache.org wrote: > >> > >> Author: thorsten > >> Date: Sat Jul 2 00:48:39 2011 > >> New Revision: 1142134 > >> > >> URL: http://svn.apache.org/viewvc?rev=1142134&view=rev > >> Log: > >> Fixing fop test which was failing because of missing class > >> org/apache/xmlgraphics/util/uri/CommonURIResolver > >> > >> Modified: > >> cocoon/cocoon3/trunk/cocoon-optional/pom.xml > >> > >> Modified: cocoon/cocoon3/trunk/cocoon-optional/pom.xml > >> URL: > >> http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-optional/pom.xml?rev=1142134&r1=1142133&r2=1142134&view=diff > >> > >> ============================================================================== > >> --- cocoon/cocoon3/trunk/cocoon-optional/pom.xml (original) > >> +++ cocoon/cocoon3/trunk/cocoon-optional/pom.xml Sat Jul 2 00:48:39 2011 > >> @@ -92,6 +92,11 @@ > >> <optional>true</optional> > >> </dependency> > >> <dependency> > >> +<groupId>org.apache.xmlgraphics</groupId> > >> +<artifactId>xmlgraphics-commons</artifactId> > >> +<version>1.4</version> > >> +</dependency> > >> +<dependency> > >> <groupId>org.apache.cocoon</groupId> > >> <artifactId>cocoon-serializers-charsets</artifactId> > >> <optional>true</optional> > >> > >> > >> > > > > Please use the dependency management section of the parent POM to set > > version numbers so that they are the same for one artifact throughout our > > codebase. Thanks! > > > > -- > > Reinhard Pötz Founder & Managing Director, Indoqa and Deepsearch > > http://www.indoqa.com/people/reinhard-poetz.html > > > > Member of the Apache Software Foundation > > Apache Cocoon Committer, PMC member reinh...@apache.org > > ________________________________________________________________________ > > > > Furthermore, I think Oracle has to honor the JSPA agreement. > > http://s.apache.org/JCPIsDead http://s.apache.org/tck-trap > > -- Thorsten Scherler <thorsten.at.apache.org> codeBusters S.L. - web based systems <consulting, training and solutions> http://www.codebusters.es/
------------------------------------------------------------------------------- Test set: org.apache.cocoon.optional.pipeline.components.sax.fop.FopSerializerTestCase ------------------------------------------------------------------------------- Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.846 sec <<< FAILURE! testPipelineWithFOPSerializer(org.apache.cocoon.optional.pipeline.components.sax.fop.FopSerializerTestCase) Time elapsed: 0.842 sec <<< ERROR! java.lang.NoClassDefFoundError: org/apache/xmlgraphics/util/uri/CommonURIResolver at org.apache.fop.apps.FOURIResolver.<init>(FOURIResolver.java:56) at org.apache.fop.apps.FopFactory.<init>(FopFactory.java:155) at org.apache.fop.apps.FopFactory.newInstance(FopFactory.java:177) at org.apache.cocoon.optional.pipeline.components.sax.fop.FopSerializer.<clinit>(FopSerializer.java:37) at org.apache.cocoon.optional.pipeline.components.sax.fop.FopSerializerTestCase.testPipelineWithFOPSerializer(FopSerializerTestCase.java:40) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) at org.junit.runners.ParentRunner.run(ParentRunner.java:236) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127) at org.apache.maven.surefire.Surefire.run(Surefire.java:177) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009) Caused by: java.lang.ClassNotFoundException: org.apache.xmlgraphics.util.uri.CommonURIResolver at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) ... 31 more