I'll give it a try, the FopServlet.java comments say to use 2.0.0 though,
thanks!

-----Original Message-----
From: Kumar, Sunil [mailto:[EMAIL PROTECTED]
Sent: Monday, June 17, 2002 4:28 PM
To: [EMAIL PROTECTED]
Subject: RE: Newbie questions ...


use xalann-3.1.x jar file

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, June 17, 2002 3:27 PM
To: [EMAIL PROTECTED]
Subject: RE: Newbie questions ...


> I'm new to FOP and have a couple of questions.  I'm trying to take a XML
> and convert it to FO using XSLT in order to display PDF from a servlet.  I
> started with a static FO file and used the FopServlet to display it.  This
> worked fine.  However, I've tried using the XML/XSL parameters and I
> always get an error on the XSLTInputHandler which is caused by "Provider
> org.apache.xalan.processor.TransformerFactoryImpl not found".  I have put
> xalan-2.0.0.jar in my WEB-INF/lib directory.  The URL I used to get this
> was:
> http://localhost/fop/servlet/fop?xml=C:\jakarta\fop-0.20.3\docs\xml-docs\f
> op\running.xml&xsl=C:\jakarta\fop-0.20.3\docs\xml-docs\xml2pdf.xsl
> Also, I'm putting the stack trace at the bottom of this email if anyone
> wants a look at it.
> My second question has to do with which XML object to use.  Right now, I
> just have my XML in a file, but I want to generate it on the fly.  The
> documentation says you can do this with DOM or SAX.  Is there any problem
> doing it with JDOM?  If not, does anyone know where I can find an example.
> Thank you,
> Mike Witt
> Stack Trace:
> Error: 500
> Location: /fop/servlet/fop
> Internal Servlet Error:
> javax.servlet.ServletException
>       at FopServlet.renderXML(FopServlet.java:125)
>       at FopServlet.doGet(FopServlet.java:67)
>       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(Htt
> pConnectionHandler.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)
> Root cause: 
> org.apache.fop.apps.FOPException
>       at
> org.apache.fop.apps.XSLTInputHandler.getParser(XSLTInputHandler.java:109)
>       at FopServlet.renderXML(FopServlet.java:118)
>       at FopServlet.doGet(FopServlet.java:67)
>       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(Htt
> pConnectionHandler.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)
> 
> ---------
> 
> java.lang.reflect.InvocationTargetException:
> javax.xml.transform.TransformerFactoryConfigurationError: Provider
> org.apache.xalan.processor.TransformerFactoryImpl not found
>       at
> javax.xml.transform.TransformerFactory.newInstance(TransformerFactory.java
> :110)
>       at
> org.apache.fop.apps.TraxInputHandler.getXMLFilter(TraxInputHandler.java:72
> )
>       at java.lang.reflect.Method.invoke(Native Method)
>       at
> org.apache.fop.apps.XSLTInputHandler.getParser(XSLTInputHandler.java:102)
>       at FopServlet.renderXML(FopServlet.java:118)
>       at FopServlet.doGet(FopServlet.java:67)
>       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(Htt
> pConnectionHandler.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)
> javax.xml.transform.TransformerFactoryConfigurationError: Provider
> org.apache.xalan.processor.TransformerFactoryImpl not found
>       at
> javax.xml.transform.TransformerFactory.newInstance(TransformerFactory.java
> :110)
>       at
> org.apache.fop.apps.TraxInputHandler.getXMLFilter(TraxInputHandler.java:72
> )
>       at java.lang.reflect.Method.invoke(Native Method)
>       at
> org.apache.fop.apps.XSLTInputHandler.getParser(XSLTInputHandler.java:102)
>       at FopServlet.renderXML(FopServlet.java:118)
>       at FopServlet.doGet(FopServlet.java:67)
>       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(Htt
> pConnectionHandler.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)
> 

Reply via email to