Friday, June 15, 2012

java.lang.UnsatisfiedLinkError: Can't load library: ....../Oracle_SOA1/oui/lib/win32/oraInstaller.dll .

Hello,

Here is a, how to call it.. an approach maybe, to identify the problem  and possibly provide a solution...

I have just Opatched my soa suite in my  wls 10.3.5 and I had to update my schemas  with the help of Patch Set Assistant

http://docs.oracle.com/cd/E25178_01/doc.1111/e16793/patch_set_assistant.htm

Anyway, when I tried to execute psa  in order to update my SOAINFRA and I go the following error:

Actually, I got the same error when I was trying to Opatch my SOA...
but I was able to workaround this by providing my 64bit jre with -jre option..

But for some reason I wasnt able to find this for psa command (If you know where it is... please share!)

So the problem was that the jdk the psa is using, is a 32bit one...
uh? But my windows 7 are 64bit and the java installed is 64bit...

And for that reason it tries to find a win32 folder... which is not there! there is only win64 folder.. Check yours as well..

So basically I digged a bit and I found out that it uses the JAVA_HOME set in the psa.bat eventually uses the JRockit jdk which is bundled with the WLS...



So.... how are we going to change that jdk and actually not changing any code... in the psa.bat (which it might seem quite easy.. But I strongly advice you against it.


So in order to have it working fast..

Rename your JRockit jdk to _old
Create a new folder with the same name of your JRockit (we are keeping the same structure and folder naming)
Copy the contents of your 64bit JDK into the new folder.
Then run psa again



Which is actually correct!

All You have to do is to set it up properly..

DISCLAIMER:
THIS POST HAS NO INTENSION OF ALTERING IN ANY WAY THE OFFICIAL DOWNLOADABLE CONTENT  FROM ORACLE SITE AND IT IS NOT IN THE INTENTION OF THE AUTHOR TO PROMOTE SUCH BEHAVIORS. THIS IS A PURE ILLUSTRATIVE EXPLANATION OF THE FOLDER STRUCTURE.

Cheers!

No comments:

Post a Comment

Post a Comment

LinkWithin

Related Posts Plugin for WordPress, Blogger...