WAS Liberty Simple Setup for Development

Post date: Mar 7, 2017 7:25:03 PM

Everytime I install WAS Liberty in Eclipse to develop BlueMix apps, I waste a lot of time to bring a warning-less instance of WAS in my local machine.

So, here it goes a reminder of how to do it.

#1 Download Liberty plugins at Eclipse Marketplace

#2 Download WAS Liberty from IBM

#3 Add the server instance in Eclipse

#4 Configure the instance's server.xml as follows - just remember to change the password as I put random stuff below:

<server description="new server">

<!-- Enable features -->

<featureManager>

<feature>adminCenter-1.0</feature>

<feature>localConnector-1.0</feature>

<feature>ssl-1.0</feature>

<feature>appSecurity-2.0</feature>

</featureManager>

<!-- Define the host name for use by the collective.

If the host name needs to be changed, the server should be

removed from the collective and re-joined. -->

<variable name="defaultHostName" value="localhost"/>

<!-- Define an Administrator and non-Administrator -->

<basicRegistry id="basic">

<user name="admin" password="{xor}WJEhdWQE"/>

<user name="nonadmin" password="{xor}DewqdQDew"/>

</basicRegistry>

<!-- Assign 'admin' to Administrator -->

<administrator-role>

<user>admin</user>

</administrator-role>

<keyStore id="defaultKeyStore" password="{xor}JWhdKJWREh"/>

<httpEndpoint host="*" httpPort="9080" httpsPort="9443" id="defaultHttpEndpoint"/>

</server>