bitronix.tm.resource.ResourceConfigurationException: cannot create JDBC datasource named DEFAULT_transactional_DS

GitHub | jenshp | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    H2 database does not start when using a non-embedded runtime directory in tomcat

    GitHub | 6 months ago | jenshp
    bitronix.tm.resource.ResourceConfigurationException: cannot create JDBC datasource named DEFAULT_transactional_DS

    Root Cause Analysis

    1. org.h2.jdbc.JdbcSQLException

      Error while creating file "/db" [90062-192]

      at org.h2.message.DbException.getJdbcSQLException()
    2. H2 Database Engine
      JdbcDataSource.getXAConnection
      1. org.h2.message.DbException.getJdbcSQLException(DbException.java:345)
      2. org.h2.message.DbException.get(DbException.java:179)
      3. org.h2.message.DbException.get(DbException.java:155)
      4. org.h2.store.fs.FilePathDisk.createDirectory(FilePathDisk.java:274)
      5. org.h2.store.fs.FileUtils.createDirectory(FileUtils.java:42)
      6. org.h2.store.fs.FileUtils.createDirectories(FileUtils.java:309)
      7. org.h2.store.fs.FileUtils.createDirectories(FileUtils.java:308)
      8. org.h2.mvstore.db.MVTableEngine.init(MVTableEngine.java:73)
      9. org.h2.engine.Database.getPageStore(Database.java:2463)
      10. org.h2.engine.Database.open(Database.java:692)
      11. org.h2.engine.Database.openDatabase(Database.java:270)
      12. org.h2.engine.Database.<init>(Database.java:264)
      13. org.h2.engine.Engine.openSession(Engine.java:64)
      14. org.h2.engine.Engine.openSession(Engine.java:176)
      15. org.h2.engine.Engine.createSessionAndValidate(Engine.java:154)
      16. org.h2.engine.Engine.createSession(Engine.java:137)
      17. org.h2.engine.Engine.createSession(Engine.java:27)
      18. org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:349)
      19. org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:118)
      20. org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:102)
      21. org.h2.Driver.connect(Driver.java:72)
      22. org.h2.jdbcx.JdbcDataSource.getJdbcConnection(JdbcDataSource.java:190)
      23. org.h2.jdbcx.JdbcDataSource.getXAConnection(JdbcDataSource.java:353)
      23 frames
    3. Bitronix Transaction Manager :: Core
      PoolingDataSource.init
      1. bitronix.tm.resource.jdbc.PoolingDataSource.createPooledConnection(PoolingDataSource.java:422)
      2. bitronix.tm.resource.jdbc.PoolingDataSource.createPooledConnection(PoolingDataSource.java:52)
      3. bitronix.tm.resource.common.XAPool.createPooledObject(XAPool.java:472)
      4. bitronix.tm.resource.common.XAPool.growUntilMinPoolSize(XAPool.java:466)
      5. bitronix.tm.resource.common.XAPool.init(XAPool.java:105)
      6. bitronix.tm.resource.common.XAPool.<init>(XAPool.java:98)
      7. bitronix.tm.resource.jdbc.PoolingDataSource.buildXAPool(PoolingDataSource.java:99)
      8. bitronix.tm.resource.jdbc.PoolingDataSource.init(PoolingDataSource.java:86)
      8 frames
    4. org.moqui.impl
      MoquiContextListener.contextInitialized
      1. org.moqui.impl.context.TransactionInternalBitronix.getDataSource(TransactionInternalBitronix.groovy:133)
      2. org.moqui.impl.entity.EntityDatasourceFactoryImpl.init(EntityDatasourceFactoryImpl.groovy:82)
      3. org.moqui.impl.entity.EntityFacadeImpl.initAllDatasources(EntityFacadeImpl.groovy:191)
      4. org.moqui.impl.entity.EntityFacadeImpl.<init>(EntityFacadeImpl.groovy:120)
      5. org.moqui.impl.context.ExecutionContextFactoryImpl.initEntityFacade(ExecutionContextFactoryImpl.groovy:689)
      6. org.moqui.impl.context.ExecutionContextFactoryImpl.<init>(ExecutionContextFactoryImpl.groovy:197)
      7. org.moqui.impl.webapp.MoquiContextListener.contextInitialized(MoquiContextListener.groovy:69)
      7 frames
    5. Glassfish Core
      HostConfig$DeployWar.run
      1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4812)
      2. org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5255)
      3. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
      4. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
      5. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
      6. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
      7. org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:939)
      8. org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1812)
      8 frames
    6. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      5. java.lang.Thread.run(Thread.java:745)
      5 frames