ugu5ma / jscep

Automatically exported from code.google.com/p/jscep
MIT License
0 stars 0 forks source link

NoClassDefFoundError: org/bouncycastle/cms/CMSException #89

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Following exceptions:
{{{
Caused by: java.lang.NoClassDefFoundError: org/bouncycastle/cms/CMSException
    at java.lang.Class.getDeclaredFields0(Native Method)
    at java.lang.Class.privateGetDeclaredFields(Class.java:2291)
    at java.lang.Class.getDeclaredFields(Class.java:1743)
    at org.apache.catalina.util.Introspection.getDeclaredFields(Introspection.java:106)
    at org.apache.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(WebAnnotationSet.java:261)
    at org.apache.catalina.startup.WebAnnotationSet.loadApplicationServletAnnotations(WebAnnotationSet.java:140)
    at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:67)
    at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:405)
    at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:881)
    at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:369)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
[2013-04-09 06:28:21,929] Artifact servlet:war exploded: Error during artifact 
deployment. See server log for details.
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5179)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    ... 39 more
Caused by: java.lang.ClassNotFoundException: org.bouncycastle.cms.CMSException
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
    ... 53 more

}}}

Need you suggestion. I use next maven dependencies (see below), application 
server Tomcat 7
        <dependency>
            <groupId>org.bouncycastle</groupId>
            <artifactId>bcpkix-jdk15on</artifactId>
            <version>1.48</version>
        </dependency>
        <dependency>
            <groupId>com.google.code.jscep</groupId>
            <artifactId>jscep</artifactId>
            <version>2.0.1</version>
        </dependency>

Original issue reported on code.google.com by niked...@gmail.com on 9 Apr 2013 at 3:31

GoogleCodeExporter commented 9 years ago
Try bcmail too:

http://search.maven.org/#artifactdetails%7Corg.bouncycastle%7Cbcmail-jdk15on%7C1
.48%7Cjar

Original comment by david.gr...@adaptivelogic.co.uk on 9 Apr 2013 at 3:33

GoogleCodeExporter commented 9 years ago
Not working, I has the same error

Original comment by niked...@gmail.com on 9 Apr 2013 at 3:39

GoogleCodeExporter commented 9 years ago
My mistake, CMSException is in the bcpkix-jdk15on JAR (it used to be in 
bcmail).  Is Maven packaging the bcpkix jar in your WAR file?

Original comment by david.gr...@adaptivelogic.co.uk on 9 Apr 2013 at 3:46

GoogleCodeExporter commented 9 years ago

Original comment by da...@grant.org.uk on 9 Apr 2013 at 7:10