I've exposed findResource and findResources in ImmutantClassLoader, and
this change is available in incremental build 803 or newer[1]. Give that
a try and let us know if it doesn't work for you.

- Toby

[1]:http://immutant.org/builds/

Tatu Tarvainen writes:

> So, is that a bug in ClojureScript?
>> Does anybody have an idea for a workaround (I have little experience with 
>> all of this, including classloaders)?
>>
>>
>> Stacktrace:
>> 23:06:01,247 ERROR [stderr] (http-/127.0.0.1:8080-1) Exception: 
>> java.lang.IllegalArgumentException: No matching method found: findResources 
>> for class org.immutant.core.ImmutantClassLoader
>> 23:06:01,247 ERROR [stderr] (http-/127.0.0.1:8080-1)                       
>>        Reflector.java:53 clojure.lang.Reflector.invokeMatchingMethod
>> 23:06:01,247 ERROR [stderr] (http-/127.0.0.1:8080-1)                       
>>        Reflector.java:28 clojure.lang.Reflector.invokeInstanceMethod
>> 23:06:01,247 ERROR [stderr] (http-/127.0.0.1:8080-1)                       
>>          closure.clj:849 cljs.closure/get-upstream-deps*
>>
>
> I ran into this same error in another environment with a custom classloader.
> It seems to be related to Clojure's default classloader extending from 
> URLClassLoader which has a public findResources method.
> The custom classloader in my case was extending the default Java 
> ClassLoader (where the findResources method is protected).
>
> Changing the findResources in ImmutantClassLoader to public should fix it.
>
> -- 


-- 
Toby Crawley
http://immutant.org | http://torquebox.org

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to