JFreeChart: NoClassDefFoundError
BurndownChart is not visible.
This message is in the log:
FATAL AHttpServlet GET failed: scrum.server.sprint.SprintBurndownChartServlet ->
java.lang.NoClassDefFoundError: Could not initialize class org.jfree.chart.JFreeChart
at org.jfree.chart.ChartFactory.createXYLineChart(ChartFactory.java:1682)
at scrum.server.common.BurndownChart.createSprintBurndownChart(BurndownChart.java:149)
at scrum.server.common.BurndownChart.writeSprintBurndownChart(BurndownChart.java:137)
at scrum.server.common.BurndownChart.writeSprintBurndownChart(BurndownChart.java:93)
at scrum.server.common.BurndownChart.writeSprintBurndownChart(BurndownChart.java:80)
at scrum.server.sprint.SprintBurndownChartServlet.onRequest(SprintBurndownChartServlet.java:31)
at scrum.server.common.AHttpServlet.doGet(AHttpServlet.java:33)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:774)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:896)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
at java.lang.Thread.run(Thread.java:636)
Statement from Kunagi Team
On some systems, Tomcat runs not in headless mode, which causes this error. We will activate headless mode on startup.
Status
Issue is closed for Release 0.16.
Comments
Thu, Nov 25, 2010, 15:23 by Witek (SM,T)
When did this happen? After an upgrade? Did it happen only once or every time? Thank you!
Thu, Nov 25, 2010, 16:58 by Axel Jung
We have changed the server address and are now using SSL. Since the restart of the Tomcat with all projects the charts are disturbed.
Fri, Nov 26, 2010, 00:14 by Witek (SM,T)
Your Tomcat should have extracted the kunagi.war
file into the kunagi
directory. Please check if kunagi/WEB-INF/lib/jfreechart-???.jar
exists.
Then you could stop Tomcat and delete the kunagi web application directory, which is in the same directory as the kunagi.war
file. WARNING: Do not delete the kunagi data directory! The data directory contains a directory called entities
. Do not delete this one. Start Tomcat again.
Another possibility could be, that you installed a conflicting jfreechart-???.jar
into the global tomcat lib
directory.
To prevent such problems in the future, we have sto156, which should make it to our next sprint.
Fri, Nov 26, 2010, 14:59 by Axel Jung
Hi i resolved the problem with the -Djava.awt.headless=true Option.
It would be nice if you add this for Linux Server without grafical interface.
Mon, Nov 29, 2010, 10:38 by Witek (SM,T)
Thank you very much for this info!