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

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

症状

  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;

原因

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

ソリューション

ソリューション 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.

ソリューション 2

Install Tomcat downloaded from Apache.

ソリューション 3

Install Confluence Standalone edition which is bundled with Tomcat.

 

 

Last modified on Mar 30, 2016

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.