论坛首页 Java企业应用论坛

SSH三层框架 求解

浏览 1636 次
该帖已经被评为隐藏帖
作者 正文
   发表时间:2007-11-07  
javax.servlet.ServletException: Hibernate operation: Cannot open connection; uncategorized SQLException for SQL [???]; SQL state [null]; error code [0]; Cannot create PoolableConnectionFactory (?? 'NetShop' ?????); nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (?? 'NetShop' ?????)
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:523)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
cn.elite.web.common.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:38)


root cause

org.springframework.jdbc.UncategorizedSQLException: Hibernate operation: Cannot open connection; uncategorized SQLException for SQL [???]; SQL state [null]; error code [0]; Cannot create PoolableConnectionFactory (?? 'NetShop' ?????); nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (?? 'NetShop' ?????)
org.springframework.jdbc.support.SQLStateSQLExceptionTranslator.translate(SQLStateSQLExceptionTranslator.java:97)
org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.translate(SQLErrorCodeSQLExceptionTranslator.java:258)
org.springframework.orm.hibernate3.HibernateAccessor.convertJdbcAccessException(HibernateAccessor.java:424)
org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:411)
org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:371)
org.springframework.orm.hibernate3.HibernateTemplate.findByNamedParam(HibernateTemplate.java:870)
cn.elite.web.dao.hibernate.UserDAOHibernate.Login(UserDAOHibernate.java:22)
cn.elite.web.business.service.UserServiceImpl.Login(UserServiceImpl.java:29)
cn.elite.web.action.UserAction.login(UserAction.java:147)
cn.elite.web.action.UserAction.execute(UserAction.java:44)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
cn.elite.web.common.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:38)



这个是我做三层框架中遇到的问题,请朋友们给与解答

MSN:roundlight@hotmail.com
论坛首页 Java企业应用版

跳转论坛:
Global site tag (gtag.js) - Google Analytics