Exception while using embedded example
I am evaluating the FOP servlet for use on a website. Any suggestions how to make this work? 1) Using the embedded example servlet running in Tomcat4.0. Calling the servlet with the glossary.xml and glossary.xsl from the download will create a PDF correctly but the servlet response is not built correctly. 2) When running in Tomcat3.2 the I get the following exception: - Root cause: org.apache.fop.apps.FOPException at org.apache.fop.apps.XSLTInputHandler.getParser(XSLTInputHandler.java:72) at FopServlet.renderXML(FopServlet.java:125) at FopServlet.doGet(FopServlet.java:71) 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:81 2) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.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) The message states Names space not supported by SAX parser This is the code: - public class XSLTInputHandler extends InputHandler { //... public XMLReader getParser() throws FOPException { XMLReader xmlreader = null; try { Class var_class = Class.forName(javax.xml.transform.Transformer); var_class = Class.forName(org.apache.fop.apps.TraxInputHandler); Class[] var_classes = { File.class, File.class }; Method method = var_class.getMethod(getXMLFilter, var_classes); File[] files = { xmlfile, xsltfile }; // this call throws an InvocationTargetException Object object = method.invoke(null, files); if (object instanceof XMLReader) xmlreader = (XMLReader) object; } catch (ClassNotFoundException classnotfoundexception) { throw new FOPException(classnotfoundexception); } catch (InvocationTargetException invocationtargetexception) { throw new FOPException(invocationtargetexception); } catch (IllegalAccessException illegalaccessexception) { throw new FOPException(illegalaccessexception); } catch (NoSuchMethodException nosuchmethodexception) { throw new FOPException(nosuchmethodexception); } if (xmlreader == null) { useOldTransform = true; xmlreader = InputHandler.createParser(); ** The information contained in this e-mail may be confidential. It is intended only for for the use of the named recipient. If you are not the named recipient please delete this e-mail. If you have received this e-mail and are not the named recipient, any disclosure, reproduction, distribution or other dissemination or use of the information contained in this e-mail is strictly prohibited. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard copy version. Registered Office: Camelot Group plc Tolpits Lane Watford WD18 9RN Tel: 01923 425000 Registered in England and Wales No. 2822203 ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Exception while using embedded example
I am using 0.20.3 which I believe is the latest STABLE version. I am following 0.20.4 and will start using it when it is stable. Regards Deri -Original Message- From: Oleg Tkachenko [mailto:[EMAIL PROTECTED]] Sent: 02 July 2002 18:00 To: [EMAIL PROTECTED] Subject: Re: Exception while using embedded example Deri Cronin wrote: Any suggestions how to make this work? Which fop version are you talking about? 1) Using the embedded example servlet running in Tomcat4.0. Calling the servlet with the glossary.xml and glossary.xsl from the download will create a PDF correctly but the servlet response is not built correctly. What do you mean exactly, do you get empty page or broken pdf or exception? 2) When running in Tomcat3.2 the I get the following exception: - Root cause: org.apache.fop.apps.FOPException at org.apache.fop.apps.XSLTInputHandler.getParser(XSLTInputHandler.java:72) at FopServlet.renderXML(FopServlet.java:125) at FopServlet.doGet(FopServlet.java:71) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) ... skip The message states Names space not supported by SAX parser This message usually means the found parser doesn't support sax2 api, look for old xerces etc in the tomcat classpath. -- Oleg Tkachenko Multiconn International, Israel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ** The information contained in this e-mail may be confidential. It is intended only for for the use of the named recipient. If you are not the named recipient please delete this e-mail. If you have received this e-mail and are not the named recipient, any disclosure, reproduction, distribution or other dissemination or use of the information contained in this e-mail is strictly prohibited. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard copy version. Registered Office: Camelot Group plc Tolpits Lane Watford WD18 9RN Tel: 01923 425000 Registered in England and Wales No. 2822203 ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]