征服.刘华强
2012-11-10 14:59
浏览 258
已采纳

Hibernate4.1.7 配置proxool 问题

[code="java"][/code]现在用hibernate4.1.7配置连接池出现问题。求帮忙
[code="java"]


<!-- 正常测试没有问题
jdbc:oracle:thin:@127.0.0.1:1521:databasefir
SCOTT
sql2008
-->

org.hibernate.service.jdbc.connections.internal.ProxoolConnectionProvider

oracleProxool
true
proxool.xml

    <property name="hibernate.connection.driver_class">oracle.jdbc.OracleDriver</property>
    <property name="hibernate.dialect">org.hibernate.dialect.OracleDialect</property>
    <property name="show_sql">true</property>

    <mapping resource="com/bjsxt/hibernate/mapping/Person.hbm.xml"/> 

[/code]

[code="java"]


oracleProxool
jdbc:oracle:thin:@127.0.0.1:1521:databasefir
oracle.jdbc.OracleDriver




select CURRENT_DATE   
90000   
20   
100   
10   
3600000

[/code]

现在报这个异常
WARN: SQL Error: 0, SQLState: 08001
2012-11-10 14:58:49 org.hibernate.engine.jdbc.spi.SqlExceptionHelper logExceptions
ERROR: The url cannot be null
org.hibernate.exception.JDBCConnectionException: Could not open connection
at org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:131)
at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:49)
at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:125)

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

1条回答 默认 最新

  • jinnianshilongnian 2012-11-10 18:37
    最佳回答
    评论
    解决 无用
    打赏 举报

相关推荐 更多相似问题