-
J2EE SSH2架构(三)
J2EESSH2架构(3)第三个架构,与第二个相似性很大,唯一不同的是采用的是hibernate.cfg.xml配置文件,如下:<?xmlversion="1.0"encoding="GBK"?><beansxmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/X...
669
热度 -
很奇怪的有关问题org.hibernate.QueryException: Unable to resolve path
很奇怪的问题org.hibernate.QueryException:Unabletoresolvepath[code=XML][/code]今天搞了个测试用myeclipse下oracle8.1.7和hibernate3.0+spring2.0做个测试,平台是tomcate6.0建了一个表叫test,里面有name,age等等几个属性吧然后做映射然后写dao查询用了HibernateTempla...
682
热度 -
S2SH上空指针有关问题
S2SH下空指针问题求助S2SH整合做个登陆搜索系统。一直有个空指针错误不知道怎么解决好像是注入的问题但是不知道问题在哪里Javacodepackageaction;importdao.AccountDAO;importmodel.Account;publicclassLoginAction{privateAccountaccount;privateAccountDAOaccountDao;pub...
92
热度 -
ssh spring 依赖注入时 提示异常 请大家帮看一上
sshspring依赖注入时提示错误请大家帮看一下这是spring的配置文件XMLcode<?xmlversion="1.0"encoding="UTF-8"?><beansxmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://...
77
热度 -
SSH构架的java系统,换数据库后,如何配置才能不重新新建表结构
SSH构架的java系统,换数据库后,怎么配置才能不重新新建表结构?hibernate是交给spring来管理的.大家帮我一下怎么配置spring上的属性呢color='#e78608'>------解决方案--------------------applicationContext.xml(/WEB-INF/applicationContext.xml)<?xmlversion="...
95
热度 -
使用MyEclipse 8.5调整SSH框架和基础配置
使用MyEclipse8.5整合SSH框架和基础配置首先创建一个Web工程——添加Spring框架支持——添加SpringAOP&Core&PersistenceCore&JDBC类库支持。在MyEclipse中准备数据库,确认数据库连接成功后,加入Hibernate支持,在配置Hibernate选项时请使用Spring来管理Hibernate的配置文件,选择已存在的Spr...
4
热度 -
待 Spring + Hiberate 表不存在有关问题
在线等待Spring+Hiberate表不存在问题?配置文件applicationContext.xml:<beanid="dataSource"class="org.apache.commons.dbcp.BasicDataSource"><propertyname="driverClassName"value=&qu...
431
热度 -
dataSource配置dbcp 为什么tomcat起动时会抛出找不到c3p0
dataSource配置dbcp为什么tomcat启动时会抛出找不到c3p0我的applicationContext里面明明配置的是dbcp,tomcat启动的时候为什么会提示找不到c3po2015-3-1814:21:41org.springframework.web.context.ContextLoaderinitWebApplicationContext严重:Contextinitiali...
81
热度 -
项目重新部署后过一段时间就连接不上,该怎么解决
项目重新部署后过一段时间就连接不上c3p0数据源ssh框架就,mysql数据库,每次项目刚部署后能够正常运行,但是过了一段时间就出现请求超时,初步怀疑是连接数过多所致,但是项目中的连接我都已经及时关闭了,不知道具体是什么原因另附我的配置代码<beanid="dataSource"class="com.mchange.v2.c3p0.ComboPooledDataSource" destro...
84
热度 -
No Hibernate Session bound to thread, and configuration does not allow creation,该如何解决
NoHibernateSessionboundtothread,andconfigurationdoesnotallowcreation异常如下:Exceptioninthread"Thread-4"org.hibernate.HibernateException:NoHibernateSessionboundtothread,andconfigurationdoesnotallowcreatio...
73
热度 -
Spring getHibernateTemplate().get(User.class,pKey)回来空
SpringgetHibernateTemplate().get(User.class,pKey)返回空查询返回空指针异常!我把代码贴上,希望大家解答详细一些.我是新手...publicclassUserDaoextendsHibernateDaoSupport{ //根据主键查找用户publicUserFind(StringpKey)throwsDataAccessException{//ret...
230
热度 -
SSH调整,NullPinterException
SSH整合,NullPinterException本人在做SSH整合时,然后想在页面把数据库里的数据显示出来。页面通过action获取数据,action代码为Javacodepackagetest.action;importcom.opensymphony.xwork2.ActionSupport;importjava.util.List;importjava.util.ArrayList;imp...
33
热度 -
struts2.1+Hibernate3.3+spring3.0调整添加代理事务出错
struts2.1+Hibernate3.3+spring3.0整合添加代理事务出错做了一个整合的小例子,开始没有添加代理事务运行正常。后来我把代理事务加上,运行时报错了:org.springframework.orm.hibernate3.HibernateSystemException:Sessionisclosed;nestedexceptionisorg.hibernate.Session...
34
热度 -
Spring调整Hibernate注入报空指针
Spring整合Hibernate注入报空指针<?xmlversion="1.0"encoding="UTF-8"?><beansxmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSch...
57
热度 -
关于myeclipse开发j2ee的有关问题 求解答
关于myeclipse开发j2ee的问题求解答HTTPStatus500---------------------------------------------typeExceptionreportmessagedescriptionTheserverencounteredaninternalerror()thatpreventeditfromfulfillingthisrequest.exce...
77
热度 -
spring_hibernate整合时遇到的有关问题,新手真不知如何解决,求大神指点
spring_hibernate整合时遇到的问题,新手真不知怎么解决,求大神指点,在线等新手学习ssh,在网上找的视频学习,学到spring_hibernate时遇到的问题求大神看看分享到:更多varbds_config={"snsKey":{'tsina':'3657746030','tqq':'801356742',}};document.getElementById("bdshell_js"...
97
热度 -
初学s2sh,交付action报错Error Creating SessionFactory
初学s2sh,提交action报错ErrorCreatingSessionFactory希望大家不要喷我,初学s2sh。必要的包已经导入(目前自己这么认为的),在整合的过程中我把hibernate.cfg.xml删除了,数据源就交给spring的配置文件applicationContext-hibernate.xml管理了,该文件时放在WEB-INF/config目录下,里面的内容是:XMLcod...
565
热度 -
java.sql.SQLException: ORA-01000: maximum open cursors exceeded,该如何处理
java.sql.SQLException:ORA-01000:maximumopencursorsexceeded帖子内容有点长、大侠们耐心点看:系统用的SSH框架、有时候前台点击跟数据库交互就会报超出最大游标数的错误。我不知道什么问题、下面把配置跟部分代码贴出来、大侠指正。数据源:XMLcode<Resourcename="jdbc/customermanage"au...
425
热度 -
spring mvc 如何在后台接收到页面下传来的值
springmvc怎么在后台接收到页面上传来的值index.jsp<%@pagelanguage="java"contentType="text/html;charset=Utf-8" pageEncoding="utf-8"%><!DOCTYPEhtmlPUBLIC"-//W3C//DTDHTML4.01Tr...
2
热度 -
getHibernateTemplate回来null
getHibernateTemplate返回nullgetHibernateTemplate()返回null,下面是web.xml,applicationContext.xml和异常信息,谢谢大家啦~web.xml:<?xmlversion="1.0"encoding="UTF-8"?><web-appxmlns:xsi="htt...
98
热度