Jump to content
Changes to the Jaspersoft community edition download ×

Problems on Solaris


2004 IR Help

Recommended Posts

By: ToRaX - torax

Problems on Solaris

2005-02-03 05:00

Hi,

 

on my development machine (Win2000) the creation of JasperReports works perfectly. After moving to production environment (Sun Solaris) i get the following exception:

 

java.lang.NoClassDefFoundErro

at java.lang.Class.forName0(Native Method

at java.lang.Class.forName(Class.java:140

at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62

at net.sf.jasperreports.engine.util.JRGraphEnvInitializer.initializeGraphEnv(JRGraphEnvInitializer.java:102

at net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:224

at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:126

at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:118

at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:111

at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:291

at at.mobilkom.lars.servlets.ReportServlet.createReport(ReportServlet.java:191

at at.mobilkom.lars.servlets.ReportServlet.doGet(ReportServlet.java:73

at javax.servlet.http.HttpServlet.service(HttpServlet.java:740

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853

at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006

at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419

at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315

at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6722

at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321

at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121

at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764

at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644

at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219

at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178

 

 

I did search the forums and tried this from within m servlet:

System.setProperty("java.awt.headless", "true");

 

But it didn't work.

 

 

Any suggestions?

 

 

 

 

By: Alexander Wallace - aows

RE: Problems on Solaris

2005-02-03 06:50

Sounds like the headless problem, you need to start java using the -Djava.awt.headless=true option

 

 

 

 

 

By: ToRaX - torax

RE: Problems on Solaris

2005-02-04 00:29

Is there a difference between using the "-Djava.awt.headless=true" option and System.setProperty("java.awt.headless", "true");?

 

 

 

 

By: ToRaX - torax

RE: Problems on Solaris

2005-02-04 03:57

Okay, there is definitely a difference between those two ways. Setting the mentioned java option did it! :-)

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...