Re: Batik on sun solaris 2.6
Hi Your WL instance is not connected to running XServer. Solutions: 1 Xvfb - virtual frame buffer and someting like DISPLAY=localhost:9 somewhere in WL start script 2 JDK 1.4 'awt.headless' option 3 (descibe somewhere on Batik (xml.apache.org/batik) pages, no-native graphics toolkit for java (GPL)). Tomek Pik [EMAIL PROTECTED] PS Maybe there should be FAQ, which will be send periodicaly to the list. Guillaume Patin wrote: Hi, I'm using fop 0.20.3 on weblogic 5.1 and sun solaris 2.6, jdk 1.3.1 I'm becoming mad with a batik problem : when generating the PDF document, weblogic throws an exception : java.lang.NoClassDefFoundError at org.apache.fop.svg.SVGElement.init(SVGElement.java:197) at org.apache.fop.svg.SVGElement.init(SVGElement.java:84) at org.apache.fop.svg.SVGElement$Maker.make(SVGElement.java:61) at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:261) but batik.jar is present in the classpath ! any idea ? Guillaume Patin 03 28 76 29 32 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
Re: external-graphic within a war file
Orford, Jeffrey wrote: Hi- I'm attempting to use a gif image using the fo:external-graphic tag. Both the gif file and the xsl file are located in a war file. The gif is located in a directory /images (from the war file's root) and the xsl file is located in a directory named web-inf. So far I've tried using the following: What is the best way to refer to an image from within a war file? Is the war file even the issue? Try ServletContext.getResource(/images/logo.gif); This will return mysterious java.net.URL instance. Put this URL (toString) into fo file (you have to process this file before running FOP - maybe Velocity?). Tomek Pik [EMAIL PROTECTED] Thanks. Jeff Orford
Re: external-graphic within a war file
Can you write, which servlet engine you use? I think, that url should have the following stucture: jar:file:c|//TEMP/mercury/lib/war/ecm/webapp_info.war!images/logo_gs.gif Tomek Orford, Jeffrey wrote: Thanks for the suggestion Tomasz, unfortunately it didn't work. The URL printed out as the following(without quotes): zip:C:/path to warfile/webapp_dealinfo.war#images/logo_gs.gif when I put this string in the fo xsl file as the value of the src attribute I got a similar error: [1Error while creating area : Invalid Image URL - error on relative URL : unknown protocol: nullc] Any other suggestions would be appreciated. Here's what the code looks like now: fo:table-cell fo:block fo:external-graphic src=zip:C:/TEMP/mercury/lib/war/ecm/webapp_info.war#images/logo_gs.gif / /fo:block /fo:table-cell Thanks. Jeff Orford -Original Message- From: Tomasz Pik [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 09, 2002 2:15 AM To: [EMAIL PROTECTED] Subject: Re: external-graphic within a war file Orford, Jeffrey wrote: Hi- I'm attempting to use a gif image using the fo:external-graphic tag. Both the gif file and the xsl file are located in a war file. The gif is located in a directory /images (from the war file's root) and the xsl file is located in a directory named web-inf. So far I've tried using the following: What is the best way to refer to an image from within a war file? Is the war file even the issue? Try ServletContext.getResource(/images/logo.gif); This will return mysterious java.net.URL instance. Put this URL (toString) into fo file (you have to process this file before running FOP - maybe Velocity?). Tomek Pik [EMAIL PROTECTED] Thanks. Jeff Orford
Re: Logger not set
Michael Engelhart wrote: Hi all, Does it matter if I just ignore setting the logger? I already have an application built around using Log4J and it seems silly to instantiate another logging system just to output 3 lines every time I run FOP. I just want to make sure that there isn't anything critical to the setLogger method Maybe it will be better to use Commons Logging package inside fop instead of Avalon LogKit - somebody may configure Logging to use LogKit, somebody to use Log4j. Regards Tomek Pik [EMAIL PROTECTED] thanks Mike