Deployable war to tomcat

Hi,

I’m tryng to deploy to Tomcat, an app created from scratch, with a connection to a postgresql database
I applyed war plugin in build.gradle
apply plugin: 'war'
The created war file, i uploaded to webapps folder.
The error i got when i start tomcat is:

ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jmix_Liquibase' defined in class path resource [io/jmix/autoconfigure/data/JmixLiquibaseAutoConfiguration.class]: Invocation of init method failed; nested exception is java.lang.RuntimeException: Failed to get driver instance for jdbcUrl=jdbc:postgresql://localhost/test

Can you guide me please to solve it.

Thanks,
Sorin

Hi,
Try to specify driver-class property like adviced here:

It helped me.

Note that prefix of the property should be different.
main.datasource.driver-class-name for main data store, or XXX.datasource.driver-class-name for additional data store.

1 Like

Thanks, Alexander the link provided helped me.