Hi, Iam building an application with FOP in Jetspeed portlet. It dont generate or formatting XML to PDF file when i run this in the portlet or in a 'java applet'. Here is a litle debug list: using "embedding.package" FOP ExampleObj2XML Preparing... Input: a CustomerOrder object Output: XML (C:\FUTURE\eclipse\xml\xml\CustomerOrder.xml) Serializing... Input: XML (C:\FUTURE\eclipse\xml\xml\CustomerOrder.xml) Stylesheet: C:\FUTURE\eclipse\xml\xslt\CustomerOrderfo.xsl Output: PDF (C:\FUTURE\eclipse\xml\xml\CustomerOrder.pdf) Transforming... Start XSLT transformation and FOP processing [DEBUG] Building formatting object tree [DEBUG] Current heap size: 1730Kb [DEBUG] Parsing of document complete [DEBUG] Initial heap size: 1501Kb [DEBUG] Current heap size: 1741Kb [DEBUG] Total memory used: 239Kb [DEBUG] Memory use is indicative; no GC was performed [DEBUG] These figures should not be used comparatively [DEBUG] Total time used: 1151ms [DEBUG] Pages rendered: 0 //This look like the pages did not rendered. --> Pages rendered: 0 Here is an debug when i use this in Java application: FOP ExampleXML2PDF Preparing... Input: XML (.\xml\xml\CustomerOrder.xml) Stylesheet: .\xml\xslt\CustomerOrderfo.xsl Output: PDF (.\out\CustomerOrder.pdf) Transforming... [INFO] building formatting object tree [WARNING] Screen logger not set - Using ConsoleLogger. [INFO] setting up fonts [INFO] [1] [WARNING] Sum of fixed column widths 269290 greater than maximum specified IPD 99212 [INFO] area contents overflows area in line [WARNING] Sum of fixed column widths 481884 greater than maximum specified IPD 99212 [WARNING] Sum of fixed column widths 269289 greater than maximum specified IPD 42519 [WARNING] Sum of fixed column widths 269290 greater than maximum specified IPD 42519 [INFO] area contents overflows area in line [WARNING] Sum of fixed column widths 269289 greater than maximum specified IPD 42519 [WARNING] Sum of fixed column widths 269290 greater than maximum specified IPD 42519 [INFO] area contents overflows area in line [INFO] Parsing of document complete, stopping renderer Iam using the same XML and xsl-fo file in both of these application. The same with the Java code, and the same component. But it only works in Java application and not in an java applet or in Jetspeed portlet. I hope you can help me with a solution by this problem.
<Q> But it only works in Java application and not in an java applet or in Jetspeed portlet. I hope you can help me with a solution by this problem. </Q> For applets: FOP works as a Java application, so will work with Servlets (and should also with applets, providing the files can be both accessed and written to.) (http://xml.apache.org/fop/servlets.html). This appears to a question better placed on FOP-USER. IIRC the Xalan project has a sample Xalan Applet that can possibly/probably be customized to use FOP--but we don't get many requests at all for that. As for Jetspeed, we don't do anything with that product--like Cocoon, they interface with us, not vice-versa. If you're having problems getting Jetspeed to work with FOP--that is something to ask on their user lists, and, if Jetspeed does not support FOP, then either switch to a product that does or enter an enhancement request *on Jetspeed* to get their product to support FOP. As long as FOP works in a Java application, our part of the job is done--we don't code for our "consumer" applications, they code for us. xerces <-- xalan <-- fop <-- cocoon, jetspeed(?) Thanks, Glen
batch transition to closed remaining pre-FOP1.0 resolved bugs