Confluence Data Center does not start due to Spring Framework error

プラットフォームについて: Data Center - この記事は、Data Center プラットフォームのアトラシアン製品に適用されます。

このナレッジベース記事は製品の Data Center バージョン用に作成されています。Data Center 固有ではない機能の Data Center ナレッジベースは、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。サーバー*製品のサポートは 2024 年 2 月 15 日に終了しました。サーバー製品を利用している場合は、アトラシアンのサーバー製品のサポート終了のお知らせページにて移行オプションをご確認ください。

*Fisheye および Crucible は除く

要約

Confluence Data Center fails to start. The logs show an error related to the Spring framework. There can be many different causes for this.

Error log details

Confluence の起動時に次のエラーが返される。 

atlassian-confluence.log
2010-06-18 21:54:45,432 INFO [main] [com.atlassian.confluence.lifecycle] init Confluence is ready to serve
2010-06-18 21:55:20,515 FATAL [http-8080-1] [atlassian.spring.container.SpringContainerContext] getComponent Spring Application context has not been set
2010-06-18 21:55:20,528 ERROR [http-8080-1] [[Standalone].[localhost].[/].[action]] log Servlet.service() for servlet action threw exception
java.lang.IllegalStateException: Spring Application context has not been set
	at com.atlassian.spring.container.SpringContainerContext.getComponent(SpringContainerContext.java:48)
	at com.atlassian.spring.container.ContainerManager.getComponent(ContainerManager.java:32)
	at com.atlassian.confluence.security.seraph.ConfluenceElevatedSecurityGuard.getCaptchaManager(ConfluenceElevatedSecurityGuard.java:115)   

次のエラーも返される場合があります。 

catalina.out
15-Nov-2015 23:57:33.447 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service Tomcat-Standalone
15-Nov-2015 23:57:33.447 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.28
2015-11-15 23:57:45,736 INFO [localhost-startStop-1] [com.atlassian.confluence.lifecycle] contextInitialized Starting Confluence 5.8.16 [build 5996 based on commit hash 4a6343ec7ed8542179d6c78fa7f87c01f81da016]
15-Nov-2015 23:58:06.434 SEVERE [Standalone-startStop-1] org.apache.catalina.startup.HostConfig.start Unable to create directory for deployment: /opt/atlassian/confluence/conf/Standalone/localhost

次のエラーも返される場合があります。

java.util.concurrent.CompletionException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantedTransactionManager' defined in class path resource [databaseSubsystemContext.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantedLocalSessionFactoryBean5' defined in class path resource [productionDatabaseContext.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: premature SessionFactory initialisation, Hibernate properties have not yet been persisted in confluence.cfg.xml

Or this one, during installation after a restart:

2016-11-30 12:23:12,241 ERROR [http-nio-8090-exec-3] [confluence.util.profiling.ConfluenceSitemeshErrorDecorator] renderInternal Failed to render error decorator. Falling back to using no decorator
 -- traceId: 006cacff18fcfffe
javax.servlet.ServletException: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getLocale' in  class com.atlassian.confluence.core.ConfluenceActionSupport threw exception java.lang.IllegalStateException: Spring Application context has not been set at /decorators/includes/header.vm[line 58, column 41]

File and database permissions

Confluence を実行しているユーザーが、<install>/confluence/WEB-INF/classes/confluence-init.properties  で定義されたホーム フォルダまたはインストール ディレクトリへの書き込み権限を持っていない。

Linux

Do not run Confluence as root, and ensure that the user running Confluence has full read and write access to  the home folder. This can be set by running chmod -R with the appropriate permissions, to apply them recursively to each subfolder. An example of the right permissions would be:

sudo chown -R <confluence-user> <confluence-install-folder>
sudo chown -R <confluence-user> <confluence-home-folder>
sudo chmod -R u=rwx,g=rx,o=rx <confluence-install-folder>
sudo chmod -R u=rwx,g=rx,o=rx <confluence-home-folder>

ユーザー confluence は一例であり、任意のユーザー名に変更してかまいません。

Windows

  1. <Confluence ホーム> フォルダを右クリックします。
  2. [プロパティ] を選択します。
  3. [セキュリティ] を選択します。
  4. Confluence の実行に使用しているユーザーを完全な読み取りおよび書き込みアクセスとして追加します。


The Confluence database permissions are incorrect.

We recommend that the database user is the owner of the Confluence database. When using PostgreSQL, the user has to be the owner of the Confluence database. Oracle, MySQL, and MSSQL need only the necessary permissions.


Confluence configuration errors

  • The database driver is not located in the <install>/confluence/WEB-INF/lib folder or you are using a database version that is incompatible with the bundled driver. 

Check the Supported Platforms and Database JDBC Drivers pages and verify that the required driver is located under <install>/confluence/WEB-INF/lib and your database version is compatible with the Confluence version.


  • インストール時にデータベースをセットアップするための十分なメモリがサーバーになく、再起動によってこのエラーが返される。

JVM を実行するために十分な物理メモリがサーバーにあるかどうかを確認します。Confluence 6.0 では 2 GB が必要です。ソリューション 10 の手順に従ってセットアップ ウィザードを再起動してから、インストーラーを再起動します


  • The file <confluence-home>/confluence.cfg.xml is corrupt.

The <confluence-home>/confluence.cfg.xml file needs to be properly formatted. It can be checked using online tools like W3 School XML Validator or advanced editors like IntelliJ or Eclipse. The file might have some hidden characters like "space" in the wrong place (e.g before the opening <?xml....> or some elements might not be closed properly which can break the XML file format.

confluence.cfg.xml はパスワードなどの機密情報を含む可能性があります。オンライン ツールでのテストを行う前にこのような機密情報を削除することをおすすめします


  • If you're using a MySQL database, either the collation or character set properties are not set correctly.

Please check the collation and character set of the database and verify:

ネットワーク接続

  • You have an application firewall enabled (SeLinux or AppArmor).

If SeLinux or AppArmor are running, try temporarily disabling them to see if they are causing issues.


  • The hostname of the server can't be resolved.

The hostname you are using must be resolvable (try ping $HOSTNAME). E.g.  The hostname  localhost  has not been added to  /etc/hosts . See java.net.UnknownHostException exceptions in Confluence log file due to DNS lookups failing.


  • The network interface bound on the affected node is incorrect.

The wrong network interface might be specified. For example, an interface named eth2 in one node could be the same interface that is named eth3 in another. In this case, we'll need to find out which interface is the correct one. Follow the resolution steps outlined in this KB article to find out, then change the confluence.cfg.xml file to use the proper network interface: Confluence Data Center won't start due to no matching network interface found


  • Confluence is actively being monitored by a health check from a load balancer, other users are accessing Confluence, or other browser tabs are refreshing the confluence base URL.

We recommended that only one Browser window be connected to Confluence when the initial installation wizard is running, and that no other user or health check is targeting the Confluence instance. Multiple open browser windows will be polling the Server for a status update, which may affect the Setup and result in a Spring Context error as per CONFSERVER-59084 - Improve installation process by preventing any other request to brake installation.

Upgrade was interrupted

The Setup Wizard must perform certain tasks. For whatever reason, the Confluence instance has been stopped or the server has been restarted before finishing all the upgrade steps.

Web ブラウザの URL を確認することで、各ステップを特定できます。一般的な Confluence インストールの場合、次の URL の順に進行します (選択したオプションによって URL が異なる場合があります)。

  • <ベース URL>/setup/setupstart.action

  • <ベース URL>/setup/selectbundle.action
  • <ベース URL>/setup/setuplicense.action
  • <base-url>/setup/setupcluster.action
  • <base-url>/setup/setupcluster-start.action - DC
  • <base-url>/setup/setupdbchoice-start.action - DC
  • <base-url>/setup/setupdata-start.action - DC
  • <base-url>/setup/finishsetup.action - DC
  • <ベース URL>/setup/setupdbtype-start.action
  • <ベース URL>/setup/setupdata-start.action
  • <ベース URL>/setup/setupusermanagementchoice-start.action
  • <base-url>/setup/complete.action

If this is a fresh installation, you can use the steps below to restart the installation. 

(warning) This will completely wipe the original instance and data in the database.

  1. Confluence を停止します。

  2. Backup and delete the <confluence-home>/confluence.cfg.xml file

  3. Confluence を起動します。

  4. Access the Base URL in your browser to start the Setup Wizard from the beginning

  5. During the database configuration step, choose "Continue and overwrite existing data" if prompted

  6. すべての手順を正常に完了できたことを確認します。



説明 On Confluence Startup, an error is thrown: Spring Application context has not been set.
製品Confluence
プラットフォームServer
Last modified on Mar 27, 2025

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

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