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。