欢迎来到天天文库
浏览记录
ID:36623060
大小:877.00 KB
页数:20页
时间:2019-05-13
《基于Eclipse的SSH2搭建的设计与开发》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、基于Eclipse的SSH2搭建Struts2.3.4+spring3.1.1+hibernate3.6Ssh2+extjsTomcat启动错误严重:Unabletofindparentpackagesjson-default缺少包严重:Contextinitializationfailedorg.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname'adminDAOImpl'definedinServl
2、etContextresource[/WEB-INF/applicationContext_beans.xml]:Initializationofbeanfailed;nestedexceptionisorg.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname'sessionFactory'definedinServletContextresource[/WEB-INF/applicationConte
3、xt_common.xml]:Invocationofinitmethodfailed;nestedexceptionisorg.hibernate.HibernateException:JDBCDriverclassnotfound:com.mysql.jdbc.Driver缺少添加jar包1Struts2.3.4如下图2在Web.xml里struts2org.apa
4、che.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilterstruts2/*3src下添加struts.xml
5、6、ename="default"namespace="/"extends="struts-default">4添加Spring3.1jar3添加Struts管理spring的插件插件包所在的位置6添加包插件包所在的位置7web.xml里7、>org.springframework.web.context.ContextLoaderListenercontextConfigLocation
6、ename="default"namespace="/"extends="struts-default">
7、>org.springframework.web.context.ContextLoaderListener
8、/WEB-INF/applicationContext_*.xml8WEB-INF下添加applicationContext.xml9测试新建index.jsp和tt.jspindex.jsp的body添加
此文档下载收益归作者所有