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(IsolatedAppClassLoader.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 this
http://www.assembla.com/spaces/clojure-contrib/tickets/44-AOT-compilation-of-clojure-contrib-jar-pre-sets-logging-implementationbut
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 at
http://groups.google.com/group/clojure?hl=en

Reply via email to