This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Tomcat and the fly likes JfreeChart and Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "JfreeChart and Tomcat" Watch "JfreeChart and Tomcat" New topic
Author

JfreeChart and Tomcat

Sudhanshu Mishra
Ranch Hand

Joined: May 28, 2011
Posts: 217

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
Marshal

Joined: Mar 22, 2005
Posts: 41621
    
  55
Seems like the JCommon jar file is not in the WEB-INF/lib folder. Maybe you only copied the JFreeChart jar file there?


Ping & DNS - my free Android networking tools app
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JfreeChart and Tomcat