Gantt chart using Servlets

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

Gantt chart using Servlets

Post by Pandu » Mon Jun 24, 2002 7:14 am

Hi,
I want to develop gantt chart through servlets. I understand the gantt chart demo supplied with the installation.
On examples 1,I have added the Gantt chart(type is 10). In servletDemoExample class, I tried to create the chart like this.

case 10:
System.out.println("Creating gantt chart");
IntervalCategoryDataset datasetGantt = createDataset();(this method i copied it from demogantt chart)

chart = ChartFactory.createGanttChart("Gantt Chart
Demo","Task","Date",datasetGantt,true);
return chart;
// gantt fit

I deployed this servlet in TOmcat. When I run the example1, I selected Gantt Chart option. As soon as I submit, I gives the following error.


java.lang.NoSuchMethodError
at com.jrefinery.chart.demo.JFreeChartServletDemo.createChart(JFreeChartServletDemo.java:515)
at com.jrefinery.chart.demo.JFreeChartServletDemo.doGet(JFreeChartServletDemo.java:587)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Unknown Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source)
at java.lang.Thread.run(Thread.java:484)


Please help me how to implement this.

Regards,
Pandu

David Gilbert

Re: Gantt chart using Servlets

Post by David Gilbert » Mon Jun 24, 2002 3:01 pm

It's a little hard to guess...but since it is having trouble finding a method at JFreeChartServletDemo.java line 515, that's the code you want to focus on.

Regards,

DG.

Locked