2016-04-14 8 views
0

私はMobileFirstにwarファイルを展開し、このチュートリアル使用リバティサーバーWAS: https://www.ibm.com/support/knowledgecenter/SSHS8R_7.0.0/com.ibm.worklight.deploy.doc/devref/t_ant_tasks_configure_appserver.html展開warファイル

をそれは成功した構築言いますが、私は、戦争を見ることができませんファイルをサーバー構成ツールにデプロイすると、ランタイム環境はまだ空です。

tools.jarがインストールされていないためですか?既存のランタイム環境が必要ですか? "ant -f configure-liberty-oracle.xml"を実行するとwarファイルが更新されます。ここで

は、ログです:

C:\IBM\MobileFirst_Platform_Server\shortcuts>ant -f configure-liberty-oracle.xml 
install 
Unable to locate tools.jar. Expected to find it in C:\IBM\Installation Manager\e 
clipse\jre_7.0.9030.20160210_1426\lib\tools.jar 
Buildfile: C:\IBM\MobileFirst_Platform_Server\shortcuts\configure-liberty-oracle 
.xml 

> install: 
[configureapplicationserver] Logging output of task <configureApplicationServer> 
to file C:\Users\fphmfpdev\Documents\IBM MobileFirst Platform Server Data\Confi 
guration Logs\configureApplicationServer_2016_04_14_11_10_19.log 
[configureapplicationserver] ** Creating migrated war file 
[configureapplicationserver] Apr 14, 2016 11:10:28 AM com.worklight.ant.migratio 
n.MigrationTask MigrationTask.execute 
[configureapplicationserver] INFO: FWLST2014I: The migration process was bypasse 
d, because the project WAR file of version 7.0.0.00.20150312-0731 is compatible 
with the server version 7.0.0.00.20150312-0731. 
[configureapplicationserver] Apr 14, 2016 11:10:28 AM com.worklight.ant.migratio 
n.MigrationTask MigrationTask.execute 
[configureapplicationserver] INFO: FWLST2015I: The project WAR file was successf 
ully copied to the destination location 'C:\Users\FPHMFP~1\AppData\Local\Temp\wl 
a5127457410\Sunlife.war'. 
[configureapplicationserver] ** Created migrated war file 
[configureapplicationserver] Copying C:\IBM\WebSphere\Liberty\usr\shared\resourc 
es\wladmin\oracle\ojdbc6.jar to C:\IBM\WebSphere\Liberty\usr\shared\resources\Su 
nlifeTestApp\oracle\ojdbc6.jar 
[configureapplicationserver] Copying C:\IBM\WebSphere\Liberty\usr\servers\wrklgh 
t\server.xml to C:\IBM\WebSphere\Liberty\usr\servers\wrklght\server.xml.bak161 
[configureapplicationserver] Encoding password for Liberty 
[configureapplicationserver] Encoding password for Liberty 
[configureapplicationserver] Modifying C:\IBM\WebSphere\Liberty\usr\servers\wrkl 
ght\server.xml 
[configureapplicationserver] Copying C:\Users\FPHMFP~1\AppData\Local\Temp\wla512 
7457410\Sunlife.war to C:\IBM\WebSphere\Liberty\usr\servers\wrklght\apps\Sunlife 
.war 
[configureapplicationserver] *** INFO: *** 
[configureapplicationserver] The MobileFirst Project WAR file has been installed 
on the application server, 
[configureapplicationserver] but it will not work until the application server h 
as been restarted. 
[configureapplicationserver] You now need to restart it. 
[configureapplicationserver] ************* 

BUILD SUCCESSFUL 
Total time: 9 seconds 
+0

最初に管理者がインストールされ、続いてランタイムインストールが実行されます。既存の管理サービスコンポーネントにランタイムをインストールするant "install"を実行しました。既に管理サービスをインストールしましたか? –

+0

@VivinK設定を既にインストールしました。それは管理サービスの意味ですか? – black1011

+0

私はこの手順を意味しました - "ant -f $ {ant.file.basename} adminstall" –

答えて

3

あなたはツールを使用すると、この設定を展開する際に実行され、対応するAntスクリプトを作成し、コンフィギュレーションを作成したとき。この操作中、作成ウィザードでオプションの選択を解除しない限り、管理コンポーネントはコンソールとともにインストールされます。

この設定が作成されたら、設定ツリーで設定を選択し、コンテキストメニューから「MobileFirstランタイム環境を追加」を選択して、サーバ設定ツールに引き続き1つまたは複数のランタイムをこの設定に追加できます。これにより、新しいAntスクリプトが作成され、ランタイム作成ウィザードの最後に実行され、このランタイムがデプロイされます。

重要な点は、サーバー構成ツールが、ウィザードを使用して作成したランタイムのみを認識していることです。これは、このグラフィカル環境の外で実行する他のAntスクリプトの実行と決して同期しません。これは、あなたがAntスクリプトの実行が "Build Success"状態で終わるのに対して、あなたが配置したランタイムを見ることができない理由を説明します。

関連する問題