W3C home > Mailing lists > Public > www-xsl-fo@w3.org > April 2005

Tidy jar prevents using FopServlet

From: torsten krohn | tsdb | the simpsons database <torsten@tsdb.de>
Date: Mon, 11 Apr 2005 23:40:59 +0200
To: <www-xsl-fo@w3.org>
Message-ID: <001e01c53edf$2d1ea7a0$0100a8c0@troylutiqfwffv>

Hi,

I installed FOP for using it with Servlets on Apache Tomcat/4.0.1. Both
the Servlet-Example "FopServlet.java" and "ExampleXML2PDF.java"(altered
to a servlet) has following error if I keep the file
"WEB-INF\lib\Tidy.jar". If I delete it, it works!! But I need this
library for something else. What can I do?

Apache Tomcat/4.0.1 - 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: Invoker service() exception
 	at
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.
java:504)
 	at
org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:18
0)
 	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)
 	(...)

root cause

java.lang.LinkageError: loader constraints violated when linking
org/xml/sax/SAXParseException class
 	at
org.apache.xalan.processor.TransformerFactoryImpl.newTemplatesHandler(Tr
ansformerFactoryImpl.java:457)
 	at
org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(Transform
erFactoryImpl.java:863)
 	at
org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(Transfo
rmerFactoryImpl.java:788)
 	at
org.apache.fop.apps.TraxInputHandler.initTransformer(TraxInputHandler.ja
va:105)
 	at
org.apache.fop.apps.TraxInputHandler.(TraxInputHandler.java:84)
 	at
org.apache.fop.apps.XSLTInputHandler.(XSLTInputHandler.java:71)
 	at ExportPdf.doGet(ExportPdf.java:132)
 	(...)

Code in Servlet:
Line 131: XSLTInputHandler input = 
Line 132:                  new XSLTInputHandler(new File(xmlParam), 
Line 133:                                       new File(xslParam));

Thank you, Torsten
Received on Monday, 11 April 2005 21:41:17 GMT

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