JFree Error On Solaris

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
bcr
Posts: 1
Joined: Thu Oct 26, 2006 4:02 pm

JFree Error On Solaris

Post by bcr » Thu Oct 26, 2006 4:14 pm

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.Font.initializeFont(Font.java:308)
at java.awt.Font.<init>(Font.java:344)
at org.jfree.chart.plot.MeterPlot.<clinit>(MeterPlot.java:141)
at com.xpedion.agentsettlement.bll.bo.AS_DashboardBO.createMeterChartPaymentMade(AS_DashboardBO.java:1332)
at com.xpedion.agentsettlement.dashboard.ASDashboardServlet.doGet(ASDashboardServlet.java:241)
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)


Any Help will be appreciated . I am getting this error on solaris from war file deployed on WEBLOGIC 8.1 SP 4 . on windows it works fine

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Mon Oct 30, 2006 3:00 pm

David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

pankaj_patil20
Posts: 6
Joined: Thu Sep 21, 2006 6:16 pm

Re: JFree Error On Solaris

Post by pankaj_patil20 » Mon Oct 30, 2006 9:38 pm

Hi

Same issue is being encountered by me when I move the application WAR file built on Windows environment to Red Hat Linux (AS 4) environment.

Surprisingly same WAR works fine on Weblogic running on Windows XP service Pack 1.
Verified that the WAR has requisite JAR files.

Regards
bcr wrote: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.Font.initializeFont(Font.java:308)
at java.awt.Font.<init>(Font.java:344)
at org.jfree.chart.plot.MeterPlot.<clinit>(MeterPlot.java:141)
at com.xpedion.agentsettlement.bll.bo.AS_DashboardBO.createMeterChartPaymentMade(AS_DashboardBO.java:1332)
at com.xpedion.agentsettlement.dashboard.ASDashboardServlet.doGet(ASDashboardServlet.java:241)
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)


Any Help will be appreciated . I am getting this error on solaris from war file deployed on WEBLOGIC 8.1 SP 4 . on windows it works fine

Taqua
JFreeReport Project Leader
Posts: 698
Joined: Fri Mar 14, 2003 3:34 pm
Contact:

Post by Taqua » Mon Oct 30, 2006 10:19 pm

I may sound impolite now, but:

R.T.F.M.

You didnt read the FAQ, I guess, and the "search" function is for the weak or desperate, isnt it?

To repeat Daves answer: FAQ point 10: Headless mode is your problem and your solution.

Regards,
Thomas

pankaj_patil20
Posts: 6
Joined: Thu Sep 21, 2006 6:16 pm

System Configuration

Post by pankaj_patil20 » Mon Nov 06, 2006 4:03 pm

Hi

I googled over to identify the reason and possible resolution for this issue.

By using the following option at server start up, I was able to resolve this error.

-Djava.awt.headless=true
(works with JDK1.4 or above)

Regards

Taqua wrote:I may sound impolite now, but:

R.T.F.M.

You didnt read the FAQ, I guess, and the "search" function is for the weak or desperate, isnt it?

To repeat Daves answer: FAQ point 10: Headless mode is your problem and your solution.

Regards,
Thomas

Locked