jakarta-jcs-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Smuts <asm...@yahoo.com>
Subject Re: Shutdownhook IndexedDiskCache - weblogic ClassNotFound issues
Date Tue, 12 Jan 2010 02:52:12 GMT
This looks like some kind of weblogic class loader issue. I don't use weblogic and don't know
what the issue might be.  It's not JCS related.  

Good luck figuring it out.  You might want to try registering a context listener that will
call JCS shutdown rather than relying on JCS's shutdown hooks.

Aaron

--- On Wed, 12/30/09, Jan Vissers <Jan.Vissers@cumquat.nl> wrote:

> From: Jan Vissers <Jan.Vissers@cumquat.nl>
> Subject: Shutdownhook IndexedDiskCache - weblogic ClassNotFound issues
> To: jcs-users@jakarta.apache.org
> Date: Wednesday, December 30, 2009, 2:47 AM
> 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: jcs-users-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jcs-users-help@jakarta.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org


Mime
View raw message