Thursday, 8 December 2016

Tinkering with Java 1.7 in the context of IBM BPM 8.5

This is part 1 of a WIP about moving from BPM 8.5.5 ( which requires Java 1.6 ) to BPM 8.5.7 ( which can tolerate Java 1.6 or 1.7 or 1.7.1 )

Starting Position

/opt/ibm/InstallationManager/eclipse/tools/imcl listInstalledPackages

com.ibm.cic.agent_1.8.5000.20160506_1125
com.ibm.bpm.ADV.v85_8.5.5000.20140604_1130
com.ibm.websphere.ND.v85_8.5.5010.20160721_0036
com.ibm.websphere.odm.ds.rules.v87_8.7.1001.20151006_2017
com.ibm.websphere.odm.pt.rules.v87_8.7.1001.20151007_0005
com.ibm.websphere.IHS.v85_8.5.5010.20160721_0036
com.ibm.websphere.PLG.v85_8.5.5010.20160721_0036

Download Java 7.1


Specifically: -

7.1.3.40-WS-IBMWASJAVA-Linux

as: -

-rw-r--r--@ 1 davidhay  staff  813706627  8 Dec 08:31 7.1.3.40-WS-IBMWASJAVA-Linux.zip

Unpack Java 7.1

unzip 7.1.3.40-WS-IBMWASJAVA-Linux.zip -d /tmp/foo

Archive:  7.1.3.40-WS-IBMWASJAVA-Linux.zip
   creating: /tmp/foo/Offerings/
   creating: /tmp/foo/atoc/
   creating: /tmp/foo/atoc/nq/
   creating: /tmp/foo/files/
   creating: /tmp/foo/native/
   creating: /tmp/foo/plugins/
  inflating: /tmp/foo/plugins/com.ibm.ws.detect.running.process.jdk.v71_7.1.0.20131209_0100.jar  
  inflating: /tmp/foo/plugins/com.ibm.ws.osprereq.check.v85_8.5.8.20160303_0000.jar  
  inflating: /tmp/foo/repository.config  
  inflating: /tmp/foo/repository.xml  

See what's available to install

/opt/ibm/InstallationManager/eclipse/tools/imcl listAvailablePackages -repositories /tmp/foo/repository.xml 

com.ibm.websphere.IBMJAVA.v71_7.1.3040.20160720_1746
com.ibm.websphere.liberty.IBMJAVA.v71_7.1.3040.20160720_1746

Install Java 7.1

Using response file - installJava7.rsp

<?xml version='1.0' encoding='UTF-8'?>
<agent-input>
  <server>
    <repository location='/tmp/foo' temporary='true'/>
  </server>
  <profile id='IBM WebSphere Application Server V8.5' installLocation='/opt/ibm/WebSphere/AppServer'>
    <data key='cic.selector.arch' value='x86'/>
  </profile>
  <install>
    <!-- IBM WebSphere SDK Java Technology Edition (Optional) 7.1.3.40 -->
    <offering profile='IBM WebSphere Application Server V8.5' id='com.ibm.websphere.IBMJAVA.v71' version='7.1.3040.20160720_1746' features='com.ibm.sdk.7.1'/>
  </install>
  <preference name='com.ibm.cic.common.core.preferences.eclipseCache' value='/opt/ibm/IMShared'/>
</agent-input>

/opt/ibm/InstallationManager/eclipse/tools/imcl -input installJava7.rsp -acceptLicense

Installed com.ibm.websphere.IBMJAVA.v71_7.1.3040.20160720_1746 to the /opt/ibm/WebSphere/AppServer directory.

See what's installed

/opt/ibm/InstallationManager/eclipse/tools/imcl listInstalledPackages

com.ibm.cic.agent_1.8.5000.20160506_1125
com.ibm.bpm.ADV.v85_8.5.5000.20140604_1130
com.ibm.websphere.IBMJAVA.v71_7.1.3040.20160720_1746
com.ibm.websphere.ND.v85_8.5.5010.20160721_0036
com.ibm.websphere.odm.ds.rules.v87_8.7.1001.20151006_2017
com.ibm.websphere.odm.pt.rules.v87_8.7.1001.20151007_0005
com.ibm.websphere.IHS.v85_8.5.5010.20160721_0036
com.ibm.websphere.PLG.v85_8.5.5010.20160721_0036

Validate Java 7.1

/opt/ibm/WebSphere/AppServer/java_1.7.1_64/jre/bin/java -version

java version "1.7.0"
Java(TM) SE Runtime Environment (build pxa6470_27sr3fp40ifix-20160711_01(SR3 FP40+IX90174))
IBM J9 VM (build 2.7, JRE 1.7.0 Linux amd64-64 Compressed References 20160406_298393 (JIT enabled, AOT enabled)
J9VM - R27_Java727_SR3_20160406_0942_B298393
JIT  - tr.r13.java_20160328_114186
GC   - R27_Java727_SR3_20160406_0942_B298393_CMPRSS
J9CL - 20160406_298393)
JCL - 20160421_01 based on Oracle jdk7u101-b14

Validate Java 6

/opt/ibm/WebSphere/AppServer/java/jre/bin/java -version

java version "1.6.0"
Java(TM) SE Runtime Environment (build pxa6460_26sr8fp26ifix-20160708_01(SR8 FP26+IX90174))
IBM J9 VM (build 2.6, JRE 1.6.0 Linux amd64-64 Compressed References 20160406_298378 (JIT enabled, AOT enabled)
J9VM - R26_Java626_SR8_20160406_0830_B298378
JIT  - tr.r11_20160328_114192
GC   - R26_Java626_SR8_20160406_0830_B298378_CMPRSS
J9CL - 20160406_298378)
JCL  - 20160507_01

Validate Java SDKs via WAS

/opt/ibm/WebSphere/AppServer/bin/managesdk.sh -listAvailable

CWSDK1003I: Available SDKs :
CWSDK1005I: SDK name: 1.7.1_64
CWSDK1005I: SDK name: 1.6_64
CWSDK1001I: Successfully performed the requested managesdk task

/opt/ibm/WebSphere/AppServer/bin/managesdk.sh -listEnabledProfileAll

CWSDK1004I: Profile Dmgr01 :
CWSDK1006I: PROFILE_COMMAND_SDK = 1.6_64 
CWSDK1008I: Node Dmgr SDK name: 1.6_64
CWSDK1009I: Server dmgr SDK name: 1.6_64

CWSDK1004I: Profile AppSrv01 :
CWSDK1006I: PROFILE_COMMAND_SDK = 1.6_64 
CWSDK1008I: Node Node1 SDK name: 1.6_64
CWSDK1009I: Server nodeagent SDK name: 1.6_64
CWSDK1009I: Server MEClusterMember1 SDK name: 1.6_64
CWSDK1009I: Server SupClusterMember1 SDK name: 1.6_64
CWSDK1009I: Server AppClusterMember1 SDK name: 1.6_64

CWSDK1004I: Profile AppSrv02 :
CWSDK1006I: PROFILE_COMMAND_SDK = 1.6_64 
CWSDK1008I: Node Node1 SDK name: 1.6_64
CWSDK1009I: Server Node1-DSServer SDK name: 1.6_64
CWSDK1009I: Server ODM_webserver1 SDK name: 1.6_64
CWSDK1009I: Server nodeagent SDK name: 1.6_64

CWSDK1004I: Profile Dmgr02 :
CWSDK1006I: PROFILE_COMMAND_SDK = 1.6_64 
CWSDK1008I: Node Dmgr SDK name: 1.6_64
CWSDK1009I: Server dmgr SDK name: 1.6_64
CWSDK1001I: Successfully performed the requested managesdk task.

Switch BPM DM profile to use Java 7.1 SDK

/opt/ibm/WebSphere/AppServer/bin/managesdk.sh -enableProfile -profileName Dmgr01 -sdkName 1.7.1_64

CWSDK1017I: Profile Dmgr01 now enabled to use SDK 1.7.1_64.
CWSDK1001I: Successfully performed the requested managesdk task.

Switch BPM DM profile back to Java 6 SDK

/opt/ibm/WebSphere/AppServer/bin/managesdk.sh -enableProfile -profileName Dmgr01 -sdkName 1.6_64

CWSDK1017I: Profile Dmgr01 now enabled to use SDK 1.6_64.
CWSDK1001I: Successfully performed the requested managesdk task.

Additional - Check what's included with BPM 8.5.7

Unpack BPM 8.5.7

for i in /Volumes/DaveHaySSD/Software/BPM857/Product/BPM_*.tar.gz;do tar xvzf $i -C /tmp/bar/; done

See what's available to install

 /opt/ibm/InstallationManager/eclipse/tools/imcl listAvailablePackages -repositories /tmp/bar/repository/repos_64bit/repository.config -long

/tmp/bar/repository/repos_64bit : com.ibm.bpm.ADV.v85_8.5.7000.20160301_1551 : IBM® Business Process Manager Advanced : 8.5.7.0
/tmp/bar/repository/repos_64bit : com.ibm.websphere.IBMJAVA.v70_7.0.9010.20151112_0100 : IBM WebSphere SDK Java Technology Edition (Optional) : 7.0.9.10_0001
/tmp/bar/repository/repos_64bit : com.ibm.websphere.ND.v85_8.5.5008.20151112_0939 : IBM WebSphere Application Server Network Deployment : 8.5.5.8
/tmp/bar/repository/repos_64bit : com.ibm.ws.DB2EXP.linuxia64_10.5.0.20160301_1400 : IBM® DB2 Express 64 bit : 10.5.0.4

/opt/ibm/InstallationManager/eclipse/tools/imcl listAvailablePackages -repositories /tmp/bar/repository/JDK7 -long

/tmp/bar/repository/JDK7 : com.ibm.websphere.IBMJAVA.v70_7.0.9010.20151112_0100 : IBM WebSphere SDK Java Technology Edition (Optional) : 7.0.9.10_0001

/opt/ibm/InstallationManager/eclipse/tools/imcl listAvailablePackages -repositories /tmp/bar/repository/JDK71 -long

/tmp/bar/repository/JDK71 : com.ibm.websphere.IBMJAVA.v71_7.1.3010.20151112_0058 : IBM WebSphere SDK Java Technology Edition (Optional) : 7.1.3.10_0001

Sources






No comments: