Spring framework3.1整合hibernate4.1报错:
来源:互联网 发布:日本体育课运动服 淘宝 编辑:程序博客网 时间:2024/06/12 18:14
<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.1.xsd
java.lang.NoSuchMethodError: antlr.collections.AST.getLine()I 的错误。这是因为在struts2自带的antlr-2.7.2.jar包的版本较低。
需要换成antlr-2.7.6.jar。其实在项目中已经存在了antlr-2.7.6.jar这个包,现在唯一需要做的就是删除antlr-2.7.2.jar包。
选择windows---preferences---在文本框中搜索struts 2(中间有空格)---选择struts 2---选择antlr-2.7.2.jar---Remove---OK。
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.1.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd">
Spring 头 要配对xmlns:tx 中引入xsi:schemaLocation中写入http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.1.xsd
java.lang.NoSuchMethodError: antlr.collections.AST.getLine()I
当在几种框架集成的时候,在调用HibernateDaoSupport中的某个方法时会出现:java.lang.NoSuchMethodError: antlr.collections.AST.getLine()I 的错误。这是因为在struts2自带的antlr-2.7.2.jar包的版本较低。
需要换成antlr-2.7.6.jar。其实在项目中已经存在了antlr-2.7.6.jar这个包,现在唯一需要做的就是删除antlr-2.7.2.jar包。
选择windows---preferences---在文本框中搜索struts 2(中间有空格)---选择struts 2---选择antlr-2.7.2.jar---Remove---OK。
0 0
- Spring framework3.1整合hibernate4.1报错:
- Spring framework3.2整合hibernate4.1报错:No Session found for current thread
- hibernate4整合spring一直报空指针
- hibernate4 + spring3 整合报错问题
- 【j2ee spring】26、巴巴运动网-整合hibernate4(1)
- 整合hibernate4.2和spring框架,出现No Session found for current threa报错
- spring整合hibernate4.。。。
- spring 3+hibernate4整合
- spring+hibernate4整合
- Spring整合hibernate4:事务管理
- Spring整合hibernate4:事务管理
- Spring整合Hibernate4二级缓存
- SpringMVC4+Spring+Hibernate4整合
- spring hibernate4整合问题
- Spring整合hibernate4:事务管理
- SpringMVC +Spring + Hibernate4 整合
- spring framework4 整合hibernate4
- Spring3.1+Hibernate4.1整合
- 都是头文件的循环包含惹的祸
- win7 64位 PLSql Developer 的使用
- 使用SQL Server发布数据库快照遇到错误:对路径”xxxxx“访问被拒绝的解决方法
- Android 根据一个传入的String选择spinner里面的默认值
- EXCEL列序号的加法
- Spring framework3.1整合hibernate4.1报错:
- java之六篇:放松一下聊聊构造方法(构造函数)
- memcache的针对不同类型数据应用缓存策略
- WeakReference的理解与使用
- 扫描Win7、Win8系列的终端音频设备信息以及外接设备如耳机连接情况
- hibernate 删除方式
- 软件测试基础知识点总结(一)
- lintcode- 寻找旋转排序数组中的最小值-159
- 【小技能】——博客栏目装饰