Title: RE: Displaying SVG with the Fop servlet

I've found a solution to my problem in the "Running FOP" section on xml.apache.org.

In the end all I did was move all the jar files that came with the 0.20.2 distribution into the \jdk1.3\jre\lib\ext directory as described in "Method 3" and now my FO files with all their SVG external-graphics display perfectly in the browser.

Thanks to Alex McLintock & Keiron Liddle for their help...


Dave Richardson.

Internet:  http://www.leggmasoninvestors.com

32 Harbour Exchange Square
E14 9GE

Tel:            +44 (0) 20 7070 7420
Fax:            +44 (0) 20 7070 7421

This message and any attachments is intended only for the individual or company to which it is addressed and may contain information which is privileged, confidential or prohibited from disclosure or unauthorised use.  If the recipient of this transmission is not the intended recipient, or the employee or agent responsible for delivering such materials to the intended recipient, you are hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail message or its attachments other than by its intended recipient is strictly prohibited by the sender.  If you have received it in error, please notify us immediately by telephone +44 (0) 20 7070 7420 and destroy the message and all copies in your possession

 -----Original Message-----
From:   Keiron Liddle [mailto:[EMAIL PROTECTED]]
Sent:   31 October 2001 08:52
Subject:        Re: Displaying SVG with the Fop servlet

Most likely you have something wrong with your classpath.
The is probably an older version of the dom interfaces in you classpath.
You should firstly try putting batik first in your classpath and make sure
there are no other xml pasers etc. that shouldn't be there.

On 2001.10.30 18:05 [EMAIL PROTECTED] wrote:
> Hello there!
> I have a problem displaying fo files that contain svg using the Fop
> servlet
> supplied with distribution 0.20.2.
> Fo files without any svg content generate and display in the browser with
> no
> problem, fo files with svg generate and display fine if I run Fop from
> the
> command line and view them in Acrobat.  But I can't get the servlet to
> handle fo files that contain svg as external-graphics or as
> instream-foreign-objects, either files I've created myself or the sample
> files that came with the Fop distribution.
> The error I get is...
> Error: 500
> Location: /fop/servlet/fop
> Internal Servlet Error:
> java.lang.NoSuchMethodError
>       at org.apache.fop.svg.SVGElement.init(SVGElement.java:191)
>       at org.apache.fop.svg.SVGElement.(SVGElement.java:83)
>       at org.apache.fop.svg.SVGElement$Maker.make(SVGElement.java:60)
> I'm using the fop, xalan, xerces, batik etc jars that came with
> distribution
> 0.20.2 of fop, are there any others I need or does the order I specify
> them
> in the classpath make a difference?  Since I can display FO but not SVG I
> feel like I'm very close, so hopefully there's a simple answer 8-)
> If anyone can help shed some light on this it would be greatly
> appreciated!!!
> Thanks very much in advance...
> íSalud!

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

Reply via email to