Details
-
Type:
Defect
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Patch:Code
Description
Because system-classpath uses java.class.path, it doesn't work when running in a classloader other than the application classloader.
This happens when running in any container that uses a custom classloader (e.g. Jetty, Cake, TomCat).
The fix is to use (.getURLs (.getClassLoader clojure.lang.RT)) instead of (System/getProperty "java.class.path"). A patch is attached.
CLASSPATH-1CLASSPATH-1