I deployed a war file to MobileFirst WAS Liberty server using this tutorial: https://www.ibm.com/support/knowledgecenter/SSHS8R_7.0.0/com.ibm.worklight.deploy.doc/devref/t_ant_tasks_configure_appserver.html
It says build successful, but I can't see the war file being deployed in the Server Configuration Tool, the runtime environment is still empty.
Is it due to the tools.jar not being installed? or there should be an existing runtime environment? then run "ant -f configure-liberty-oracle.xml" and the war file there will just be updated?
Here's the logs:
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