Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JfreeChart and Tomcat

 
Sudhanshu Mishra
Ranch Hand
Posts: 235
1
Eclipse IDE Fedora Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I have created an application which creates chart out of some data.I have used jFreeChart API for the purpose.I have created a dyanamic web application in Eclipse and using Tomcat 6.0.20 as the server.
I am getting below issues:

java.lang.ClassNotFoundException: org.jfree.data.category.CategoryDataset
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
org.apache.jsp.Analysis_jsp._jspService(Analysis_jsp.java:188)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

And this is only caused when I run the application on server.When I run it as Java application it runs perfectly fine and graph is generated.
I am not sure about the workaround.
Please Ranchers, help me out.

Thanks....
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Seems like the JCommon jar file is not in the WEB-INF/lib folder. Maybe you only copied the JFreeChart jar file there?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic