java.lang.NoClassDefFoundError:net / sf / ehcache / CacheException

时间:2018-08-06 12:12:27

标签: hibernate ehcache-3

我们有一个程序,它以两种不同的方式工作。 1.自动,与核心部分(.ear)集成在一起,并且该部分将部署在weblogic中。 2.手册,将作为实用程序作为Java应用程序手动执行。程序导出为.jar并将在单独的环境中执行,其中依赖项jar文件将放置在手动环境中。 自动过程运行正常。并且,此处未使用ehcache-1.1.jar。它不是在编译时(Eclipse IDE)以及构建编译时和运行时(在weblogic中部署)发生的。仅在手动过程中发生。 在执行该手册时,由于我们已转移到最新的ehcache API(ehcache-3.3.1 jar),因此休眠模式会使用旧的ehcahe-1.1.jar。甚至,我们分别为旧的异常类(Exception1)和新的会话工厂(Exception2)创建了旧的ehcache-1.1和新的ehcache-3.3.1 jar,系统会抛出以下异常。

layout (binding = 0, r32ui) uniform volatile coherent uimage2D lock_image;

void main(void)
{
    ivec2 pos = ivec2(gl_FragCoord.xy);

    // spinlock - acquire
    uint lock_available;
    do {
        lock_available = imageAtomicCompSwap(lock_image, pos, 0, 1);

        if (lock_available == 0)
        {
            // do some operations protected by the lock
            do_something();

            // spinlock - release
            imageAtomicExchange(lock_image, pos, 0);
        }

    } while (lock_available != 0);
}

异常详细信息: 例外1:

[main] ERROR SYSUSER:[82]:net.sf.ehcache.CacheManager.getEhcache(Lja
va/lang/String;)Lnet/sf/ehcache/Ehcache;
java.lang.NoSuchMethodError: net.sf.ehcache.CacheManager.getEhcache(Ljava/lang/String;)Lnet/sf/ehcache/Ehcache;
        at org.hibernate.cache.ehcache.AbstractEhcacheRegionFactory.getCache(AbstractEhcacheRegionFactory.java:158)
        at org.hibernate.cache.ehcache.AbstractEhcacheRegionFactory.buildTimestampsRegion(AbstractEhcacheRegionFactory.java:153)
        at org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory.buildTimestampsRegion(SingletonEhCacheRegionFactory.java:31)
        at org.hibernate.cache.spi.RegionFactory.buildTimestampsRegion(RegionFactory.java:261)
        at org.hibernate.internal.CacheImpl.<init>(CacheImpl.java:78)
        at org.hibernate.engine.spi.CacheInitiator.initiateService(CacheInitiator.java:28)
        at org.hibernate.engine.spi.CacheInitiator.initiateService(CacheInitiator.java:20)
        at org.hibernate.service.internal.SessionFactoryServiceRegistryImpl.initiateService(SessionFactoryServiceRegistryImpl.java:58)
        at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:259)
        at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:233)
        at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:210)
        at org.hibernate.service.internal.SessionFactoryServiceRegistryImpl.getService(SessionFactoryServiceRegistryImpl.java:77)
        at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:240)
        at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:445)  

例外2:

2018-08-03 02:01:29,170 [main] ERROR com.enfs.audit.process.FundGroupVsCommunicatorAudit [201] - SYSUSER:[29]:net/sf/ehcache/CacheException
java.lang.NoClassDefFoundError: net/sf/ehcache/CacheException
                at java.lang.Class.getDeclaredConstructors0(Native Method)
                at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
                at java.lang.Class.getConstructor0(Class.java:3075)
                at java.lang.Class.getConstructor(Class.java:1825)
                at org.hibernate.cache.internal.StrategyCreatorRegionFactoryImpl.create(StrategyCreatorRegionFactoryImpl.java:38)
            -----------------------------------------------------

0 个答案:

没有答案