1 Reply Latest reply on Sep 12, 2006 11:03 AM by g4dpz

    mySQL: NoClassDefFound forName(Native method)

    mr.burns

      Hello,

      I use the birt-viewer application under JBoss AS.
      My report works well under Eclipse/BIRT development environment.
      But if I deploy teh same report to JBoss AS and try to run it, I get just a blank page back, instead of a chart which I developed.

      The log of the BIRT application says:

      ...
      22.03.2006 09:46:42 org.eclipse.birt.report.model.metadata.ChoicePropertyType validateXml
      FEIN: return internal name for choice hyperlink
      22.03.2006 09:46:42 org.eclipse.birt.report.engine.api.impl.RunAndRenderTask run
      SCHWERWIEGEND: Error happened while running the report.
      java.lang.NoClassDefFoundError
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:141)
      at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
      at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1041)
      at java.awt.image.BufferedImage.getGraphics(BufferedImage.java:1031)
      ...

      I installed the JBoss AS as described in the documentation.

      My system:

      JBoss is 4.0.3SP1
      JDK 1.4.2_06
      Eclipse 3.1.1
      BIRT 2.0.0

      Any help is highly appreciated! Thanks!

        • 1. Re: mySQL: NoClassDefFound forName(Native method)
          g4dpz

          The getLocalGraphicsEnvironment() call is important as it tries to work out what the display device was that started the application.

          We found that it was OK if you used say ssh to a remote machine to start run.sh

          On an X11 workstation we had to add -Djava.awt.headless=true to the JAVA_CONFIG in the run.conf file.