Installation or Upgrade of Confluence 4.0 EAR-WAR Fails on Red Hat or CentOS
Symptoms
- Running on Red Hat or distros that are based on Red Hat - eg. CentOS or Fedora
- Confluence 4.0 EAR/WAR or higher
- Tomcat 5.5.23 was installed via RPM
- 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
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
- Restart Tomcat
You might need to removejaxp_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
Powered by Confluence and Scroll Viewport.