Installation or Upgrade of Confluence 4.0 EAR-WAR Fails on Red Hat or CentOS

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

  1. Running on Red Hat or distros that are based on Red Hat - eg. CentOS or Fedora

  2. Confluence 4.0 EAR/WAR or higher

  3. Tomcat 5.5.23 was installed via RPM

  4. Setting up database during Confluence Setup Wizard or upgrading fails with the following appears in the atlassian-confluence.log:

1 2 3 2011-10-13 17:17:23,445 ERROR [http-8080-Processor19] [springframework.web.context.ContextLoader] initWebApplicationContext Context initialization failed -- referer: http://localhost:8080/conf40war/setup/setupstandarddb-start.action?database=mysql | url: /conf40war/setup/setupstandarddb.action | userName: anonymous | action: setupstandarddb org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'xhtmlMailContentProcessor' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'xhtmlXslTransformer' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'xhtmlXslTransformer' defined in class path resource [renderingContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.atlassian.confluence.xml.XhtmlXalanXslTransformer]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: javax.xml.transform.TransformerFactory.newInstance(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljavax/xml/transform/TransformerFactory;

Cause

There seems to be an incompatibility issue in Tomcat installed via RPM and Java.

Resolution

Resolution 1

  1. Remove the symlink of xml-commons-apis.jar from /var/lib/tomcat5/common/endorsed:

    1 2 3 # cd /var/lib/tomcat5/common/endorsed # rm [xml-commons-apis].jar rm: remove symbolic link `[xml-commons-apis].jar'? y
  2. Restart Tomcat

    ℹ️ You might need to remove jaxp_parser_impl.jar symlink as well if necessary.

Resolution 2

Install Tomcat downloaded from Apache.

Resolution 3

Install Confluence Standalone edition which is bundled with Tomcat.

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.