You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by John Fletcher <jf...@latitudegeo.com> on 2002/05/29 20:06:44 UTC

NoClassDefFoundError - SVGDocument

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   jfletcher@latitudegeo.com


Re: NoClassDefFoundError - SVGDocument

Posted by John Fletcher <jf...@latitudegeo.com>.
Thanks.  I put the Batik jar into the Tomcat lib directory and it worked
great.

John Fletcher

> John Fletcher wrote:
> > 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?
>
> Tomcat 4.0.3 has a bug in the classloader. Move the Batik
> jar and possibly other jars to the Tomcat lib directory.
> Consult the Cocoon FAQ for details.
>
> J.Pietschmann
>
>
>


Re: NoClassDefFoundError - SVGDocument

Posted by "J.Pietschmann" <j3...@yahoo.de>.
John Fletcher wrote:
> 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?

Tomcat 4.0.3 has a bug in the classloader. Move the Batik
jar and possibly other jars to the Tomcat lib directory.
Consult the Cocoon FAQ for details.

J.Pietschmann