John Harpour,

  Hi John......Thank you for the information....this is great advice for 
beginners who do not know......I have not checked .....but you say that it 
is not documented anywhere....it should be!....sounds like a great article 
for www.xml.com or o'reilly.....I do not know if this should be put on the 
Batik website or not....(just a thought)...this should be on the Tomcat 
website though!.....

Thank you for sharing what you have learned...I will certainly use this 
information....


We all learn by sharing what we know
Robert A. DiBlasi



>From: "John Harpour" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED], [EMAIL PROTECTED]
>Subject: Problem with Batik, Tomcat, and FOP combination
>Date: Tue, 9 Oct 2001 15:14:04 nzst
>
>Hi
>
>I would like to bring attention to an issue I have come across recently 
>that
>doesn't seem to be specifically documented anywhere.
>
>I am using Batik with Fop, being served from Tomcat to generate PDF 
>documents
>on the fly with embedded SVG in them. I was having trouble with getting the
>SVG to parse correctly, with the following error:
>
>java.lang.NoSuchMethodError
>       at org.apache.fop.svg.SVGElement.init(SVGElement.java:194)
>etc.
>
>The problem is classpath settings.
>
>It turns out that Tomcat uses it's own classpath settings first, then tacks
>the system classpath on the end before executing.
>
>The result is that it doesn't matter if you ensure the batik.jar file is 
>first
>in the system classpath (as recommended), tomcat will still enstantiate the
>wrong DOM Implementation causing any SVG content to crash the page.
>
>The solution is to edit the Tomcat startup script to ensure it puts the 
>system
>classpath on the command line first (with batik.jar the first one listed). 
>It
>then works happily using the correct DOM implementation object for the job.
>
>
>Cheers
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to