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

Still need help?

The Atlassian Community is here for you.

Ask the community

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:
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:

    # cd /var/lib/tomcat5/common/endorsed
    # rm [xml-commons-apis].jar
    rm: remove symbolic link `[xml-commons-apis].jar'? y
    
  2. Restart Tomcat
    (info) 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.

 

 

Last modified on Mar 30, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.