NoSuchFieldError Deploying JIRA on JBoss

プラットフォームについて: Data Center のみ。 - This article only applies to Atlassian apps on the Data Center プラットフォーム

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

*Fisheye および Crucible は除く

このページの内容はサポート対象外のプラットフォームに関連しています。したがって、アトラシアン サポートではこのページの記載内容のサポートの提供は保証されません。この資料は情報提供のみを目的として提供されています。内容はお客様自身の責任でご利用ください。

症状

When trying to deploy JIRA on JBoss 4.x, the following error appears in the log:

2009-03-25 11:13:16,046 FATAL [com.atlassian.jira.upgrade.ConsistencyLauncher] An Error occurred during ConsistencyLauncher servlet context initialisation - ANY_HOST_CONFIGURATION. java.lang.NoSuchFieldError: ANY_HOST_CONFIGURATION at org.apache.commons.httpclient.params.HttpConnectionManagerParams.setDefaultMaxConnectionsPerHost(HttpConnectionManagerParams.java:85)

原因

This is caused by a classloading issue. JBoss and JIRA both ship with a version of Jakarta Commons HTTP Client and the JBoss classloader is using a conflicting version.

ソリューション

オプション 1

Replace $JBOSS_HOME/servers/default/lib/commons-httpclient.jar with the version provided by JIRA in webapps/WEB-INF/jira/commons-httpclient-x.x.x.jar where x.x.x is the version e.g. commons-httpclient-3.0.1.jar. If you do this, make sure to backup the version provided by JBoss in case something goes wrong.

{panel:bgColor=#EAECFF|title=Option 2} The other option is to [configure the JBoss classloader|http://www.jboss.org/community/docs/DOC-9288] in {{jboss-web.xml}} to use the correct version: {code:xml}<jboss-web> <class-loading> <loader-repository> org.apache.commons.httpclient:loader=commons-httpclient-3.0.1.jar </loader-repository> </class-loading> </jboss-web>
更新日時: September 25, 2025

さらにヘルプが必要ですか?

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