struts2.2.1+spring3+hibernate3.1所需的JAR包以及配置

Hibernate3所需用到的包:

基础包
hibernate3.jar
antlr-2.7.6.jar
commons-collections-3.1.jar
dom4j-1.6.1.jar
javassist-3.9.0.GA.jar
jta-1.1.jar
slf4j-api-1.5.8.jar
日志实现:log4j-1.2.16.jar和slf4j-log4j12-1.5.8.jar

使用annotation
hibernate-annotations.jar
ejb3-persistence.jar
hibernate-commons-annotations.jar


spring3所需的包:
all jar


struts2.2.1所需的包:
aopalliance-1.0.jar
commons-fileupload-1.2.1.jar
commons-io-1.3.2.jar
commons-logging-1.0.4.jar
freemarker-2.3.16.jar
javassist-3.7.ga.jar
ognl-3.0.jar
struts2-core-2.2.1.1.jar
struts2-spring-plugin-2.2.1.1.jar
xwork-core-2.2.1.1.jar

其他的 jar包
ehcache-1.6.2.jar
struts2_ajax
和ehcache.xml
json-lib-2.1-jdk15.jar
struts2-spring-plugin-2.2.1.1.jar


struts2.2.1+spring3.0.5+hibernate3.1
struts2.1以上web.xml中配置

<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>
struts2.1以下web.xml中配置
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
</filter>
Q:java.lang.NoClassDefFoundError: org/objectweb/asm/Type
A:加入asm-3.3.jar

Q:nested exception is java.lang.NoClassDefFoundError: net/sf/ehcache/CacheException
A:加入ehcache-1.6.2.jar

Q:java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
Caused by: java.lang.IllegalArgumentException: Javassist library is missing in classpath! Please add missed dependency!
A:加入javassist-3.7.ga.jar(struts2.2/apps/struts2-blank.war/wib-inf/lib)

Q:hibernate.cfg.xml的放置路径
A:放在web项目的WEB-INF/classes下

Q:struts.xml的放置路径
A:放在web项目的WEB-INF/classes下

ehcache-1.1.jar (1.1) - EHCache cache - runtime, optional (required if no other cache provider is set) versioncheck.jar (1.0) - version checker - buildtime swarmcache-1.0rc2.jar (1.0rc2) - runtime, optional - runtime, optional jboss-cache.jar (1.2.2 alpha) - TreeCache clustered cache - runtime, optional jgroups-2.2.7.jar (2.2.7) - JGroups multicast library - runtime, optional (required by replicated caches) jta.jar (unknown) - Standard JTA API - runtime, required for standalone operation (outside application server) xml-apis.jar (unknown) - Standard JAXP API - runtime, some SAX parser is required commons-logging-1.0.4.jar (1.0.4) - Commons Logging - runtime, required c3p0-0.9.0.jar (0.9.0) - C3P0 JDBC connection pool - runtime, optional connector.jar (unknown) - Standard JCA API - runtime, optional jboss-system.jar (unknown) - unknown name - runtime, optional (required by TreeCache) asm-attrs.jar (unknown) - ASM bytecode library - runtime, required jacc-1_0-fr.jar (1.0-fr) - JACC Library - runtime, optional checkstyle-all.jar (unknown) - Checkstyle - buildtime log4j-1.2.11.jar (1.2.11) - Log4j Library - runtime, optional junit-3.8.1.jar (3.8.1) - JUnit test framework - buildtime dom4j-1.6.1.jar (1.6.1) - XML configuration & mapping parser - runtime, required antlr-2.7.6rc1.jar (2.7.6rc1) - ANother Tool for Language Recognition (patched with proper context classloading) - runtime, required cglib-2.1.3.jar (2.1.3) - CGLIB bytecode generator - runtime, required jboss-common.jar (unknown) - unknown name - runtime, optional (required by TreeCache) oscache-2.1.jar (2.1) - OpenSymphony OSCache - runtime, optional asm.jar (unknown) - ASM bytecode library - runtime, required ant-launcher-1.6.5.jar (1.6.5) - Ant launcher - buildtime jaas.jar (unknown) - Standard JAAS API - runtime, optional (required by JCA) jdbc2_0-stdext.jar (2.0) - Standard Extension JDBC APIs - runtime, required for standalone operation (outside application server) ant-antlr-1.6.5.jar (1.6.5) - Ant antlr support - buildtime jboss-jmx.jar (unknown) - unknown name - runtime, optional (required by TreeCache) cleanimports.jar (unknown) - cleanimports - buildtime xerces-2.6.2.jar (2.6.2) - SAX parser - runtime, required for JDK < 1.4 jaxen-1.1-beta-7.jar (1.1-beta-7) - Jaxen - universal java xpath engine - runtime, required if you want to deserialize a Configuration to improve startup performance ant-junit-1.6.5.jar (1.6.5) - Ant junit support - buildtime ant-swing-1.6.5.jar (1.6.5) - Ant swing support - buildtime commons-collections-2.1.1.jar (2.1.1) - Commons Collections - runtime, required ant-1.6.5.jar (1.6.5) - Ant core - buildtime proxool-0.8.3.jar (0.8.3) - Proxool JDBC connection pool - runtime, optional concurrent-1.3.2.jar (1.3.2) - unknown name - runtime, optional (required by TreeCache) syndiag2.jar (2.0) - antlr to bnf image generator - buildtime
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值