《ssh2框架整合.doc》由会员分享,可在线阅读,更多相关《ssh2框架整合.doc(7页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、【精品文档】如有侵权,请联系网站删除,仅供学习与交流ssh2框架整合.精品文档.SSH2框架整合1搭建环境说明SSH2整合环境:Spring:spring 2.5Struts:struts2.1.6Hibernate:hibernate3.3.1数据库:oracle9iMyeclipse:myeclipse6.5 Tomcat:tomcat62整合2.1所需jar包列表Struts2所需jar包:Struts2-core-2.1.11.jarcommons-logging-1.0.4.jarcommons-fileupload-1.2.1.jarfreemarker-2.3.13.jarogn
2、l-2.6.11.jarstruts2-spring-plugin-2.1.6.jar((struts2与spring整合所需)xwork-2.1.2.jarHibernate3.3所需jar包:antlr-2.7.6.jarc3p0-0.9.1.jardom4j-1.6.1.jarhibernate3.jarjta-1.1.jarlog4j-1.2.15.jarojdbc14.jarslf4j-api-1.5.2.jarslf4j-log4j12.jarSpring2.5所需jar包:Spring.jar Json所需的包Json-lib-2.1.jarJsonplugin-0.34.jar
3、其他jarSlf4j-api-1.5.2.jarSlf4j-log4j12.jarJavassist-31.4.GA.jarCommons-dbcp.jarCommons-pool-1.3.jarCommons-collections-3.1.jar2.2添加applicationContext.xml文件在WEB-INF目录下新建文件applicationContext.xml。添加内容如下:org.hibernate.dialect.Oracle9Dialecttrueclasspath:com/ssh2/mappingcom/ssh2/mapping/AppUser.hbm.xml PR
4、OPAGATION_REQUIRED PROPAGATION_REQUIRED PROPAGATION_REQUIRED PROPAGATION_REQUIREDPROPAGATION_REQUIRED,readOnly2.3 添加struts.xml文件/WEB-INF/jsp/userinfo/UserManage.jsp/WEB-INF/jsp/userinfo/UserManage.jsp/WEB-INF/jsp/userinfo/UserAdd.jsp2.4修改web.xml文件web-app version=2.5 xmlns=xmlns:xsi=http:/www.w3.org/
5、2001/XMLSchema-instancexsi:schemaLocation= contextConfigLocation/WEB-INF/config/applicationContext.xmlorg.springframework.web.context.ContextLoaderListenerstruts2org.apache.struts2.dispatcher.FilterDispatcherstruts2/*encodingFilterorg.springframework.web.filter.CharacterEncodingFilterencodingGBKindex.jsp3问题记录1.java.lang.ClassNotFoundException: mons.collections.map.LRUMapcommons-collections.jar 未导入或包版本过低。2.java.lang.NoClassDefFoundError: javassist/util/proxy/MethodFilter缺少javassist-3.4.GA.jar包3.