'java.lang.NoClassDefFoundError WikiStyleRenderer' after Confluence Upgrade Due to Bundled Pagetree Plugin
症状
After a Confluence upgrade, pages containing the {pagetree} macro do not render. The following appears in the atlassian-confluence.log
:
javax.servlet.ServletException: Servlet execution threw an exception
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
caused by: java.lang.NoClassDefFoundError: com/atlassian/confluence/renderer/WikiStyleRenderer
at java.lang.Class.getDeclaredMethods0(Native Method)
This may also happen when user creates a new space, since the default homepage content contains a {pagetree} macro.
原因
Since Confluence 2.9.2, the Confluence PageTree Plugin is bundled with Confluence. Confluence does not replace or upgrade the existing Page Tree plugin due to different plugin key. This results in duplicates of Page Tree plugin, as seen in the Plugin Manager.
ソリューション
Uninstall the older version of the Page Tree plugin (bnpparibas.confluence.pagetree). See Removing Malfunctioning Plugins if you're having trouble removing the old plugin.