xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Moisio Juha <juha.moi...@tietonauha.fi>
Subject FW: FopServlet problem...
Date Wed, 01 May 2002 21:13:30 GMT
Hi, 


I'm having litte bit problems with Fopservlet.java
(doc/examples/embedding).

If I try to make pdf from readme.fo, it works fine.
But when I give xml and xsl paremeters (files glossary.xml and
glossary.xsl) it throws ClassNotFoundExeption...

Command line version works just fine for both
input methods...


So what I'm doing wrong?


Regards, 

   Juha Moisio / Tietonauha Oy


I have copied these files to WEB-INF/lib directory:

[root@wbs lib]# pwd
/www/jakarta-tomcat-4.0.3/juhantesti/servlets/WEB-INF/lib
[root@wbs lib]# ls -l
total 4256
-rw-r--r--    1 root     root        35299 Apr 29 14:46
avalon-framework-4.0.jar
-rw-r--r--    1 root     root      1941296 Apr 29 14:46 batik.jar
-rw-r--r--    1 root     root      1848943 Apr 29 14:46 fop.jar
-rw-r--r--    1 root     root        70529 Apr 29 14:46 logkit-1.0.jar
-rw-r--r--    1 root     root       436249 May  1 17:48 xalan-2.0.0.jar
[root@wbs lib]#


And Tomcat loads them too


Starting service Tomcat-Apache
Apache Tomcat/4.0.3
WebappLoader[/servlets]: Deploying class repositories to work directory
/www/jakarta-tomcat-4.0.3/work/localhost/servlets
WebappLoader[/servlets]: Deploy JAR
/WEB-INF/lib/avalon-framework-4.0.jar to
/www/jakarta-tomcat-4.0.3/juhantesti/servlets/WEB-INF/lib/avalon-framewo
rk-4.0.jar
WebappLoader[/servlets]: Deploy JAR /WEB-INF/lib/batik.jar to
/www/jakarta-tomcat-4.0.3/juhantesti/servlets/WEB-INF/lib/batik.jar
WebappLoader[/servlets]: Deploy JAR /WEB-INF/lib/fop.jar to
/www/jakarta-tomcat-4.0.3/juhantesti/servlets/WEB-INF/lib/fop.jar
WebappLoader[/servlets]: Deploy JAR /WEB-INF/lib/logkit-1.0.jar to
/www/jakarta-tomcat-4.0.3/juhantesti/servlets/WEB-INF/lib/logkit-1.0.jar
WebappLoader[/servlets]: Deploy JAR /WEB-INF/lib/xalan-1.2.2.jar to
/www/jakarta-tomcat-4.0.3/juhantesti/servlets/WEB-INF/lib/xalan-1.2.2.ja
r


And here is the error....


Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error

------------------------------------------------------------------------
--------

type Exception report

message Internal Server Error

description The server encountered an internal error (Internal Server
Error) that prevented it from fulfilling this request.

exception 

javax.servlet.ServletException: javax.xml.transform.Transformer
	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.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:243)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:190)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:234
3)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
	at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:170)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:170)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
	at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468
)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:174)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:429)
	at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:495)
	at java.lang.Thread.run(Thread.java:484)


root cause 

org.apache.fop.apps.FOPException: javax.xml.transform.Transformer
	at
org.apache.fop.apps.XSLTInputHandler.getParser(XSLTInputHandler.java:107
)
	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.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:243)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:190)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:234
3)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
	at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:170)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:170)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
	at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468
)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:174)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:429)
	at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:495)
	at java.lang.Thread.run(Thread.java:484)

---------

java.lang.ClassNotFoundException: javax.xml.transform.Transformer
	at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
.java:1394)
	at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
.java:1243)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:120)
	at
org.apache.fop.apps.XSLTInputHandler.getParser(XSLTInputHandler.java:91)
	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.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:243)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:190)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:234
3)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
	at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:170)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:170)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
	at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468
)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:174)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:429)
	at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:495)
	at java.lang.Thread.run(Thread.java:484)







Mime
View raw message