cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Turner <>
Subject Using FOP's Batik in Cocoon (Re: Cocoon's FOP hardcoded with JAI?)
Date Wed, 10 Sep 2003 11:49:40 GMT
On Wed, Sep 10, 2003 at 12:59:07PM +0200, Steven Noels wrote:
> Jeff Turner wrote:
> >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.
> Me too, as I'm experiencing the exact same problem as you described, 
> with jimi.jar on the classpath. Even worse, there isn't a supported 
> version of JAI for Mac OSX.
> With the latest binary release version of FOP, I have no problems at 
> all, so unless someone objects, I'll revert to that one.


While you're at it, we should consider replacing Cocoon's Batik with that
from FOP 0.20.5.  Building FOP's site with CVS Forrest (fop 0.20.5 +
Batik from CVS) results in this error:

* [0] dev/svg/text.svg
Exception in thread "main" java.lang.NoSuchMethodError: org.apache.batik.bridge.UnitProcessor.createContext(Lorg/apache/batik/bridge/BridgeContext;Lorg/w3c/dom/Element;)Lorg/apache/batik/util/UnitProcessor$Context;
        at org.apache.fop.svg.SVGElement.layout(

Apparently this is a symptom of FOP requiring its own version of Batik:

When I switch in FOP's Batik, the problem disappears.  So I've committed
it for Forrest.

It's not clear-cut though.  Quoting the first referenced email:

  "This [using FOP's Batik] may have negative impacts on Cocoons SVG
  serializer though, so you should not use a PDF generating pipeline
  which uses embedded or referenced SVGs and a SVG generating pipeline at
  the same time.

Cc'ing fop-dev's who better know the pros and cons of this move.


> </Steven>
> -- 
> Steven Noels                  
> Outerthought - Open Source Java & XML            An Orixo Member
> Read my weblog at  
> stevenn at                stevenn at

View raw message