Details
Description
Short description:
The "ChartMacro" isn't working on a clean install of "XWiki 11.10.2" as ".deb" package on Ubuntu 18.04.3 (server - headless).
Problem:
- Installed XWiki
- Configured XWiki
- created a site with an Chart
content:
{{chart type="pie" source="inline" params="range:B2-D5;series:columns;" title="Chart Test" width="320" height="240"}} |=|=X|=Y|=Z |Q1|1.2|3.4|1.3 |Q2|4.5|3.4|2.3 |Q3|1.2|4.5|9.0 |Q4|3.4|1.2|1.2 {{/chart}}
- Chart is not display, instead you get an error message:
{{}}java.lang.NoClassDefFoundError: Could not initialize class org.jfree.chart.JFreeChart
Solution:
- Edit /etc/java-8-openjdk/accessibility.properties
(Java 11:{{ /etc/java-11-openjdk/accessibility.properties}}) - comment out (deactivate) this line:
#assistive_technologies=org.GNOME.Accessibility.AtkWrapper
- restart Tomcat
- Chart is now properly displayed{{}}
Additional Information:
see:
- https://forum.xwiki.org/t/chartmacro-could-not-initialize-class-org-jfree-chart-jfreechart/6058/15
- https://github.com/microsoft/vscode-arduino/issues/644
- https://extensions.xwiki.org/xwiki/bin/view/Extension/Chart%20Macro?viewer=comments#xwikicomment_14