Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Sachin Raju
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2602
13
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Sachin Raju
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thats what I want to know. Why Cant I connect? I have defined everything rightly.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic