Class not found exception in the latest jar
Exception in thread "main" java.lang.NoClassDefFoundError: org/json/simple/parser/ContainerFactory at org.jose4j.jwk.JsonWebKey$Factory.newJwk(JsonWebKey.java:195) at com.test.jwe.TestJwe.encryptMessage(TestJwe.java:34) at com.test.jwe.TestJwe.main(TestJwe.java:26) Caused by: java.lang.ClassNotFoundException: org.json.simple.parser.ContainerFactory at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 3 more
Comments (3)
-
repo owner -
Were you able to get past this including those dependencies?
-
repo owner - changed status to invalid
seems like a config or deployment issue
- Log in to comment
Do you have the JSON-Simple jar in your classpath? You'll need that dependency as well as Codec and Logging from Apache Commons.
https://code.google.com/p/json-simple/
http://commons.apache.org/