librelist archives

« back to archive

Classpath errors after upgrading to OS X 10.9 Mavericks

Classpath errors after upgrading to OS X 10.9 Mavericks

From:
Avi Flax
Date:
2013-11-06 @ 22:18
Before I upgraded, everything was working fine.

Now, any time I run `lein run` or `lein test` in any of my projects, I get
classpath errors, such as:

Exception in thread "main" java.io.FileNotFoundException: Could not locate
clj_http__init.class or clj_http.clj on classpath:

or:

Can't find 'channels.server.api.core' as .class or .clj for lein run:
please check the spelling.
Exception in thread "main" java.io.FileNotFoundException: Could not locate
resourceful/core__init.class or resourceful/core.clj on classpath:

`lein repl` works fine, although I get the same error messages if I attempt
to require any of my libs.

I’ve also tried loading and running my libs from within Light Table
(0.5.17) and I get the same errors.

`lein help` works fine.

`lein -v` reports:

    Leiningen 2.3.3 on Java 1.7.0_40 Java HotSpot(TM) 64-Bit Server VM

I’d appreciate any help with this… I tried searching the web and the GitHub
repo but didn’t find anything.

Thanks,
Avi

Re: [leiningen] Classpath errors after upgrading to OS X 10.9 Mavericks

From:
John Gabriele
Date:
2013-11-07 @ 15:05
On Wed, Nov 6, 2013, at 02:18 PM, Avi Flax wrote:
> Before I upgraded, everything was working fine.
> 
> Now, any time I run `lein run` or `lein test` in any of my projects, I
> get
> classpath errors, such as {snip}

Hi Avi,

How did you originally install lein? Did you just download the script
and put it into your ~/bin?

Upon upgrade, did you do a `lein upgrade`, or a fresh reinstall of lein?

Re: [leiningen] Classpath errors after upgrading to OS X 10.9 Mavericks

From:
Avi Flax
Date:
2013-11-07 @ 16:09
On Thu, Nov 7, 2013 at 8:05 AM, John Gabriele <jgabriele@fastmail.fm> wrote:
> How did you originally install lein? Did you just download the script
> and put it into your ~/bin?

That seems likely, but I can’t remember for sure, sorry.

> Upon upgrade, did you do a `lein upgrade`, or a fresh reinstall of lein?

I ran `lein upgrade`.

I just did a fresh reinstall from leiningen.org and it didn’t help.

If it helps, when I run `lein classpath`, the results look sane to me:


/Users/avi/Dev/open-source/ring-head-test/test:/Users/avi/Dev/open-source/ring-head-test/src:/Users/avi/Dev/open-source/ring-head-test/dev-resources:/Users/avi/Dev/open-source/ring-head-test/resources:/Users/avi/Dev/open-source/ring-head-test/target/classes:/Users/avi/.m2/repository/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar:/Users/avi/.m2/repository/ring/ring-servlet/1.1.7/ring-servlet-1.1.7.jar:/Users/avi/.m2/repository/org/clojure/tools.reader/0.7.7/tools.reader-0.7.7.jar:/Users/avi/.m2/repository/org/eclipse/jetty/orbit/javax.servlet/2.5.0.v201103041518/javax.servlet-2.5.0.v201103041518.jar:/Users/avi/.m2/repository/slingshot/slingshot/0.10.3/slingshot-0.10.3.jar:/Users/avi/.m2/repository/org/apache/httpcomponents/httpclient/4.3/httpclient-4.3.jar:/Users/avi/.m2/repository/com/fasterxml/jackson/dataformat/jackson-dataformat-smile/2.2.1/jackson-dataformat-smile-2.2.1.jar:/Users/avi/.m2/repository/org/apache/httpcomponents/httpcore/4.3/httpcore-4.3.jar:/Users/avi/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.2.1/jackson-core-2.2.1.jar:/Users/avi/.m2/repository/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar:/Users/avi/.m2/repository/commons-io/commons-io/2.1/commons-io-2.1.jar:/Users/avi/.m2/repository/crouton/crouton/0.1.1/crouton-0.1.1.jar:/Users/avi/.m2/repository/cheshire/cheshire/5.2.0/cheshire-5.2.0.jar:/Users/avi/.m2/repository/org/clojure/tools.nrepl/0.2.3/tools.nrepl-0.2.3.jar:/Users/avi/.m2/repository/clj-http/clj-http/0.7.7/clj-http-0.7.7.jar:/Users/avi/.m2/repository/clj-time/clj-time/0.3.7/clj-time-0.3.7.jar:/Users/avi/.m2/repository/ring/ring-core/1.1.7/ring-core-1.1.7.jar:/Users/avi/.m2/repository/org/eclipse/jetty/jetty-http/7.6.1.v20120215/jetty-http-7.6.1.v20120215.jar:/Users/avi/.m2/repository/org/clojure/clojure/1.5.1/clojure-1.5.1.jar:/Users/avi/.m2/repository/ring/ring-jetty-adapter/1.1.7/ring-jetty-adapter-1.1.7.jar:/Users/avi/.m2/repository/org/jsoup/jsoup/1.7.1/jsoup-1.7.1.jar:/Users/avi/.m2/repository/org/eclipse/jetty/jetty-util/7.6.1.v20120215/jetty-util-7.6.1.v20120215.jar:/Users/avi/.m2/repository/clojure-complete/clojure-complete/0.2.3/clojure-complete-0.2.3.jar:/Users/avi/.m2/repository/commons-codec/commons-codec/1.6/commons-codec-1.6.jar:/Users/avi/.m2/repository/tigris/tigris/0.1.1/tigris-0.1.1.jar:/Users/avi/.m2/repository/joda-time/joda-time/2.0/joda-time-2.0.jar:/Users/avi/.m2/repository/org/eclipse/jetty/jetty-server/7.6.1.v20120215/jetty-server-7.6.1.v20120215.jar:/Users/avi/.m2/repository/org/eclipse/jetty/jetty-io/7.6.1.v20120215/jetty-io-7.6.1.v20120215.jar:/Users/avi/.m2/repository/org/apache/httpcomponents/httpmime/4.3/httpmime-4.3.jar:/Users/avi/.m2/repository/commons-fileupload/commons-fileupload/1.2.1/commons-fileupload-1.2.1.jar:/Users/avi/.m2/repository/org/eclipse/jetty/jetty-continuation/7.6.1.v20120215/jetty-continuation-7.6.1.v20120215.jar


Thanks for the help!

Re: [leiningen] Classpath errors after upgrading to OS X 10.9 Mavericks

From:
Colin Jones
Date:
2013-11-07 @ 16:25
If Clojure is looking for clj_http__init.class or clj_http.clj, then
there's code somewhere (incorrectly) requiring the single-segment
namespace clj-http, which doesn't exist, at least not for the version
of clj-http on your classpath. Without seeing the code, I expect it
should probably be requiring something like clj-http.client instead.
As for the other errors, I don't see resourceful on your classpath,
and I don't know what channels.server.api.core is.

Wild guess, because this is usually how I dig holes for myself: any
chance you've used lein compile, gen-class, or any other AOT feature
anywhere and have AOT'ed files under your target/ directory? If so,
try deleting them and see if that solves the issue.

Assuming that's not it, could you show us a sample project that we can
use to replicate your issue?

On Thu, Nov 7, 2013 at 10:09 AM, Avi Flax <avif@arc90.com> wrote:
> On Thu, Nov 7, 2013 at 8:05 AM, John Gabriele <jgabriele@fastmail.fm> wrote:
>> How did you originally install lein? Did you just download the script
>> and put it into your ~/bin?
>
> That seems likely, but I can’t remember for sure, sorry.
>
>> Upon upgrade, did you do a `lein upgrade`, or a fresh reinstall of lein?
>
> I ran `lein upgrade`.
>
> I just did a fresh reinstall from leiningen.org and it didn’t help.
>
> If it helps, when I run `lein classpath`, the results look sane to me:
>
> 
/Users/avi/Dev/open-source/ring-head-test/test:/Users/avi/Dev/open-source/ring-head-test/src:/Users/avi/Dev/open-source/ring-head-test/dev-resources:/Users/avi/Dev/open-source/ring-head-test/resources:/Users/avi/Dev/open-source/ring-head-test/target/classes:/Users/avi/.m2/repository/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar:/Users/avi/.m2/repository/ring/ring-servlet/1.1.7/ring-servlet-1.1.7.jar:/Users/avi/.m2/repository/org/clojure/tools.reader/0.7.7/tools.reader-0.7.7.jar:/Users/avi/.m2/repository/org/eclipse/jetty/orbit/javax.servlet/2.5.0.v201103041518/javax.servlet-2.5.0.v201103041518.jar:/Users/avi/.m2/repository/slingshot/slingshot/0.10.3/slingshot-0.10.3.jar:/Users/avi/.m2/repository/org/apache/httpcomponents/httpclient/4.3/httpclient-4.3.jar:/Users/avi/.m2/repository/com/fasterxml/jackson/dataformat/jackson-dataformat-smile/2.2.1/jackson-dataformat-smile-2.2.1.jar:/Users/avi/.m2/repository/org/apache/httpcomponents/httpcore/4.3/httpcore-4.3.jar:/Users/avi/.m2/reposit
>  
ory/com/fasterxml/jackson/core/jackson-core/2.2.1/jackson-core-2.2.1.jar:/Users/avi/.m2/repository/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar:/Users/avi/.m2/repository/commons-io/commons-io/2.1/commons-io-2.1.jar:/Users/avi/.m2/repository/crouton/crouton/0.1.1/crouton-0.1.1.jar:/Users/avi/.m2/repository/cheshire/cheshire/5.2.0/cheshire-5.2.0.jar:/Users/avi/.m2/repository/org/clojure/tools.nrepl/0.2.3/tools.nrepl-0.2.3.jar:/Users/avi/.m2/repository/clj-http/clj-http/0.7.7/clj-http-0.7.7.jar:/Users/avi/.m2/repository/clj-time/clj-time/0.3.7/clj-time-0.3.7.jar:/Users/avi/.m2/repository/ring/ring-core/1.1.7/ring-core-1.1.7.jar:/Users/avi/.m2/repository/org/eclipse/jetty/jetty-http/7.6.1.v20120215/jetty-http-7.6.1.v20120215.jar:/Users/avi/.m2/repository/org/clojure/clojure/1.5.1/clojure-1.5.1.jar:/Users/avi/.m2/repository/ring/ring-jetty-adapter/1.1.7/ring-jetty-adapter-1.1.7.jar:/Users/avi/.m2/repository/org/jsoup/jsoup/1.7.1/jsoup-1.7.1.jar:/Users/avi/.m2/repositor
>  
y/org/eclipse/jetty/jetty-util/7.6.1.v20120215/jetty-util-7.6.1.v20120215.jar:/Users/avi/.m2/repository/clojure-complete/clojure-complete/0.2.3/clojure-complete-0.2.3.jar:/Users/avi/.m2/repository/commons-codec/commons-codec/1.6/commons-codec-1.6.jar:/Users/avi/.m2/repository/tigris/tigris/0.1.1/tigris-0.1.1.jar:/Users/avi/.m2/repository/joda-time/joda-time/2.0/joda-time-2.0.jar:/Users/avi/.m2/repository/org/eclipse/jetty/jetty-server/7.6.1.v20120215/jetty-server-7.6.1.v20120215.jar:/Users/avi/.m2/repository/org/eclipse/jetty/jetty-io/7.6.1.v20120215/jetty-io-7.6.1.v20120215.jar:/Users/avi/.m2/repository/org/apache/httpcomponents/httpmime/4.3/httpmime-4.3.jar:/Users/avi/.m2/repository/commons-fileupload/commons-fileupload/1.2.1/commons-fileupload-1.2.1.jar:/Users/avi/.m2/repository/org/eclipse/jetty/jetty-continuation/7.6.1.v20120215/jetty-continuation-7.6.1.v20120215.jar
>
>
> Thanks for the help!



-- 
Colin Jones
@trptcolin

Re: [leiningen] Classpath errors after upgrading to OS X 10.9 Mavericks

From:
Simon Holgate
Date:
2013-11-07 @ 17:19
This is interesting as I had a similar issue after upgrading to Mavericks
but had assumed it was a conflict in some old code I was trying to run.

No further insights to contribute though, I'm afraid.


On 7 November 2013 16:25, Colin Jones <trptcolin@gmail.com> wrote:

> If Clojure is looking for clj_http__init.class or clj_http.clj, then
> there's code somewhere (incorrectly) requiring the single-segment
> namespace clj-http, which doesn't exist, at least not for the version
> of clj-http on your classpath. Without seeing the code, I expect it
> should probably be requiring something like clj-http.client instead.
> As for the other errors, I don't see resourceful on your classpath,
> and I don't know what channels.server.api.core is.
>
> Wild guess, because this is usually how I dig holes for myself: any
> chance you've used lein compile, gen-class, or any other AOT feature
> anywhere and have AOT'ed files under your target/ directory? If so,
> try deleting them and see if that solves the issue.
>
> Assuming that's not it, could you show us a sample project that we can
> use to replicate your issue?
>
> On Thu, Nov 7, 2013 at 10:09 AM, Avi Flax <avif@arc90.com> wrote:
> > On Thu, Nov 7, 2013 at 8:05 AM, John Gabriele <jgabriele@fastmail.fm>
> wrote:
> >> How did you originally install lein? Did you just download the script
> >> and put it into your ~/bin?
> >
> > That seems likely, but I can’t remember for sure, sorry.
> >
> >> Upon upgrade, did you do a `lein upgrade`, or a fresh reinstall of lein?
> >
> > I ran `lein upgrade`.
> >
> > I just did a fresh reinstall from leiningen.org and it didn’t help.
> >
> > If it helps, when I run `lein classpath`, the results look sane to me:
> >
> >
> 
/Users/avi/Dev/open-source/ring-head-test/test:/Users/avi/Dev/open-source/ring-head-test/src:/Users/avi/Dev/open-source/ring-head-test/dev-resources:/Users/avi/Dev/open-source/ring-head-test/resources:/Users/avi/Dev/open-source/ring-head-test/target/classes:/Users/avi/.m2/repository/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar:/Users/avi/.m2/repository/ring/ring-servlet/1.1.7/ring-servlet-1.1.7.jar:/Users/avi/.m2/repository/org/clojure/tools.reader/0.7.7/tools.reader-0.7.7.jar:/Users/avi/.m2/repository/org/eclipse/jetty/orbit/javax.servlet/2.5.0.v201103041518/javax.servlet-2.5.0.v201103041518.jar:/Users/avi/.m2/repository/slingshot/slingshot/0.10.3/slingshot-0.10.3.jar:/Users/avi/.m2/repository/org/apache/httpcomponents/httpclient/4.3/httpclient-4.3.jar:/Users/avi/.m2/repository/com/fasterxml/jackson/dataformat/jackson-dataformat-smile/2.2.1/jackson-dataformat-smile-2.2.1.jar:/Users/avi/.m2/repository/org/apache/httpcomponents/httpcore/4.3/httpcore-4.3.jar:/Users/avi/.m2/repos
>  it
> >
>  
ory/com/fasterxml/jackson/core/jackson-core/2.2.1/jackson-core-2.2.1.jar:/Users/avi/.m2/repository/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar:/Users/avi/.m2/repository/commons-io/commons-io/2.1/commons-io-2.1.jar:/Users/avi/.m2/repository/crouton/crouton/0.1.1/crouton-0.1.1.jar:/Users/avi/.m2/repository/cheshire/cheshire/5.2.0/cheshire-5.2.0.jar:/Users/avi/.m2/repository/org/clojure/tools.nrepl/0.2.3/tools.nrepl-0.2.3.jar:/Users/avi/.m2/repository/clj-http/clj-http/0.7.7/clj-http-0.7.7.jar:/Users/avi/.m2/repository/clj-time/clj-time/0.3.7/clj-time-0.3.7.jar:/Users/avi/.m2/repository/ring/ring-core/1.1.7/ring-core-1.1.7.jar:/Users/avi/.m2/repository/org/eclipse/jetty/jetty-http/7.6.1.v20120215/jetty-http-7.6.1.v20120215.jar:/Users/avi/.m2/repository/org/clojure/clojure/1.5.1/clojure-1.5.1.jar:/Users/avi/.m2/repository/ring/ring-jetty-adapter/1.1.7/ring-jetty-adapter-1.1.7.jar:/Users/avi/.m2/repository/org/jsoup/jsoup/1.7.1/jsoup-1.7.1.jar:/Users/avi/.m2/reposit
>  or
> >
>  
y/org/eclipse/jetty/jetty-util/7.6.1.v20120215/jetty-util-7.6.1.v20120215.jar:/Users/avi/.m2/repository/clojure-complete/clojure-complete/0.2.3/clojure-complete-0.2.3.jar:/Users/avi/.m2/repository/commons-codec/commons-codec/1.6/commons-codec-1.6.jar:/Users/avi/.m2/repository/tigris/tigris/0.1.1/tigris-0.1.1.jar:/Users/avi/.m2/repository/joda-time/joda-time/2.0/joda-time-2.0.jar:/Users/avi/.m2/repository/org/eclipse/jetty/jetty-server/7.6.1.v20120215/jetty-server-7.6.1.v20120215.jar:/Users/avi/.m2/repository/org/eclipse/jetty/jetty-io/7.6.1.v20120215/jetty-io-7.6.1.v20120215.jar:/Users/avi/.m2/repository/org/apache/httpcomponents/httpmime/4.3/httpmime-4.3.jar:/Users/avi/.m2/repository/commons-fileupload/commons-fileupload/1.2.1/commons-fileupload-1.2.1.jar:/Users/avi/.m2/repository/org/eclipse/jetty/jetty-continuation/7.6.1.v20120215/jetty-continuation-7.6.1.v20120215.jar
> >
> >
> > Thanks for the help!
>
>
>
> --
> Colin Jones
> @trptcolin
>



-- 
Do *you* have an awesome idea you never quite manage to do?
http://www.awesomefoundation.org/en/chapters/liverpool/

Re: [leiningen] Classpath errors after upgrading to OS X 10.9 Mavericks

From:
Avi Flax
Date:
2013-11-08 @ 16:52
On Thu, Nov 7, 2013 at 11:25 AM, Colin Jones <trptcolin@gmail.com> wrote:
> If Clojure is looking for clj_http__init.class or clj_http.clj, then
> there's code somewhere (incorrectly) requiring the single-segment
> namespace clj-http, which doesn't exist, at least not for the version
> of clj-http on your classpath. Without seeing the code, I expect it
> should probably be requiring something like clj-http.client instead.
> As for the other errors, I don't see resourceful on your classpath,
> and I don't know what channels.server.api.core is.

This provided me enough clues to realize that I was just being stupid.
These two particular projects I was working on were simply borked in
different ways having nothing to do with Leiningen, due to different
types of stupidity. So there was no system-level issue at all.

Thanks for the help!

Avi

Re: [leiningen] Classpath errors after upgrading to OS X 10.9 Mavericks

From:
John Gabriele
Date:
2013-11-07 @ 19:48
On Thu, Nov 7, 2013, at 08:09 AM, Avi Flax wrote:
> On Thu, Nov 7, 2013 at 8:05 AM, John Gabriele <jgabriele@fastmail.fm>
> wrote:
> 
> > Upon upgrade, did you do a `lein upgrade`, or a fresh reinstall of lein?
> 
> I ran `lein upgrade`.

Hm. Have you modified your ~/.lein/profiles.clj recently?