JFREE 1.0 with JAVA 1.4 and TOMCAT 5.0.28

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Guest

JFREE 1.0 with JAVA 1.4 and TOMCAT 5.0.28

Post by Guest » Thu Jun 16, 2005 4:22 pm

Hi, I was using jfree 1.0 with Java 5 and Tomcat 5.5.7 to create Gantt charts and it works perfectly; but I have to change my versions to Java 1.4 and Tomcat 5.0.28 because of another aplication in wish I was running jfree and after that jfree stop working, the error the browser present me when I try to see the graph is:


Estado HTTP 500 -

--------------------------------------------------------------------------------

type Informe de Excepción

message

description: the server found a internal error() wich prevent to fullfil this requirement.

exception

javax.servlet.ServletException: Invoker service() exception
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:477)
org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:169)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root cause

java.lang.NoClassDefFoundError
org.jfree.chart.ChartFactory.createGanttChart(ChartFactory.java:948)
Gantt3.doGet(Gantt3.java:73)
Gantt3.doPost(Gantt3.java:102)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:419)
org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:169)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

--------------------------------------------------------------------------------

Apache Tomcat/5.0.28


I hope you can help me...

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

Post by Taqua » Fri Jun 17, 2005 3:57 pm

Hi,

check, whether you have the correct jcommon version installed for each webapp and that you did not put the jcommon into $JRE/lib/ext or Tomcats $CATALINA_HOME/common/lib directory. Each web application should have its own, distinct set of libraries (especially since JCommon/JFreeChart is usually not backward compatible (for now), so strange errors might arise from that).

Have mo' fun,
said Thomas

kianfatt1982
Posts: 21
Joined: Fri Sep 30, 2005 4:00 am
Location: Malaysia
Contact:

JFreeChart 1.0 is not supported by JRE 1.3

Post by kianfatt1982 » Wed Dec 14, 2005 9:13 am

I had the similar erro and problem too,

I have posted a thread in


http://www.jfree.org/phpBB2/viewtopic.php?p=44400#44400


http://www.jfree.org/phpBB2/viewtopic.php?p=44401#44401

I have checked the JCommon I am using it is the same, it is also JCommon 1.0.

I got the error when I am trying to refer to the CategoryAxis class, how can I solve this problem ?
Ting Kian Fatt
(Software Engineer)
kianfatt1982@gmail.com

kianfatt1982
Posts: 21
Joined: Fri Sep 30, 2005 4:00 am
Location: Malaysia
Contact:

I already have snippets of Codes

Post by kianfatt1982 » Wed Dec 14, 2005 9:16 am

I already have my snippets of codes written in here :-

http://www.jfree.org/phpBB2/viewtopic.php?p=44400#44400

the code compiled fine in J2SDK 1.4 and run fine in JRE 1.4, but when I move the class files to the Server with the JRE 1.3 Environment the error occurs
Ting Kian Fatt
(Software Engineer)
kianfatt1982@gmail.com

kianfatt1982
Posts: 21
Joined: Fri Sep 30, 2005 4:00 am
Location: Malaysia
Contact:

Lets disscuss this problem together.

Post by kianfatt1982 » Fri Dec 16, 2005 3:10 am

I have been recomended some solutions the JFreeChart Forum, and my attempts to solve this problems are as posted in,

http://www.jfree.org/phpBB2/viewtopic.p ... &&start=15

So lets us go there and disscuss this together.
Ting Kian Fatt
(Software Engineer)
kianfatt1982@gmail.com

Locked