But I checked the jar file against class loader order, couldn't find any clues yet.
Thank you Pietschmann for your help. Liang MA Software Analyst -------------------------------------------------- RADARSAT Mission Control Centre 6767, route de l'Aeroport Saint-Hubert, Quebec J3Y 8Y9 Canada Tel: (450) 926-5099 Fax: (450) 926-5127 --------------------------------------------------- -----Original Message----- From: J.Pietschmann [mailto:[EMAIL PROTECTED] Sent: November 6, 2004 6:27 AM To: [EMAIL PROTECTED] Subject: Re: fo failed to process Unicode CJK in servlet Ma, Liang wrote: > Now here is another minor problem. Every time when I first run the servlet > to generate a pdf file after rebooting tomcat or leaving it for a couple of > days, it gives me the following exception. Then I run it again, it works > fine. Looks like there is something missing to initialize fop in my servlet. > root cause > > java.lang.NullPointerException > at org.apache.fop.apps.Service.providers(Driver.java:597) Ah, the dreaded class loader problem. Actually, I don't understand class loading in web apps well enough to point you to a solution. You might ask this on an appropriate Tomcat list (be prepared for getting flamed for using code which is not "web app ready") J.Pietschmann --------------------------------------------------------------------- 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]
