Tomcat Reports Package Scanner Found Duplicates when Starting Jira

お困りですか?

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

コミュニティに質問

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

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

*Fisheye および Crucible は除く

症状

When Jira is started, Tomcat will report WARN errors, indicating duplicate packages are found.

The following appears in the atlassian-jira.log file:

2012-12-08 04:50:09,499 pool-2-thread-1 INFO      [atlassian.plugin.manager.DefaultPluginManager] Initialising the plugin system
2012-12-08 04:50:10,236 pool-2-thread-1 WARN      [org.twdata.pkgscanner.ExportPackageListBuilder] Package Scanner found duplicates for package 'javax.el' with different versions. Files: tomcat-el-api-2.2.jar and tomcat-i18n-es-7.0.26.jar
  '/usr/share/java/tomcat-el-api-2.2.jar'
  '/usr/share/java/tomcat-i18n-es-7.0.26.jar'
2012-12-08 04:50:10,321 pool-2-thread-1 WARN      [org.twdata.pkgscanner.ExportPackageListBuilder] Package Scanner found duplicates for package 'javax.el' with different versions. Files: tomcat-i18n-es-7.0.26.jar and tomcat-el-api-2.2.jar
  '/usr/share/java/tomcat-i18n-es-7.0.26.jar'
  '/usr/share/java/tomcat-el-api-2.2.jar'
2012-12-08 04:50:10,331 pool-2-thread-1 WARN      [org.twdata.pkgscanner.ExportPackageListBuilder] Package Scanner found duplicates for package 'org.apache.commons.pool.impl' with different versions. Files: commons-pool-1.5.4.jar and commons-pool-1.5.6.jar
  '/var/lib/tomcat7/webapps/jira_5.2.1/WEB-INF/lib/commons-pool-1.5.4.jar'
  '/usr/share/java/commons-pool-1.5.6.jar'

原因

Java packages (JAR files) in Tomcat, Java and JIRA's lib directories are conflicting, indicating there are multiple versions installed for the same Java package. This error is more likely to occur on Tomcat EAR/WAR installations.

ソリューション

As per updating your Tomcat libraries, ensure that if installing JIRA WAR into a Tomcat that is not bundled, there are no conflicting Java packages. In the above example:

  • The Tomcat-i18n-es package relates to Spanish translations and can be safely ignored. If Spanish translations are not required, this package can be removed.
  • The commons-pool package conflict can cause problems as there are version mismatches, and JIRA have may not been tested with the 1.5.6 version. This could cause problems with the usage of JIRA and the recommended fix is to remove the commons-pool package from Tomcat.

These JARs are actually located in /usr/share/tomcat7/lib - they are symbolic links to /usr/share/java. For example:

[aquaman@avengersmansion|16:10:52 /usr/share/tomcat7/lib]
$ ll commons-pool.jar 
lrwxrwxrwx 1 root root 27 2011-09-08 23:24 commons-pool.jar -> ../../java/commons-pool.jar

They can be removed by removing the symbolic link in /usr/share/tomcat7/lib. This will prevent other WAR files from using them, however we do not support deployment of multiple applications into the same Tomcat.

(info) We recommend using the bundled Tomcat installer as it is significantly easier to use, maintain, upgrade and support. Additionally, these instructions are for Debian/Ubuntu. If you have any concerns about using them, please use the recommended installer, as in our Installing Jira docs.



最終更新日: 2025 年 2 月 7 日

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

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