我用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包。
本文轉自左正部落格園部落格,原文連結:http://www.cnblogs.com/soundcode/archive/2010/12/29/1921255.html,如需轉載請自行聯系原作者