Eclipse6里面SSH整合说明

本文记录了使用MyEclipse6.0搭建SSH(Stuts+Spring+Hibernate)工程过程中遇到的问题及解决方案,包括Spring配置文件中找不到类、启动服务时的安全异常等问题,并介绍了需要手动导入的依赖库。

我用MyEclipse6.0做SSH工程出现的几个问题和解决办法。
MyEclipse6.0开发SSH工程问题解决办法
1. 正常建工程,倒入Struts1.1,Spring2.0,Hibernate3.0.Spring2.0托管Struts,Hibernate。   此时Spring配置文件中出现问题,找不到此类。 class="org.apache.commons.dbcp.BasicDataSource" 在工程的lib文件加入commons-dbcp.jar,
2. 启动服务出现 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.SecurityException: class "org.apache.commons.collections.CursorableLinkedList"'s signer information does not match signer inform

ation of other classes in the same package
此时干掉commons-collections-2.1.jar包
3. 然后导入commons-beanutils.jar,
commons-pool.jar,
commons-collections-3.1.jar包问题解决。
启动服务成功。
查询资料解释:

commons-pool.jar, commons-dbcp.jar:

DBCP数据库连接池,Apache的Jakarta组织开发的

commons-collections.jar:

Apache Commons包中的一个,包含了一些Apache开发的集合类,功能比java.util.*强大。必须使用的jar包。

commons-beanutils.jar:

commons-lang.jar:

Apache Commons包中的一个,包含了一些数据类型工具类,是java.lang.*的扩展。必须使用的jar包。

commons-logging.jar:

Apache Commons包中的一个,包含了日志功能,必须使用的jar包。
其他问题待续。。。。。

 

需要手动导入的Jar包。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值