<?xml version="1.0" encoding="Shift_JIS" ?>
<document url="./installation-jr30.xml">

  <properties>
    <author>Eric Wu</author>
<primary>
    <title>The Struts Framework Project - Installation - JRun 3.0</title>
</primary>
    <title>Struts フレームワークプロジェクト - インストール - JRun 3.0</title>
    <translator>樋田 佳之</translator>
  </properties>

  <body>

<primary>
<section name="Installing Struts with your servlet container" href="Containers"> 
</section>
</primary>
<section name="Struts をサーブレットコンテナにインストールする" href="Containers"> 

<h3><a name="jrun">JRUN 3.0 SP2A, VERSION 3.02A.11614</a></h3>

<primary>
<b>Tested with: Microsoft IIS 5.0, Windows 2000</b>
</primary>
<b>テスト環境: Microsoft IIS 5.0, Windows 2000</b>

<primary>
<h4>Important Note:</h4>
</primary>
<h4>重要なお知らせ:</h4>

<primary>
<p>At the moment, JRun is not fully compliant with the JSP 1.1/1.2
specification. </p>
</primary>
<p>現在のところ、JRun は JSP 1.1/1.2 の仕様に準拠していません。</p>

<primary>
<p>Specifically, the automatic type conversions for custom tag parameters 
specified in "Issue  7" of the JSP 1.1 Errata and in the JSP 1.2 Proposed 
Final Draft have not yet been implemented.</p>
</primary>
<p>具体的には、 JSP 1.1 修正の "課題点 7" 及び JSP 1.2 最終ドラフト案にある、
独自タグのパラメータの自動での型変換に関する仕様を実装していません。</p>

<primary>
<p>As it stands, JSP pages that make use of Struts taglibs whose parameters
require  conversion (such as booleans) will not compile under JRun. This 
includes the Struts Example Application. Attempting to run the example 
application will result in an exception similar to the following being 
thrown:</p>
</primary>
<p>そのため、JSP ページを Struts taglibs を使用して作成し、
それらがパラメータの（ブール値などの）変換を必要とする場合は JRun 
によるコンパイルを行うことができません。
これは Struts サンプルアプリケーションにも含まれており、
試しにサンプルアプリケーションを実行してみると、
結果として次に示すような例外をスローします:</p>
<pre>
/struts-example/index.jsp:

javax.servlet.ServletException: Compilation error occured: 

allaire.jrun.scripting.DefaultCFE: 

Errors reported by compiler:
c:/JRun/servers/default/Struts 
  Example/WEB-INF/jsp/jrun__index2ejspa.java:41:1:41:27: 

Error: No match was found for method "setLocale(java.lang.String)".
</pre>

<primary>
<p>(For more details see refer to:<br/>
<font size="-1"><a href="http://www.mail-archive.com/struts-user@jakarta.apache.org/msg01860.html">http://www.mail-archive.com/struts-user@jakarta.apache.org/msg01860.html</a></font>)</p>
</primary>
<p>(詳細についてはこちらを参照してください:<br/>
<font size="-1"><a href="http://www.mail-archive.com/struts-user@jakarta.apache.org/msg01860.html">http://www.mail-archive.com/struts-user@jakarta.apache.org/msg01860.html</a></font>)</p>

<primary>
<p>The following instructions describe how to install the Struts Example
Application under JRun. A subsequent section describes how the Struts Example 
Application can be patched to work with Struts</p>
</primary>
<p>次に JRun 配下に Struts サンプルアプリケーションをインストールする方法について記述します。
後に続く章で Struts を動作させるために Struts
サンプルアプリケーションにパッチを当てる方法について記述します。</p>

<primary>
<p>The following instructions assume the following:</p>
</primary>
<p>後続の記述は、以下に記述されていることを前提とします</p>

<primary>
<ul>
<li>JRun has been installed and integrated with the web server of choice.</li>

<li>$APP_SERVER_NAME is the name of the application server used to host the 
  application.  (When JRun is first installed, it creates an application 
  server called JRun Default Server).</li>

<li>$APP_SERVER_DIR is the directory used to hold applications hosted by 
  $APP_SERVER_NAME.  For the JRun Default Server, the directory is 
  $JRUN_HOME/servers/default where $JRUN_HOME is the directory where 
  JRun is installed.</li>
</ul>
</primary>
<ul>
<li>適当な Web サーバに JRun をインストールし、稼動可能にします。</li>

<li>$APP_SERVER_NAME はアプリケーションが稼動するアプリケーションサーバの名前です（
JRun のインストール直後は、JRun デフォルトサーバをアプリケーションサーバとします）。</li>

<li>$APP_SERVER_DIR は $APP_SERVER_NAME によって稼動されるアプリケーションを保管するためのディレクトリです。
  JRun デフォルトサーバの場合、 JRun をインストールしたディレクトリ $JRUN_HOME 配下の
  $JRUN_HOME/servers/default がそのディレクトリになります。</li>
</ul>

<primary>
<h4>Installing the struts example application</h4>
</primary>
<h4>Struts サンプルアプリケーションのインストール</h4>

<primary>
<ul>
<li>Login to the JRun Management Console.</li>

<li>On the left pane, select $APP_SERVER_NAME. A page showing the
  current server status will be shown on the right pane.</li>

<li>On the right pane, click on the WAR Deployment link. A page
  containing a list of the currently deployed web applications will be 
  shown.</li>

<li>On the right pane, click on Deploy an Application. Complete the Web 
  Application Information form as follows:</li>
  
  <ul>
  <li>Servlet War File or Directory:  Enter the full path where
      struts-example.war is found or click on Browse to select 
      the path.</li>
  <li>JRun Server Name:  $APP_SERVER_NAME</li>
  <li>Application Name:  Struts Example</li>
  <li>Application Hosts:  All Hosts</li>
  <li>Application URL:   /struts-example</li>
  <li>Application Deploy Directory:  will default to 
      $APP_SERVER_NAME/Struts Example (or the name as specified for 
      Application Name).</li>
  </ul>

<li>Once the form is complete, click on the Deploy button.</li>

<li>If deployment is successful, restart the application server by
  clicking on <code>$APP_SERVER_NAME</code> on the left pane. A page showing the 
  current server status will be shown on the right pane. Click the 
  Restart Server button to restart the application server.</li>

<li>Test the sample application by using the following URL in the
  browser:<br/>
    <code>http://hostname/struts-example/index.jsp</code><br/>
  The struts-documentation.war can be installed using the same 
  procedure.</li>
</ul>
</primary>
<ul>
<li>JRun 管理コンソールにログインします。</li>

<li>左枠内から、$APP_SERVER_NAME を選択します。
  右枠内のページに選択したサーバの状態が表示されます。</li>

<li>右枠内、 WAR 公開リンクをクリックします。
  ページ内に現在、公開されている Web アプリケーションのリストが表示されます。</li>

<li>右枠内の、アプリケーションの公開をクリックします。
  次のようにして Web アプリケーションの情報フォームの入力を完了します:</li>
  
  <ul>
  <li>サーブレット War またはディレクトリ:  struts-example.war
      がある場所の完全パスを打ち込むまたは、参照をクリックして選択したパスを入力します。</li>
  <li>JRun サーバー名:  $APP_SERVER_NAME</li>
  <li>アプリケーション名:  Struts Example</li>
  <li>アプリケーション ホスト:  すべてのホスト</li>
  <li>アプリケーションの URL:   /struts-example</li>
  <li>アプリケーションの 公開 ディレクトリ:  デフォルトでは、
      $APP_SERVER_NAME/Struts Example （またはアプリケーション名で指定した名前）</li>
  </ul>

<li>フォーム入力が完了したら、公開ボタンをクリックします。</li>

<li>公開が成功したら、アプリケーションサーバを再起動するために、左枠内の
  <code>$APP_SERVER_NAME</code> をクリックします。
  右枠内のページに現在のサーバの状態が表示されます。
  サーバー再起動ボタンをクリックしてアプリケーションを再起動します。</li>

<li>次の URL を入力してブラウザによるサンプルアプリケーションのテストをします:<br/>
    <code>http://hostname/struts-example/index.jsp</code><br/>
  同様の手順を用いて struts-documentation.war をインストールすることができます。</li>
</ul>

<primary>
<h4>Installing unpacked web applications</h4>
</primary>
<h4>パックされていない Web アプリケーションのインストール</h4>

<primary>
<p>The above steps should be followed for applications deployed as <code>*.war</code> files.</p>

<p>For unpacked web applications, configuration involves the following steps:</p>
</primary>
<p>以上のステップによって <code>*.war</code> ファイルによるアプリケーションの公開を行うことができます</p>

<p>パックされていない Web アプリケーションについては、次のステップを踏む必要があります:</p>

<primary>
<ul>
<li>From the JRun Management Console, select <code>$APP_SERVER_NAME</code> (on the
  left pane) and click on WAR Deployment (on the right pane).</li>

<li>On the right pane, click on Create an Application and complete the
  Web Application Information form as follows:</li>

<li>JRun Server Name:  $APP_SERVER_NAME</li>

  <ul>
  <li>Application Name:  myApplication</li>
  <li>Application Hosts:  All Hosts</li>
  <li>Application URL:   /myApplication</li>
  <li>Application Deploy Directory:  will default to<br/>
    <code>$APP_SERVER_NAME/myApplication</code></li>
  </ul>

<li>Click on Create to submit the form.</li>

<li>Once the web application is created, install and configure the struts
  components (struts.jar, struts*.tld, etc) for the web application under 
  <code>$APP_SERVER_NAME/myApplication/WEB-INF</code></li>
  
<li>Install the remaining components of the application:  .class files,
  JSP pages,.properties files etc  as required.</li>

<li>To configure the extension mapping of the request URI (ie *.do) to
  the action servlet, expand <code>$APP_SERVER_NAME</code> on the left pane, expand 
  the Web Applications branch and click on myApplication. The right pane 
  will display the configuration options for myApplication. Click on 
  Servlet URL Mappings. A list of existing mappings will be shown. Click 
  the Edit button and create the following entry:</li>
  
  <ul>
  <li>Virtual Path/Extension:   *.do</li>
  <li>Servlet Invoked:  action</li>
  </ul>

<li>Click on the Update button to save the changes.</li>
<li>Restart the application server.</li>
<li>The application should now be accessible from the browser.</li>
</ul>
</primary>
<ul>
<li>JRun 管理コンソールから、（左枠内の） <code>$APP_SERVER_NAME</code>
  を選択し、（右枠内の） WAR 公開をクリックします。</li>

<li>右枠内、アプリケーションの作成をクリックし、
  次のようにして Web アプリケーション情報フォームの入力を完了します:</li>

<li>JRun サーバの名前:  $APP_SERVER_NAME</li>

  <ul>
  <li>アプリケーション名:  myApplication</li>
  <li>アプリケーション ホスト:  すべてのホスト</li>
  <li>アプリケーションの URL:   /myApplication</li>
  <li>アプリケーションのルート ディレクトリ:  デフォルトでは、<br/>
    <code>$APP_SERVER_NAME/myApplication</code></li>
  </ul>

<li>作成ボタンをクリックしてフォームを送信します。</li>

<li>Web アプリケーションが作成されたら、この Web アプリケーションのために Struts コンポーネント
  （ struts.jar 、 struts*.tld 、など）を <code>$APP_SERVER_NAME/myApplication/WEB-INF</code>
  配下へインストール及び設定します。</li>
  
<li>配備するアプリケーションのコンポーネントをインストールします:  .class ファイル、
  JSP ページ、 properties ファイルなどが必要です。</li>

<li>要求されるアクションサーブレットへの URI の拡張子マッピング（つまりは *.do ）を設定するために、
  左枠内の <code>$APP_SERVER_NAME</code> を展開し、さらに Web アプリケーションを展開して
  配下の myApplication をクリックします。
  右枠内に myApplication の設定オプションが表示されます。
  サーブレット URL のマッピングをクリックします。既存のマッピングのリストが表示されます。
  編集ボタンをクリックし、次のエントリを作成します:</li>
  
  <ul>
  <li>仮想パス/拡張子:   *.do</li>
  <li>呼び出されるサーブレット:  action</li>
  </ul>

<li>更新ボタンをクリックして変更内容を保存します。</li>
<li>アプリケーションサーバを再起動します。</li>
<li>これでブラウザからアプリケーションに接続することができるでしょう。</li>
</ul>

<primary>
<p>JRun application server will need to be restarted each time one of the
following changes are made to the web application:</p>
</primary>
<p>JRun アプリケーションサーバは Web アプリケーションに対して、
以下のような変更を行うたびに再起動しなければなりません:</p>

<primary>
<ul>
<li><code>.class</code> or <code>.jar</code> files are modified</li>
<li><code>.properties</code> files are modified</li>
<li><code>.xml</code> files are modified</li>
</ul>
</primary>
<ul>
<li><code>.class</code> または <code>.jar</code> ファイルの変更</li>
<li><code>.properties</code> ファイルの変更</li>
<li><code>.xml</code> ファイルの変更</li>
</ul>

<primary>
<h4>Patching the struts example application</h4>
</primary>
<h4>Struts サンプルアプリケーションにパッチを当てる</h4>

<primary>
<p>As mentioned at the beginning of these notes, the Struts Example Application
will not run under JRun without modification.  The following changes will need 
to be made:</p>
</primary>
<p>この文書の冒頭で記述したように、 Struts サンプルアプリケーションは修正を行わなければ
JRun 配下で実行することができません。以下の修正を施す必要があります:</p>

<primary>
<ul>
<li>index.jsp, logon.jsp: Change &lt;html:html locale="true"> to <br/>&lt;html:html locale=&lt;%= true %>></li>
<li>registration.jsp, subscription.jsp: Change all instances of filter="true" to <br/>filter=&lt;%= true %></li>
</ul> 
</primary>
<ul>
<li>index.jsp, logon.jsp: &lt;html:html locale="true"> から <br/>&lt;html:html locale=&lt;%= true %>> へ変更</li>
<li>registration.jsp, subscription.jsp: 全てのインスタンスで filter="true" から <br/>filter=&lt;%= true %> へ変更</li>
</ul> 
<primary>
  <hr/>
  <ul><li>Author: Eric Wu</li></ul>
  <hr/>
  <p>Back to <a href="installation.html#Containers">Installation</a></p>
</primary>
  <hr/>
  <ul><li>著者: Eric Wu</li></ul>
  <hr/>
  <p><a href="installation.html#Containers">インストール</a>へ戻る</p>
</section>
</body>
</document>
