Re: Need help with compiling fop beta for java 1.3 - images not working
I now have more detail information about the trouble I have with my build. In my xml file that I am transforming I have an image reference to a non-existent image on a Domino application server where there is basic authentication needed. When I try to open the image in my browser I get a login page (text/html). When I use binary distribution of Fop beta version that I downloaded this error is printed in my log: 2006-12-15 10:39:31,393 137057 WARN [org.apache.fop.image.analyser.XMLReader] (AgentThread: JavaAgent:) Error while constructing image from XML org.xml.sax.SAXParseException: Open quote is expected for attribute REL associated with an element type LINK. at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) at javax.xml.parsers.DocumentBuilder.parse(Unknown Source) at org.apache.fop.image.analyser.XMLReader.createDocument(XMLReader.java:114) at org.apache.fop.image.analyser.XMLReader.loadImage(XMLReader.java:94) at org.apache.fop.image.analyser.XMLReader.verifySignature(XMLReader.java:64) at org.apache.fop.image.analyser.ImageReaderFactory.make(ImageReaderFactory.java:84) at org.apache.fop.image.ImageFactory.loadImage(ImageFactory.java:212) at org.apache.fop.image.ImageLoader.loadImage(ImageLoader.java:55) at org.apache.fop.image.ContextImageCache.getImage(ImageFactory.java:416) at org.apache.fop.image.ImageFactory.getImage(ImageFactory.java:149) at org.apache.fop.fo.flow.ExternalGraphic.bind(ExternalGraphic.java:66) at org.apache.fop.fo.FObj.processNode(FObj.java:120) at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:308) at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:184) at org.apache.xml.serializer.ToXMLSAXHandler.closeStartTag(ToXMLSAXHandler.java:204) at org.apache.xml.serializer.ToSAXHandler.flushPending(ToSAXHandler.java:277) at org.apache.xml.serializer.ToXMLSAXHandler.endElement(ToXMLSAXHandler.java:243) at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1399) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411) at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1374) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411) at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1374) at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:393) at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:176) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411) at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1374) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411) at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1374) at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:393) at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:176) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411) at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2281) at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1367) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:709) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1284) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1262) at JavaAgent.convertXML2PDF(JavaAgent.java:213) at JavaAgent.NotesMain(JavaAgent.java:123) at lotus.domino.AgentBase.runNotes(Unknown Source) at lotus.domino.NotesThread.run(NotesThread.java:215) 2006-12-15 10:39:31,393 137057 ERROR [org.apache.fop.image.FopImage] (AgentThread: JavaAgent:) Error while recovering image information (http://tidra.atol.si/neki.gif) : null java.lang.NullPointerException at org.apache.fop.image.analyser.XMLReader.verifySignature(XMLReader.java:65) at org.apache.fop.image.analyser.ImageReaderFactory.make(ImageReaderFactory.java:84) at org.apache.fop.image.ImageFactory.loadImage(ImageFactory.java:212) at org.apache.fop.image.ImageLoader.loadImage(ImageLoader.java:55) at org.apache.fop.image.ContextImageCache.getImage(ImageFactory.java:416) at org.apache.fop.image.ImageFactory.getImage(ImageFactory.java:149) at
Re: Need help with compiling fop beta for java 1.3 - images not working
You need to set the JAVA_HOME environment variable to you actually compile with JDK 1.3.1. You currently compile with a 1.5 class library and compiler as you can see in the first echos from the build. Be sure to do an ant clear before you build after switching. On 14.12.2006 14:36:40 jelka.kosir wrote: I'm working on a problem I've posted earlier this week and I would need to rebuild fop since I've changed the source. I have problems building fop beta 0.92 for java 1.3 I have jdk1.5.0_06 and Apache Ant version 1.6.5 compiled on June 2 2005. I changed the build.properties file (uncommented the two lines that seemed to be correct) javac.source = 1.3 javac.target = 1.3 I added jimi-1.0.jar in lib folder This is what ant prints: init-avail: [echo] --- Apache FOP 0.92beta [1999-2006] [echo] See build.properties and build-local.properties for additional build settings [echo] Apache Ant version 1.6.5 compiled on June 2 2005 [echo] VM: 1.5.0_06-b05, Sun Microsystems Inc. [echo] JAVA_HOME: C:\Program Files\Java\jdk1.5.0_06 [echo] Jimi Support PRESENT [echo] JAI Support NOT Present [echo] JCE Support PRESENT [echo] JUnit Support NOT Present - Committers are required to have JUnit wo rking [echo] XMLUnit Support NOT Present - you can get it from http://xmlunit.sou rceforge.net init-filters-jdk14: [echo] Use GraphicsConfiguration adapter for JDK 1.4. init-filters-jdk13: init: It seems like my build.properties setting for building java 1.3 does not get recognized and GraficsConfiguration adapter used if for JDK 1.4 instead of 1.3 Build is sucessful but when I use it in my embedded environment on Domino, no images can be rendered, this error is displayed: java.lang.NoClassDefFoundError: javax/imageio/ImageIO A while ago I had simular problems when building trunk for java 1.3 but the addition of jimi did the trick. Any suggestions ? Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need help with compiling fop beta for java 1.3 - images not working
When I change my JAVA_HOME to jdk 1.3 this is what I get: init-avail: [echo] --- Apache FOP 0.92beta [1999-2006] [echo] See build.properties and build-local.properties for additional build settings [echo] Apache Ant version 1.6.5 compiled on June 2 2005 [echo] VM: 1.3.1_19-b03, Sun Microsystems Inc. [echo] JAVA_HOME: C:\Java\jdk1.3.1_19 [echo] Jimi Support PRESENT [echo] JAI Support NOT Present [echo] JCE Support NOT Present [echo] JUnit Support NOT Present - Committers are required to have JUnit wo rking [echo] XMLUnit Support NOT Present - you can get it from http://xmlunit.sou rceforge.net init-filters-jdk14: init-filters-jdk13: [echo] Use GraphicsConfiguration adapter for JDK 1.3 or earlier. init: codegen: [echo] Generating the java files from xml resources [mkdir] Created dir: C:\Fop beta\build\gensrc [mkdir] Created dir: C:\Fop beta\build\gensrc\org\apache\fop\fonts\base14 [style] Processing C:\Fop beta\src\codegen\encodings.xml to C:\Fop beta\buil d\gensrc\org\apache\fop\fonts\CodePointMapping.java [style] Loading stylesheet C:\Fop beta\src\codegen\code-point-mapping.xsl BUILD FAILED javax.xml.transform.TransformerFactoryConfigurationError: Provider org.apache.xa lan.processor.TransformerFactoryImpl not found Jeremias Maerki [EMAIL PROTECTED] wrote on 15.12.2006 13:50:41: You need to set the JAVA_HOME environment variable to you actually compile with JDK 1.3.1. You currently compile with a 1.5 class library and compiler as you can see in the first echos from the build. Be sure to do an ant clear before you build after switching.
Re: Need help with compiling fop beta for java 1.3 - images not working
Copy xalan*.jar, xerces*.jar, serializer*.jar and xml-apis*.jar from FOP's lib directory into %ANT_HOME%/lib. That should do the trick. On 15.12.2006 16:02:16 jelka.kosir wrote: When I change my JAVA_HOME to jdk 1.3 this is what I get: init-avail: [echo] --- Apache FOP 0.92beta [1999-2006] [echo] See build.properties and build-local.properties for additional build settings [echo] Apache Ant version 1.6.5 compiled on June 2 2005 [echo] VM: 1.3.1_19-b03, Sun Microsystems Inc. [echo] JAVA_HOME: C:\Java\jdk1.3.1_19 [echo] Jimi Support PRESENT [echo] JAI Support NOT Present [echo] JCE Support NOT Present [echo] JUnit Support NOT Present - Committers are required to have JUnit wo rking [echo] XMLUnit Support NOT Present - you can get it from http://xmlunit.sou rceforge.net init-filters-jdk14: init-filters-jdk13: [echo] Use GraphicsConfiguration adapter for JDK 1.3 or earlier. init: codegen: [echo] Generating the java files from xml resources [mkdir] Created dir: C:\Fop beta\build\gensrc [mkdir] Created dir: C:\Fop beta\build\gensrc\org\apache\fop\fonts\base14 [style] Processing C:\Fop beta\src\codegen\encodings.xml to C:\Fop beta\buil d\gensrc\org\apache\fop\fonts\CodePointMapping.java [style] Loading stylesheet C:\Fop beta\src\codegen\code-point-mapping.xsl BUILD FAILED javax.xml.transform.TransformerFactoryConfigurationError: Provider org.apache.xa lan.processor.TransformerFactoryImpl not found Jeremias Maerki [EMAIL PROTECTED] wrote on 15.12.2006 13:50:41: You need to set the JAVA_HOME environment variable to you actually compile with JDK 1.3.1. You currently compile with a 1.5 class library and compiler as you can see in the first echos from the build. Be sure to do an ant clear before you build after switching. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need help with compiling fop beta for java 1.3 - images not working
Yes I see, It did the trick ... : ) It was strange because I had the fop lib in my classpath ... And building with ant and java 1.5 did not have this problems finding the fop lib jars ... Thank you for help, I hope I can now get to the main issues I have ... Jelka Jeremias Maerki [EMAIL PROTECTED] wrote on 15.12.2006 16:16:05: Copy xalan*.jar, xerces*.jar, serializer*.jar and xml-apis*.jar from FOP's lib directory into %ANT_HOME%/lib. That should do the trick. On 15.12.2006 16:02:16 jelka.kosir wrote: When I change my JAVA_HOME to jdk 1.3 this is what I get: init-avail: [echo] --- Apache FOP 0.92beta [1999-2006] [echo] See build.properties and build-local.properties for additional build settings [echo] Apache Ant version 1.6.5 compiled on June 2 2005 [echo] VM: 1.3.1_19-b03, Sun Microsystems Inc. [echo] JAVA_HOME: C:\Java\jdk1.3.1_19 [echo] Jimi Support PRESENT [echo] JAI Support NOT Present [echo] JCE Support NOT Present [echo] JUnit Support NOT Present - Committers are required to have JUnit wo rking [echo] XMLUnit Support NOT Present - you can get it from http://xmlunit.sou rceforge.net init-filters-jdk14: init-filters-jdk13: [echo] Use GraphicsConfiguration adapter for JDK 1.3 or earlier. init: codegen: [echo] Generating the java files from xml resources [mkdir] Created dir: C:\Fop beta\build\gensrc [mkdir] Created dir: C:\Fop beta\build\gensrc\org\apache\fop\fonts\base14 [style] Processing C:\Fop beta\src\codegen\encodings.xml to C:\Fop beta\buil d\gensrc\org\apache\fop\fonts\CodePointMapping.java [style] Loading stylesheet C:\Fop beta\src\codegen\code-point-mapping.xsl BUILD FAILED javax.xml.transform.TransformerFactoryConfigurationError: Provider org.apache.xa lan.processor.TransformerFactoryImpl not found Jeremias Maerki [EMAIL PROTECTED] wrote on 15.12.2006 13:50:41: You need to set the JAVA_HOME environment variable to you actually compile with JDK 1.3.1. You currently compile with a 1.5 class library and compiler as you can see in the first echos from the build. Be sure to do an ant clear before you build after switching. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need help with compiling fop beta for java 1.3 - images not working
On 15.12.2006 16:21:55 jelka.kosir wrote: Yes I see, It did the trick ... : ) It was strange because I had the fop lib in my classpath ... But Ant probably didn't have those libraries in the classpath and they are needed to generate some Java classes. And building with ant and java 1.5 did not have this problems finding the fop lib jars ... ...because since JDK 1.4 JAXP is part of the JDK/JRE. Thank you for help, I hope I can now get to the main issues I have ... Good luck! snip/ Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Need help with compiling fop beta for java 1.3 - images not working
I'm working on a problem I've posted earlier this week and I would need to rebuild fop since I've changed the source. I have problems building fop beta 0.92 for java 1.3 I have jdk1.5.0_06 and Apache Ant version 1.6.5 compiled on June 2 2005. I changed the build.properties file (uncommented the two lines that seemed to be correct) javac.source = 1.3 javac.target = 1.3 I added jimi-1.0.jar in lib folder This is what ant prints: init-avail: [echo] --- Apache FOP 0.92beta [1999-2006] [echo] See build.properties and build-local.properties for additional build settings [echo] Apache Ant version 1.6.5 compiled on June 2 2005 [echo] VM: 1.5.0_06-b05, Sun Microsystems Inc. [echo] JAVA_HOME: C:\Program Files\Java\jdk1.5.0_06 [echo] Jimi Support PRESENT [echo] JAI Support NOT Present [echo] JCE Support PRESENT [echo] JUnit Support NOT Present - Committers are required to have JUnit wo rking [echo] XMLUnit Support NOT Present - you can get it from http://xmlunit.sou rceforge.net init-filters-jdk14: [echo] Use GraphicsConfiguration adapter for JDK 1.4. init-filters-jdk13: init: It seems like my build.properties setting for building java 1.3 does not get recognized and GraficsConfiguration adapter used if for JDK 1.4 instead of 1.3 Build is sucessful but when I use it in my embedded environment on Domino, no images can be rendered, this error is displayed: java.lang.NoClassDefFoundError: javax/imageio/ImageIO A while ago I had simular problems when building trunk for java 1.3 but the addition of jimi did the trick. Any suggestions ?