Re: problems with fo:external-graphic
Hello Michael, Do you still have the same problem ? (SVGDocument class not found ?) I've got the same problem. It heavily depends on your tomcat version you are using. A quick hack for me was to move batik.jar from my WEB-INF/lib directory to Tomcat's common/lib. It works, but it's not very cool if you wish to make a deployable archive (a WAR file), because you have to install the WAR, ANDTHEN : Batik.jar in common/lib. Ithink the problem comes from Tomcat itself, in the way it loads the jar files. The custom class loaders behaves totally differently between Tomcat 3.2 and Tomcat 4.0.x. And even between Tomcat 4.0.1, 2 and 3 I donthave the problem with Tomcat 4.0.1 (jdk1.3.1on Linux and on Windows2K) and the problem appears with Tomcat 4.0.3 on W2K. Did you find another solution to this problem ? Guillaume "Michael Schifferdecker" [EMAIL PROTECTED]wrote Hello all,I have a problem with fo:external-graphic.I use a Servlet to do PDF generation together with a test style sheet whichproduces FO-code in which the following fo:external-graphic is contained:...fo:external-graphic src=""height="0.58cm" width="2.71cm"/...When I use this under jBuilder with integrated Apache Tomcat 3.2 to includethe GIF fd_logo.gif into the PDF everything works fine.But: after the whole application is distributed to my stand alone Tomcat 4.0server problems occur (see following exception).The error occurs with FOP 0.20.2RC and with 0.20.3 also.What's the cause for this?What alternatives do I have?Best regards, Michael(exception information follows)exception root cause... java.lang.NoClassDefFoundError: org/w3c/dom/svg/SVGDocumentcomplete exception as follows...type Exception reportmessage Internal Server Errordescription The server encountered an internal error (Internal Server Error)that prevented it from fulfilling this request.exceptionjavax.servlet.ServletException: Servlet execution threw an exception atroot causejava.lang.NoClassDefFoundError: org/w3c/dom/svg/SVGDocument atorg.apache.fop.image.analyser.ImageReaderFactory.Make(ImageReaderFactory.java:45) at org.apache.fop.image.FopImageFactory.Make(FopImageFactory.java:100) at org.apache.fop.fo.flow.ExternalGraphic.layout(ExternalGraphic.java:125) at org.apache.fop.fo.flow.Block.layout(Block.java:259) at org.apache.fop.fo.flow.TableCell.layout(TableCell.java:263) at org.apache.fop.fo.flow.TableRow.layout(TableRow.java:344) at org.apache.fop.fo.flow.TableBody.layout(TableBody.java:172) at org.apache.fop.fo.flow.Table.layout(Table.java:226) at org.apache.fop.fo.flow.Block.layout(Block.java:259) at org.apache.fop.fo.flow.StaticContent.layout(StaticContent.java:78) atorg.apache.fop.fo.pagination.PageSequence.layoutStaticContent(PageSequence.java:413) atorg.apache.fop.fo.pagination.PageSequence.formatStaticContent(PageSequence.java:362) at org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:302) at org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:191) at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:178) at org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1398) atorg.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator.java:1007) atorg.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1255) atorg.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:380) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:908) at org.apache.fop.apps.Driver.render(Driver.java:459) at org.apache.fop.apps.Driver.run(Driver.java:542) atformdirekt.pdfgen.POSTReceiveServlet.renderFO(POSTReceiveServlet.java:145) at formdirekt.pdfgen.POSTReceiveServlet.doPost(POSTReceiveServlet.java:71) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at.
Re: problems with fo:external-graphic
I'm not using Tomcat. I just have a standalone application that I'm using. All the libraries are in a directory that I add to my classpath. The error I'm getting is that the image is not found. Thanks mike On Tuesday, March 12, 2002, at 11:17 AM, Guillaume Laforge wrote: Hello Michael, Do you still have the same problem ? (SVGDocument class not found ?) I've got the same problem. It heavily depends on your tomcat version you are using. A quick hack for me was to move batik.jar from my WEB-INF/lib directory to Tomcat's common/lib. It works, but it's not very cool if you wish to make a deployable archive (a WAR file), because you have to install the WAR, AND THEN : Batik.jar in common/lib. I think the problem comes from Tomcat itself, in the way it loads the jar files. The custom class loaders behaves totally differently between Tomcat 3.2 and Tomcat 4.0.x. And even between Tomcat 4.0.1, 2 and 3 I dont have the problem with Tomcat 4.0.1 (jdk1.3.1 on Linux and on Windows2K) and the problem appears with Tomcat 4.0.3 on W2K. Did you find another solution to this problem ? Guillaume