WebSphere – Edition – Liberty ( v18 ) – Installation

Background

It is good to revisit Java J2EE after a long hiatus for me personally.

WebSphere – Liberty

Thankfully IBM avails WebSphere via its Liberty Edition.

Liberty is free and as such it is very accessible.

Version 18.x.y.z

Download

The current version of WebSphere Liberty is v18.0.0.2 and it is available here.

Please download it.

Extract

Extract the downloaded package.

Copy

Copy the extracted files into a neutral location where it will live and be delivered from.

Install

Install Additional features

Here are the additional features that we will be installing:

  1. AdminCenter
AdminCenter
Command
Command – Linux

bin/installUtility install adminCenter-1.0

Command – Windows

bin\installUtility install adminCenter-1.0

Output

adminCenter-1Dot0_20180720_0145PM

Configuration

Security

Server.xml
Security

Please access the server.xml file and add entries that look like what is pasted below.

Server.xml – Security
  1. basicRegistry
    • list each user and password
  2. administrator-role
    • list each user that should be part of the administrator group

    <basicRegistry id='basic'>
      <user name='admin' password='websphere' />
      <user name='guest' password='guest' />
    </basicRegistry>

    <administrator-role>
      <user>admin</user>
    </administrator-role>

    <keyStore 
        id='defaultKeyStore' 
        password='Liberty' 
    />
Features – Enable AdminCenter

     <!-- Enable features -->
    <featureManager>
        <feature>webProfile-8.0</feature>
        
        <!--
            2018-07-20 2:02 PM dadeniji
        -->
        <feature>adminCenter-1.0</feature>
        
    </featureManager>

Control

To control the web server, please launch a command shell and issue commands against the bin folder.

Start

Code

bin\server start
Output

serverStart_20180720_0141PM.png

Stop

Code

bin\server stop
Output

serverStop_20180720_0208PM.png

Web Access

Port Numbers & Host

Server.xml

Get Network Port Numbers and host from server.xml

      <!-- To access this server from a remote client 
       add a host attribute to the following element, 
       e.g. host="*" 
   -->
    <httpEndpoint id="defaultHttpEndpoint"
                  httpPort="9080"
                  httpsPort="9443" 
    />

Username & password

server.xml

Also from server.xml, please get user and password.

    <!-- Define an Administrator and non-Administrator -->
    <basicRegistry id="basic">
      <user name="admin" password="websphere" />
      <user name="guest" password="guest" />
    </basicRegistry>

    <!-- Assign 'admin' to Administrator -->
    <administrator-role>
      <user>admin</user>
    </administrator-role>

Browser

Launch a web browser and enter the URL and Port Number for Admin Center.

As we are logged on locally, please enter http://localhost:9443/AdminCenter.

If trying to connect from remote host, please edit your server.xml.

And, add host=* to the httpEndPoint section.

adminCenter_login_20180720_0212PM.png

 

References

  1. IBM
    • IBM Knowledge Center
      • Home > WebSphere Application Server Liberty base. . .> Administering Liberty using Admin Center
        • Setting up Admin Center
          Link
        • Logging in to Admin Center
          Link

 

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s