Jump to content
Changes to the Jaspersoft community edition download ×

help with linux and NoClassDefFoundError


Recommended Posts

By: Peter Walleri - prwalleri

help with linux and NoClassDefFoundError

2003-04-10 04:46

I am having problems running a JasperReport on my Linux server running JBoss or Tomcat.

 

I have found a message on this forum that tells me to make the following change:

java -D java.awt.headless=true

 

When I execute this command I get the following error:

Exception in thread "main" java.lang.NoClassDefFoundError java/awt/headless=true

 

I have included the trace info below:

java.lang.NoClassDefFoundError

at java.lang.Class.forName0(Native Method)

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

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

at dori.jasper.engine.fill.JRBaseFiller.<clinit>(JRBaseFiller.java:175)

at dori.jasper.engine.fill.JRFiller.fillReport(JRFiller.java:138)

at dori.jasper.engine.JasperFillManager.fillReport(JasperFillManager.java:348)

at org.apache.jsp.r_0005fcoa$jsp.getReportView(r_0005fcoa$jsp.java:65)

at org.apache.jsp.r_0005fcoa$jsp._jspService(r_0005fcoa$jsp.java:476)

at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)

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

at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)

at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)

at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)

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

at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:366)

at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:293)

at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:581)

at org.mortbay.http.HttpContext.handle(HttpContext.java:1687)

at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:544)

at org.mortbay.http.HttpContext.handle(HttpContext.java:1637)

at org.mortbay.http.HttpServer.service(HttpServer.java:875)

at org.jboss.jetty.Jetty.service(Jetty.java:543)

at org.mortbay.http.HttpConnection.service(HttpConnection.java:806)

at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:956)

at org.mortbay.http.HttpConnection.handle(HttpConnection.java:823)

at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:203)

at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:290)

at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:743)

at java.lang.Thread.run(Thread.java:536)

 

Can someone please help me?

 

Thanks,

Peter

 

 

 

 

By: Ashish Pant - ashishpant

RE: help with linux and NoClassDefFoundError

2003-04-10 07:00

There should be no space between -D and java.awt.headless=true

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...