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)
at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:254)
at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1371)
at org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:840)
at org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1853)
at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1234)
at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:948)
at org.apache.fop.apps.Driver.render(Driver.java:459)
at org.apache.fop.apps.Driver.run(Driver.java:542)
at FopServlet.renderFO(FopServlet.java:96)
at FopServlet.doGet(FopServlet.java:64)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)
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!
Dave.
e-mail: [EMAIL PROTECTED]
Internet: http://www.leggmasoninvestors.com
32 Harbour Exchange Square
London
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