I am trying to deploy my FlowUI composite project in a Tomcat 9 server followed all the instructions from the user guide but it’s unable to find the suitable driver:
2023-01-30 05:40:14.146 INFO 7600 --- [ main] com.myapp.main.myappApplication : Starting MyappApplication using Java 11.0.10 on HRIS-TEST with PID 7600 (C:\Program Files\Apache Software Foundation\Tomcat 9.0\webapps\myapp\WEB-INF\classes started by LOCAL SERVICE in C:\Program Files\Apache Software Foundation\Tomcat 9.0)
2023-01-30 05:40:14.162 INFO 7600 --- [ main] com.myapp.main.myappApplication : No active profile set, falling back to 1 default profile: "default"
2023-01-30 05:40:18.787 INFO 7600 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Jmix repositories in DEFAULT mode.
2023-01-30 05:40:18.834 INFO 7600 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 36 ms. Found 0 Jmix repository interfaces.
2023-01-30 05:40:19.365 INFO 7600 --- [ main] io.jmix.core.JmixModulesProcessor : Using Jmix modules: [io.jmix.core, io.jmix.security, io.jmix.flowui, io.jmix.securityflowui, io.jmix.data, io.jmix.eclipselink, com.myapp.md, com.myapp.act, com.myapp.ops, com.myapp.ap, com.myapp.ar, com.myapp.ca, com.myapp.crm, com.myapp.gms, com.myapp.hr, com.myapp.red, com.myapp.sf, io.jmix.datatools, io.jmix.datatoolsflowui, io.jmix.flowuidata, io.jmix.localfs, io.jmix.securitydata, com.myapp.main]
2023-01-30 05:40:20.959 INFO 7600 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 6297 ms
2023-01-30 05:40:22.224 INFO 7600 --- [ main] i.j.c.i.s.JmixModulesClasspathScanner : Classpath scan completed in 828 ms
2023-01-30 05:40:25.037 INFO 7600 --- [ main] io.jmix.core.impl.MetadataLoader : Metadata initialized in 2500 ms
2023-01-30 05:40:25.506 WARN 7600 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'io.jmix.security.SecurityConfiguration': Unsatisfied dependency expressed through field 'rememberMeTokenRepository'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'io.jmix.securitydata.SecurityDataConfiguration': Unsatisfied dependency expressed through field 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method 'dataSource' threw exception; nested exception is org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Failed to determine a suitable driver class
2023-01-30 05:40:25.521 INFO 7600 --- [ main] ConditionEvaluationReportLoggingListener :
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2023-01-30 05:40:25.584 ERROR 7600 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
Reason: Failed to determine a suitable driver class
Action:
Consider the following:
If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).
I
Additional info:
Jamix latest version (1.4.3)
SQL server as database
JDK11
I have put “mssql-jdbc-11.2.3.jre11” to the tomcat lib folder as the application didn’t run after deployment, I have tried it with the same JDBC driver version (10.2.2.jre8) which is used in the studio but having the same error.