rsilverns.sympatico.ca Posted September 26, 2006 Share Posted September 26, 2006 I was experiencing an error when using jasperreports 1.2.5 embedded into a servlet running on Geronimo 1.1 on a Linux box which has java 1.5.0_07, giving me the exception: java.lang.NoClassDefFoundError java.lang.Class.forName0(Native Method) java.lang.Class.forName(Class.java:164) java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68) etc. etc. So I did some research and came across the fix of adding the -Djava.awt.headless=true flag to the startup script for Geronimo. I did this, and restarted the server and the problem went away. 1 week later this problem seems to have come back. I am wondering if anyone has any additional experience with this issue that they could share? I verified under the Geronimo console that the headless option is set for the server.Post edited by: rsilver@bfm.bm, at: 2006/09/25 17:41 Link to comment Share on other sites More sharing options...
rsilverns.sympatico.ca Posted September 26, 2006 Author Share Posted September 26, 2006 Hmmm.. I restarted the server several times and the problem persisted, then one last time seemed to be the charm... the problem has gone away. Very odd. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now