A follow-up on that: I've updated build.xml to exclude the Class-Path entry in the manifest that seems to make problems. I also updated disabled-testcases.txt to represent the exact set of test cases that currently don't work.
I did a full build under JDK 1.4.2_08 and 1.5.0_02, both of which work fine here, although with an additional note: I always supply my own versions of Xerces and Xalan using the endorsed API override mechanism [1], i.e. I've put the following three files under %JAVA_HOME%/jre/lib/endorsed/: - xalan-2.6.0.jar - xercesImpl-2.6.2.jar - xml-apis.jar (from the Xerces 2.6.2 distribution) Since Sun repeatedly managed to get unstable and buggy versions into their JDKs the first thing I do after installing a new JDK version is to replace Xerces and Xalan with the latest release. With this you also shouldn't get any error message like these: "org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces." Michelle, you're still using a 1.5.0 beta. I think you should upgrade to the latest version there. Also consider switching to 1.4.2 instead of 1.4.1. I hope that helps. [1] http://java.sun.com/j2se/1.4.2/docs/guide/standards/ On 23.05.2005 21:44:31 m.baert wrote: > Hello all, > > I'm afraid I need some help to build FOP. > I just downloaded source code from cvs (2005-05-23 13:40). > > My first try, with JAVA_HOME pointing to my 1.5 jdk, I got > errors in the compile-src target, related to the AbstractGraphics2D > class (details below). > > So I redefined JAVA_HOME to use the 1.4 jdk, ran "ant clean", and the > compile went fine. > > The JUnit tests went ok for fop-transcoder.jar and > fop-transcoder-allinone.jar, but then failed: > > [echo] Running basic functionality tests for fop.jar > [mkdir] Created dir: I:\CVS_Ext\xml-fop\build\test-reports\fop > [junit] Testsuite: org.apache.fop.BasicDriverTestSuite > [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0,015 sec > > [junit] Testcase: testFO2PDFWithDOM(org.apache.fop.BasicDriverTestCase): > Caused an ERROR > [junit] org/apache/fop/apps/Fop > [junit] java.lang.NoClassDefFoundError: org/apache/fop/apps/Fop > [junit] at > org.apache.fop.BasicDriverTestCase.testFO2PDFWithDOM(BasicDriverTestCase.java:73) > [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > [junit] at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > [junit] at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > In the I:\CVS_Ext\xml-fop\test\java\org\apache\fop\BasicDriverTestCase.java > file: > 70: public void testFO2PDFWithDOM() throws Exception { > 71: File foFile = new File(getBaseDir(), "test/xml/bugtests/block.fo"); > 72: ByteArrayOutputStream baout = new ByteArrayOutputStream(); > 73: Fop fop = new Fop(Fop.RENDER_PDF); > 74: fop.setOutputStream(baout); > > The classpaths in build file seem ok ... what happens ? > > TIA for any help. > > -- > Best regards, > > Michelle > > > ---- > Versions used: > jdk 1.5: build 1.5.0-beta2-b51 > jdk 1.4: build 1.4.1_02-b06 > Ant 1.6.1 > Windows XP home > ---- > Errors building with jdk 1.5: > > compile-src: > [echo] Compiling the sources > [mkdir] Created dir: > I:\cvs_ext\xml-fop\build\classes\org\apache\fop\render\awt\viewer\resources > [copy] Copying 10 files to > I:\cvs_ext\xml-fop\build\classes\org\apache\fop\render\awt\viewer\resources > [mkdir] Created dir: > I:\cvs_ext\xml-fop\build\classes\org\apache\fop\render\awt\viewer\Images > [copy] Copying 7 files to > I:\cvs_ext\xml-fop\build\classes\org\apache\fop\render\awt\viewer\Images > [javac] Compiling 610 source files to I:\cvs_ext\xml-fop\build\classes > [javac] This version of java does not support the classic compiler; > upgrading to modern > [javac] > I:\cvs_ext\xml-fop\src\java\org\apache\fop\image\FopImageConsumer.java:32: > org.apache.fop.image.FopImageConsumer is not abstract and does not override > abstract method > setProperties(java.util.Hashtable<java.lang.String,java.lang.Object>) in > java.awt.image.ImageConsumer > [javac] public class FopImageConsumer implements ImageConsumer { > [javac] ^ > [javac] > I:\cvs_ext\xml-fop\src\java\org\apache\fop\render\ps\PSGraphics2D.java:79: > org.apache.fop.render.ps.PSGraphics2D is not abstract and does not override > abstract method addRenderingHints(java.util.Map<?,?>) in java.awt.Graphics2D > [javac] public class PSGraphics2D extends AbstractGraphics2D { > [javac] ^ > [javac] > I:\cvs_ext\xml-fop\src\java\org\apache\fop\svg\PDFGraphics2D.java:96: > org.apache.fop.svg.PDFGraphics2D is not abstract and does not override > abstract method addRenderingHints(java.util.Map<?,?>) in java.awt.Graphics2D > [javac] public class PDFGraphics2D extends AbstractGraphics2D { > [javac] ^ > [javac] Note: Some input files use unchecked or unsafe operations. > [javac] Note: Recompile with -Xlint:unchecked for details. > [javac] 3 errors > ---- > Errors testing with jdk 1.4: > > [echo] Apache Ant version 1.6.1 compiled on February 12 2004 > [echo] Jimi Support NOT Present > [echo] JAI Support NOT Present > [echo] JCE Support PRESENT > [echo] JUnit Support PRESENT > [echo] Use GraphicsConfiguration adapter for JDK 1.4. > [echo] ------------------- Fop 1.0dev [1999-2005] ---------------- > [echo] See build.properties and build-local.properties for additional build > settings > [echo] Preparing the build directories > [echo] Resetting codegen directory > [echo] Generating the java files from xml resources > [echo] Compiling the sources > [echo] Creating the jar file I:\CVS_Ext\xml-fop/build/fop.jar > [echo] Creating the WAR file > [echo] Creating the jar file I:\CVS_Ext\xml-fop/build/fop-transcoder.jar > [echo] Running basic functionality tests for fop-transcoder.jar > [echo] Running basic functionality tests for fop-transcoder-allinone.jar > [echo] Running basic functionality tests for fop.jar > > [junit] Testsuite: org.apache.fop.BasicDriverTestSuite > [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0,015 sec > > [junit] Testcase: testFO2PDFWithDOM(org.apache.fop.BasicDriverTestCase): > Caused an ERROR > [junit] org/apache/fop/apps/Fop > [junit] java.lang.NoClassDefFoundError: org/apache/fop/apps/Fop > [junit] at > org.apache.fop.BasicDriverTestCase.testFO2PDFWithDOM(BasicDriverTestCase.java:73) > [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > [junit] at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > [junit] at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]