JAVA upgrade
From Swivel Knowledgebase Wiki
Contents |
Overview
How to upgrade the currently installed version of JAVA on a Swivel Appliance.
Prerequisites
PINsafe appliance, and extensive Linux command line knowledge. Updating the installed version of JAVA could have serious consequences and it is recommended that only Swivel staff, or accredited resellers perform the work.
Each PINsafe instance including Active/Active, DR, and Active/Passive appliances will need to be upgraded.
Symptoms
Upgrade JAVA in order to run PINsafe 3.6 or later.
Solution
1. Login to appliance
2. Download java from www.sun.com. Recommended version jre-6u18-linux-i586-rpm.bin. Example URL from Sun website.
wget -O jre-6u18-linux-i586-rpm.bin http://javadl.sun.com/webapps/download/AutoDL?BundleId=37391
3. Change file permission to ensure downloaded file is executable:
chmod 755 jre-6u18-linux-i586-rpm.bin
4. Stop Tomcat
service tomcat5 stop
5. Unpack the java bin file
./jre-6u18-linux-i586-rpm.bin
6. Edit /etc/profile and search for ‘java’. Replace all instances of the directory path with ‘/usr/java/latest’.
7. Edit /etc/init.d/tomcat5 and search for ‘java’. Replace all instances of the directory path with ‘/usr/java/latest’
8. Start Tomcat
service tomcat5 start
9. Check the Tomcat process is using /usr/java/latest
ps –eaf | grep tomcat
10. Check PINsafe works
Troubleshooting
Check the Tomcat logs in /var/log/tomcat Check for any typos in
/etc/init.d/tomcat5 /etc/profile

