You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Gad Abraham <ga...@e1c.net> on 2005/08/05 04:58:36 UTC
ant.jar has unsigned entries
Hi,
I'm trying to run a class which uses Bouncycastle cryptography. It runs
fine when called directly from commandline java, however it won't run
from within an Ant <java> task:
[java] java.io.IOException: exception encrypting data -
java.security.NoSuchProviderException: JCE cannot authenticate the
provider BC
[java] at
org.bouncycastle.jce.provider.JDKPKCS12KeyStore.wrapKey(JDKPKCS12KeyStore.java:599)
[java] at
org.bouncycastle.jce.provider.JDKPKCS12KeyStore.engineStore(JDKPKCS12KeyStore.java:1131)
[java] at java.security.KeyStore.store(KeyStore.java:620)
<snip>
[java] at org.apache.tools.ant.Main.startAnt(Main.java:187)
[java] at
org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
[java] at
org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
[java] java.security.NoSuchProviderException: JCE cannot
authenticate the provider BC
[java] java.security.NoSuchProviderException: JCE cannot
authenticate the provider BC
[java] at javax.crypto.SunJCE_b.a(DashoA6275)
[java] at javax.crypto.SunJCE_b.a(DashoA6275)
[java] at javax.crypto.SecretKeyFactory.getInstance(DashoA6275)
<snip>
[java] Caused by: java.util.jar.JarException:
file:/home/gad/apache-ant-1.6.5/lib/ant.jar has unsigned entries -
org/apache/tools/ant/AntClassLoader$ResourceEnumeration.class
[java] at javax.crypto.SunJCE_d.b(DashoA6275)
[java] at javax.crypto.SunJCE_d.a(DashoA6275)
...
The people at the Bouncycastle mailing list suggest it's a problem with
the class loader.
I'm using Ant 1.6.5 with Java 1.4.2_08-b03 on Linux.
Thanks,
Gad
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: ant.jar has unsigned entries
Posted by Gad Abraham <ga...@e1c.net>.
Steve Loughran wrote:
> Gad Abraham wrote:
>
>> Hi,
>>
>> I'm trying to run a class which uses Bouncycastle cryptography. It runs
>> fine when called directly from commandline java, however it won't run
>> from within an Ant <java> task:
>>
>> [java] java.io.IOException: exception encrypting data -
>> java.security.NoSuchProviderException: JCE cannot authenticate the
>> provider BC
>> [java] at
>> org.bouncycastle.jce.provider.JDKPKCS12KeyStore.wrapKey(JDKPKCS12KeyStore.java:599)
>>
>> [java] at
>> org.bouncycastle.jce.provider.JDKPKCS12KeyStore.engineStore(JDKPKCS12KeyStore.java:1131)
>>
>> [java] at java.security.KeyStore.store(KeyStore.java:620)
>>
>> <snip>
>
>
>
> Does this go away if you set fork="true" to run the code in a new process?
Hi Steve,
It does indeed.
- Gad
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: ant.jar has unsigned entries
Posted by Steve Loughran <st...@apache.org>.
Gad Abraham wrote:
> Hi,
>
> I'm trying to run a class which uses Bouncycastle cryptography. It runs
> fine when called directly from commandline java, however it won't run
> from within an Ant <java> task:
>
> [java] java.io.IOException: exception encrypting data -
> java.security.NoSuchProviderException: JCE cannot authenticate the
> provider BC
> [java] at
> org.bouncycastle.jce.provider.JDKPKCS12KeyStore.wrapKey(JDKPKCS12KeyStore.java:599)
> [java] at
> org.bouncycastle.jce.provider.JDKPKCS12KeyStore.engineStore(JDKPKCS12KeyStore.java:1131)
> [java] at java.security.KeyStore.store(KeyStore.java:620)
>
> <snip>
Does this go away if you set fork="true" to run the code in a new process?
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org