ssm框架,启动tomcat时报错严重: Context initialization failed org.springframework.beans.factory.BeanCreationExc

严重: Context initialization failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [E:\apache-tomcat-8.0.49-windows-x64\apache-tomcat-8.0.49\wtpwebapps\TeduStore2\WEB-INF\classes\spring-dao.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [E:\apache-tomcat-8.0.49-windows-x64\apache-tomcat-8.0.49\wtpwebapps\TeduStore2\WEB-INF\classes\mappers\UserMapper.xml]'

有没有大神帮我看一下,弄了一上午没弄好

阅读更多
换一批

严重: Context initialization failed

05-04

严重: Context initialization failedrnjava.lang.NoClassDefFoundError: org.springframework.beans.FatalBeanExceptionrn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1154)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1099)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:866)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542)rn at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:443)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:325)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4853)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5314)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)rn at java.util.concurrent.FutureTask.run(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnrn五月 04, 2017 5:41:28 下午 org.apache.catalina.core.StandardContext listenerStartrn严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnjava.lang.NoClassDefFoundError: org.springframework.beans.FatalBeanExceptionrn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1154)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1099)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:866)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542)rn at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:443)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:325)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4853)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5314)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)rn at java.util.concurrent.FutureTask.run(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnrn五月 04, 2017 5:41:28 下午 org.apache.catalina.core.StandardContext startInternalrn严重: One or more listeners failed to start. Full details will be found in the appropriate container log filern五月 04, 2017 5:41:28 下午 org.apache.catalina.core.StandardContext startInternalrn严重: Context [/cityweb] startup failed due to previous errorsrn五月 04, 2017 5:41:28 下午 org.apache.catalina.core.ApplicationContext logrn信息: Closing Spring root WebApplicationContextrn五月 04, 2017 5:41:28 下午 org.springframework.web.context.support.XmlWebApplicationContext doClosern信息: Closing Root WebApplicationContext: startup date [Thu May 04 17:41:11 CST 2017]; root of context hierarchyrn五月 04, 2017 5:41:28 下午 org.springframework.web.context.support.XmlWebApplicationContext doClosern警告: Exception thrown from LifecycleProcessor on context closernjava.lang.IllegalStateException: LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: Root WebApplicationContext: startup date [Thu May 04 17:41:11 CST 2017]; root of context hierarchyrn at org.springframework.context.support.AbstractApplicationContext.getLifecycleProcessor(AbstractApplicationContext.java:417)rn at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1002)rn at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:961)rn at org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:583)rn at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:116)rn at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4900)rn at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5537)rn at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:221)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:149)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)rn at java.util.concurrent.FutureTask.run(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnrn五月 04, 2017 5:41:28 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbcrn警告: The web application [cityweb] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.rn五月 04, 2017 5:41:28 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreadsrn警告: The web application [cityweb] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:rn java.lang.Object.wait(Native Method)rn java.lang.ref.ReferenceQueue.remove(Unknown Source)rn com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:43)rn五月 04, 2017 5:41:28 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreadsrn警告: The web application [cityweb] appears to have started a thread named [Timer-0] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:rn java.lang.Object.wait(Native Method)rn java.util.TimerThread.mainLoop(Unknown Source)rn java.util.TimerThread.run(Unknown Source)rn五月 04, 2017 5:41:28 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreadsrn警告: The web application [cityweb] appears to have started a thread named [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:rn java.lang.Object.wait(Native Method)rn com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:534)rn五月 04, 2017 5:41:28 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreadsrn警告: The web application [cityweb] appears to have started a thread named [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:rn java.lang.Object.wait(Native Method)rn com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:534)rn五月 04, 2017 5:41:28 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreadsrnrn

严重: Context initialization failed java.lang.IllegalArgumentException

06-11

java.lang.IllegalArgumentExceptionrn at org.springframework.asm.ClassReader.(Unknown Source)rn at org.springframework.asm.ClassReader.(Unknown Source)rn at org.springframework.asm.ClassReader.(Unknown Source)rn at org.springframework.core.type.classreading.SimpleMetadataReader.(SimpleMetadataReader.java:52)rn at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:80)rn at org.springframework.core.type.classreading.CachingMetadataReaderFactory.getMetadataReader(CachingMetadataReaderFactory.java:101)rn at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:76)rn at org.springframework.context.annotation.ConfigurationClassParser.getImports(ConfigurationClassParser.java:298)rn at org.springframework.context.annotation.ConfigurationClassParser.getImports(ConfigurationClassParser.java:300)rn at org.springframework.context.annotation.ConfigurationClassParser.getImports(ConfigurationClassParser.java:300)rn at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:230)rn at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:153)rn at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:130)rn at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:285)rn at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:223)rn at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:630)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:461)rn at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4210)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4709)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:822)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)rn at org.apache.catalina.core.StandardService.start(StandardService.java:525)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:595)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rnrn

没有更多推荐了,返回首页