首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

Tomcat启动时报错解决办法

2012-01-08 
Tomcat启动时报错严重:ExceptionstartingfilterHibernateFilterjava.lang.NoClassDefFoundError:net/sf/hi

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)
at   org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
at   org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
2007-5-29   9:08:04   org.apache.catalina.core.StandardContext   start
严重:   Error   filterStart
2007-5-29   9:08:04   org.apache.catalina.core.StandardContext   start


请问我的问题出在哪里

[解决办法]
java.lang.NoClassDefFoundError: net/sf/hibernate/cache/CacheProvider...少这个类啊,没加hibernate2的jar包?
[解决办法]
环境变量配对了吗?
[解决办法]
java.lang.NoClassDefFoundError: net/sf/hibernate/cache/CacheProvider...少这个类啊,没加hibernate2的jar包 是不是路径没配对

热点排行