Re: Servlet problems
I also faced the same problem, and resolved it the same way : moving the jars from WEB-INF/lib to TOMCAT/COMMON/LIB. And AFAIK, the reason for that issue is that since Tomcat 4.0.3, the class loader system has changed and doesn't load libraries like we were used to. It's weird, and it's problematic when you wish to bundle everything in a single WAR archive. So, yes, you're right, the problem comes from our "beloved" Tomcat which doesnt load jars as it used to ! It's not FOP's fault ! Guillaume - Original Message - From: Higgins, James To: '[EMAIL PROTECTED]' Sent: Wednesday, March 27, 2002 3:14 PM Subject: RE: Servlet problems That works, but can you provide a reason why that works and placing it in webapps/fop/WEB-INF/lib doesn't?Flakiness in the Tomcat class loader?Thanks for the help :)James
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: watermarking
I've heard some people using FOP for generating PDFs, then using iText afterwards to add watermarking to their dynamically FOP-generated PDFs. But I havent tested it myself. Good luck. Guillaume - Original Message - From: Chris Faulkner To: [EMAIL PROTECTED] Sent: Tuesday, March 05, 2002 10:44 AM Subject: watermarking hello allIs there any way of adding some kind of watermark to a PDF document generated with FOP ? I am using FOP in a JSP environment.ThanksChris
Re: Background Color
I thought that when you define your fo:region-body in your fo:simple-page-master (in the fo:layout-master-set) you could define a background-color attribute... but unfortunately, it doesnt work :o/ Maybe it's not yet implemented ? - Original Message - From: Ian Taylor To: [EMAIL PROTECTED] Sent: Wednesday, February 27, 2002 10:33 AM Subject: Background Color How do you change the background color of a whole page? I am applying it to all my tables at the moment but there are white areas between them that I would like to be blue.Thanks
Re: BindException
I wish it were so simple, but it isnt ! Before adding some class creating some PDF with FOP, everything works perfectly. Tomcat is configured on port 8080, but that's not the problem, and no other program is using this port. The simple fact of adding fop.jar in WEB-INF/lib of my webapp causes this problem. And as soon as I remove fop.jar, everything works fine again, like before! Weird, isnt it ? From: Bertrand Delacretaz To: [EMAIL PROTECTED] Sent: Monday, February 25, 2002 3:04 PM Subject: Re: BindException On Monday 25 February 2002 14:29, Guillaume Laforge wrote:. . . java.net.BindException: Adresse déjà utilisée LifecycleException: null.open: java.net.BindException: Adresse déjà utilisée at org.apache.catalina.connector.http.HttpConnector.initialize. . .Looks like tomcat is unable to start its HttpConnector, meaning the port that it wants to use (8080 as standard, but check your tomcat config) is already used by another program. Maybe by another instance of tomcat if it wasn't stopped properly.Most likely this has nothing to do with the X server.-- -- Bertrand Delacrétaz, www.codeconsult.ch-- web technologies consultant - OO, Java, XML, C++