ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gad Abraham <...@e1c.net>
Subject ant.jar has unsigned entries
Date Fri, 05 Aug 2005 02:58:36 GMT
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


Mime
View raw message