How does one use the clojure tools cli with immutant?
I always get this error: IllegalArgumentException XNIO001001: No XNIO provider found org.xnio.Xnio.doGetInstance (Xnio.java:255)
this error does not occur when using leiningen
The error occurs when doing (web/run app) as described in the quick start / installation instructions.
@pauld that sounds like a jar is missing from your classpath. Can you give more details about what you are trying to do?
Hi, I'm just trying to use the clojure command line tools: https://clojure.org/guides/deps_and_cli
I'm following a basic example here: http://immutant.org/documentation/current/apidoc/guide-installation.html
I don't know if there is a bug in the 'clojure' command-line tool, but dependencies and classpaths are supposed to work is they do with leiningen.
deps.edn: {:deps {org.clojure/clojure {:mvn/version "1.9.0"} org.immutant/web {:mvn/version "2.1.10"}}}
Weird, it works for me.
Strange... I get IllegalArgumentException XNIO001001: No XNIO provider found org.xnio.Xnio.doGetInstance (Xnio.java:255) when I execute your line #6
I just removed xnio from my ~/.m2/repository, and now I get errors. Does clj
not resolve dependencies against maven repos? This is my first use of it, and it didn't seem to do any resolution
It seems like it is supposed to resolve deps
ah, try rm -rf .cpcache
, then run clj
again
Still same error.
clj -Spath should show the constructed classpath
Does clj -Stree
show org.jboss.xnio/xnio-nio
in the output?
ah, the xnio-nio
dep is <scope>runtime</scope>
in the undertow-core
pom. What version of clj
do you have? Maybe older versions don't respect runtime
?
hmm, I don't see a way for clj
to tell you its version
yeah was wondering this too. I could just reinstall - it's fairly old
executable is dated march 26th
clj -Sverbose
will give you the version. I have 1.9.0.391
shoot I just reinstalled and it works!
would have been nice to see the version I had
thanks for the tips!
My pleasure!