Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.ClassNotFoundException: org.h2.Driver #47

Closed
flashboss opened this issue Apr 15, 2022 · 0 comments
Closed

java.lang.ClassNotFoundException: org.h2.Driver #47

flashboss opened this issue Apr 15, 2022 · 0 comments

Comments

@flashboss
Copy link
Collaborator

Starting the activiti-admin through the command:

mvn clean install docker:build docker:start -Pactiviti-admin

I get this error:

aps-admin> 08:47:48 [main] WARN org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liquibase' defined in class path resource [com/activiti/conf/DatabaseConfiguration.class]: Invocation of init method failed; nested exception is liquibase.exception.DatabaseException: java.sql.SQLException: Connections could not be acquired from the underlying database!
aps-admin> 08:47:48 [main] ERROR org.springframework.boot.SpringApplication - Application run failed
aps-admin> org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liquibase' defined in class path resource [com/activiti/conf/DatabaseConfiguration.class]: Invocation of init method failed; nested exception is liquibase.exception.DatabaseException: java.sql.SQLException: Connections could not be acquired from the underlying database!
aps-admin> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1804)
aps-admin> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620)
aps-admin> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
aps-admin> at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
aps-admin> at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
aps-admin> at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
aps-admin> at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
aps-admin> at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322)
aps-admin> at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
aps-admin> at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1154)
aps-admin> at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:908)
aps-admin> at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
aps-admin> at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145)
aps-admin> at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754)
aps-admin> at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:434)
aps-admin> at org.springframework.boot.SpringApplication.run(SpringApplication.java:338)
aps-admin> at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:175)
aps-admin> at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:155)
aps-admin> at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:97)
aps-admin> at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:174)
aps-admin> at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5219)
aps-admin> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
aps-admin> at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:726)
aps-admin> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:698)
aps-admin> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:696)
aps-admin> at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1185)
aps-admin> at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1933)
aps-admin> at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
aps-admin> at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
aps-admin> at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
aps-admin> at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118)
aps-admin> at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1095)
aps-admin> at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:477)
aps-admin> at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1618)
aps-admin> at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:319)
aps-admin> at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
aps-admin> at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)
aps-admin> at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)
aps-admin> at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:946)
aps-admin> at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:835)
aps-admin> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
aps-admin> at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396)
aps-admin> at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386)
aps-admin> at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
aps-admin> at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
aps-admin> at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
aps-admin> at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919)
aps-admin> at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:263)
aps-admin> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
aps-admin> at org.apache.catalina.core.StandardService.startInternal(StandardService.java:432)
aps-admin> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
aps-admin> at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:927)
aps-admin> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
aps-admin> at org.apache.catalina.startup.Catalina.start(Catalina.java:772)
aps-admin> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
aps-admin> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
aps-admin> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
aps-admin> at java.base/java.lang.reflect.Method.invoke(Method.java:566)
aps-admin> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:345)
aps-admin> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:476)
aps-admin> Caused by: liquibase.exception.DatabaseException: java.sql.SQLException: Connections could not be acquired from the underlying database!
aps-admin> at liquibase.integration.spring.SpringLiquibase.afterPropertiesSet(SpringLiquibase.java:271)
aps-admin> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1863)
aps-admin> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1800)
aps-admin> ... 59 common frames omitted
aps-admin> Caused by: java.sql.SQLException: Connections could not be acquired from the underlying database!
aps-admin> at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:118)
aps-admin> at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:692)
aps-admin> at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:140)
aps-admin> at liquibase.integration.spring.SpringLiquibase.afterPropertiesSet(SpringLiquibase.java:266)
aps-admin> ... 61 common frames omitted
aps-admin> Caused by: com.mchange.v2.resourcepool.CannotAcquireResourceException: A ResourcePool could not acquire a resource from its primary factory or source.
aps-admin> at com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1507)
aps-admin> at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:644)
aps-admin> at com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:554)
aps-admin> at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutAndMarkConnectionInUse(C3P0PooledConnectionPool.java:758)
aps-admin> at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:685)
aps-admin> ... 63 common frames omitted
aps-admin> Caused by: java.sql.SQLException: No suitable driver
aps-admin> at java.sql/java.sql.DriverManager.getDriver(DriverManager.java:298)
aps-admin> at com.mchange.v2.c3p0.DriverManagerDataSource.driver(DriverManagerDataSource.java:285)
aps-admin> at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:175)
aps-admin> at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:220)
aps-admin> at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:206)
aps-admin> at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:203)
aps-admin> at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1176)
aps-admin> at com.mchange.v2.resourcepool.BasicResourcePool.doAcquireAndDecrementPendingAcquiresWithinLockOnSuccess(BasicResourcePool.java:1163)
aps-admin> at com.mchange.v2.resourcepool.BasicResourcePool.access$700(BasicResourcePool.java:44)
aps-admin> at com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask.run(BasicResourcePool.java:1908)
aps-admin> at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:696)
aps-admin> 15-Apr-2022 08:47:48.919 SEVERE [main] org.apache.catalina.startup.HostConfig.deployDirectory Error deploying web application directory [/usr/local/tomcat/webapps/activiti-admin]
aps-admin> java.lang.IllegalStateException: Error starting child
aps-admin> at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:729)
aps-admin> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:698)
aps-admin> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:696)
aps-admin> at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1185)
aps-admin> at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1933)
aps-admin> at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
aps-admin> at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
aps-admin> at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
aps-admin> at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118)
aps-admin> at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1095)
aps-admin> at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:477)
aps-admin> at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1618)
aps-admin> at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:319)
aps-admin> at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
aps-admin> at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)
aps-admin> at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)
aps-admin> at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:946)
aps-admin> at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:835)
aps-admin> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
aps-admin> at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396)
aps-admin> at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386)
aps-admin> at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
aps-admin> at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
aps-admin> at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
aps-admin> at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919)
aps-admin> at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:263)
aps-admin> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
aps-admin> at org.apache.catalina.core.StandardService.startInternal(StandardService.java:432)
aps-admin> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
aps-admin> at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:927)
aps-admin> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
aps-admin> at org.apache.catalina.startup.Catalina.start(Catalina.java:772)
aps-admin> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
aps-admin> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
aps-admin> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
aps-admin> at java.base/java.lang.reflect.Method.invoke(Method.java:566)
aps-admin> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:345)
aps-admin> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:476)
aps-admin> Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/activiti-admin]]
aps-admin> at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440)
aps-admin> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)
aps-admin> at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:726)
aps-admin> ... 37 more
aps-admin> Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liquibase' defined in class path resource [com/activiti/conf/DatabaseConfiguration.class]: Invocation of init method failed; nested exception is liquibase.exception.DatabaseException: java.sql.SQLException: Connections could not be acquired from the underlying database!
aps-admin> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1804)
aps-admin> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620)
aps-admin> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
aps-admin> at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
aps-admin> at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
aps-admin> at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
aps-admin> at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
aps-admin> at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322)
aps-admin> at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
aps-admin> at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1154)
aps-admin> at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:908)
aps-admin> at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
aps-admin> at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145)
aps-admin> at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754)
aps-admin> at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:434)
aps-admin> at org.springframework.boot.SpringApplication.run(SpringApplication.java:338)
aps-admin> at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:175)
aps-admin> at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:155)
aps-admin> at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:97)
aps-admin> at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:174)
aps-admin> at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5219)
aps-admin> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
aps-admin> ... 38 more
aps-admin> Caused by: liquibase.exception.DatabaseException: java.sql.SQLException: Connections could not be acquired from the underlying database!
aps-admin> at liquibase.integration.spring.SpringLiquibase.afterPropertiesSet(SpringLiquibase.java:271)
aps-admin> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1863)
aps-admin> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1800)
aps-admin> ... 59 more
aps-admin> Caused by: java.sql.SQLException: Connections could not be acquired from the underlying database!
aps-admin> at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:118)
aps-admin> at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:692)
aps-admin> at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:140)
aps-admin> at liquibase.integration.spring.SpringLiquibase.afterPropertiesSet(SpringLiquibase.java:266)
aps-admin> ... 61 more
aps-admin> Caused by: com.mchange.v2.resourcepool.CannotAcquireResourceException: A ResourcePool could not acquire a resource from its primary factory or source.
aps-admin> at com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1507)
aps-admin> at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:644)
aps-admin> at com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:554)
aps-admin> at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutAndMarkConnectionInUse(C3P0PooledConnectionPool.java:758)
aps-admin> at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:685)
aps-admin> ... 63 more
aps-admin> Caused by: java.sql.SQLException: No suitable driver
aps-admin> at java.sql/java.sql.DriverManager.getDriver(DriverManager.java:298)
aps-admin> at com.mchange.v2.c3p0.DriverManagerDataSource.driver(DriverManagerDataSource.java:285)
aps-admin> at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:175)
aps-admin> at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:220)
aps-admin> at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:206)
aps-admin> at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:203)
aps-admin> at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1176)
aps-admin> at com.mchange.v2.resourcepool.BasicResourcePool.doAcquireAndDecrementPendingAcquiresWithinLockOnSuccess(BasicResourcePool.java:1163)
aps-admin> at com.mchange.v2.resourcepool.BasicResourcePool.access$700(BasicResourcePool.java:44)
aps-admin> at com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask.run(BasicResourcePool.java:1908)
aps-admin> at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:696)

@flashboss flashboss reopened this Apr 15, 2022
flashboss added a commit that referenced this issue Apr 15, 2022
fix for h2 jdbc driver using non arm64 processors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant