本文中ssh指:struts2,srping2.5,hibernate3.2
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。
(activation.jar
antlr-2.7.2.jar
antlr-2.7.6.jar
asm.jar
cglib-2.1.3.jar
commons-beanutils-1.6.jar
commons-chain-1.1.jar
commons-collections-2.1.1.jar
commons-digester-1.8.jar
commons-logging-1.0.4.jar
commons-logging-api-1.1.jar
commons-validator-1.3.0.jar
dom4j-1.6.1.jar
ehcache-1.2.jar
file.txt
freemarker-2.3.8.jar
hibernate3.jar
jstl.jar
jta.jar
log4j-1.2.11.jar
log4j-1.2.15.jar
mail.jar
mysql-connector-java-5.0.4-bin.jar
mysql-connector-java-5.0.7-bin.jar
ognl-2.6.11.jar
oro-2.0.8.jar
spring.jar
standard.jar
struts-core-1.3.8.jar
struts-extras-1.3.8.jar
struts-taglib-1.3.8.jar
struts-tiles-1.3.8.jar
)
Dos命令窗口中,开始->运行->cmd打开窗口,到需要文件名的目录,用dir /B > file.txt就可以完成了。然后打开file.txt,Cut and Paste到你想放的位置。呵呵,是不是很简单呀。
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。
(activation.jar
antlr-2.7.2.jar
antlr-2.7.6.jar
asm.jar
cglib-2.1.3.jar
commons-beanutils-1.6.jar
commons-chain-1.1.jar
commons-collections-2.1.1.jar
commons-digester-1.8.jar
commons-logging-1.0.4.jar
commons-logging-api-1.1.jar
commons-validator-1.3.0.jar
dom4j-1.6.1.jar
ehcache-1.2.jar
file.txt
freemarker-2.3.8.jar
hibernate3.jar
jstl.jar
jta.jar
log4j-1.2.11.jar
log4j-1.2.15.jar
mail.jar
mysql-connector-java-5.0.4-bin.jar
mysql-connector-java-5.0.7-bin.jar
ognl-2.6.11.jar
oro-2.0.8.jar
spring.jar
standard.jar
struts-core-1.3.8.jar
struts-extras-1.3.8.jar
struts-taglib-1.3.8.jar
struts-tiles-1.3.8.jar
)
Dos命令窗口中,开始->运行->cmd打开窗口,到需要文件名的目录,用dir /B > file.txt就可以完成了。然后打开file.txt,Cut and Paste到你想放的位置。呵呵,是不是很简单呀。