[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: App deploymenet error: Unexpected error in pingDatabase

PeterJ do-not-reply at jboss.com
Fri Oct 31 15:29:46 EDT 2008

Looking at the code a little more closely, it would appear that the OracleValidConnectionChecker depends on a method named 'pingDatabase' in the oracle.jdbc.driver.OracleConnection class in the oracle JDBC driver JAR. The OracleValidConnectionChecker expects pingDatabase to return an Integer (OracleValidConnectionChecker actually pass Integer.class to pingDatabase, which I assume is then used by pingDatabase to return a result).

You can either find out why the pingDatabase method is not working correctly, remove the valid-connection-checker-class-name from the *-ds.xml file, or if you want a connection checker write your own connection checker class and use it.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4186123#4186123

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4186123

More information about the jboss-user mailing list