Caused by: java.lang.IllegalStateException
来源:互联网 发布:java svn插件 编辑:程序博客网 时间:2024/06/05 07:44
报错如下:
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerorg.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is java.lang.IllegalStateException: Context namespace element 'annotation-config' and its parser class [org.springframework.context.annotation.AnnotationConfigBeanDefinitionParser] are only available on JDK 1.5 and higherat org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:420)at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124)at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:92)at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422)at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5068)at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5584)at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1572)at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1562)at java.util.concurrent.FutureTask.run(Unknown Source)at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)at java.lang.Thread.run(Unknown Source)Caused by: java.lang.IllegalStateException: Context namespace element 'annotation-config' and its parser class [org.springframework.context.annotation.AnnotationConfigBeanDefinitionParser] are only available on JDK 1.5 and higherat org.springframework.context.config.ContextNamespaceHandler$1.parse(ContextNamespaceHandler.java:65)at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:69)at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1297)at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1287)at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:135)at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:92)at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:507)at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:398)... 22 more
原因:Spring3.x 版本和 JDK1.8 不兼容。
解决办法:把 JDK 版本换成1.7 or 1.7以下,或者使用Spring 4.0 RELEASE 及以上版本。
阅读全文
0 0
- Caused by: java.lang.IllegalStateException
- Database: Caused by: java.lang.IllegalStateException
- 异常处理:Caused by: Java.lang.IllegalStateException
- Caused by: java.lang.IllegalStateException: Ambiguous mapping found. Cannot
- Caused by: java.lang.IllegalStateException: Per-clause not recognized
- Caused by: java.lang.IllegalStateException: not connected to MediaScannerSer
- Caused by: java.lang.IllegalStateException: package not installed?
- Caused by: java.lang.IllegalStateException: Ambiguous mapping found
- Caused by: java.lang.IllegalStateException: This Activity already has an action bar supplied by the
- Caused by: java.lang.IllegalStateException: This Activity already has an action bar supplied by the
- Caused by: java.lang.IllegalStateException: This Activity already has an action bar supplied by the
- Caused by: java.lang.IllegalStateException: Target host must not be null, or set in parameters.
- Caused by: java.lang.IllegalStateException: You must use Theme.Sherlock问题解决方法
- Caused by: java.lang.IllegalStateException: The specified child already has a parent. You
- Caused by: java.lang.IllegalStateException: Process 9461 exceeded cursor quota 100, will kill it
- Caused by: java.lang.IllegalStateException: Error occurred while storing entity [Entity {id='500228'
- viewpager加载fragment出错Caused by: java.lang.IllegalStateException: The specified child already has a p
- Caused by: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant)
- linux下的uname命令详解
- jupyter配置scala和Spark学习环境
- Java上传文件到服务器
- 根据经纬度计算两点之间的距离的公式推导过程以及google.maps的测距函数
- 线程-线程控制
- Caused by: java.lang.IllegalStateException
- 线程死锁
- 浮点数比较
- LengthFieldBasedFrameDecoder使用示例
- 使用TensorFlow编写损失函数 交叉熵(cross entrophy)| 均方误差(MSE)
- Havel定理
- Shell判断字符串包含关系的几种方法
- iOS"死灰复燃SDK"
- 二叉树三种遍历方式的六种实现方法