首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

SpringAOP错误提示囧

2013-08-24 
SpringAOP异常提示囧当你出现这个错误的时候,怎么不是报ClassNotFoundException严重: Context initializat

SpringAOP异常提示囧

当你出现这个错误的时候,怎么不是报ClassNotFoundException

严重: Context initialization failed
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/aop]
Offending resource: ServletContext resource [/WEB-INF/spring-framework-4.0.0/spring.xml]

?at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:70)
?at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)
?at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:80)
?at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.error(BeanDefinitionParserDelegate.java:316)
?at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1424)
?at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1417)
?at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:187)
?at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:141)
?at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:110)
?at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:494)
?at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:391)
?at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:335)
?at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
?at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)
?at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:216)
?at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:187)
?at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125)
?at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
?at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)
?at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:551)
?at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:465)
?at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)
?at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)
?at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)
?at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)
?at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
?at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
?at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
?at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
?at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
?at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1114)
?at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1673)
?at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
?at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
?at java.util.concurrent.FutureTask.run(FutureTask.java:138)
?at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
?at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
?at java.lang.Thread.run(Thread.java:619)
2013-8-19 16:22:55 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/aop]
Offending resource: ServletContext resource [/WEB-INF/spring-framework-4.0.0/spring.xml]

?at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:70)
?at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)
?at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:80)
?at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.error(BeanDefinitionParserDelegate.java:316)
?at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1424)
?at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1417)
?at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:187)
?at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:141)
?at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:110)
?at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:494)
?at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:391)
?at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:335)
?at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
?at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)
?at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:216)
?at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:187)
?at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125)
?at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
?at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)
?at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:551)
?at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:465)
?at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)
?at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)
?at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)
?at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)
?at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
?at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
?at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
?at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
?at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
?at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1114)
?at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1673)
?at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
?at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
?at java.util.concurrent.FutureTask.run(FutureTask.java:138)
?at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
?at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
?at java.lang.Thread.run(Thread.java:619)
2013-8-19 16:22:55 com.sun.faces.config.ConfigureListener contextInitialized
信息: 初始化上下文 '/OBDS' 的 Mojarra 2.0.3 (FCS b03)
2013-8-19 16:22:56 com.sun.faces.spi.InjectionProviderFactory createInstance
信息: JSF1048:有 PostConstruct/PreDestroy 注释。标有这些注释的 ManagedBeans 方法将表示注释已处理。
2013-8-19 16:22:56 org.apache.catalina.core.StandardContext startInternal
严重: Error listenerStart
2013-8-19 16:22:56 org.apache.catalina.core.StandardContext startInternal
严重: Context [/OBDS] startup failed due to previous errors
2013-8-19 16:22:56 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext
2013-8-19 16:22:56 org.springframework.web.context.support.XmlWebApplicationContext doClose
信息: Closing Root WebApplicationContext: startup date [Mon Aug 19 16:22:53 CST 2013]; root of context hierarchy
2013-8-19 16:22:56 org.springframework.web.context.support.XmlWebApplicationContext doClose
警告: Exception thrown from ApplicationListener handling ContextClosedEvent
java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call 'refresh' before multicasting events via the context: Root WebApplicationContext: startup date [Mon Aug 19 16:22:53 CST 2013]; root of context hierarchy
?at org.springframework.context.support.AbstractApplicationContext.getApplicationEventMulticaster(AbstractApplicationContext.java:357)
?at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:344)
?at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1052)
?at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:1013)
?at org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:559)
?at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:115)
?at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4831)
?at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5478)
?at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
?at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160)
?at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
?at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
?at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
?at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1114)
?at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1673)
?at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
?at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
?at java.util.concurrent.FutureTask.run(FutureTask.java:138)
?at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
?at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
?at java.lang.Thread.run(Thread.java:619)
2013-8-19 16:22:56 org.springframework.web.context.support.XmlWebApplicationContext doClose
警告: Exception thrown from LifecycleProcessor on context close
java.lang.IllegalStateException: LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: Root WebApplicationContext: startup date [Mon Aug 19 16:22:53 CST 2013]; root of context hierarchy
?at org.springframework.context.support.AbstractApplicationContext.getLifecycleProcessor(AbstractApplicationContext.java:370)
?at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1060)
?at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:1013)
?at org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:559)
?at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:115)
?at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4831)
?at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5478)
?at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
?at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160)
?at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
?at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
?at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
?at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1114)
?at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1673)
?at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
?at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
?at java.util.concurrent.FutureTask.run(FutureTask.java:138)
?at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
?at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
?at java.lang.Thread.run(Thread.java:619)
2013-8-19 16:22:56 org.apache.catalina.core.StandardContext listenerStop
严重: Exception sending context destroyed event to listener instance of class org.springframework.web.context.ContextLoaderListener
java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
?at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:171)
?at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1093)
?at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1067)
?at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:1013)
?at org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:559)
?at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:115)
?at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4831)
?at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5478)
?at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
?at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160)
?at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
?at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
?at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
?at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1114)
?at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1673)
?at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
?at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
?at java.util.concurrent.FutureTask.run(FutureTask.java:138)
?at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
?at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
?at java.lang.Thread.run(Thread.java:619)

?

问题缺Jar:spring-aop-4.0.0.M2.jar

热点排行