Advertisement

05.09.2008 at 04:23AM PDT, ID: 23388924
[x]
Attachment Details

Problem in jfreechart display in Linux

Asked by Amit_Dogra in Miscellaneous Web Development, Linux

I created jfreechart ( bar and pie chart in windows) and displayed it as image on a jsp page.
I did it on weblogic installed on windows.
When I ported the same application to linux the JFREECHART did not work and gave me the following errors:-

Error 500--Internal Server Error
java.lang.NoClassDefFoundError: sun/awt/X11GraphicsEnvironment
      at java.lang.Class.forName(Ljava/lang/String;I)Ljava/lang/Class;(Unknown Source)
      at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment()Ljava/awt/GraphicsEnvironment;(GraphicsEnvironment.java:62)
      at java.awt.Font.initializeFont(Ljava/util/Hashtable;)V(Font.java:308)
      at java.awt.Font.(Ljava/lang/String;II)V(Font.java:344)
      at org.jfree.chart.plot.PiePlot.()V(PiePlot.java:222)
      at jrockit.vm.RNI.initializeClassFromJava(II)V(Unknown Source)
      at jrockit.vm.RNI.clinitTrampoline()V(Unknown Source)
      at org.jfree.chart.ChartFactory.createPieChart3D(Ljava/lang/String;Lorg/jfree/data/general/PieDataset;ZZZ)Lorg/jfree/chart/JFreeChart;(ChartFactory.java:492)
      at com.usair.etcm.bean.JfreeGraph.generatePieChart(Lorg/jfree/data/general/DefaultPieDataset;Ljava/lang/String;Ljava/io/PrintWriter;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;(JfreeGraph.java:80)
      at com.usair.etcm.bean.JfreeBean.createPieChart(Ljava/util/ArrayList;Ljava/lang/String;Ljava/io/PrintWriter;Ljava/lang/String;)V(JfreeBean.java:16)
      at com.usair.etcm.controller.FunctionalInfoServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V(FunctionalInfoServlet.java:80)
      at javax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(HttpServlet.java:853)
      at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava/lang/Object;(ServletStubImpl.java:1006)
      at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Lweblogic/servlet/internal/FilterChainImpl;)V(ServletStubImpl.java:419)
      at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(ServletStubImpl.java:315)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run()Ljava/lang/Object;(WebAppServletContext.java:6718)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic/security/subject/AbstractSubject;Ljava/security/PrivilegedAction;)Ljava/lang/Object;(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(Lweblogic/security/acl/internal/AuthenticatedSubject;Lweblogic/security/acl/internal/AuthenticatedSubject;Ljava/security/PrivilegedAction;)Ljava/lang/Object;(Optimized Method)
      at weblogic.servlet.internal.WebAppServletContext.invokeServlet(Lweblogic/servlet/internal/ServletRequestImpl;Lweblogic/servlet/internal/ServletResponseImpl;)V(WebAppServletContext.java:3764)
      at weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic/kernel/ExecuteThread;)V(ServletRequestImpl.java:2644)
      at weblogic.kernel.ExecuteThread.execute(Lweblogic/kernel/ExecuteRequest;)V(ExecuteThread.java:219)
      at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:178)
      at java.lang.Thread.startThreadFromVM(Ljava/lang/Thread;)V(Unknown Source)

Can someone please give me solution for this
Start Free Trial
[+][-]05.09.2008 at 04:44AM PDT, ID: 21531806

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Miscellaneous Web Development, Linux
Sign Up Now!
Solution Provided By: MicheleMarcon
Participating Experts: 1
Solution Grade: B
 
 
[+][-]05.09.2008 at 05:03AM PDT, ID: 21531896

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.09.2008 at 05:12AM PDT, ID: 21531952

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.09.2008 at 06:09AM PDT, ID: 21532380

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.09.2008 at 06:38AM PDT, ID: 21532617

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.09.2008 at 06:56AM PDT, ID: 21532804

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.09.2008 at 06:59AM PDT, ID: 21532843

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628