Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 96993 invoked from network); 11 Jul 2006 07:51:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Jul 2006 07:51:27 -0000 Received: (qmail 35071 invoked by uid 500); 11 Jul 2006 07:51:22 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 34943 invoked by uid 500); 11 Jul 2006 07:51:21 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 34275 invoked by uid 99); 11 Jul 2006 07:51:17 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006 00:51:17 -0700 X-ASF-Spam-Status: No, hits=2.5 required=10.0 tests=RCVD_IN_SORBS_WEB,RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of gcaddu-derby-user@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006 00:25:38 -0700 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1G0CcD-00036l-8X for derby-user@db.apache.org; Tue, 11 Jul 2006 09:25:05 +0200 Received: from 59.145.136.1 ([59.145.136.1]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 11 Jul 2006 09:25:05 +0200 Received: from supal.patel by 59.145.136.1 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 11 Jul 2006 09:25:05 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: derby-user@db.apache.org From: Supal Patel Subject: Re: Not able to create encrypted database Date: Tue, 11 Jul 2006 07:24:56 +0000 (UTC) Lines: 81 Message-ID: References: <44AD78FE.2080607@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 59.145.136.1 (Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; FDM)) Sender: news X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Myrna van Lunteren writes: > > On 7/6/06, Supal Patel wrote: > [snip details about the problem] > > This makes sense because you dont have 'com.ibm.j9.jce.provider.J9JCEProvider' > > in your classpath. > > > > But in my case I do have j9jceprov.jar in my classpath. And that is why I am > > getting error as mentioned below : > > > > ERROR XBM01: Startup failed due to an exception. See next exception for > > details. > > ERROR XBCXG: The encryption provider 'J9JCEProvider' does not exist. > > > > So now what I want to understand is what causes this error message : > > "ERROR XBCXG" > > > > I am using J9 (JCL:MAX) JRE and Derby 10.1.2 database. > > > > Can anyone please help me ? > > > > Thanks and Regards, > > > > Supal Patel > > > > > > > Hi Supal, Hi Myrna, Sorry for replying late.. Thanks in advance for helping me... > > I have never tried the encryption provider you mentioned, and I lost > (due to a hard disk crash) my installed j9 files...But I will try to > help... > > What OS are you working on, and what version of j9 do you have (so I > can try to get a similar set up)? I am using WinXP and J9 JCL MAX. > Also, I am wondering how exactly your jvm is started. > Specifically, do you use the -Xbootclasspath? > Have you been able to use the j9jceprov.jar with other products (not derby)? I have not tried this. I tried to use this jar for the first time with Derby only. > And, based on the commented-out line in JDBC_Test.java I wonder if you > were able to create an encrypted database with the > BouncyCastleProvider? Let me explain this in detail. Currently I have two JREs on my system: 1. IBM JRE1.4.2 and J9 JCL Max. If I run the same code on IBM 1.4.2 JRE and use BouncyCastle provider then it works fine. I can successfully create a encrypted databse. Now if I just change the JRE to J9 then the same code gives me exception that : ERROR XBCXC: Encryption algorithm 'DES/CBC/NoPadding' does not exist. Please check that the chosen provider 'BC' supports this algorithm. Now on J9 JRE if I use j9jceprov.jar and com.ibm.j9.jce.provider.J9JCEProvider then as mentioned in my previous post it gives me exception that : ERROR XBCXG: The encryption provider 'J9JCEProvider' does not exist. Please note that its not a class path issue because the j9jceprov.jar is in classpath. Thanks and Regards, Supal > > Thx, > Myrna > >