Hi,

Migrating from OC4J to Weblogic we've noticed the following behavior, whenever 
shutting down the weblogic container:

Exception in thread "Thread-24" java.lang.NoClassDefFoundError: 
org/apache/jcs/auxiliary/disk/indexed/IndexedDiskCache$1
        at 
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache.processDispose(IndexedDiskCache.java:1054)
        at 
org.apache.jcs.auxiliary.AbstractAuxiliaryCacheEventLogging.disposeWithEventLogging(AbstractAuxiliaryCacheEventLogging.java:315)
        at 
org.apache.jcs.auxiliary.disk.AbstractDiskCache.doDispose(AbstractDiskCache.java:867)
        at 
org.apache.jcs.auxiliary.disk.AbstractDiskCache.dispose(AbstractDiskCache.java:508)
        at 
org.apache.jcs.engine.control.CompositeCache.dispose(CompositeCache.java:1368)
        at 
org.apache.jcs.engine.control.CompositeCacheManager.freeCache(CompositeCacheManager.java:482)
        at 
org.apache.jcs.engine.control.CompositeCacheManager.freeCache(CompositeCacheManager.java:469)
        at 
org.apache.jcs.engine.control.CompositeCacheManager.shutDown(CompositeCacheManager.java:513)
        at 
org.apache.jcs.engine.control.CompositeCacheManager$ShutdownHook.run(CompositeCacheManager.java:743)
Caused by: java.lang.ClassNotFoundException: 
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache$1
        at 
weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:296)
        at 
weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:269)
        at 
weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:56)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at 
weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:177)
        at 
weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:37)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        ... 9 more

We've already tried to use 
<prefer-web-inf-classes>true</prefer-web-inf-classes> setting of Weblogic, but 
that did not have the desired effect. 
Introducing the org.apache.jcs.utils.servlet.JCSServletContextListener made 
things a bit better, in that a shutdown done from within
the admin console gracefully terminated JCS - i.e. the Shutdownhook thread 
didn't run. However this doesn't help us for situations where
weblogic gets killed and/or Ctrl-C'ed.

What are other things we could do/investigate?

Thx,
-J.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to