aspose file tools*
The moose likes JDBC and the fly likes org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory " Watch "org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory " New topic
Author

org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory

Sachin Raju
Ranch Hand

Joined: Oct 29, 2009
Posts: 41
I am getting this exception. Everything seems to be fine.

hibernate config xml:





context setting xml:

<Context path="/iclose-messenger-broker" debug="0">
<!-- MySQL -->
<!--
<Resource name="jdbc/iclose-messenger-broker-ds"
auth="Container"
type="javax.sql.DataSource"
maxActive="100"
maxIdle="30"
maxWait="10000"
username="MyUserName"
password="MyPassword"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/iclose-messenger-broker?autoReconnect=true"/>
/> -->

<!-- Microsoft SQL Server -->

<Resource name="jdbc/iclose-messenger-broker-ds"
auth="Container"
type="javax.sql.DataSource"
maxActive="100"
maxIdle="30"
maxWait="10000"
username="sa"
password="sa"
driverClassName="net.sourceforge.jtds.jdbcx.JtdsDataSource"
url="jdbc:jtds:sqlserver://192.168.90.245:1433/iclose-messenger-broker;appName=iclose-messenger"/>
/>

</Context>



SQL Server DB Name: iclose-messenger-broker


Please suggest me here.






Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2516
    
  10

This part of the error mesage points to the cause for the problem:
Network error IOException: Connection timed out: connect

You cannot connect to that database.


OCUP UML fundamental and ITIL foundation
youtube channel
Sachin Raju
Ranch Hand

Joined: Oct 29, 2009
Posts: 41
Thats what I want to know. Why Cant I connect? I have defined everything rightly.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory