4.4. WebLogic サーバーでの Web アプリケーションのデプロイ (ライブラリーモード)
Web アプリケーションをデプロイするための前提条件は次のとおりです。
- WebLogic Server 12c
- JBoss Data Grid のライブラリー (埋め込み) モード
手順4.1 WebLogic サーバーでの Web アプリケーションのデプロイ
Web アプリケーションの作成
Web アプリケーションを作成し、ライブラリーをWEB-INFフォルダーに追加します。weblogic.xml デプロイメント記述子の作成
以下の要素が含まれるweblogic.xmlデプロイメント記述子を作成します。<?xml version="1.0" encoding="UTF-8"?> <weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/90" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/ns/weblogic/90 http://www.bea.com/ns/weblogic/90/weblogic-web-app.xsd"> <container-descriptor> <prefer-web-inf-classes>true</prefer-web-inf-classes> </container-descriptor> </weblogic-web-app>注記
prefer-web-inf-classesクラスは、WEB-INF/libフォルダーにあるライブラリーおよびクラスが WebLogic サーバーにバンドルされたデフォルトのライブラリーよりも優先されることを示します。たとえば、WebLogic サーバーのcommons-pool.jarファイルのバージョンは 1.4 で、クラスローダーによって自動的にロードされますが、Hot Rod クライアントはこのライブラリーの新しいバージョンを使用します。Web アプリケーションを Web アーカイブファイルへパック
Web アプリケーションの Web アプリケーションアーカイブ (WAR) ファイルを作成し、JBoss Data Grid ライブラリーと WebLogic デプロイメント記述子ファイルがWEB-INFフォルダーにあることを確認します。WebLogic サーバーでのアプリケーションのデプロイ
Infinispan CDI モジュールを使用して Web アプリケーションをデプロイするには、WebLogic サーバーが稼働している場合は停止し、パッチ (パッチファイルp17424706_121200_Generic.zip) を適用した後、WebLogic サーバーを再起動します。Infinispan CDI モジュールが使用されない場合は、通常どおり Web アプリケーションをデプロイします。WebLogic サーバーへのパッチ適用に関する詳細は、Oracle の Web サイトにある『Oracle patch database』を参照してください。

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.