Translated message

A translation of this page exists in English.

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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content