This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-05-03
Channels
- # beginners (111)
- # boot (1)
- # braveandtrue (4)
- # calva (2)
- # cider (16)
- # clara (35)
- # cljdoc (4)
- # cljs-dev (22)
- # clojure (80)
- # clojure-dev (17)
- # clojure-europe (3)
- # clojure-italy (57)
- # clojure-japan (1)
- # clojure-nl (4)
- # clojure-serbia (1)
- # clojure-spec (25)
- # clojure-uk (108)
- # clojurescript (67)
- # cursive (17)
- # data-science (5)
- # datascript (6)
- # datomic (6)
- # devcards (1)
- # events (1)
- # expound (13)
- # figwheel (2)
- # figwheel-main (6)
- # fulcro (7)
- # jobs-discuss (8)
- # kaocha (1)
- # luminus (3)
- # nrepl (6)
- # off-topic (58)
- # re-frame (1)
- # reitit (16)
- # remote-jobs (1)
- # ring (1)
- # shadow-cljs (70)
- # spacemacs (10)
- # sql (42)
- # testing (1)
- # tools-deps (8)
- # vim (1)
having issues following build instructions here if anyone knows whats up 🙂 https://www.braveclojure.com/quests/deploy/set-up-a-server-and-deploy-a-clojure-app-to-it/#Mac
upon running 'boot build' i'm getting classNotFoundException:
... liberator.conneg/eval6357 conneg.clj: 1
liberator.conneg/eval6357/loading--auto-- conneg.clj: 1
java.lang.Class.forName Class.java: 398
java.lang.Class.forName0 Class.java
java.lang.ClassLoader.loadClass ClassLoader.java: 521
...
java.lang.ClassLoader.loadClass ClassLoader.java: 588
...
java.net.URLClassLoader.findClass URLClassLoader.java: 471
java.lang.ClassNotFoundException: javax.xml.ws.ProtocolException
clojure.lang.ExceptionInfo: javax.xml.ws.ProtocolException
line: 1
This is probably because Java 9 and later have removed a number of modules that were part of Java 8 and earlier. You can re-include them by running java with --add-modules java.xml.bind
. I don’t use boot myself, but from looking at the docs, it sounds like you should be able to do this by setting export BOOT_JVM_OPTS="--add-modules java.xml.bind"
(OS X and Linux). For Windows it’s a little more complicated: you have to create a boot.l4j.ini
file in the same directory as your boot.exe
, and inside the file, put the --add-modules java.xml.bind
directive.
See also https://stackoverflow.com/questions/43574426/how-to-resolve-java-lang-noclassdeffounderror-javax-xml-bind-jaxbexception-in-j if you’d like more details about the underlying Java problem that this fixes.