You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Mark Malone <ma...@mac.com> on 2002/10/31 18:35:04 UTC
Tomcat and Servlet Example fails XML / XSL call
Folks,
Folks,
I'm having trouble successfully calling the FopServlet included in the
examples directory of FOP 0.20.4.
The servlet has two example methods of being called:
1) Call passing an FO file and a PDF is returned
2) Call passing an XML and an XSL file and a PDF file is returned
My problem is with the second approach which works fine from the
command line but not within Tomcat. I've read several posts on this and
the fop-dev board that involve moving the contents of the fop/lib
directory into the tomcat/common/lib directory however the error is the
same whether I put them there or in my web-inf/lib directory and that
is...
-> javax.servlet.ServletException: Could not initialize BSF Manager
at FopServlet.renderXML(FopServlet.java:134)
at FopServlet.doGet(FopServlet.java:73)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
Look familiar?
I'm Running: Tomcat : 4.1.12 and fop: 0.20.4
my web-inf/lib directory contains:
avalon-framework-cvs-20020315.jar
batik.jar
cos.jar
fop.jar
FopServlet.class
mysql-connector-java-2.0.14-bin.jar
xalan-2.3.1.jar
xercesImpl-2.0.1.jar
xml-apis.jar
and Tomcat is vanilla install for 4.1.12
Any clues or hints from successful Tomcat / FOP users out there would
be greatly appreciated. Any ideas in gereral would be nice as well.
-M
Re: Tomcat and Servlet Example fails XML / XSL call
Posted by Oleg Tkachenko <ol...@multiconn.com>.
Mark Malone wrote:
>
> -> javax.servlet.ServletException: Could not initialize BSF Manager
> at FopServlet.renderXML(FopServlet.java:134)
> at FopServlet.doGet(FopServlet.java:73)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>
> Look familiar?
Not really, but looks like bsf.jar is absent. That could be the case if your
stylesheet contains xalan extension functions hence bsf.jar is required.
--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel