Peter B. West wrote:
Jeremias Maerki wrote:

Make sure you're using the Batik version that comes with FOP 0.20.5.
Newer versions of Batik have a backwards-incompatible change in the API.
The alternative is to use the maintenance branch [1] where the necessary
adjustments have been made.

[1] http://svn.apache.org/repos/asf/xmlgraphics/fop/branches/fop-0_20_2-maintain/

On 07.12.2005 11:27:04 Peter B. West wrote:

I'm trying to output an SVG image as an fo:external-graphic. I'm getting the following:

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.image.analyser.SVGReader.loadImage(SVGReader.java:107)

at org.apache.fop.image.analyser.SVGReader.verifySignature(SVGReader.jav
a:85)
at org.apache.fop.image.analyser.ImageReaderFactory.Make(ImageReaderFact
ory.java:129)
at org.apache.fop.image.FopImageFactory.Make(FopImageFactory.java:181) at org.apache.fop.fo.flow.ExternalGraphic.layout(ExternalGraphic.java:18
8)

Is this a classpath problem, is it not finding the image, or is it something else?



Hi Jeremias,

As far as I can tell, I'm using a standard 0.20.5 distribution. The script I'm using is calling the fop.bat script, and the classpath includes the lib/batik.jar from 0.20.5. ???

Peter

There is a local habit of dropping every jar that comes along into jre/lib/ext, including batik 1.6. That will be the problem.

Peter
---
[This E-mail has been scanned for viruses but it is your responsibility to maintain up to date anti virus software on the device that you are
currently using to read this email. ]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to