WebSphere JVM/JDK on Solaris

I have seen people getting confused about the version of Java Development Kit(JDK) with WebSphere Application Server (WAS) on Solaris.
Here is the details:
So far all the versions of WAS available on Solaris uses Sun JDK. Then you might be wondering why java -version output is something like this:

Java(TM) 2 Runtime Environment, Standard Edition (IBM build 1.5.0_06-erdist-2006 0404 20060511)
Java HotSpot(TM) Server VM (build 1.5.0_06-erdist-20060404, mixed mode)
IBM Java ORB build orb50-20060511a (SR2)
XML build XSLT4J Java 2.7.4
XML build IBM JAXP 1.3.5
XML build XML4J 4.4.5

This tells us that this particular version of java is equivalent to 1.5.0_06 version of Sun's JDK. However there are pieces that has been either changed or modified some of them you can make out from above and they are:

  • ORB has been replaced with something which comes from IBM SR2 release at the same level.
  • For XML you can see various package has been replaced and I think names are quite descriptive and they have version information with them.
  • Security Frameowrk

All of the above has been replaced by IBM implementation.

More details you can find in your WAS/Java install dir(/opt/IBM/WebSphere/AppServer/java) and the files to look for are:

  • README_FIRST - Gives you all the information about the changes and known problems.
  • ibmorbguide.htm - Gives you ORB details.
  • securityguide.ref.htm - All the information about security implementation.

Now the question is can this JVM is upgraded using Sun JVM - As far as I understand all the updates to JVM/JDK comes as fix packs from IBM so if you violate that then support may not be available so it's not good idea to do that.
Of course, you are free to do whatever you want if you understand the pieces and ready to be on your own. You can replace and test with new version of libjvm.so or upgrade your JVM to higher version but making sure that the pieces that has been changed is incorporated following the docs I pointed out. But if you run into any problem you must figure out yourself because it is not supported and even if it works its not good idea for anything other than testing.


how will i know whether its a 64bit or a 32 bit jvm?

Posted by abhilash on October 20, 2008 at 01:50 PM PDT #

If it were 64 bit, you would see something like:

$ java -d64 -version
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (IBM build 1.5.0_06-erdist-20060404 20060511)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_06-erdist-20060404, mixed mode)
IBM Java ORB build orb50-20060511a (SR2)
XML build XSLT4J Java 2.7.4
XML build IBM JAXP 1.3.5
XML build XML4J 4.4.5

Please note the "64-Bit" wording right after HotSpot

Posted by Hsiang on November 06, 2008 at 10:21 PM PST #

Hi Dileep,

i'm facing an issue with WebSPhere on SOL8. when i see the java version i see the following: -
[/opt/WebSphere/AppServer/5.1/java] java -fullversion
java full version "Solaris_JDK_1.2.2_10"

but when i check the systemout.log of websphere i see the following: -
WebSphere Platform 5.1 [BASE cf110622.05] [JDK 1.4.1 ${build.level}] [ND cf110622.05] running with process name and process id 19880
Host Operating System is SunOS, version 5.8
Java version = 1.4.2_04, Java Compiler = null, Java VM name = Java HotSpot(TM) Server VM
was.install.root = /opt/WebSphere/AppServer/5.1
user.install.root = /opt/WebSphere/AppServer/5.1
Java Home = /opt/WebSphere/AppServer/5.1/java/jre

i'm confused about the java version because of this and dont know how to go about upgrading it

Posted by xetadog on March 25, 2009 at 08:28 PM PDT #

Hello xetadog,
I would check your path settings looks like in following case the java from PATH is picked up not from this dir:
[/opt/WebSphere/AppServer/5.1/java] java -fullversion
java full version "Solaris_JDK_1.2.2_10"

I would go by SystemOut.log and that is most accurate information.
Try setting your path to :
for bash/sh:
export PATH=$PATH:.
and then try the same command you will get the same output.

Posted by Dileep Kumar on March 31, 2009 at 08:07 AM PDT #

wow,Thank you Dileep.

Posted by guest on September 25, 2009 at 06:05 AM PDT #

Hi Dileep,

I'm facing one problem in web sphere that is, i have developed web services code and deployed in server (web sphere, web logic and jboss). This code depends javaee.jar. I have placed javaee.jar in middlerwears lib. all middle wears working fine expect websphere.

I'm getting 'TargetInvocationException'.

Chellappan S

Posted by Chellappan S on November 29, 2010 at 01:43 PM PST #

Post a Comment:
Comments are closed for this entry.



« February 2016