This content has been marked as final. Show 9 replies
Oracle 9i embedded JVM is compatible with version java version 1.3, so I think you need to use a version of JCE which is compatible with java 1.3, no?
Thank you for your advice
On the site of JCE 1.2.2 (java.sun.com) has a message about JCE1.2.2 that is " JCE 1.2.2 is an older release that can be installed as an optional package to the Java 2 SDK, versions 1.2.x and 1.3.x.#
so i think the problem maybe the oracle9i cann't support with JCE Based Java Stored Procedure now.
I also load the JCE java file to the DB.
I 'll try to test jce 1.2.1.
I also did a test with JCE 1.2.1 ,thye error same as JCE1.2.2.
*** 2005-01-17 15:09:03.000
*** SESSION ID:(9.748) 2005-01-17 15:09:03.000
java.lang.SecurityException: Cannot set up certs for trusted CAs
you may try to add CA certificate to cacerts file in lib/security in one of Oracle's JAVA_HOME.
Use keytool. That may help, please tell me when You succeed.
I have a similar problem. I am trying to execute an HTTP post to a server protected by NTLM authentication from oracle 9i. I am using the Jakarta commons HTTP client (2.0.2) and the JCE 1.2.2. I had tested this outside Oracle with a sun jre 1.3.1_15 with no problems. When I execute my post it seems to be missing a class:
Does anyone have any ideas?
thanks in advance.
Please excuse me, but I am unfamiliar with JCE. However, I believe that the OracleJVM that comes with the Oracle 9i database is fully compliant with SUN's JDK version 1.3. Therefore, I imagine that the OracleJVM should support JCE. Unfortunately, there's not much more I can offer.
As Maciej mentioned, there is a "jdk/jre/lib/security/cacerts" subdirectory (under the "ORACLE_HOME" directory) -- but I don't know what you are meant to do with it.
Sorry I can't be any more help.
It may be the cacerts file is not appropriate (I am no expert in JCE either), but I note that when I ran my application in the external sun JDK I did not have to add certificates (the JCE is used to create NTLM authentication credentials and I provide all the required information in the program code). Also, the cacerts file under my sun jre 1.3 seems to be very similar to the one stored under my oracle home (but they are not identifical to a binary diff).
I think that this is more likely a resource load problem, as the JCE has a plugable provider interface and is likely to make heavy use loading class files and other resources by name.
I don't really have time to investigate this further. I can work around the problem by using a different authentication scheme in my application. However, since the JCE is part of the Java 1.4 specification and this spec is used, I believe, in the Oracle 10g release and I will likely have an chance to look at running my code in 10g in the next few weeks, I will post a quick note to say if the same code works there or not.
It most likely will. I have deployed a number of JCE applications into 10g without any problems.
To use the javax.crypto.* within my Java Stored Procedure on Oracle 9i, I had to load the jce1_2_2.jar as a resource, using the loadjava utility.
I am using DESede encryption type to encrypt/decrypt data on database, and therefore am using the Sun Provider. I also had to use loadjava to load the sunjce_provider.jar as a resource before I was able to compile my Java SP.
Hope this helps.