Show Table of Contents
4.2.4. 以前のインストールでの JAR の検索
サーバーによって定義されたモジュールにパッケージ化された JAR にクラスがない場合は、EAP5_HOME インストールまたは以前のサーバーの
lib/ ディレクトリーで JAR を探します。
たとえば、ログに次の
ClassNotFoundException トレースが記録されているとします。
Caused by: java.lang.NoClassDefFoundError: org/hibernate/validator/ClassValidator at java.lang.Class.getDeclaredMethods0(Native Method)この場合、次を実行してこのクラスが含まれる JAR を探します。
- ターミナルを開き、
EAP5_HOME/ディレクトリーに移動します。 - コマンドを実行します。
grep 'org.hibernate.validator.ClassValidator' `find . \-name '*.jar'` - 複数の結果が表示されることもあります。その場合、必要な JAR は次のとおりです。
Binary file ./jboss-eap-5.1/seam/lib/hibernate-validator.jar matches
- この JAR をアプリケーションの
lib/ディレクトリーへコピーします。大量の JAR が必要な場合は、クラスのモジュールを定義した方が簡単な場合があります。詳細については、https://access.redhat.com/site/documentation/JBoss_Enterprise_Application_Platform/ にある JBoss EAP 6 向け『開発ガイド』の章「アプリケーションの開発」の「モジュール」を参照してください。 - アプリケーションを再ビルドし、再デプロイします。

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.