2012-02-01 165 views
0

Hibernate程序针对某些事务运行,之后无法建立连接。例外如下:网络适配器无法建立连接org.hibernate.exception.GenericJDBCException:无法打开连接

WARN: SQL Error: 17002, SQLState: null 
Feb 01, 2012 11:47:10 AM org.hibernate.engine.jdbc.spi.SqlExceptionHelper logExceptions 
ERROR: Io exception: The Network Adapter could not establish the connection 
org.hibernate.exception.GenericJDBCException: Could not open connection 
Feb 01, 2012 11:52:43 AM org.apache.catalina.core.StandardContext reload 
INFO: Reloading this Context has started 
+1

你可以telnet数据库及其端口吗? – Santosh 2012-02-01 10:47:33

+1

什么是您的jdbc URL? 您应该检查它是正确的:端口号,... – sebastiencol 2012-02-01 07:29:42

回答

0

检查您的班级路径设置:它应该包含oracle-jdbc6.jar的位置。

+0

这不会导致此问题。该消息由该JAR文件中的类打印。 -1 – EJP 2015-01-24 23:17:34

相关问题