drallgood / jpasskit

jPasskit is an Java™ implementation of the Apple™ PassKit Web Service.
Apache License 2.0
275 stars 109 forks source link

NoClassDefFoundError with bouncycastle on Eclipse #22

Closed ntsh closed 11 years ago

ntsh commented 11 years ago

Hi,

I am trying to use jpasskit with Google App Engine on Eclipse.

PKPass pass = createPKPass();
PKSigningInformation pkSigningInformation
         = PKSigningUtil.loadSigningInformationFromPKCS12FileAndIntermediateCertificateFile(
                    keyStorePath, keyStorePassword, appleWWDRCA);

I am able to get the PKPass successfully using the example mentioned in the readme file, but when I try to get PKSigningInformation, I get the following error:

org.restlet.resource.UniformResource doCatch
WARNING: Exception or error caught in resource
java.lang.NoClassDefFoundError: org/bouncycastle/util/Store
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:171)
    at com.google.appengine.tools.development.agent.runtime.RuntimeHelper.checkRestricted(RuntimeHelper.java:70)
    at com.google.appengine.tools.development.agent.runtime.Runtime.checkRestricted(Runtime.java:64)

I downloaded the jar file from http://trac.bitzeche.de/archiva/browse/de.brendamour/jpasskit/0.0.2

So, I was wondering if there is some problem in the jar file, or I am doing something wrong?

Thanks.

drallgood commented 11 years ago

We discussed it via email and it looks like the dependencies weren't deployed.