[fedora-java] Re: aot-compile-rpm and bouncycastle

Andrew Haley aph at redhat.com
Wed Jul 8 09:36:46 UTC 2009


Jerry James wrote:
> On Tue, Jul 7, 2009 at 1:23 PM, Jerry James<loganjerry at gmail.com> wrote:
>> When I build an RPM for a Java application on F-11, the
>> aot-compile-rpm step is issuing some warnings I don't understand.
>> They look like this:
>>
>> WARNING: Error loading security provider
>> org.bouncycastle.jce.provider.BouncyCastleProvider:
>> java.lang.ClassNotFoundException:
>> org.bouncycastle.jce.provider.BouncyCastleProvider not found in
>> gnu.gcj.runtime.SystemClassLoader{urls=[file:./],
>> parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
>>
>> The application in question does not use bouncycastle, directly or
>> indirectly.  On the other hand, I do have bouncycastle installed.  Is
>> something misconfigured?  Should bouncycastle be a BuildRequires for
>> gcj-using RPMs?
> 
> Ah, I found the reference.  In
> /usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre/lib/security/java.security is
> this line:
> 
> security.provider.6=org.bouncycastle.jce.provider.BouncyCastleProvider
> 
> That class does exist in /usr/share/java/bcprov.jar, but nothing is
> adding that jar to CLASSPATH if it exists.  How is this supposed to
> work?

I'll have a look.

Andrew.




More information about the fedora-devel-java-list mailing list