This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-01-12
Channels
- # announcements (2)
- # babashka (26)
- # beginners (48)
- # calva (32)
- # cider (23)
- # clj-kondo (61)
- # cljfx (3)
- # clojure (93)
- # clojure-australia (2)
- # clojure-europe (23)
- # clojure-losangeles (1)
- # clojure-nl (5)
- # clojure-uk (4)
- # clojurescript (46)
- # cloverage (9)
- # code-reviews (1)
- # copenhagen-clojurians (1)
- # cursive (39)
- # data-science (6)
- # datahike (8)
- # deps-new (8)
- # depstar (2)
- # etaoin (1)
- # fulcro (2)
- # funcool (2)
- # graalvm (5)
- # jackdaw (3)
- # java (17)
- # jobs-discuss (43)
- # kaocha (2)
- # leiningen (25)
- # malli (8)
- # minecraft (1)
- # missionary (8)
- # observability (6)
- # off-topic (37)
- # other-languages (12)
- # practicalli (1)
- # reagent (4)
- # releases (78)
- # remote-jobs (1)
- # sci (9)
- # shadow-cljs (13)
- # spacemacs (6)
- # sql (1)
- # tools-deps (30)
- # xtdb (3)
Very lost - can anyone see why the top one works, but the bottom one would fail with
Error: Unable to initialize main class some.project.DoThing
Caused by: java.lang.NoClassDefFoundError: org/eclipse/jetty/util/component/LifeCycle
{:mvn/repos {"jitpack" {:url ""}}
:paths ["target/src"]
:deps {org.eclipse.jetty/jetty-server {:mvn/version "11.0.2"}
org.eclipse.jetty/jetty-servlet {:mvn/version "11.0.2"}
org.slf4j/slf4j-simple {:mvn/version "1.8.0-beta4"}
dev.mccue/rosie {:mvn/version "0.0.5"}
dev.mccue/regex-router {:mvn/version "0.0.3"}
org.apache.commons/commons-text {:mvn/version "1.9"}}
:aliases {:compile {:extra-deps {org.immutables/value {:mvn/version "2.8.2"}}}
:build {:extra-paths []
:extra-deps {org.jacoco/org.jacoco.agent {:mvn/version "0.8.7"}
org.jacoco/org.jacoco.report {:mvn/version "0.8.7"}
info.picocli/picocli {:mvn/version "4.6.2"}}}
Sorry if I'm pointing something obvious, it seems org/eclipse/jetty/util/component/LifeCycle class is missing in classpath, would have guess its present in jetty-util-11.0.2.jar lib, it seems its not 🙂
i figured it out - it was very silly. I was getting the classpath with a newline at the end so …\n
not …
that apparently makes all the difference for the last dependency in the list which was jetty-util
also maven central says jetty-server 11.0.2 has a vulnerability https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34428