日期:2014-05-18  浏览次数:20674 次

Tomcat启动时报错
严重:   Exception   starting   filter   HibernateFilter
java.lang.NoClassDefFoundError:   net/sf/hibernate/cache/CacheProvider
at   java.lang.ClassLoader.defineClass1(Native   Method)
at   java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at   java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at   org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1650)
at   org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:856)
at   org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1305)
at   org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1187)
at   org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:102)
at   org.hibernate.cfg.SettingsFactory.createCacheProvider(SettingsFactory.java:323)
at   org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:219)
at   org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1463)
at   org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1004)
at   com.webrage.domain.base.HibernateUtil.init(HibernateUtil.java:30)
at   filters.HibernateFilter.init(HibernateFilter.java:33)
at   org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:225)
at   org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:308)
at   org.apache.catalina.core.ApplicationFilterConfig. <init> (ApplicationFilterConfig.java:79)
at   org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3563)
at   org.apache.catalina.core.StandardContext.start(StandardContext.java:4133)
at   org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at   org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at   org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at   org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:603)
at   org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)
at   org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
at   org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
at   org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at   org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at   org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
at   org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at   org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
at   org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at   org.apache.catalina.core.StandardService.start(StandardService.java:450)
at   org.apache.catalina.core.StandardServer.start(StandardServer.java:680)
at   org.apache.catalina.startup.Catalina.start(Catalina.java:536)
at   sun.reflect.NativeMethodAccessorImpl.invoke0(Native   Method)
at   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at   java.lang.reflect.Method.invoke(Method.java:585) <