快乐着飞舞着

---Nothing to do is doing nothing
随笔 - 93, 文章 - 5, 评论 - 56, 引用 - 0
数据加载中……

Spring + hibernate 的错误

18 : 55 : 43 , 750  ERROR [ContextLoaderPlugIn] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 
' myUser_ss_factory '  defined in ServletContext resource [ / WEB - INF / applicationContext.xml]: Initialization of bean failed; nested exception is org.hibernate.HibernateException: could not instantiate CacheProvider: EhCacheProvider
org.hibernate.HibernateException: could not instantiate CacheProvider: EhCacheProvider
    at org.hibernate.cfg.SettingsFactory.createCacheProvider(SettingsFactory.java:
330 )
    at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:
219 )
    at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:
1881 )
    at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:
1174 )
    at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:
825 )
    at org.springframework.orm.hibernate3.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:
751 )
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:
1091 )
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:
396 )
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:
233 )
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:
145 )
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:
277 )
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:
313 )
    at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:
139 )
    at org.springframework.web.struts.ContextLoaderPlugIn.createWebApplicationContext(ContextLoaderPlugIn.java:
353 )
    at org.springframework.web.struts.ContextLoaderPlugIn.initWebApplicationContext(ContextLoaderPlugIn.java:
296 )
    at org.springframework.web.struts.ContextLoaderPlugIn.init(ContextLoaderPlugIn.java:
225 )
    at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:
869 )
    at org.apache.struts.action.ActionServlet.init(ActionServlet.java:
336 )
    at javax.servlet.GenericServlet.init(GenericServlet.java:
211 )
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:
1105 )
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:
932 )
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3917 )
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:
4201 )
    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 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.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:
503 )
    at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:
164 )
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:
659 )
    at org.apache.catalina.core.StandardContext.init(StandardContext.java:
5116 )
    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.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:
503 )
    at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:
164 )
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:
659 )
    at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:
297 )
    at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:
103 )
    at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:
371 )
    at org.jboss.web.WebModule.startModule(WebModule.java:
83 )
    at org.jboss.web.WebModule.startService(WebModule.java:
61 )
    at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:
289 )
    at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:
245 )
    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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:
155 )
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:
94 )
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:
86 )
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:
264 )
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:
659 )
    at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:
978 )
    at $Proxy0.start(Unknown Source)
    at org.jboss.system.ServiceController.start(ServiceController.java:
417 )
    at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25 )
    at java.lang.reflect.Method.invoke(Method.java:
585 )
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:
155 )
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:
94 )
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:
86 )
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:
264 )
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:
659 )
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:
210 )
    at $Proxy41.start(Unknown Source)
    at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:
466 )
    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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:
155 )
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:
94 )
    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:
133 )
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:
88 )
    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:
142 )
    at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:
97 )
    at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:
238 )
    at org.jboss.ws.server.WebServiceDeployer.start(WebServiceDeployer.java:
117 )
    at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:
188 )
    at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:
95 )
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:
88 )
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:
264 )
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:
659 )
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:
210 )
    at $Proxy42.start(Unknown Source)
    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:
1007 )
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:
808 )
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:
771 )
    at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25 )
    at java.lang.reflect.Method.invoke(Method.java:
585 )
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:
155 )
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:
94 )
    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:
133 )
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:
88 )
    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:
142 )
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:
88 )
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:
264 )
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:
659 )
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:
210 )
    at $Proxy6.deploy(Unknown Source)
    at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:
421 )
    at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:
610 )
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:
263 )
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:
274 )
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:
225 )
Caused by: java.lang.ClassNotFoundException: No ClassLoaders found 
for : EhCacheProvider
    at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:
306 )
    at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:
511 )
    at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:
405 )
    at java.lang.ClassLoader.loadClass(ClassLoader.java:
251 )
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:
319 )
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:
164 )
    at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:
108 )
    at org.hibernate.cfg.SettingsFactory.createCacheProvider(SettingsFactory.java:
327 )
     
110  more
18 : 55 : 43 , 750  ERROR [[ / myUsers]] action:  null
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 
' myUser_ss_factory '  defined in ServletContext resource [ / WEB - INF / applicationContext.xml]: Initialization of bean failed; nested exception is org.hibernate.HibernateException: could not instantiate CacheProvider: EhCacheProvider
org.hibernate.HibernateException: could not instantiate CacheProvider: EhCacheProvider
    at org.hibernate.cfg.SettingsFactory.createCacheProvider(SettingsFactory.java:
330 )
    at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:
219 )
    at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:
1881 )
    at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:
1174 )
    at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:
825 )
    at org.springframework.orm.hibernate3.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:
751 )
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:
1091 )
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:
396 )
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:
233 )
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:
145 )
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:
277 )
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:
313 )
    at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:
139 )
    at org.springframework.web.struts.ContextLoaderPlugIn.createWebApplicationContext(ContextLoaderPlugIn.java:
353 )
    at org.springframework.web.struts.ContextLoaderPlugIn.initWebApplicationContext(ContextLoaderPlugIn.java:
296 )
    at org.springframework.web.struts.ContextLoaderPlugIn.init(ContextLoaderPlugIn.java:
225 )
    at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:
869 )
    at org.apache.struts.action.ActionServlet.init(ActionServlet.java:
336 )
    at javax.servlet.GenericServlet.init(GenericServlet.java:
211 )
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:
1105 )
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:
932 )
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3917 )
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:
4201 )
    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 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.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:
503 )
    at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:
164 )
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:
659 )
    at org.apache.catalina.core.StandardContext.init(StandardContext.java:
5116 )
    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.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:
503 )
    at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:
164 )
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:
659 )
    at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:
297 )
    at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:
103 )
    at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:
371 )
    at org.jboss.web.WebModule.startModule(WebModule.java:
83 )
    at org.jboss.web.WebModule.startService(WebModule.java:
61 )
    at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:
289 )
    at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:
245 )
    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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:
155 )
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:
94 )
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:
86 )
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:
264 )
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:
659 )
    at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:
978 )
    at $Proxy0.start(Unknown Source)
    at org.jboss.system.ServiceController.start(ServiceController.java:
417 )
    at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25 )
    at java.lang.reflect.Method.invoke(Method.java:
585 )
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:
155 )
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:
94 )
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:
86 )
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:
264 )
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:
659 )
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:
210 )
    at $Proxy41.start(Unknown Source)
    at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:
466 )
    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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:
155 )
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:
94 )
    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:
133 )
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:
88 )
    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:
142 )
    at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:
97 )
    at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:
238 )
    at org.jboss.ws.server.WebServiceDeployer.start(WebServiceDeployer.java:
117 )
    at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:
188 )
    at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:
95 )
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:
88 )
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:
264 )
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:
659 )
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:
210 )
    at $Proxy42.start(Unknown Source)
    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:
1007 )
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:
808 )
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:
771 )
    at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25 )
    at java.lang.reflect.Method.invoke(Method.java:
585 )
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:
155 )
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:
94 )
    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:
133 )
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:
88 )
    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:
142 )
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:
88 )
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:
264 )
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:
659 )
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:
210 )
    at $Proxy6.deploy(Unknown Source)
    at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:
421 )
    at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:
610 )
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:
263 )
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:
274 )
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:
225 )
Caused by: java.lang.ClassNotFoundException: No ClassLoaders found 
for : EhCacheProvider
    at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:
306 )
    at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:
511 )
    at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:
405 )
    at java.lang.ClassLoader.loadClass(ClassLoader.java:
251 )
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:
319 )
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:
164 )
    at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:
108 )
    at org.hibernate.cfg.SettingsFactory.createCacheProvider(SettingsFactory.java:
327 )
     
110  more
18 : 55 : 43 , 750  INFO  [[ / myUsers]] Marking servlet action as unavailable
18 : 55 : 43 , 750  ERROR [[ / myUsers]] Servlet  / myUsers threw load() exception
javax.servlet.UnavailableException
    at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:
880 )
    at org.apache.struts.action.ActionServlet.init(ActionServlet.java:
336 )
    at javax.servlet.GenericServlet.init(GenericServlet.java:
211 )
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:
1105 )
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:
932 )
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3917 )
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:
4201 )
    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 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.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:
503 )
    at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:
164 )
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:
659 )
    at org.apache.catalina.core.StandardContext.init(StandardContext.java:
5116 )
    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.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:
503 )
    at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:
164 )
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:
659 )
    at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:
297 )
    at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:
103 )
    at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:
371 )
    at org.jboss.web.WebModule.startModule(WebModule.java:
83 )
    at org.jboss.web.WebModule.startService(WebModule.java:
61 )
    at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:
289 )
    at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:
245 )
    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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:
155 )
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:
94 )
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:
86 )
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:
264 )
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:
659 )
    at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:
978 )
    at $Proxy0.start(Unknown Source)
    at org.jboss.system.ServiceController.start(ServiceController.java:
417 )
    at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25 )
    at java.lang.reflect.Method.invoke(Method.java:
585 )
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:
155 )
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:
94 )
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:
86 )
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:
264 )
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:
659 )
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:
210 )
    at $Proxy41.start(Unknown Source)
    at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:
466 )
    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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:
155 )
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:
94 )
    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:
133 )
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:
88 )
    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:
142 )
    at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:
97 )
    at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:
238 )
    at org.jboss.ws.server.WebServiceDeployer.start(WebServiceDeployer.java:
117 )
    at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:
188 )
    at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:
95 )
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:
88 )
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:
264 )
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:
659 )
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:
210 )
    at $Proxy42.start(Unknown Source)
    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:
1007 )
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:
808 )
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:
771 )
    at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25 )
    at java.lang.reflect.Method.invoke(Method.java:
585 )
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:
155 )
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:
94 )
    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:
133 )
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:
88 )
    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:
142 )
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:
88 )
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:
264 )
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:
659 )
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:
210 )
    at $Proxy6.deploy(Unknown Source)
    at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:
421 )
    at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:
610 )
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:
263 )
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:
274 )
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:
225 )



解决办法很诡异 :

把spring的配置文件中的hibernate配置部分

1<property name="hibernateProperties">
2            <props>
3                <prop key ="hibernate.cache.provider_class">EhCacheProvider</prop>                        
4                <prop key="hibernate.query.substitutions">true=1 false=0</prop>
5                <prop key="hibernate.show_sql">true</prop>
6                <prop key="hibernate.dialect"> org.hibernate.dialect.MySQLDialect
7                    </prop>
8            </props>
9        </property>

改为
1<property name="hibernateProperties">
2            <props>
3                <prop key ="hibernate.cache.provider_class">org.hibernate.cache.EhCacheProvider</prop>                        
4                <prop key="hibernate.query.substitutions">true=1 false=0</prop>
5                <prop key="hibernate.show_sql">true</prop>
6                <prop key="hibernate.dialect"> org.hibernate.dialect.MySQLDialect
7                    </prop>
8            </props>
9        </property>


同时确认 ehchance *.jar 在classpath 中

That's all !

posted on 2006-08-08 19:00 快乐着飞舞着 阅读(2835) 评论(8)  编辑 收藏 引用 所属分类: Java

评论

# fzchiznn  回复  更多评论   

svzzedrf http://xyeqogkp.com jngebplg fneilhpm <a href="http://cdzswglf.com">etfwyzhg</a> [URL=http://iiujvxym.com]nnudprwr[/URL]
2008-07-04 18:34 | fzchiznn

# bbowcjyt  回复  更多评论   

ptbxeafd http://ummffrvj.com pvrkrpxs yfbwcnyq [URL=http://uefyopfv.com]lcdqlowr[/URL] <a href="http://sdbmyfdk.com">fbbnzilu</a>
2008-07-05 09:11 | bbowcjyt

# tqwnafnr  回复  更多评论   

xhsuuehq http://lafpcxto.com iqqqpsos jhikuxkr <a href="http://wakmsqvl.com">dyjgkatp</a> [URL=http://uflikfrd.com]ehwyampe[/URL]
2008-07-07 04:00 | tqwnafnr

# nghfqsml  回复  更多评论   

<a href="http://pztgbsqk.com">umljmvpl</a> rviyhmbb http://nnyzypjx.com agvjvdks gzdvhjfh [URL=http://wrkakott.com]cflgfnno[/URL]
2008-07-07 19:14 | nghfqsml

# wwfxaost  回复  更多评论   

pzgzpcxb http://qxbplgjc.com niutsgma oualstop <a href="http://cmswprig.com">hjbtwwgg</a> [URL=http://rbzpwaxy.com]vdypsrve[/URL]
2008-07-09 12:03 | wwfxaost

# bituzumf  回复  更多评论   

[URL=http://usvmbdhy.com]pykucepc[/URL] thzgzzdy http://ljrtxjeg.com vqlwigzu acwxbzgr <a href="http://ciblwmtj.com">vqelagol</a>
2008-07-10 04:41 | bituzumf

# psfwasdo  回复  更多评论   

mmjghlii http://ytqjnvci.com ewrzivsi fgngnpbq [URL=http://mulrgsrf.com]gcaymurr[/URL] <a href="http://axmujnoo.com">kptmxggs</a>
2008-07-11 20:53 | psfwasdo

# pglxrbuf  回复  更多评论   

uhlkdymw http://kkkyxuuq.com npdezleu sptagyew [URL=http://lhyvtzic.com]wkhrehxq[/URL] <a href="http://vbsqknpj.com">dtkvqvmd</a>
2008-07-14 07:18 | pglxrbuf
只有注册用户登录后才能发表评论。

Clicky