Warning message

This translation is outdated. For the most up-to-date information, please refer to the English version.

JBoss EAP 6 における WEB-INF/lib 配下にある jars で JBAS015960: Class Path entry ... does not point to a valid jar for a Class-Path reference メッセージが発生する

Solution Unverified - Updated -

Issue

  • デプロイした war で Class Path エントリ / Class Path 参照 エラーが多数発生します。
  • JBoss EAP 6 に web アプリケーションをデプロイすると、Class Path エラーが多数発生します。
20:26:49,697 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015960:Class Path entry freemarker-2.3.15.jar in /content/example_webapp.war  does not point to a valid jar for a Class-Path reference.
20:26:49,697 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015960:Class Path entry jaxen-1.1.1.jar in /content/example_webapp.war  does not point to a valid jar for a Class-Path reference.
...
  • jboss-helloworld クイックスタートに基づいて、標準の maven プロジェクトを使用した war を作成しました。そのアプリケーション自体が、
    Spring、Spring JMS、および Tibco を含む多数のライブラリーを使用しています。プロジェクト POM ビルドセクションには maven war プラグインが含まれ、正しい MANIFEST.MF を強制的に生成するように addClasspath 属性は true に設定されています。
            <plugin>
                <artifactId>maven-war-plugin</artifactId>
                <version>${version.war.plugin}</version>
                <configuration>
                    <!-- Java EE 6 doesn't require web.xml, Maven needs to catch up!-->
                    <failOnMissingWebXml>false</failOnMissingWebXml>
                    <archive>
                        <manifest>
                            <addClasspath>true</addClasspath>
                        </manifest>
                    </archive>
                </configuration>
            </plugin>
  • サーバーが起動する前にデプロイした war と、dispatcher_web/META-INFMANIFEST.MF があることを確認し、そのコンテンツが以下に示されることを確認しました。この war で参照されているすべての jar が含まれ、それぞれの名前に maven バージョン番号が追加されます。さらに、参照されている jar はすべて example_webapp.war/WEB-INF/lib にあり、同じ名前で存在しています。

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.