You can create and manage a Liberty profile with IBM® Workload Deployer.
To familiarize yourself with IBM WebSphere® Application Server Hypervisor Edition, see the WebSphere Application Server Hypervisor Edition Version 8.5 overview information.
For details on provisioning the image, see the IBM Workload Deployer documentation.
This task applies to WebSphere Application Server Hypervisor Edition Version 8.5.
You can use the IBM Workload Deployer to build and deploy virtual system patterns which contain Liberty profile application servers.
Use the following procedure to construct a new pattern and create a virtual system image.
The new Liberty profile application server, named myserver1, has a limited set of features enabled, is started automatically, and has no applications installed. You can manage this application server instance with either script commands or with a Version 8.5 Job Manager. By default, the server instance runs on the IBM Java 1.6 JDK, which is provided during deployment.
For example, to stop the new server, use SSH to open a command window on the Liberty profile virtual system image. Issue the following command from the /opt/WebSphere/Liberty/bin directory: ./server stop myserver1
You can find the output that is generated when the server stops in the output logs directory:
/opt/IBM/WebSphere/Profiles/Liberty/usr/servers/myserver1/logs
You can install an application into this server by adding an <application> stanza to the following server.xml configuration file:
/opt/IBM/WebSphere/Profiles/Liberty/usr/servers/myserver1/server.xml
For example, to install the Servlet Sample application found on the IBM Developer Works website, stop the server and add the following stanza to the existing server.xml file:
<application id="sample1" location="Sample1.war" name="SampleContext" type="war" />
Add the application file, Sample1.war, to the /opt/IBM/WebSphere/Profiles/Liberty/servers/myserver1/apps directory and start the server again.
To run the application, point a web browser to the following url: http://<your virtual system>:9080/SampleContext/SimpleServlet
Simple Servlet ran successfully