Is your java runtime at least 1.4?  I don't think the virtual
graphics environment was included until then.

(The alternative is setting up real (or virtual) X11 display but
most sysadmins will strongly encourage you to find another solution.)

Bear

John Wylie wrote:
> 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(GraphicsEnviron
> ment.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(ReportGenerator.java:85)
>  
> com.sheppardmoscow.UserDocumentsBuilder.BuildAndDisplayReport(UserDocume
> ntsBuilder.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 (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