java.sql.SQLException

Failed to locate database cluster configuration file: ha-jdbc-null.xml Error Code: 0

Solutions on the web10879

  • Failed to locate database cluster configuration file: ha-jdbc-null.xml Error Code: 0
  • Already closed." below are the entire stack trace . After this error the subsequent write operation works. We have defined ValidationQuery as "Select 1" and testOnBorrow = true in below JDBC pool configuration. I am assuming that testOnBorrow
  • [StelsMDB JDBC driver] Can't load the file 'diag' to H2 database. Error was: Table 'diag' does not exist!
  • Stack trace

    • java.sql.SQLException: Failed to locate database cluster configuration file: ha-jdbc-null.xml Error Code: 0 at org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:309) at org.eclipse.persistence.sessions.JNDIConnector.connect(JNDIConnector.java:135) at org.eclipse.persistence.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:162) at org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor.connectInternal(DatasourceAccessor.java:330) at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.connectInternal(DatabaseAccessor.java:293) at org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor.connect(DatasourceAccessor.java:418) at org.eclipse.persistence.sessions.server.ConnectionPool.buildConnection(ConnectionPool.java:216) at org.eclipse.persistence.sessions.server.ExternalConnectionPool.startUp(ExternalConnectionPool.java:146) at org.eclipse.persistence.sessions.server.ServerSession.connect(ServerSession.java:484) at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.login(DatabaseSessionImpl.java:633) at org.eclipse.persistence.internal.jpa.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:208) at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:488) Caused by: java.sql.SQLException: Failed to locate database cluster configuration file: ha-jdbc-null.xml at org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection(ConnectionPool.java:724) at org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:635) at org.apache.tomcat.jdbc.pool.ConnectionPool.getConnection(ConnectionPool.java:188) at org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:128) at org.eclipse.persistence.sessions.JNDIConnector.connect(JNDIConnector.java:123) ... 12 more Caused by: java.lang.IllegalArgumentException: Failed to locate database cluster configuration file: ha-jdbc-null.xml at net.sf.hajdbc.xml.XMLDatabaseClusterConfigurationFactory.findResource(XMLDatabaseClusterConfigurationFactory.java:105) at net.sf.hajdbc.xml.XMLDatabaseClusterConfigurationFactory.findResource(XMLDatabaseClusterConfigurationFactory.java:88) at net.sf.hajdbc.xml.XMLDatabaseClusterConfigurationFactory.<init>(XMLDatabaseClusterConfigurationFactory.java:115) at net.sf.hajdbc.xml.XMLDatabaseClusterConfigurationFactory.<init>(XMLDatabaseClusterConfigurationFactory.java:110) at net.sf.hajdbc.sql.CommonDataSource.create(CommonDataSource.java:76) at net.sf.hajdbc.sql.CommonDataSource.create(CommonDataSource.java:44) at net.sf.hajdbc.util.concurrent.LifecycleRegistry.get(LifecycleRegistry.java:62) at net.sf.hajdbc.util.concurrent.LifecycleRegistry.get(LifecycleRegistry.java:33) at net.sf.hajdbc.sql.CommonDataSource.getProxy(CommonDataSource.java:83) at net.sf.hajdbc.sql.DataSource.getConnection(DataSource.java:54) at org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDataSource(PooledConnection.java:224) at org.apache.tomcat.jdbc.pool.PooledConnection.connect(PooledConnection.java:180) at org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection(ConnectionPool.java:701) ... 17 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.