spring2.5.6在jdk1.8环境下运行的问题
来源:互联网 发布:打印机服务器软件 编辑:程序博客网 时间:2024/06/06 14:01
首先说下我的javaEE开发环境:spring2.5.6+hibernate3.6.0+struts2.3.1.1+myeclipse2014+tomcat8
myeclipse开发时候里面自带的jdk是jdk1.6或者1.7,spring2.5.6在这个环境下面运行没问题,但是我使用的centos服务器,里面的jdk是1.8,运行spring2.5.6开发出来的jar包将会报如下错误:
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [beans.xml]; nested exception is java.lang.IllegalStateException: Context namespace element ‘component-scan’ and its parser class [org.springframework.context.annotation.ComponentScanBeanDefinitionParser] are only available on JDK 1.5 and higher,
在这个错误下面,由myeclipse所打包出来的war包是没有问题的,但是jdk的版本太高,spring2.5.6所在的tomcat不能使用jdk1.8来运行。
解决办法是指定tomcat8运行所需要的jdk为1.7就行
0 0
- spring2.5.6在jdk1.8环境下运行的问题
- 项目版本不同导致Eclipse报错问题——关于在JDK1.7环境中,运行JDK1.8环境下编写的项目。
- 在JDK1.4下使用Spring2.x
- tomcat7 运行在windows环境下乱码问题的解决
- spring2.5 注解依赖注入由于jdk1.8产生的问题
- JDK1.7在Ubuntu环境下的安装配置
- 在Spring2.5+JDK1.8时 使用context.annotation出错
- 在Spring2.5+JDK1.8时 使用context.annotation出错
- dubbo在jdk1.8环境,部署tomcat问题
- .Net运行环境问题,3.5无法很好的运行在4.0下
- mac下 Android Studio && PHPStorm 在JDK1.8下字体问题的解决
- qt creater环境下编译出来的程序在其他环境上不能运行问题
- jdk1.6在windows下安装的问题
- spring2.5+JDK1.8报错的解决办法
- spring2.5+JDK1.8报错的解决办法
- spring2.5+JDK1.8 版本报错的解决办法
- jdk1.8运行环境精简瘦身
- Struts2: Jdk1.5 + Tomcat 5.0.28环境下运行Struts2的项目报错及解决方法
- 15.行属性标签在包裹文字使用时,不需要设置宽高
- iOS 瀑布流基本实现
- XML pull解析
- ARC所有权修饰符---__strong修饰符
- OpenCV使用FileStorage保存Mat数据
- spring2.5.6在jdk1.8环境下运行的问题
- 设计模式之状态模式——随遇而安
- MinGW静态编译windows QT5.x
- HDU 1234 开门人和关门人
- tomcat配置文件server.xml详解
- VB程序学习代码记录20160721
- 【离散数学】单向连通和弱连通的区别
- Codeforces Round #337 (Div. 2) A-----思维题
- Box of bricks 堆积木