この文書は、Java BluePrints Solutions Catalog for Java EE 5, Early Access Ver. 0.4 distribution.に含まれるREADME.htmlの勝手翻訳です。
日本語訳に誤りがある可能性があります。翻訳の正確性は保証しませんので、自己責任においてご使用下さい。
間違い等あれば、こちらにトラックバックをお願いします。
This document describes how to install Java BluePrints Solution Catalog onto your application server.
このドキュメントは、アプリケーションサーバにJava BluePrintsソリューションカタログをインストールする方法を説明しています。
Before installing the Solution Catalog, you need to download and install the following software:
ソリューションカタログをインストールする前に次のソフトウェアをダウンロード・インストールしておく必要があります:
java -Xmx256m -jar glassfish-installer-9.0-b36.jar
java -Xmx256m -jar glassfish-installer-9.0-b36.jar
glassfish/
directory
glassfish/
ディレクトリに移動して下さいant -f setup.xml
ant -f setup.xml
You need to set the following environment variables to setup the Java BluePrints Solution Catalog.
Java BluePrintsソリューションカタログをセットアップするために次の環境変数をセットする必要があります。
JAVA_HOME
must point to the root directory of your JDK installation. For example, if you installed the JDK in c:\jdk1.5.0, then set the value of JAVA_HOME
to that path.
JAVA_HOME
は、JDKをインストールしたディレクトリのルートを指定しなければなりません、もしC:\jdk1.5.0にインストールした場合は、このパスをJAVA_HOME
の値としてセットして下さい。JAVAEE_HOME
must point to the root directory of your Java EE 5 SDK (GlassFish) installation. For example, if you installed the Java EE 5 SDK in /home/username/glassfish
, then set the value of JAVAEE_HOME
to that path.
JAVAEE_HOME
は、Java EE 5 SDK(GlassFish)をインストールしたディレクトリのルートを指定しなければなりません。例えば、Java EE 5 SDKを/home/username/glassfish
にインストールした場合は、このパスをJAVAEE_HOME
の値としてセットして下さい。ant
script available in the lib/ant/bin/
directory of your Java EE 5 SDK installation.
lib/ant/bin/
ディレクトリにあるant
スクリプトを使用して下さい。Your PATH
must include the following directories.
PATH
変数は次のディレクトリを含む必要があります。
$JAVA_HOME/bin
$JAVAEE_HOME/bin
%JAVA_HOME%\bin
%JAVAEE_HOME%\bin
Note : If you are using this application on an already installed instance of the Java EE 5 and you had already deployed a version of the solution catalog, you need to undeploy all of its applications before performing the instructions listed below. For instructions on uninstalling the solution catalog application components, see the next section of this document.
注意: このアプリケーションをインストール済みJava EE 5上で使用する場合、かつ、あるバージョンのソリューションカタログがデプロイ済みである場合には、次の一覧にある作業を実行する前に全てのアプリケーションをアンデプロイしておく必要があります。ソリューションカタログアプリケーションコンポーネントのアンインストール作業を行うにはこのドキュメントの次のセクションを参照して下さい。
To install the solution catalog applications, follow these steps: cd $JAVAEE_HOME/bin
asadmin start-domain domain1
If you are using Windows, open a command prompt and enter these commands:
cd %JAVAEE_HOME%\bin
asadmin start-domain domain1
build.properties.sample
to build.properties
and change the following properties in build.properties
:
build.properties.sample
をbuild.properties
にコピーし、build.properties
の次のプロパティを変更します:
Property Name
プロパティ名 |
Description
説明 |
Examples
例 |
javaee.home | The installation directory of the Java EE 5 SDK
Java EE 5 SDKのインストールディレクトリ |
/home/username/glassfish |
javaee.server.name | Host name of the server where the Java EE 5 SDK is installed
Java EE 5 SDKがインストールされたサーバのホスト名 |
localhost |
javaee.server.port | The port number for the server you chose while installing Java EE 5 SDK
Java EE 5 SDKをインストールした際に選択したサーバのポート番号 |
8080 |
javaee.server.username | The administrator username specified for the serve while installing Java EE 5 SDK
Java EE 5 SDKをインストールした際に決めたサーバ用に設定した管理者のユーザ名 |
admin |
javaee.server.passwordfile | The path to a file containing the admin password for the Java EE 5 SDK. The password file needs to be in the following format:
Java EE 5 SDK用の管理者パスワードを含んでいるファイルへのパス。パスワードファイルは次のフォーマットである必要があります:
Where you will replace <javaeesdk-admin-password> with adminadmin as the password for the Java EE 5 SDK. <javaeesdk-admin-password>の部分をJava EE 5 SDK用のパスワードとしてadminadminに書き換えて下さい。 |
/path/to/passwordfile password value should be adminadmin パスワード値はadminadminにしなければなりません |
javaee.adminserver.port | The port number for admin server you chose while installing the Java EE 5 SDK
Java EE 5 SDKをインストールした際に選択した管理者サーバ用ポート番号 |
4848 |
setup
script. This script will configure the various resources on the Java EE 5 SDK and deploy all the bpcatalog sample applications along-with the viewer application on the Java EE 5 SDK.
setup
スクリプトを実行します。このスクリプトはJava EE 5 SDKの様々なリソースを設定し、Java EE 5 SDKにビューアアプリケーションと合わせて全てのbpcatalogサンプルアプリケーションをデプロイします。
If you are using Unix, open a shell prompt and enter these commands:
Unixを使用している場合、シェルを起動し次のコマンドを入力して下さい:
sh setup.sh
If you are using Windows, open a command prompt and enter these commands:
Windowsを使用している場合、コマンドプロンプトを起動し次のコマンドを入力して下さい:
setup.bat
http://javaee5.server.name:javaee5.server.port/bpcatalog
For example
例えば
http://localhost:8080/bpcatalog
To undeploy, run the following commands:
アンデプロイするには、次のコマンドを実行して下さい:
For Unix, open a shell prompt and enter these commands:
Unixを使用している場合、シェルを起動し次のコマンドを入力して下さい:
sh setup.sh unsetup
For Windows, open a command prompt and enter these commands:
Windowsを使用している場合、コマンドプロンプトを起動し次のコマンドを入力して下さい:
setup.bat unsetup
Note this will undeploy all the applications as well as clean up any resources, such as a JdbcCoonection pool, that are used by the applications.
これは、例えばアプリケーションによって使用されているJdbcConnectionプールといったリソースを削除するだけでなく全てのアプリケーションをアンデプロイすることに注意して下さい。
Note that this is an optional step, meant for people interested in experimenting with the source code of the applications. The source code for all the applications is available under the src/
directory under the installation directory of the solutions catalog. There are two sections below, the first section describes how to build all the applications and the second section describes how to build just a single application.
これは任意のステップであることに注意して下さい、つまりアプリケーションのソースコードを検証することに興味がある人向けに作られています。全てのアプリケーションのソースコードはソリューションカタログのインストールディレクトリの下にあるsrc/
ディレクトリ以下に存在します。これらは次に挙げるふたつのセクションに分かれています、ひとつ目のセクションは全てのアプリケーションをどのようにビルドするかを説明しており、二つ目は単一のアプリケーションのみをビルドする方法を説明しています。
Note, in these instructions, when referring to a directory location, we will use <bpcatalog.home> as the directory for your installation of the Java BluePrints Solutions Catalog. This is the directory that got created where you unzipped the download.
注意、これらの作業でディレクトリの場所を参照する際には、Java BluePrintsソリューションカタログをインストールしたディレクトリとして<bpcatalog.home>を使用します。これはダウンロードしたファイルを解凍して作成されたディレクトリを指しています。
Note that the solutions catalog contains a number of applications, so building all of them may be time-consuming. Here are the build instructions:
ソリューションカタログはいくつものアプリケーションを含んでいることに注意して下さい、つまり全てのアプリケーションをビルドするには時間がかかるでしょう。ビルド手順を次に挙げます:
<bpcatalog.home>/build.properties.sample
to build.properties
in your home directory. On Windows, your home directory is usually at c:/Documents and Settings/username
. On Unix, the home directory is usually under /home/username
. Note that username
is your login id to the computer. You may need to change some properties in build.properties
as described in the Table 1.
<bpcatalog.home>/build.properties.sample
をホームディレクトリ直下にbuild.properties
としてコピーします。Windows上では、ホームディレクトリは通常C:/Documents and Settings/username
にあります。Unix上では、ホームディレクトリは通常/home/username
以下となります。username
はコンピュータへのログインIDであることに注意して下さい。表1の中で説明されているようにbuild.properties
のいくつかのプロパティを変更する必要があるかも知れません。
Ant Target Name
|
Description
説明 |
default |
This target builds all the applications
このターゲットは、全てのアプリケーションをビルドします |
run |
This target builds and deploys all the applications to the Java EE 5 SDK. It also launches their home pages in a browser
このターゲットは全てのアプリケーションをビルドし、Java EE 5 SDKにデプロイします。また、ブラウザでホームページを表示します。 |
deploy |
This target deploys all the applications to the Java EE 5 SDK
このターゲットは全てのアプリケーションをJava EE 5 SDKにデプロイします。 |
undeploy |
This target undeploys all the applications from the Java EE 5 SDK
このターゲットはJava EE 5 SDKから全てのアプリケーションをアンデプロイします |
clean |
This target deletes all the compiled classes and built applications binaries
このターゲットは全てのコンパイルされたクラスとビルドされたアプリケーションバイナリを削除します |
bpcatalog.home>/src/webtier
.
bpcatalog.home>/src/webtier
以下に存在します。
Ant Target Name
|
Description
|
default |
This target builds the application
このターゲットはアプリケーションをビルドします |
run |
This target builds and deploys the application to the Java EE 5 SDK. It also launches the application home page in a browser
このターゲットはビルドし、Java EE 5 SDKにアプリケーションでデプロイします。またブラウザでアプリケーションのホームページを表示させます |
deploy |
This target deploys the application to the Java EE 5 SDK
このターゲットはJava EE 5 SDKにアプリケーションをデプロイします |
undeploy |
This target undeploys the application from the Java EE 5 SDK
このターゲットはJava EE 5 SDKからアプリケーションをアンデプロイします |
clean |
This target deletes the compiled classes and built application binaries
このターゲットはコンパイルされたクラス及びビルドされたアプリケーションバイナリを削除します |