Was the problem you're having occurring with the latest version of
cc.logging (the one that uses eval)?

The logging macros do not emit calls to the logging implementation,
but rather to c.c.logging functions that are implemented at runtime
via eval.  As such, the latest code should always pick an
implementation based on the runtime classpath, thus the environment in
which AOT compilation takes place should have no effect.

While I'm not sure how it could happen, this may end up being a
classloader problem.



On Apr 25, 11:08 am, gary ng <garyng2...@gmail.com> wrote:
> Hi,
>
> I am trying to use clojure to write servlets for GAE and is encountering
> problem with clojure.contrib.logging. When trying to use the logging
> function, I get the following exception:
>
> java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
>  at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>  at java.security.AccessController.doPrivileged(Native Method)
>  at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>  at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>  at
> com.google.appengine.tools.development.IsolatedAppClassLoader.loadClass(Iso 
> latedAppClassLoader.java:151)
>  at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
>  at clojure.contrib.logging$fn__49$fn__51.invoke(logging.clj:188)
>  at clojure.lang.AFn.applyToHelper(AFn.java:173)
>  at clojure.lang.AFn.applyTo(AFn.java:164)
>  at clojure.core$apply__4370.invoke(core.clj:436)
>  at clojure.core$memoize__6537$fn__6539.doInvoke(core.clj:4328)
>  at clojure.lang.RestFn.invoke(RestFn.java:413)
>  at guestbook.servlet$_doGet__3.invoke(servlet.clj:15)
>
> Initially, I thought it is related to 
> thishttp://www.assembla.com/spaces/clojure-contrib/tickets/44-AOT-compila...
> by examine the clojure-contrib-1.1.0.jar packaged, the logging.clj is
> clearly NOT pre-compiled and I lost why such error would occur. the (import
> org.apache.commons.logging ...) in logging.clj is wrapped in try/catch so
> should be silently ignored ?
>
> --
> 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 
> athttp://groups.google.com/group/clojure?hl=en

-- 
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

Reply via email to