Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.ClassNotFoundException: javax.xml.bind.JAXBException #6

Open
phunanon opened this issue Nov 26, 2019 · 0 comments
Open

java.lang.ClassNotFoundException: javax.xml.bind.JAXBException #6

phunanon opened this issue Nov 26, 2019 · 0 comments

Comments

@phunanon
Copy link

Full stack trace:

$ lein lambda deploy production

Compiling my-lambda.handler
Compiling my-lambda.lambda
Created /home/.../my-lambda/target/my-lambda-0.1.0-SNAPSHOT.jar
Created /home/.../my-lambda/target/my-lambda-0.1.0-SNAPSHOT-standalone.jar
Uploading /home/.../my-lambda-0.1.0-SNAPSHOT-standalone.jar to bucket my-lambda-...
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
    at com.amazonaws.util.Base64.<clinit>(Base64.java:44)
    at com.amazonaws.util.Md5Utils.md5AsBase64(Md5Utils.java:104)
    at com.amazonaws.services.s3.AmazonS3Client.putObject(AmazonS3Client.java:1620)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at clojure.lang.Reflector.invokeMatchingMethod(Reflector.java:167)
    at clojure.lang.Reflector.invokeInstanceMethod(Reflector.java:102)
    at amazonica.core$fn_call$fn__3338.invoke(core.clj:864)
    at amazonica.core$intern_function$fn__3372.doInvoke(core.clj:996)
    at clojure.lang.RestFn.invoke(RestFn.java:512)
    at lein_lambda.s3$upload.invokeStatic(s3.clj:28)
    at lein_lambda.s3$upload.invoke(s3.clj:25)
    at leiningen.lambda$deploy.invokeStatic(lambda.clj:15)
    at leiningen.lambda$deploy.invoke(lambda.clj:11)
    at leiningen.lambda$lambda.invokeStatic(lambda.clj:26)
    at leiningen.lambda$lambda.doInvoke(lambda.clj:20)
    at clojure.lang.RestFn.invoke(RestFn.java:445)
    at clojure.lang.AFn.applyToHelper(AFn.java:160)
    at clojure.lang.RestFn.applyTo(RestFn.java:132)
    at clojure.lang.Var.applyTo(Var.java:705)
    at clojure.core$apply.invokeStatic(core.clj:667)
    at clojure.core$apply.invoke(core.clj:660)
    at leiningen.core.main$partial_task$fn__7021.doInvoke(main.clj:284)
    at clojure.lang.RestFn.applyTo(RestFn.java:139)
    at clojure.lang.AFunction$1.doInvoke(AFunction.java:31)
    at clojure.lang.RestFn.applyTo(RestFn.java:137)
    at clojure.core$apply.invokeStatic(core.clj:667)
    at clojure.core$apply.invoke(core.clj:660)
    at leiningen.core.main$apply_task.invokeStatic(main.clj:334)
    at leiningen.core.main$apply_task.invoke(main.clj:320)
    at leiningen.core.main$resolve_and_apply.invokeStatic(main.clj:340)
    at leiningen.core.main$resolve_and_apply.invoke(main.clj:336)
    at leiningen.core.main$_main$fn__7110.invoke(main.clj:449)
    at leiningen.core.main$_main.invokeStatic(main.clj:439)
    at leiningen.core.main$_main.doInvoke(main.clj:436)
    at clojure.lang.RestFn.applyTo(RestFn.java:137)
    at clojure.lang.Var.applyTo(Var.java:705)
    at clojure.core$apply.invokeStatic(core.clj:665)
    at clojure.main$main_opt.invokeStatic(main.clj:491)
    at clojure.main$main_opt.invoke(main.clj:487)
    at clojure.main$main.invokeStatic(main.clj:598)
    at clojure.main$main.doInvoke(main.clj:561)
    at clojure.lang.RestFn.applyTo(RestFn.java:137)
    at clojure.lang.Var.applyTo(Var.java:705)
    at clojure.main.main(main.java:37)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException
    at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:471)
    at clojure.lang.DynamicClassLoader.findClass(DynamicClassLoader.java:69)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:588)
    at clojure.lang.DynamicClassLoader.loadClass(DynamicClassLoader.java:77)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
    ... 51 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant