Following up on this, I am unable to replicate within Cocoon's webapp. The minimal.fo.xml page renders fine with an embedded image. So I won't tinker with src/blocks/fop/lib/*.
However Forrest continues to break when using Cocoon's version of FOP, so I'll switch Forrest's jar to that from the official 0.20.5 binary. I'd be interested to know if any other users experience this problem, and also why Cocoon needs a recompiled FOP jar in the first place. --Jeff On Tue, Sep 02, 2003 at 04:19:07PM -0700, Jeff Turner wrote: > On Tue, Sep 02, 2003 at 11:27:30PM +0200, Christian Geisert wrote: > > [EMAIL PROTECTED] schrieb: > > >jefft 2003/08/31 02:41:53 > > > > > > Modified: etc/cocoon_upgrade upgrade_cocoon_jars.sh > > > Log: > > > Don't upgrade FOP, as 0.20.5 seems to have a JAI dependency hardcoded > > > > Huh? > > FOP 0.20.5 is build with JAI and Jimi support but the runtime usage is > > dynamic which means if JAI is not available then Jimi is used. > > It looks like Cocoon's src/blocks/fop/lib/fop-0.20.5.jar was compiled with only > JAI support. It goes bang when trying to render images with Jimi or when > neither Jimi nor JAI is present: > > ... > * [0] community/index.pdf > * [0] skin/images/menu-left.gif > * [0] images/remove.jpg > Exception in thread "main" java.lang.NoClassDefFoundError: > com/sun/media/jai/codec/FileCacheSeekableStream > at org.apache.fop.image.JAIImage.loadImage(JAIImage.java:95) > at > org.apache.fop.image.AbstractFopImage.getBitmaps(AbstractFopImage.java:281) > at org.apache.fop.pdf.PDFXObject.output(PDFXObject.java:233) > at org.apache.fop.pdf.PDFDocument.output(PDFDocument.java:1296) > at org.apache.fop.render.pdf.PDFRenderer.render(PDFRenderer.java:888) > at org.apache.fop.apps.StreamRenderer.queuePage(StreamRenderer.java:302) > at org.apache.fop.layout.AreaTree.addPage(AreaTree.java:108) > at org.apache.fop.fo.pagination.PageSequence.makePage(PageSequence.java:415) > at org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:338) > at org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:262) > at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:223) > at org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:147) > at org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:147) > > Replacing Cocoon's fop-0.20.5.jar with that from the FOP distribution fixes the > problem. > > The CVS log for Cocoon's FOP jar says: > > ---------------------------- > revision 1.3 > date: 2003/08/21 01:57:42; author: joerg; state: Exp; lines: +4888 -4746 > after update to batik 1.5 rebuild of fop 0.20.5 > ---------------------------- > > I'm not sure what this means. Batik doesn't use FOP does it? Is it safe for > me to commit the FOP 0.20.5 jar to Cocoon? > > > --Jeff > > > > Christian > >
