Warning message

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

JBoss EAP 6 で、 rar としてデプロイした JCA Connector を使用すると ClassNotFound エラーが発生します

Solution Verified - Updated -

Issue

  • JCA Resource Adapter (example.rar) を使用しています。(JCA 検証を無効にした場合は) アダプターを JBoss 6.0 EAP に正しく設定することができます。JNDIでルックアップすると ConnectionFactory が返ります。ConnectionFactory を使用して Connection を、そして Connection を使用して Interraction を取得することができます。execute() メソッドのパラメータとして使用されるオブジェクト ExampleSpec を初期化すると問題が発生します。次の ClassNotFoundException が発生します。
 java.lang.ClassNotFoundException: com.jboss.examples.resource.adapter.ExampleSpec

このクラスは、使用される他の Class と同じレベルで、RAR の JAR にあります。deployments ディレクトリに RAR を配置してオートデプロイを行いました。手動でデプロイしても、JAR をモジュールとして宣言して依存関係を追加しても、問題は発生します。

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 6.0

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.