This post explains how to install WebSphere Application Server 8.5.5 with the Java SDK 7.
What you need
Here are the parts you need to download to install WAS 8.5.5 with Java 7
Name | Part name (for Linux x86_64) | File name |
---|---|---|
IBM Installation Manager 1.6.2 | CIK2GML | InstalMgr1.6.2_LNX_X86_WAS_8.5.5.zip |
IBM WebSphere Application Server 8.5.5 | CIK1QML | WAS_V8.5.5_1_OF_3.zip |
IBM WebSphere Application Server 8.5.5 | CIK1RML | WAS_V8.5.5_2_OF_3.zip |
IBM WebSphere Application Server 8.5.5 | CIK1SML | WAS_V8.5.5_3_OF_3.zip |
IBM WebSphere SDK Java (TM) Technology Edition V7.0 | CI717ML | WS_SDK_JAVA_TEV7.0_1OF3_WAS_8.5.zip |
IBM WebSphere SDK Java (TM) Technology Edition V7.0 | CI718ML | WS_SDK_JAVA_TEV7.0_2OF3_WAS_8.5.zip |
IBM WebSphere SDK Java (TM) Technology Edition V7.0 | CI719ML | WS_SDK_JAVA_TEV7.0_3OF3_WAS_8.5.zip |
Pre-requisites
For the installer to work, you need the following libraries:
- ld-linux.so.2
- libgcc_s.so.1
You can install them with the following command:
yum install -y ld-linux.so.2 libgcc_s.so.1
You also need unzip to unzip the binaries:
yum install -y unzip
And finally for WAS to be able to start, it has to know its own name, like often with IBM softwares, so set it properly:
NAME=YourHostnameHere sed -i "s/HOSTNAME=.*$/HOSTNAME=$NAME/g" /etc/sysconfig/network hostname $NAME sed -i "s/localhost4\slocalhost4.localdomain4\s*$/localhost4 localhost4.localdomain4 $NAME/g" /etc/hosts sed -i "s/localhost6\slocalhost6.localdomain6\s*$/localhost6 localhost6.localdomain6 $NAME/g" /etc/hosts echo $NAME > /etc/HOSTNAME
Install Installation Manager
Installation manager is required to install WebSphere and the SDK 7. First, unzip the binaries:
mkdir im unzip InstalMgr1.6.2_LNX_X86_WAS_8.5.5.zip -d im cd im
Then a few tweaks for the silent install:
echo -Xss512k >> silent-install.ini echo -Xmso64k >> silent-install.ini echo >> silent-install.ini
And finally, install Installation Manager
./installc -log log.log -acceptLicense
Install WebSphere Application Manager 8.5.5
WebSphere comes as an Installation Manager Repository. There is no installer bundled in the repository, that’s why we have to use IM.
First, unzip the three zip in the same folder:
mkdir was unzip WAS_V8.5.5_*.zip -d was
Then, FYI, you can check the available sofware in the repository:
/opt/IBM/InstallationManager/eclipse/tools/imcl listAvailablePackages -repositories was
It should print com.ibm.websphere.BASE.v85_8.5.5000.20130514_1044.
Install WAS:
/opt/IBM/InstallationManager/eclipse/tools/imcl install com.ibm.websphere.BASE.v85_8.5.5000.20130514_1044 -repositories was -acceptLicense
And create a profile:
/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -create -templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/default -hostName master1 -cellName cell1 -nodeName node1 -serverName server1
Install Java 7 for WAS
Unzip the three zips:
mkdir sdk unzip WS_SDK_JAVA_TEV7.0_*.zip -d sdk
Then, FYI, you can check the available sofware in the repository:
/opt/IBM/InstallationManager/eclipse/tools/imcl listAvailablePackages -repositories sdk
It should print com.ibm.websphere.IBMJAVA.v70_7.0.1000.20120424_1539.
Install the SDK. Notice the new parameter to install into the WAS folder. Without this it will say required packages are missing:
/opt/IBM/InstallationManager/eclipse/tools/imcl install com.ibm.websphere.IBMJAVA.v70_7.0.1000.20120424_1539 -repositories /sdk -acceptLicense -installationDirectory /opt/IBM/WebSphere/AppServer
Finally, activate the SDK 7 for all your profiles and start the WAS server:
/opt/IBM/WebSphere/AppServer/bin/managesdk.sh -enableProfileAll -sdkName 1.7_64 /opt/IBM/WebSphere/AppServer/bin/startServer.sh -profileName AppSrv01 server1
You can enable the SDK 7 only for one profile by doing:
/opt/IBM/WebSphere/AppServer/bin/managesdk.sh -enableProfile -profileName profile_name -sdkName 1.7_64
Default profile_name is AppSrv01.
You can clean and save space by deleting the was and sdk folders if you want to.
Thanks for the tutorial! Only found one problem, when you make “/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -create -templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/default -hostName master1 -cellName cell1 -nodeName node9 -serverName server9”, if your $TERM is xterm-256color doesn’t work and doesn’t finish the process. You need to change the value with “export TERM=vt100”.
Good to know. Thanks for sharing, I’m sure some people will find this really helpful.
Awesome Post! Really helped. Thank you