W3C home > Mailing lists > Public > www-xsl-fo@w3.org > August 2002

Error in Embedding FOP....

From: ssimha <ssimha@questech.co.in>
Date: Tue, 13 Aug 2002 01:19:01 -0400 (EDT)
To: www-xsl-fo@w3.org
Message-Id: <20020813052238.M93074@questech.co.in>




Hi friends, 

I'm facing a problem in embedding FOP into my servlet...  I have written a 
servlet to generate PDF file making use of XML and XSL 
files. It's works fine when this servlet runs on tomcat3.1. 
BUT if I copy whole context to tomcat3.2.2 and above versions it's throwing 
following error...

Internal Servlet Error:

java.lang.NoSuchMethodError
    at org.apache.fop.apps.Driver.getParserClassName(Unknown Source)
    at org.apache.fop.svg.SVGElementMapping.setupSVG(Unknown Source)
    at org.apache.fop.svg.SVGElementMapping.addToBuilder(Unknown Source)
    at org.apache.fop.apps.Driver.addElementMapping(Unknown Source)
    at org.apache.fop.apps.Driver.addElementMapping(Unknown Source)
    at org.apache.fop.apps.Driver.setupDefaultMappings(Unknown Source)
    at org.apache.fop.apps.Driver.(Unknown Source)
    at fop.FopServlet.renderXMLViewPDF(FopServlet.java:327)
    at fop.FopServlet.doGet(FopServlet.java:168)
    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:797)
    at org.apache.tomcat.core.ContextManager.service
(ContextManager.java:743)
    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)

All my jar related to FOP is in my own context WEB-INF/classes/lib directory. 
I hope somebody can help me in sloving this problem.

Thanks in advance...
Shekar Simha Y.
ssimha@questech.co.in

_____________________________________________________________________
Any Opinions, explicit or implied, are solely those of the author and do not necessarily
represent those of Questech. This e-mail may contain confidential and/or privileged
information. If you are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any unauthorized copying,
disclosure or distribution of the material in this e-mail is strictly forbidden.
_____________________________________________________________________
Received on Tuesday, 13 August 2002 04:49:02 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:09 GMT