Community

Liberty and Eclipse: Package a server

Share this post:

WebSphere Liberty is the next generation application server, and Liberty and Eclipse make a great local development environment for developing Java EE applications. One task you’ll need to be able to perform is using Eclipse to to package a Liberty server and application. This will create a single archive file that can be used to install the application and its runtime on another computer.

In this excerpt from “Java EE, the next inception: Install a local Java EE development environment for WebSphere Liberty,” we’ll explore how to create a packaged Liberty server using Eclipse. That will conclude this series.

The next series explores how to develop and deploy Java EE applications to Bluemix.

To start at the beginning of this series, see WebSphere Liberty: Developing Java EE applications for the cloud.


Packaging a server

As explained earlier, packaging a server creates a compact archive for installing an application and its server configuration on another computer. Before packaging a server, first remove any unneeded features from the feature manager’s list of enabled features to make the archive as compact as possible.

Eclipse GUI

To package a server using the WebSphere Developer Tools in Eclipse:

  1. In the Servers view, select the server you want to package.
  2. Expand the server’s tree view to see the projects associated with the server. These are the applications that will be packaged with the server, so remove any you do not want to include.
  3. If the server is running, stop the server.
  4. With the server selected, select Utilities > Package Server:
    Package server menu
  5. In the Package Server dialog:
    • Specify the archive file to create.
    • Specify how much of the server to include, such as No runtime (usr).
    • Click Finish.

    Package server dialog

You now have an archive file that contains the application packaged with the server configuration.

More Community stories
May 3, 2019

Kubernetes Tutorials: 5 Ways to Get You Building Fast

Ready to start working with Kubernetes? Want to build your Kubernetes skills? The five tutorials in this post will teach you everything you need to know about how to manage your containerized apps with Kubernetes.

Continue reading

May 3, 2019

Using Portworx to Deploy and Manage an HA MySQL Cluster on IBM Cloud Kubernetes Service

This tutorial is a walkthrough of the steps involved in deploying and managing a highly available MySQL cluster on IBM Cloud Kubernetes Service.

Continue reading

May 2, 2019

Kubernetes v1.14.1 Now Available in IBM Cloud Kubernetes Service

We are excited to announce the availability of Kubernetes v1.14.1 for your clusters that are running in IBM Cloud Kubernetes Service. IBM Cloud Kubernetes Service continues to be the first public managed Kubernetes service to support the latest upstream versions from the community.

Continue reading