org.hibernate.exception.GenericJDBCException: Cannot open connection
来源:百度知道 编辑:UC知道 时间:2024/05/21 19:46:31
org.hibernate.exception.GenericJDBCException: Cannot open connection
这个异常怎么解决?
------------------------------------------------------------
Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory ([Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.)
这个异常又怎么解决?
这个异常怎么解决?
------------------------------------------------------------
Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory ([Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.)
这个异常又怎么解决?
连接SQLServer2000,经常出现这个问题,你可能在网上也找过解决方法了。你去官方网下载sp3和sp4补丁,装好后再试,最好是连同jdbc驱动也从官方网上下载。如果不行的话尝试换一个SQLServer2000安装包,我也和你一样在这个问题上绕了很多,后来在网上下了个SQLServer2000个人版安装包,驱动在官方网上下载,没有打补丁也一次连接成功了。
打开数据库异常了,先开开数据库是不是正常运动着?
如果正常那看看驱动包加载了没有。
不能正确连接数据库,
你的数据库驱动出错了
多半缺少sql2000连接驱动的jar包
数据库异常,使这建立一个test程序,看看是否可以连接上
org.hibernate.MappingException:
org.hibernate.exception.JDBCConnectionException: Cannot open connection
org.hibernate.exception.GenericJDBCException: Cannot open connection
org.hibernate.tool.ant.HibernateToolTask在那个包下面?
org.hibernate.mappingException:Could not read mappings from resource:
org.hibernate.HibernateException: Found two representations of same collection
org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
异常:ERROR [org.hibernate.proxy.BasicLazyInitializer] - CGLIB Enhancement failed...
hibernate
Hibernate