Index: trunk/build.xml
===================================================================
--- trunk/build.xml	(revision 8171)
+++ trunk/build.xml	(revision 8172)
@@ -435,4 +435,5 @@
         -keep class org.w3._2001.xmlschema.Adapter1
         -keep class org.openstreetmap.josm.actions.search.SearchCompiler$Never
+        -keep class org.apache.commons.logging.impl.*
 
         -keepclassmembers enum  * {
Index: trunk/src/org/openstreetmap/josm/data/cache/JCSCacheManager.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/cache/JCSCacheManager.java	(revision 8171)
+++ trunk/src/org/openstreetmap/josm/data/cache/JCSCacheManager.java	(revision 8172)
@@ -15,5 +15,5 @@
 import org.apache.commons.jcs.auxiliary.disk.indexed.IndexedDiskCache;
 import org.apache.commons.jcs.auxiliary.disk.indexed.IndexedDiskCacheAttributes;
-import org.apache.commons.jcs.auxiliary.disk.indexed.IndexedDiskCacheManager;
+import org.apache.commons.jcs.auxiliary.disk.indexed.IndexedDiskCacheFactory;
 import org.apache.commons.jcs.engine.CompositeCacheAttributes;
 import org.apache.commons.jcs.engine.behavior.ICompositeCacheAttributes.DiskUsagePattern;
@@ -28,5 +28,5 @@
 /**
  * @author Wiktor Niesiobędzki
- * 
+ *
  * Wrapper class for JCS Cache. Sets some sane environment and returns instances of cache objects.
  * Static configuration for now assumes some small LRU cache in memory and larger LRU cache on disk
@@ -39,4 +39,5 @@
     private static long maxObjectTTL        = Long.MAX_VALUE;
     private final static String PREFERENCE_PREFIX = "jcs.cache";
+    private final static IndexedDiskCacheFactory diskCacheFactory = new IndexedDiskCacheFactory();
 
     /**
@@ -141,5 +142,6 @@
             IndexedDiskCacheAttributes diskAttributes = getDiskCacheAttributes(maxDiskObjects, cachePath);
             diskAttributes.setCacheName(cacheName);
-            IndexedDiskCache<K, V> diskCache = IndexedDiskCacheManager.getInstance(null, null, new StandardSerializer()).getCache(diskAttributes);
+            IndexedDiskCache<K, V> diskCache = diskCacheFactory.createCache(diskAttributes, cacheManager, null, new StandardSerializer());
+
             cc.setAuxCaches(new AuxiliaryCache[]{diskCache});
         }
