Skip to content

WebSphere Liberty To WebSphere eXtreme Scale Setup

aspyker edited this page May 29, 2013 · 34 revisions

Add Java to your path and set your JAVA_HOME environment variable appropriately

set JAVA_HOME=C:\work\java\ibm-java-sdk-60-win-i386
set PATH=%JAVA_HOME%\bin;%PATH%

Download the following free for developers or trial versions of WebSphere software

WebSphere Liberty 8.5.0.2

  • Download link: https://www.ibm.com/developerworks/community/blogs/wasdev/entry/download
  • Click on the "Download Release" image under "WebSphere Application Server V8.5 Liberty Profile"
  • Click on the "Download" image, review and agree to the license, click the "Download Now" link and save the resulting "wlp-developers-8.5.0.2.jar" file.
  • Install the file into a directory of your choice
java -jar wlp-developers-8.5.0.2.jar
  • At the end of the install it will ask for the directory and choose something like C:\work\java and it will create a directory call C:\work\java\wlp
  • For the rest of these instructions we will assume this to be the WLP_SERVERDIR
set WLP_SERVERDIR=C:\work\java\wlp

WebSphere eXtreme Scale 8.6.0.1

cd \work\java
unzip extremescaletrial860.zip
cd \work\java\ObjectGrid
set WXS_SERVERDIR=C:\work\java\ObjectGrid

Install the following development tools

Install the one dependency that isn't available in Maven (WebSphere eXtreme Scale library):

cd %WXS_SERVERDIR%\lib
mvn install:install-file -Dfile=objectgrid.jar -DgroupId=com.ibm.websphere.objectgrid -DartifactId=objectgrid -Dversion=8.6.0.1 -Dpackaging=jar

Get Java, Maven, Git, etc into Path and JAVA_HOME set

Build the code:

mvn clean compile package install

Start WebSphere eXtreme Scale by using the getting started sample

cd %OBJECT_GRID_INSTALL_DIR% (objectgrid)
xcopy gettingstarted\*.* acmeair\. /s/e/i/v/q
cd acmeair
edit the env.bat to point to your build output (TODO: be specific here of how)
SET SAMPLE_SERVER_CLASSPATH=%SAMPLE_HOME%\server\bin;%SAMPLE_COMMON_CLASSPATH%;C:\work\eclipse\acmeair\acmeair-common\target\classes;C:\work\eclipse\acmeair\acmeair-services-wxs\target\classes;C:\Users\aspyker\.m2\repository\commons-logging\commons-logging\1.1.1\commons-logging-1.1.1.jar
copy %ACMEAIR_SOURCE_DIR%\acmeair-services-wxs\src\main\resources\deployment.xml %OBJECT_GRID_INSTALL_DIR%\acmeair\server\config\.
copy %ACMEAIR_SOURCE_DIR%\acmeair-services-wxs\src\main\resources\objectgrid.xml %OBJECT_GRID_INSTALL_DIR%\acmeair\server\config\.
.\runcat
in another window...
.\runcontainer c0

Load the data into the data grid:

cd %ACMEAIR_SOURCE_DIR%
cd acmeair-loader
mvn exec:java

Create and start the WebSphere Liberty server and then deploy the application

cd %WLP_INSTALL_DIR%
bin\server create server1
edit usr\servers\server1\server.xml to add the following:
     <featureManager>
         <feature>jaxrs-1.1</feature>
         <feature>jndi-1.0</feature>
     </featureManager>
bin\server start server1
copy acmeair-webapp\target\acmeair-webapp-1.0-SNAPSHOT.war \wlp\usr\servers\server1\dropins\.

Load the following url:

http://localhost:9080/acmeair-webapp-1.0-SNAPSHOT
Clone this wiki locally