gpt4 book ai didi

clojure - 无法在类路径上找到 ring/util/request__init.class 或 ring/util/request.clj

转载 作者:行者123 更新时间:2023-12-05 01:48:06 26 4
gpt4 key购买 nike

FileNotFoundException 
Could not locate ring/util/request__init.class or ring/util/request.clj on classpath:
clojure.lang.RT.load (RT.java:443)

当我尝试使用我的命名空间时,这发生在 leiningen repl 中:

(use 'cmp.repl)

这个问题只发生在我的部署环境(Ubuntu Server 12)上,但它在我的开发环境 Mac OS 10.8 上运行良好

我的project.clj文件如下:

(defproject cmp "0.1.0-SNAPSHOT"

:description "FIXME: write description"
:url "http://example.com/FIXME"

:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}

:dependencies [[org.clojure/clojure "1.5.1"]
[lib-noir "0.5.0"]
[compojure "1.1.5"]
[com.cemerick/friend "0.1.5" :exclusions [ring/ring-core]]
[ring-server "0.2.7"]
[clabango "0.5"]
[korma "0.3.0-RC5"]
[clj-json "0.5.3"]
[mysql/mysql-connector-java "5.1.6"]
[com.taoensso/timbre "1.5.2"]
[com.taoensso/tower "1.5.1"]
[com.postspectacular/rotor "0.1.0"]
[markdown-clj "0.9.19"]
[clj-pdf "1.11.1"]
[dk.ative/docjure "1.6.0"]
[org.clojure/data.csv "0.1.2"]
[clojure-csv/clojure-csv "2.0.1"]
[clj-time "0.6.0"]
[log4j "1.2.15"
:exclusions
[javax.mail/mail
javax.jms/jms
com.sun.jdmk/jmxtools
com.sun.jmx/jmxri]]]
:plugins [[lein-ring "0.8.7"]]
:ring {:handler cmp.handler/war-handler
:init cmp.handler/init
:destroy cmp.handler/destroy}
:profiles
{:production {:ring {:open-browser? false
:stacktraces? false
:auto-reload? false}}
:dev {:dependencies [[ring-mock "0.1.3"]
[ring/ring-devel "1.1.8"]]}}
:java-source-paths ["src/cmp/java"]
:min-lein-version "2.0.0")

最佳答案

运行 lein deps :tree 后,我发现我还必须为 ring/ring-core 添加一个排除项,以便在项目文件中合成。现在为我工作得很好

关于clojure - 无法在类路径上找到 ring/util/request__init.class 或 ring/util/request.clj,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19110294/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com