'java.lang.NoClassDefFoundError WikiStyleRenderer' after Confluence Upgrade Due to Bundled Pagetree Plugin

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Symptoms

After a Confluence upgrade, pages containing the {pagetree} macro do not render. The following appears in the atlassian-confluence.log:

1 2 3 4 5 6 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.

Cause

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.

Resolution

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.

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.