Graphics wont initialize

  • chausel

    chausel - 2009-01-02

    Hi Paul,

    first: "Happy new Year"
    second: thank you for your work on domainhealth
    third: i have faced a problem.

    I have deployed DomainHealth on my Windows test machine an all was ok.
    When i deploy this on a Solaris 10 machine and start using it, i get the following error (see below) and i don't get the fancy graphics i see on the windows machine (the core statistics).
    Do you have a clue what to do about that?

    [weblogic.servlet.internal.WebAppServletContext@15767d - appName: 'domainhealth-07', name: 'domainhealth-07.war', context-path: '/domainhealth', spec-version: '2.5'] Root cause of ServletException. java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment at java.lang.Class.forName0(Native Method) at java.lang.Class.forName( at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment( at java.awt.image.BufferedImage.createGraphics( at org.jfree.chart.JFreeChart.createBufferedImage( at org.jfree.chart.JFreeChart.createBufferedImage( at domainhealth.display.ChartLineGraphGenerator.writeGraphImage( at domainhealth.display.LineChartServlet.processs( at domainhealth.display.LineChartServlet.doGet( at javax.servlet.http.HttpServlet.service( at javax.servlet.http.HttpServlet.service( at weblogic.servlet.internal.StubSecurityHelper$ at weblogic.servlet.internal.StubSecurityHelper.invokeServlet( at weblogic.servlet.internal.ServletStubImpl.execute( at weblogic.servlet.internal.ServletStubImpl.execute( at weblogic.servlet.internal.WebAppServletContext$ at at Source) at weblogic.servlet.internal.WebAppServletContext.securedExecute( at weblogic.servlet.internal.WebAppServletContext.execute( at at at

    • chausel

      chausel - 2009-01-02

      Hi Paul,

      I solved the problem on my own.

      The parameter you must use in an non-graphics environment is:


      then everything runs fine.
      This parameter must be passed as a start parameter to the JVM for the weblogic server.

    • Paul Done

      Paul Done - 2009-01-02

      Nice one - I thought I had tested on a headless Solaris box - but maybe it depended on a specific version of Solaris and Java. I'll add your JVM param tip to the FAQ.

      Many Thanks and Happy New Year



Log in to post a comment.