Loading ...
Sorry, an error occurred while loading the content.

Re: [XSL-FO] Problems after Deployment to UNIX

Expand Messages
  • Chris Bowditch
    Message 1 of 4 , May 4, 2004
    • 0 Attachment
      gavaroo_99 wrote:

      > Hi
      >
      > I am using fop 0.2.05,JDK 1.4, Tomcat 4 and Apache. I'm embedding the
      > use of FOP in a servlet. I develop on a NT but when I deploy to UNIX.
      > I get the following error(only sending relevant stack trace):
      >
      > java.lang.InternalError: Can't connect to X11 window server
      > using ':0.0' as the value of the DISPLAY variable.
      > at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
      > at sun.awt.X11GraphicsEnvironment.<clinit>
      > (X11GraphicsEnvironment.java:125)
      > at java.lang.Class.forName0(Native Method)
      > at java.lang.Class.forName(Class.java:140)
      > at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment
      > (GraphicsEnvironment.java:62)
      > at java.awt.image.BufferedImage.createGraphics
      > (BufferedImage.java:1041)
      > at org.apache.fop.svg.PDFGraphics2D.<init>
      > (PDFGraphics2D.java:1401)
      > at org.apache.fop.render.pdf.PDFRenderer.renderSVGDocument
      > (PDFRenderer.java:638)
      > at org.apache.fop.render.pdf.PDFRenderer.renderSVGArea
      > (PDFRenderer.java:549)
      > at org.apache.fop.svg.SVGArea.render(SVGArea.java:98)
      >
      >
      > Within the initialization of the servlet I've tried 2 approaches:
      > 1) Setting System.setProperty("java.awt.headless", "true");
      >
      > This doesn't change anything.
      >
      > 2) System.setProperty("awt.toolkit", "com.eteks.awt.PJAToolkit");
      >
      > This doesn't change anything either.
      >
      > If you had this problem and found
      > a sure fix. Please let me know.
      >
      > Thanks
      >
      >
      >
      >
      >
      > ------------------------------------------------------------------------
      > *Yahoo! Groups Links*
      >
      > * To visit your group on the web, go to:
      > http://groups.yahoo.com/group/XSL-FO/
      >
      > * To unsubscribe from this group, send an email to:
      > XSL-FO-unsubscribe@yahoogroups.com
      > <mailto:XSL-FO-unsubscribe@yahoogroups.com?subject=Unsubscribe>
      >
      > * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
      > Service <http://docs.yahoo.com/info/terms/>.
      >
      >
    • Chris Bowditch
      ... This error is caused by fact Unix is running on a terminal display with no X windows service. FOP requires the use of Java s Graphical classes, which in
      Message 2 of 4 , May 4, 2004
      • 0 Attachment
        gavaroo_99 wrote:

        > Hi
        >
        > I am using fop 0.2.05,JDK 1.4, Tomcat 4 and Apache. I'm embedding the
        > use of FOP in a servlet. I develop on a NT but when I deploy to UNIX.
        > I get the following error(only sending relevant stack trace):
        >
        > java.lang.InternalError: Can't connect to X11 window server
        > using ':0.0' as the value of the DISPLAY variable.
        > at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
        > at sun.awt.X11GraphicsEnvironment.<clinit>
        > (X11GraphicsEnvironment.java:125)

        This error is caused by fact Unix is running on a terminal display with no X
        windows service. FOP requires the use of Java's Graphical classes, which in
        turn require an X windows service.

        <snip/>

        > Within the initialization of the servlet I've tried 2 approaches:
        > 1) Setting System.setProperty("java.awt.headless", "true");

        I believe this property only works on Java 1.4 and above.

        <snip/>

        Chris
      Your message has been successfully submitted and would be delivered to recipients shortly.