ssh框架整合需要的jar包

ssh框架整合需要的jar包

struts2必須JAR包(6個): 
struts2-spring-plugin-2.0.11.2.jar 
xwork-2.0.5.jar 
struts2-core-2.0.11.2.jar 
freemarker-2.3.8.jar 
ognl-2.6.11.jar 
commons-logging-1.0.4.jar(與hibernate3.2必須JAR包重複,取一個既可) 

hibernate3.2必須JAR包(8個): 
antlr-2.7.6.jar 
commons-collections-2.1.1.jar 
commons-logging-1.0.4.jar 
dom4j-1.6.1.jar 
ehcache-1.2.3.jar 
hibernate3.jar 
jta.jar 
log4j-1.2.11.jar 

spring2.5必須JAR包(5個): 
spring.jar 
asm-2.2.2.jar (*
asm-commons-2.2.2.jar (*
asm-util-2.2.2.jar (*
cglib-nodep-2.1_3.jar (*

以上四個標*的jar包,hibernate,spring都有提供,但是一定要用spring下的,不然當部署到tomcat下,應用啓動的時候會報如下錯誤:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ’sessionFactory’ defined in  ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is   net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException–>null 
另外:tomcat的緩存常常會出問題,你明明更新了,可是始終啓動不了,這時你可以試着重啓一下tomcat。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章