Hello all,

I'm trying to embed fop in a jsp page, but get the following error:

java.lang.NoClassDefFoundError: org/w3c/dom/svg/SVGDocument
 at
org.apache.fop.image.analyser.ImageReaderFactory.Make(ImageReaderFactory.jav
a:46)
 at org.apache.fop.image.FopImageFactory.Make(FopImageFactory.java:109)
etc. etc. etc.

Line 46 in ImageReaderFactory is:

 formats.addElement(new SVGReader());

The line in my jsp page that causes the error is:

driver.run();  (where driver is an instance of org.apache.fop.apps.Driver)

The .fo file that I am using works fine from the command line.  I'm using
mandrake linux with jdk1.4 and tomcat 4.0.3.  Batik.jar contains an
org.w3c.dom.svg.SVGDocument, and batik.jar is definitely in my classpath, as
well as in the WEB-INF/lib directory of Tomcat.  Does anyone have any ideas
as far as what may be going on?

Thanks in advance.

John Fletcher
Latitude Geographics Group Ltd.
257 Market Square, Victoria, B.C., Canada V8W 3C6
Tel: (250) 381.8130   Fax: (250) 381.8132
www.latitudegeo.com   [EMAIL PROTECTED]

Reply via email to