It's getClassLoader. Best Regards, Paulo Soares
> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of R�mi Zara > Sent: Thursday, May 27, 2004 2:49 PM > To: [EMAIL PROTECTED] > Subject: [iText-questions] Document.close() -> no pages > Exception in Websphere, OK otherwise > > Hi, > > I'm getting the "Document has no page" exception on > Document.close when > running under websphere: > > ExceptionConverter: java.io.IOException: The document has no pages. > at com.lowagie.text.pdf.PdfPages.writePageTree(Unknown Source) > at com.lowagie.text.pdf.PdfWriter.close(Unknown Source) > at com.lowagie.text.pdf.PdfDocument.close(Unknown Source) > at com.lowagie.text.pdf.PdfWriter.close(Unknown Source) > .... > > > I have no problems in Tomcat, my dev environnement. > > I saw a suggestion on the list to grant the RuntimePermission > "ClassLoader". > > I'm a little perplex, because my websphere settings should > not enforce > java 2 security. > > Then i tried to grant the permission in different places > (jre/lib/security/java.policy, was.policy in my app deploiement > directory), and it does not work any better (but I don't know > yet how to > check if the setting is taken into account or not). > > Besides, I did not find a ClassLoader RuntimePermission, but dit find > getClassLoader, createClassLoader and setContextClassLoader > > Which one should I grant ? > > Thanks for your hekp, > > R�mi Zara > Docubase-systems > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... > Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id149&alloc_id�66&op=ick > _______________________________________________ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions > > ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id149&alloc_id�66&op=click _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
