Fix Readme
Abstract
Updating the version of IBM Java Runtime Environment, Java Technology Edition that is provided with IBM Watson Explorer Foundational Components.
Content
Procedures for Linux:
IBM Java Runtime may be present in one or more of the following folders. You need to update it under each of the listed folders.
IBM Java Runtime may be present in one or more of the following folders. You need to update it under each of the listed folders.
- /opt/ibm/WEX/Engine/java
- /opt/ibm/WEX/AppBuilder/java
- /opt/ibm/WEX/ZooKeeper/java
- /opt/ibm/WEX/ResultsModule/java
- Copy the java.tgz file that you downloaded into the directory. Do this for all the folders as shown in the example:
cp ibm-java-jre-7.1-4.1-linux-x86_64.tgz /opt/ibm/WEX/Engine/javacp ibm-java-jre-7.1-4.1-linux-x86_64.tgz /opt/ibm/WEX/AppBuilder/javacp ibm-java-jre-7.1-4.1-linux-x86_64.tgz /opt/ibm/WEX/ZooKeeper/javacp ibm-java-jre-7.1-4.1-linux-x86_64.tgz /opt/ibm/WEX/ResultsModule/java
- Shut down ResultsModule, AppBuilder, ZooKeeper and Watson Explorer Engine in order:
service resultsmodule-service stop or systemctl stop resultsmodule.serviceservice appbuilder-service stop or systemctl stop appbuilder.serviceservice zookeeper-service stop or systemctl stop zookeeper.service/opt/ibm/WEX/Engine/bin/velocity-shutdown or /opt/ibm/WEX/Engine/bin/embedded-webserver stop
- Uncompress the .tgz file that you copied earlier using gunzip. Do this for all the folders.
For example, gunzip ibm-java-jre-7.1-4.1-linux-x86_64.tgz- The result of this command is the ibm-java-jre-7.1-4.1-linux-x86_64.tar file
- Extract the JRE from the tar file. Perform this for all the folders:
tar --strip-components=1 -xvfibm-java-jre-7.1-4.1-linux-x86_64.tar- Extracting the JRE unpacks the files into the correct locations.
- Change the ownership of the new files to the correct owner and group, on the directory where you extracted the JRE:
cd /opt/ibm/WEX/ResultsModule
chown -R wex-resultsmodule:ibm-wex javacd /opt/ibm/WEX/AppBuilder
chown -R wex-appbuilder:ibm-wex javacd /opt/ibm/WEX/ZooKeeper
chown -R wex-zookeeper:ibm-wex javacd /opt/ibm/WEX/Engine/java
chown -R apache:apache jre properties docs copyright *.txt
- (AppBuilder only) Modify java.security file located at the following path with following the steps described at "Modifying java.security file (AppBuilder only)" section.
- /opt/ibm/WEX/AppBuilder/java/jre/lib/security/java.security
- Restart Watson Explorer Engine, ResultsModule, ZooKeeper, and AppBuilder in order:
/opt/ibm/WEX/Engine/bin/velocity-startup or /opt/ibm/WEX/Engine/bin/embedded-webserver startservice resultsmodule-service start or systemctl start resultsmodule.serviceservice zookeeper-service start or systemctl start zookeeper.serviceservice appbuilder-service start or systemctl start appbuilder.service
Procedures for Windows:
IBM Java Runtime may be present in one or more of the following folders. You need to update it under each of the listed folders.
- C:\Program Files\IBM\WEX\Engine\java
- C:\Program Files\IBM\WEX\AppBuilder\java
- C:\Program Files\IBM\WEX\ZooKeeper\java
- C:\Program Files\IBM\WEX\ResultsModule\java
- Copy the java .zip file that you downloaded into the directory. Do this for all the folders as shown in the example:
If you use Windows Explorer, you can drag the .zip file from where you downloaded it to the top level of the Engine directory.copy ibm-java-jre-7.1-4.1-win-x86_64.zip C:\Program Files\IBM\WEX\Engine\javacopy ibm-java-jre-7.1-4.1-win-x86_64.zip C:\Program Files\IBM\WEX\AppBuilder\javacopy ibm-java-jre-7.1-4.1-win-x86_64.zip C:\Program Files\IBM\WEX\ZooKeeper\javacopy ibm-java-jre-7.1-4.1-win-x86_64.zip C:\Program Files\IBM\WEX\ResultsModule\java
- Shut down AppBuilder, ZooKeeper, ResultsModule and Watson Explorer Engine in order:
- Use "Services" to stop AppBuilder
- Use "Services" to stop ZooKeeper
- Use "Services" to stop ResultsModule
- C:\Program Files\IBM\WEX\Engine\bin\velocity-shutdown.exe or C:\Program Files\IBM\WEX\Engine\bin\embedded-webserver.exe stop
- Extract the JRE from the zip file that you copied in the java.zip file earlier. Do this for all the folders.
For example:
chdir “c:\ProgramFiles\IBM\WEX\Engine\java”
unzip ibm-java-jre-7.1-4.1-win-x86_64.zip- If you use Windows Explorer, double-click the .zip file and extract all files.
- If the extract process does not start:
- Click on the "Extract" tab in the window
- Set the destination folder to the Engine root directory, such as C:\Program Files\IBM\WEX\Engine.
- You will be asked about overwriting existing files twice. Each time, click the "Do this for all" check box and select "Copy and replace".
- Extracting the JRE unpacks the files into the correct locations.
- (AppBuilder only) Modify java.security file located at the following path with following the steps described at "Modifying java.security file (AppBuilder only)" section.
- C:\Program Files\IBM\WEX\AppBuilder\java\jre\lib\security
- Restart Watson Explorer Engine, ResultsModule, ZooKeeper, and AppBuilder in order:
- C:\Program Files\IBM\WEX\Engine\bin\velocity-startup.exe or C:\Program Files\IBM\WEX\Engine\bin\embedded-webserver.exe stop
- Use "Services" to start ResultsModule
- Use "Services" to start ZooKeeper
- Use "Services" to start AppBuilder
Modifying java.security file (AppBuilder only)
Change preference orders of security.provider.2 and security.provider.3 in java.security at line 79 and 80:
to
79 security.provider.2=com.ibm.crypto.plus.provider.IBMJCEPlus
80 security.provider.3=com.ibm.crypto.provider.IBMJCE
79 security.provider.2=com.ibm.crypto.provider.IBMJCE
80 security.provider.3=com.ibm.crypto.plus.provider.IBMJCEPlus
List of providers and their preference orders before change
75 #
76 # List of providers and their preference orders (see above):
77 #
78 security.provider.1=com.ibm.jsse2.IBMJSSEProvider2
79 security.provider.2=com.ibm.crypto.plus.provider.IBMJCEPlus
80 security.provider.3=com.ibm.crypto.provider.IBMJCE
81 security.provider.4=com.ibm.security.jgss.IBMJGSSProvider
82 security.provider.5=com.ibm.security.cert.IBMCertPath
83 security.provider.6=com.ibm.security.sasl.IBMSASL
84 security.provider.7=com.ibm.xml.crypto.IBMXMLCryptoProvider
85 security.provider.8=com.ibm.xml.enc.IBMXMLEncProvider
86 security.provider.9=com.ibm.security.jgss.mech.spnego.IBMSPNEGO
87 security.provider.10=sun.security.provider.Sun
88
89 #
List of providers and their preference orders after change
75 #
76 # List of providers and their preference orders (see above):
77 #
78 security.provider.1=com.ibm.jsse2.IBMJSSEProvider2
79 security.provider.2=com.ibm.crypto.provider.IBMJCE
80 security.provider.3=com.ibm.crypto.plus.provider.IBMJCEPlus
81 security.provider.4=com.ibm.security.jgss.IBMJGSSProvider
82 security.provider.5=com.ibm.security.cert.IBMCertPath
83 security.provider.6=com.ibm.security.sasl.IBMSASL
84 security.provider.7=com.ibm.xml.crypto.IBMXMLCryptoProvider
85 security.provider.8=com.ibm.xml.enc.IBMXMLEncProvider
86 security.provider.9=com.ibm.security.jgss.mech.spnego.IBMSPNEGO
87 security.provider.10=sun.security.provider.Sun
88
89 #
Without this step, AppBuilder will show "We're sorry, but something went wrong." after updating Java version to 8.0.7.5.
[{"Type":"MASTER","Line of Business":{"code":"LOB10","label":"Data and AI"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SS8NLW","label":"IBM Watson Explorer"},"ARM Category":[{"code":"a8m0z000000cvvoAAA","label":"Documentation"}],"ARM Case Number":"","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"11.0.2;12.0.3"}]
Was this topic helpful?
Document Information
Modified date:
25 March 2022
UID
ibm16565665