You need a X11 server if you want to use Graphics2D. 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of John Wylie
> Sent: Wednesday, November 09, 2005 2:23 PM
> 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(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: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/>  (Tel: 08000 192 192).  
> ________________________________
> 
> 


-------------------------------------------------------
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

Reply via email to