SunX509 error

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

SunX509 error

velocity
This post was updated on .
sunx509 not available JVM from IBM.  I changed SunX509 to IbmX509... I still had the same problem.  How can I fix this problem.

I am using
java version "1.7.0"
Java(TM) SE Runtime Environment (build pxi3270sr3-20121025_01(SR3))
IBM J9 VM (build 2.6, JRE 1.7.0 Linux x86-32 20121024_126071 (JIT enabled, AOT enabled)
J9VM - R26_Java726_SR3_20121024_1635_B126071
JIT  - r11.b02_20120924_26343a
GC   - R26_Java726_SR3_20121024_1635_B126071
J9CL - 20121024_126071)
JCL - 20121019_01 based on Oracle 7u6-b17

OS: ubuntu 12.04
SSL: Comodo

I am still getting these errors...

2013-02-20 03:31:27,845 (main) [SSLServerSocketFactory.java:101:ERROR]
Error getting javax.net.ssl.SSLServerSocketFactory instance for Service Engine RMI calls: java.security.NoSuchAlgorithmException: SunX509 KeyManagerFactory not available

Message: SunX509 KeyManagerFactory not available

java.security.NoSuchAlgorithmException: SunX509 KeyManagerFactory not available


I tried to fix the problem by
framework/base/config/both-containers.xml
line 479
<property name="algorithm" value="SunX509"/>

/framework/base/config/ofbiz-containers.xml
Line Number: 238
            <property name="algorithm" value="SunX509"/>

/framework/base/src/org/ofbiz/base/util/SSLUtil.java (12.6 KB Sun Dec 27 11:54:58 2009)
Options: none.
Line Number: 142
        KeyManagerFactory factory = KeyManagerFactory.getInstance("SunX509");

framework/base/config/test-containers.xml
Options: none.
Line Number: 212
            <property name="algorithm" value="SunX509"/>

I still had the same problem. Then, I shut down the system.  Reboot.  

grep -r 'SunX509' /home/user/ofbiz
Binary file /home/user/ofbiz/framework/base/build/classes/org/ofbiz/base/util/SSLUtil.class matches

Please, advise.  I really appreciate it.
Reply | Threaded
Open this post in threaded view
|

Re: SunX509 error

velocity
I found this link
http://www.ibm.com/developerworks/forums/thread.jspa?messageID=13885924

If you are using a JVM from IBM, then take a look at the following page -
http://www-128.ibm.com/developerworks/java/jdk/security/50/
and the sample included in the following -
http://download.boulder.ibm.com/ibmdl/pub/software/dw/jdk/security/50/secguides/certpathDocs/certpathdocs_samples.zip

And follow the instructions there.  The solution may be straight forward - but I am at a loss.

please, advise.  Thank you
Reply | Threaded
Open this post in threaded view
|

Re: SunX509 error

velocity
http://ofbiz.135035.n4.nabble.com/org-ofbiz-base-start-StartupException-Cannot-init-catalina-container-Protocol-handler-initialization-td148455.html#a148492

loaded sun - even though would like to use ibm

"/etc/alternatives/java" which in turn links to ibm-jdk. I removed this link and linked to "/usr/lib/jvm/jdk1.7.0/bin/java", and I dont get the same error.

I still have issues in regards to start up.... when it gets to autoFinAccountReconciliation, it just gets stuck loading.

I figured maybe it is a port issue, but it doesnt seem like it.

[  ServiceDispatcher.java:593:INFO ] Sync service [default/autoFinAccountReconciliation] finished in [2347] milliseconds with response [{responseMessage=success}]
2013-02-25 02:52:06,370 (Thread-0) [    ContainerLoader.java:247:INFO ] Shutting down containers
2013-02-25 02:52:06,375 (Thread-0) [  ServiceDispatcher.java:189:INFO ] De-Registering dispatcher: oagismgr
....etc