Thank you so much, Jeremias. I narrow down the problem to the input image file from xsl file. If I add <fo:block><fo:external-graphic src="file:nsf_logo.svg" /> </fo:block> to my xsl file, it will cause java.lang.NoSuchMethodError. If I comment it out, it did generate PDF file. But I am wondering I put image files, xml file, xsl file, pdf file and fop.sh in the same folder fop-0.20.5. There is no reason FOP can not find the image file. Could you explain the reason?
Thanks Judy Cai -----Original Message----- From: Jeremias Maerki [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 3:48 PM To: [EMAIL PROTECTED] Subject: Re: embedding fop0.20.5 working on jdk1.3.1-linux? On 16.09.2003 21:12:12 Cai, Judy wrote: > Thanks, Maerki. Well, Maerki is my lastname, you know. :-) > I use batik.jar that comes with the FOP. I tried running the > Sample doucment on the command line on the linux machine? The result is the > same: <snip/> You get the same result so it must be something with your input document, not with the Tomcat environment (Error-finding by exclusion). > I am a new graduate from school and programming experience is kind of poor. > I don't know how to enable classloading verbosity. Help me! I meant calling java.exe with the -verbose:class option. When you call "java -?" on the command line you see all its available options. When -verbose:class is set, you should receive lots of lines, one for each loaded class with information where the class was loaded from. This can help identify classloading problems (duplicate jars in the classpath, for example). But this step is now mostly superfluous because you saw that the same result happens on the command line. As the next step I suggest commenting out portions of your input document or stylesheet to further narrow down the problem point. That's a tedious job but it is a technique I often use with success. Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
