File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes PoolableConnectionFactory problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Databases » JDBC
Bookmark "PoolableConnectionFactory problem" Watch "PoolableConnectionFactory problem" New topic
Author

PoolableConnectionFactory problem

ForzaMilan
Greenhorn

Joined: Jun 19, 2008
Posts: 2
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

Joined: Feb 19, 2008
Posts: 2902
    
    1



As per the exception , it seems that driver class can`t connect with DB , check out the DB permission and DB url !!


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
 
 
subject: PoolableConnectionFactory problem