Re: Batik Problems
ImageConverters instead... 2012-02-02 12:51:38,379 [pool-1-thread-2] DEBUG org.apache.xmlgraphics.image.loader.pipeline.PipelineFactory - Lowest penalty: 2147483647 2012-02-02 12:51:38,379 [pool-1-thread-2] DEBUG org.apache.xmlgraphics.image.loader.pipeline.PipelineFactory - Lowest penalty: 2147483647 2012-02-02 12:51:38,379 [pool-1-thread-2] DEBUG org.apache.xmlgraphics.image.loader.pipeline.PipelineFactory - No route found! 2012-02-02 12:51:38,379 [pool-1-thread-2] DEBUG org.apache.xmlgraphics.image.loader.pipeline.PipelineFactory - No route found! 2012-02-02 12:51:38,379 [pool-1-thread-2] DEBUG org.apache.xmlgraphics.image.loader.pipeline.PipelineFactory - Pipeline: Loader: org.apache.fop.image.loader.batik.ImageLoaderSVG@67214626 with penalty 0 2012-02-02 12:51:38,379 [pool-1-thread-2] DEBUG org.apache.xmlgraphics.image.loader.pipeline.PipelineFactory - Pipeline: Loader: org.apache.fop.image.loader.batik.ImageLoaderSVG@67214626 with penalty 0 Kindest regards Theresa Forster Senior Software Developer *From:*Theresa Jayne Forster [mailto:ther...@inbrand.co.uk] *Sent:* 02 February 2012 11:58 *To:* fop-users@xmlgraphics.apache.org *Subject:* Batik Problems Ok I have solved my batik issue, apparently you cannot use one-jar to create a standalone jar as it cannot get the default CSS and XSD files from the library batik jars. So changing to using maven assembly plugin it now puts the jars in unpacked, so the classes and files are available. Now the images are not working 2012-02-02 11:43:22,638 [pool-1-thread-2] ERROR org.apache.fop.apps.FOUserAgent - Image not found. URI: \InBrand\preprocessor\filestore\img3980813249191582957.jpg. (No context info available) 2012-02-02 11:43:22,638 [pool-1-thread-2] ERROR org.apache.fop.apps.FOUserAgent - Image not found. URI: \InBrand\preprocessor\filestore\img3980813249191582957.jpg. (No context info available) I have the BASEURL set in the fopconfig.xml file as / I also tried accessing them as explicit paths 2012-02-02 11:56:54,428 [pool-1-thread-4] ERROR org.apache.fop.apps.FOUserAgent - Image not found. URI: C:\InBrand\preprocessor\filestore\img4930914128352311319.jpg. (No context info available) 2012-02-02 11:56:54,428 [pool-1-thread-4] ERROR org.apache.fop.apps.FOUserAgent - Image not found. URI: C:\InBrand\preprocessor\filestore\img4930914128352311319.jpg. (No context info available) I just saw the following in the logs... Why is it trying to load a jpg as an SVG? 2012-02-02 11:48:19,973 [pool-1-thread-2] DEBUG org.apache.fop.image.loader.batik.PreloaderSVG - Error while trying to load stream as an SVG file: Invalid byte 1 of 1-byte UTF-8 sequence. 2012-02-02 11:48:19,973 [pool-1-thread-2] DEBUG org.apache.fop.image.loader.batik.PreloaderSVG - Error while trying to load stream as an SVG file: Invalid byte 1 of 1-byte UTF-8 sequence. 2012-02-02 11:48:19,974 [pool-1-thread-2] ERROR org.apache.fop.apps.FOUserAgent - Image not available. URI: \InBrand\preprocessor\filestore\img3970845222913192771.jpg. Reason: org.apache.xmlgraphics.image.loader.ImageException: The file format is not supported. No ImagePreloader found for \InBrand\preprocessor\filestore\img3970845222913192771.jpg (See position 1296:195) 2012-02-02 11:48:19,974 [pool-1-thread-2] ERROR org.apache.fop.apps.FOUserAgent - Image not available. URI: \InBrand\preprocessor\filestore\img3970845222913192771.jpg. Reason: org.apache.xmlgraphics.image.loader.ImageException: The file format is not supported. No ImagePreloader found for \InBrand\preprocessor\filestore\img3970845222913192771.jpg (See position 1296:195) Can anyone suggest why this was working and now is not? Kindest regards Theresa Forster Senior Software Developer
Batik Problems
Ok I have solved my batik issue, apparently you cannot use one-jar to create a standalone jar as it cannot get the default CSS and XSD files from the library batik jars. So changing to using maven assembly plugin it now puts the jars in unpacked, so the classes and files are available. Now the images are not working.. 2012-02-02 11:43:22,638 [pool-1-thread-2] ERROR org.apache.fop.apps.FOUserAgent - Image not found. URI: \InBrand\preprocessor\filestore\img3980813249191582957.jpg. (No context info available) 2012-02-02 11:43:22,638 [pool-1-thread-2] ERROR org.apache.fop.apps.FOUserAgent - Image not found. URI: \InBrand\preprocessor\filestore\img3980813249191582957.jpg. (No context info available) I have the BASEURL set in the fopconfig.xml file as / I also tried accessing them as explicit paths 2012-02-02 11:56:54,428 [pool-1-thread-4] ERROR org.apache.fop.apps.FOUserAgent - Image not found. URI: C:\InBrand\preprocessor\filestore\img4930914128352311319.jpg. (No context info available) 2012-02-02 11:56:54,428 [pool-1-thread-4] ERROR org.apache.fop.apps.FOUserAgent - Image not found. URI: C:\InBrand\preprocessor\filestore\img4930914128352311319.jpg. (No context info available) I just saw the following in the logs. Why is it trying to load a jpg as an SVG? 2012-02-02 11:48:19,973 [pool-1-thread-2] DEBUG org.apache.fop.image.loader.batik.PreloaderSVG - Error while trying to load stream as an SVG file: Invalid byte 1 of 1-byte UTF-8 sequence. 2012-02-02 11:48:19,973 [pool-1-thread-2] DEBUG org.apache.fop.image.loader.batik.PreloaderSVG - Error while trying to load stream as an SVG file: Invalid byte 1 of 1-byte UTF-8 sequence. 2012-02-02 11:48:19,974 [pool-1-thread-2] ERROR org.apache.fop.apps.FOUserAgent - Image not available. URI: \InBrand\preprocessor\filestore\img3970845222913192771.jpg. Reason: org.apache.xmlgraphics.image.loader.ImageException: The file format is not supported. No ImagePreloader found for \InBrand\preprocessor\filestore\img3970845222913192771.jpg (See position 1296:195) 2012-02-02 11:48:19,974 [pool-1-thread-2] ERROR org.apache.fop.apps.FOUserAgent - Image not available. URI: \InBrand\preprocessor\filestore\img3970845222913192771.jpg. Reason: org.apache.xmlgraphics.image.loader.ImageException: The file format is not supported. No ImagePreloader found for \InBrand\preprocessor\filestore\img3970845222913192771.jpg (See position 1296:195) Can anyone suggest why this was working and now is not? Kindest regards Theresa Forster Senior Software Developer
RE: Batik Problems
org.apache.xmlgraphics.image.loader.pipeline.PipelineFactory - Lowest penalty: 2147483647 2012-02-02 12:51:38,379 [pool-1-thread-2] DEBUG org.apache.xmlgraphics.image.loader.pipeline.PipelineFactory - No route found! 2012-02-02 12:51:38,379 [pool-1-thread-2] DEBUG org.apache.xmlgraphics.image.loader.pipeline.PipelineFactory - No route found! 2012-02-02 12:51:38,379 [pool-1-thread-2] DEBUG org.apache.xmlgraphics.image.loader.pipeline.PipelineFactory - Pipeline: Loader: org.apache.fop.image.loader.batik.ImageLoaderSVG@67214626 with penalty 0 2012-02-02 12:51:38,379 [pool-1-thread-2] DEBUG org.apache.xmlgraphics.image.loader.pipeline.PipelineFactory - Pipeline: Loader: org.apache.fop.image.loader.batik.ImageLoaderSVG@67214626 with penalty 0 Kindest regards Theresa Forster Senior Software Developer From: Theresa Jayne Forster [mailto:ther...@inbrand.co.uk] Sent: 02 February 2012 11:58 To: fop-users@xmlgraphics.apache.org Subject: Batik Problems Ok I have solved my batik issue, apparently you cannot use one-jar to create a standalone jar as it cannot get the default CSS and XSD files from the library batik jars. So changing to using maven assembly plugin it now puts the jars in unpacked, so the classes and files are available. Now the images are not working.. 2012-02-02 11:43:22,638 [pool-1-thread-2] ERROR org.apache.fop.apps.FOUserAgent - Image not found. URI: \InBrand\preprocessor\filestore\img3980813249191582957.jpg. (No context info available) 2012-02-02 11:43:22,638 [pool-1-thread-2] ERROR org.apache.fop.apps.FOUserAgent - Image not found. URI: \InBrand\preprocessor\filestore\img3980813249191582957.jpg. (No context info available) I have the BASEURL set in the fopconfig.xml file as / I also tried accessing them as explicit paths 2012-02-02 11:56:54,428 [pool-1-thread-4] ERROR org.apache.fop.apps.FOUserAgent - Image not found. URI: C:\InBrand\preprocessor\filestore\img4930914128352311319.jpg. (No context info available) 2012-02-02 11:56:54,428 [pool-1-thread-4] ERROR org.apache.fop.apps.FOUserAgent - Image not found. URI: C:\InBrand\preprocessor\filestore\img4930914128352311319.jpg. (No context info available) I just saw the following in the logs. Why is it trying to load a jpg as an SVG? 2012-02-02 11:48:19,973 [pool-1-thread-2] DEBUG org.apache.fop.image.loader.batik.PreloaderSVG - Error while trying to load stream as an SVG file: Invalid byte 1 of 1-byte UTF-8 sequence. 2012-02-02 11:48:19,973 [pool-1-thread-2] DEBUG org.apache.fop.image.loader.batik.PreloaderSVG - Error while trying to load stream as an SVG file: Invalid byte 1 of 1-byte UTF-8 sequence. 2012-02-02 11:48:19,974 [pool-1-thread-2] ERROR org.apache.fop.apps.FOUserAgent - Image not available. URI: \InBrand\preprocessor\filestore\img3970845222913192771.jpg. Reason: org.apache.xmlgraphics.image.loader.ImageException: The file format is not supported. No ImagePreloader found for \InBrand\preprocessor\filestore\img3970845222913192771.jpg (See position 1296:195) 2012-02-02 11:48:19,974 [pool-1-thread-2] ERROR org.apache.fop.apps.FOUserAgent - Image not available. URI: \InBrand\preprocessor\filestore\img3970845222913192771.jpg. Reason: org.apache.xmlgraphics.image.loader.ImageException: The file format is not supported. No ImagePreloader found for \InBrand\preprocessor\filestore\img3970845222913192771.jpg (See position 1296:195) Can anyone suggest why this was working and now is not? Kindest regards Theresa Forster Senior Software Developer
Re: FOP or batik problems to convert fo files
I have solved it changing .bash_profile file instead of exporting CLASSPATH each time. Let's see how it works for next days ;) Thanks and best regards, 2005/7/19, Jose Manrique Lopez de la Fuente [EMAIL PROTECTED]: 2005/7/18, [EMAIL PROTECTED] [EMAIL PROTECTED]: J.: Is batik.jar in your classpath? You need this jar for SVGs. I think so: reutiliza7:~/Desktop jsmanrique$ CLASSPATH=/opt/fop-0.20.5/build/fop.jar:\ /opt/fop-0.20.5/lib/batik.jar:\ /opt/fop-0.20.5/lib/xalan-2.4.1.jar:\ /opt/fop-0.20.5/lib/xercesImpl-2.2.1.jar:\ /opt/fop-0.20.5/lib/xml-apis.jar:\ /opt/fop-0.20.5/lib/avalon-framework-cvs-20020806.jar:\ /opt/fop-0.20.5/lib/ant-1.5.1.jar:\ /opt/fop-0.20.5/JimiProClasses.jar reutiliza7:~/Desktop jsmanrique$ export CLASSPATH reutiliza7:~/Desktop jsmanrique$ java org.apache.fop.apps.Fop -fo prueba.fo -pdf prueba.pdf [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] FOP 0.20.5 [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser Exception in thread main java.lang.NoClassDefFoundError: org/apache/batik/util/XMLResourceDescriptor at org.apache.fop.svg.SVGElementMapping.setupSVG(SVGElementMapping.java:72) at org.apache.fop.svg.SVGElementMapping.addToBuilder(SVGElementMapping.java:134) at org.apache.fop.apps.Driver.addElementMapping(Driver.java:439) at org.apache.fop.apps.Driver.addElementMapping(Driver.java:450) at org.apache.fop.apps.Driver.setupDefaultMappings(Driver.java:314) at org.apache.fop.apps.Driver.init(Driver.java:222) at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:92) at org.apache.fop.apps.Fop.main(Fop.java:62) reutiliza7:~/Desktop jsmanrique$ And there ins't any SVG in the xml file I am using... Thanks and best regards, -- J. Manrique López de la Fuente http://www.jsmanrique.net msn: [EMAIL PROTECTED] jabber: [EMAIL PROTECTED] -- J. Manrique López de la Fuente http://www.jsmanrique.net msn: [EMAIL PROTECTED] jabber: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FOP or batik problems to convert fo files
hello, I am trying to use FOP to convert .fo files to .pdf files in MacOS X 10.3.9, but after installing it using this[1] instructions I get this: reutiliza7:~/Desktop jsmanrique$ java org.apache.fop.apps.Fop -fo prueba.fo -pdf prueba.pdf [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] FOP 0.20.5 [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser Exception in thread main java.lang.NoClassDefFoundError: org/apache/batik/util/XMLResourceDescriptor at org.apache.fop.svg.SVGElementMapping.setupSVG(SVGElementMapping.java:72) at org.apache.fop.svg.SVGElementMapping.addToBuilder(SVGElementMapping.java:134) at org.apache.fop.apps.Driver.addElementMapping(Driver.java:439) at org.apache.fop.apps.Driver.addElementMapping(Driver.java:450) at org.apache.fop.apps.Driver.setupDefaultMappings(Driver.java:314) at org.apache.fop.apps.Driver.init(Driver.java:222) at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:92) at org.apache.fop.apps.Fop.main(Fop.java:62) reutiliza7:~/Desktop jsmanrique$ What am I doing wrong? Thanks and best regards, [1] http://www.sagehill.net/docbookxsl/InstallingAnFO.html -- J. Manrique López de la Fuente http://www.jsmanrique.net msn: [EMAIL PROTECTED] jabber: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]