This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

PoolableConnectionFactory problem

 
ForzaMilan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
is there anyone can help me about this error:

ERROR [2008-06-19 13:16:05,234] org.hibernate.util.JDBCExceptionReporter - Cannot create PoolableConnectionFactory (JZ006: Caught IOException: java.net.ConnectException: Connection refused: connect)
WARN [2008-06-19 13:16:05,234] org.hibernate.cfg.SettingsFactory - Could not obtain connection metadata
org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (JZ006: Caught IOException: java.net.ConnectException: Connection refused: connect)

This my hibernate conf:
hibernate.dialect=org.hibernate.dialect.SybaseDialect
hibernate.connection.driver_class=com.sybase.jdbc2.jdbc.SybDriver
hibernate.connection.username=sa
hibernate.connection.password=milan
hibernate.connection.url=jdbc:sybase:Tds:myserver:16101/collaudo_db



Thanks.
 
Sagar Rohankar
Ranch Hand
Posts: 2906
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


As per the exception , it seems that driver class can`t connect with DB , check out the DB permission and DB url !!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic