exception comes from the fact caching provider was not closed before the app is destroyed.
if you want to digg into the code it should be done org.apache.commons.jcs.jcache.cdi.CacheResolverFactoryImpl#CacheResolverFactoryImpl issue is if you use the provider with other than cdi usages then cdi could break the app Caching.getCachingProvider().close() should fix it (in any @PreDestroy) Romain Manni-Bucau @rmannibucau http://www.tomitribe.com http://rmannibucau.wordpress.com https://github.com/rmannibucau 2015-02-24 10:18 GMT+01:00 hwaastad <[email protected]>: > Hi, > side notes are usually important :-) > I'm on 1.7.1. > Did another try on 1.7.2-SNAPSHOT and its working (didænt actually verify > interceptor, but that's not an issue right now). > > So I take it that from current implementation, the 2.0 will work on 1.7.2, > but I'll have to stick to the beta-1 if I want to use current release? > If so, it feels quite natural to ask (as many others) if the vote for 1.7.2 > soon will be back on. (I noticed there was some issues last time). > > BTW, terminating my app gives: > > INFO: Shutting down TCP Lateral receiver. > Exception in thread "Thread-62" java.lang.NoClassDefFoundError: > org/apache/commons/jcs/engine/behavior/ICacheType$CacheType > at > org.apache.commons.jcs.auxiliary.disk.AbstractDiskCache.getCacheType(AbstractDiskCache.java:577) > at > org.apache.commons.jcs.engine.control.CompositeCache.dispose(CompositeCache.java:1345) > at > org.apache.commons.jcs.engine.control.CompositeCacheManager.freeCache(CompositeCacheManager.java:637) > at > org.apache.commons.jcs.engine.control.CompositeCacheManager.freeCache(CompositeCacheManager.java:624) > at > org.apache.commons.jcs.engine.control.CompositeCacheManager.shutDown(CompositeCacheManager.java:686) > at > org.apache.commons.jcs.engine.control.CompositeCacheManager$ShutdownHook.run(CompositeCacheManager.java:974) > Caused by: java.lang.ClassNotFoundException: > org.apache.commons.jcs.engine.behavior.ICacheType$CacheType > at > org.apache.openejb.util.classloader.URLClassLoaderFirst.loadClass(URLClassLoaderFirst.java:146) > at java.lang.ClassLoader.loadClass(ClassLoader.java:358) > ... 6 more > > > br hw > > > > -- > View this message in context: > http://tomee-openejb.979440.n4.nabble.com/jcs-jcache-tomee-changes-tp4673847p4673879.html > Sent from the TomEE Users mailing list archive at Nabble.com.
