org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConne
746042Jan 12 2010 — edited Jan 12 2010Hi,
I have been getting this below exception in my 64 bit mac pro. I'm using eclipse & tomcat 6.0.18. I have only the ojdbc14.jar copied to my tomcat/lib. I can connect the database directly using other softwares in my mac and was able to ping and do telnet connections. I'm struggling to figure out why my tomcat is not able to make connection to my network's database.
Caused by: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Io exception: The Network Adapter could not establish the connection)
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
at com.ibatis.sqlmap.engine.transaction.external.ExternalTransaction.init(ExternalTransaction.java:53)
at com.ibatis.sqlmap.engine.transaction.external.ExternalTransaction.getConnection(ExternalTransaction.java:90)
at com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeQueryForList(GeneralStatement.java:123)
at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:615)
at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:589)
at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.queryForList(SqlMapSessionImpl.java:118)
at com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.queryForList(SqlMapClientImpl.java:95)
Anyone please help me to figure out what could be going wrong with my eclipse, tomcat or any other installation on my mac pro. Please note that my eclipse is a 64-bit version if rings a bell