So what do I need to do to rectify the problem? Thanks in advance
(it's not that I am lazy, just that I don't want to break anything) On 9/11/05 15:57, "Paulo Soares" <[EMAIL PROTECTED]> wrote: > The awt toolkit libraries must have been installed even if the X11 server is > not running. > >> -----Original Message----- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On >> Behalf Of john wylie >> Sent: Wednesday, November 09, 2005 3:09 PM >> To: Ricardo Coutinho; [email protected] >> Subject: Re: [iText-questions] RE: iText with Tomcat >> >> Thanks >> >> I added this line to my code >> >> System.setProperty("java.awt.headless","true"); >> >> I don¹t get the x11 error anymore, but I now get the error below: >> >> java.lang.NoClassDefFoundError >> java.lang.Class.forName0(Native Method) >> java.lang.Class.forName(Class.java:141) >> >> java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(Graph >> icsEnvironment.java:62) >> >> java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1041) >> java.awt.image.BufferedImage.getGraphics(BufferedImage.java:1031) >> com.lowagie.text.pdf.PdfGraphics2D.<init>(Unknown Source) >> com.lowagie.text.pdf.PdfContentByte.createGraphics(Unknown Source) >> >> com.sheppardmoscow.ReportGenerator.createReport(ReportGenerato >> r.java:85) >> >> com.sheppardmoscow.UserDocumentsBuilder.BuildAndDisplayReport( >> UserDocumentsBuilder.java:87) >> com.sheppardmoscow.Report.processRequest(Report.java:34) >> com.sheppardmoscow.Report.doGet(Report.java:44) >> javax.servlet.http.HttpServlet.service(HttpServlet.java:689) >> >> Any idea¹s? >> >> >> On 9/11/05 14:39, "Ricardo Coutinho" >> <[EMAIL PROTECTED]> wrote: >> >> >> >> I had a similar problem. You have to set this parameter >> at JVM startup -Djava.awt.headless=true >> >> >> >> >> ________________________________ >> >> >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On >> Behalf Of John Wylie >> Sent: 09 November 2005 15:23 >> To: John Wylie; [email protected] >> Subject: [iText-questions] RE: iText with Tomcat >> >> I have just uploaded my app to my live tomcat server >> which is Redhat Linux. >> >> Although It runs ok locally on my windows machine, I >> get the error below when run from the web server. >> >> java.lang.InternalError: Can't connect to X11 window >> server using ':0.0' as the value of the DISPLAY variable. >> >> sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) >> >> sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment >> .java:134) >> java.lang.Class.forName0(Native Method) >> java.lang.Class.forName(Class.java:141) >> > java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.j > ava:62) >> >> java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1041) >> >> java.awt.image.BufferedImage.getGraphics(BufferedImage.java:1031) >> >> com.lowagie.text.pdf.PdfGraphics2D.<init>(Unknown Source) >> >> com.lowagie.text.pdf.PdfContentByte.createGraphics(Unknown Source) >> >> com.sheppardmoscow.ReportGenerator.createReport(ReportGenerato >> r.java:85) >> > com.sheppardmoscow.UserDocumentsBuilder.BuildAndDisplayReport(UserDocumentsBui > lder.java:85) >> com.sheppardmoscow.Report.processRequest(Report.java:34) >> com.sheppardmoscow.Report.doGet(Report.java:44) >> >> javax.servlet.http.HttpServlet.service(HttpServlet.java:689) >> >> javax.servlet.http.HttpServlet.service(HttpServlet.java:802) >> >> >> >> >> >> >> >> ________________________________ >> >> >> >> This transmission is strictly confidential, possibly >> legally privileged, and intended solely for the addressee. >> Any views or opinions expressed within it are those of the >> author and do not necessarily represent those of 192.com, >> i-CD Publishing (UK) Ltd or any of it's subsidary companies. >> If you are not the intended recipient then you must not >> disclose, copy or take any action in reliance of this >> transmission. If you have received this transmission in >> error, please notify the sender as soon as possible. No >> employee or agent is authorised to conclude any binding >> agreement on behalf of i-CD Publishing (UK) Ltd with another >> party by email without express written confirmation by an >> authorised employee of the Company. http://www.192.com >> <http://www.192.com/> <http://www.192.com/> (Tel: 08000 192 >> 192). >> >> >> >> ________________________________ >> >> >> >> >> >> ____________________________________________________________ >> >> This email and any files transmitted with it are >> CONFIDENTIAL and intended >> solely for the use of the individual or entity to >> which they are addressed. >> Any unauthorized copying, disclosure, or distribution >> of the material within >> this email is strictly forbidden. >> Any views or opinions presented within this e-mail >> are solely those of the >> author and do not necessarily represent those of >> Odyssey Asset Management >> Systems SA unless otherwise specifically stated. >> An electronic message is not binding on its sender. >> Any message referring to >> a binding engagement must be confirmed in writing and >> duly signed. >> If you have received this email in error, please >> notify the sender immediately >> and delete the original. >> >> >> >> >> >> ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
