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
Gantt chart using Servlets
Re: Gantt chart using Servlets
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.
Regards,
DG.