Error on upgrade to flowable-spring-boot-starter-process-rest 6.7.0

Trying to upgrade Flowable (flowable-spring-boot-starter-process-rest) to the version 6.7.0 I’m receving the error:

ERROR 28552 — [ restartedMain] liquibase.license.LicenseServiceFactory : Unable to instantiate LicenseService

The only change that applied to the application has been to update the version of Flowable from the version 6.6.0 to the version 6.7.0 (the error is generated even if I start the application pointing to an empty database).

Is this a bug or the migration from the version 6.6.0 to the version 6.7.0 needs additional changes to the application?

Is the error only in the log or is the application not booting up at all?

Can you please share the entire log from the bootup?

We did some changes in 6.7 in order to support the latest Liquibase versions, and we disable the LicenseService from Liquibase in our code. So would be good to see the entire log so we can help you out.

Cheers,
Filip

Hi Filip,

thanks for the support, the application is booting up and seems that it is working fine. The log of the boot up is quite long (the error will be thrown multiple times, taking around 10000 rows in the log). I cannot attach it here, nor I can paste the complete log… following you can find an extract of it:

[INFO] Scanning for projects…
[INFO]
[INFO] -----------------------< mic3.affectli:flowable >-----------------------
[INFO] Building flowable 1.0.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] >>> spring-boot-maven-plugin:2.3.12.RELEASE:run (default-cli) > test-compile @ flowable >>>
[INFO]
[INFO] — maven-resources-plugin:3.1.0:resources (default-resources) @ flowable —
[INFO] Using ‘UTF-8’ encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 2 resources
[INFO]
[INFO] — maven-compiler-plugin:3.8.1:compile (default-compile) @ flowable —
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] — maven-resources-plugin:3.1.0:testResources (default-testResources) @ flowable —
[INFO] Using ‘UTF-8’ encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO]
[INFO] — maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ flowable —
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] <<< spring-boot-maven-plugin:2.3.12.RELEASE:run (default-cli) < test-compile @ flowable <<<
[INFO]
[INFO]
[INFO] — spring-boot-maven-plugin:2.3.12.RELEASE:run (default-cli) @ flowable —
[INFO] Attaching agents: []
2021-09-09 11:19:37.362 INFO 2836 — [ restartedMain] m.affectli.flowable.FlowableApplication : Starting FlowableApplication on z51 with PID 2836 (/home/luca/projects/mi-c3/v1/flowable-v1/target/classes started by luca in /home/luca/projects/mi-c3/v1/flowable-v1)
2021-09-09 11:19:37.365 DEBUG 2836 — [ restartedMain] m.affectli.flowable.FlowableApplication : Running with Spring Boot v2.3.12.RELEASE, Spring v5.2.15.RELEASE
2021-09-09 11:19:37.366 INFO 2836 — [ restartedMain] m.affectli.flowable.FlowableApplication : No active profile set, falling back to default profiles: default
2021-09-09 11:19:37.420 INFO 2836 — [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : Devtools property defaults active! Set ‘spring.devtools.add-properties’ to ‘false’ to disable
2021-09-09 11:19:37.420 INFO 2836 — [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : For additional web related logging consider setting the ‘logging.level.web’ property to ‘DEBUG’
2021-09-09 11:19:38.560 INFO 2836 — [ restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 2020 (http)
2021-09-09 11:19:38.569 INFO 2836 — [ restartedMain] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2021-09-09 11:19:38.569 INFO 2836 — [ restartedMain] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.46]
2021-09-09 11:19:38.630 INFO 2836 — [ restartedMain] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2021-09-09 11:19:38.630 INFO 2836 — [ restartedMain] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 1209 ms
2021-09-09 11:19:38.686 INFO 2836 — [ restartedMain] m.a.flowable.SpringApplicationContext : Application context org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@3168d46f, started on Thu Sep 09 11:19:37 CEST 2021
2021-09-09 11:19:38.971 INFO 2836 — [ restartedMain] o.f.s.b.e.EventRegistryAutoConfiguration : No deployment resources were found for autodeployment
2021-09-09 11:19:39.025 INFO 2836 — [ restartedMain] o.f.s.b.ProcessEngineAutoConfiguration : No deployment resources were found for autodeployment
2021-09-09 11:19:39.055 INFO 2836 — [ restartedMain] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService ‘applicationTaskExecutor’
2021-09-09 11:19:39.146 INFO 2836 — [ restartedMain] o.f.s.SpringProcessEngineConfiguration : Found 2 Engine Configurators in total:
2021-09-09 11:19:39.146 INFO 2836 — [ restartedMain] o.f.s.SpringProcessEngineConfiguration : class org.flowable.eventregistry.spring.configurator.SpringEventRegistryConfigurator (priority:100000)
2021-09-09 11:19:39.147 INFO 2836 — [ restartedMain] o.f.s.SpringProcessEngineConfiguration : class org.flowable.idm.engine.configurator.IdmEngineConfigurator (priority:150000)
2021-09-09 11:19:39.147 INFO 2836 — [ restartedMain] o.f.s.SpringProcessEngineConfiguration : Executing beforeInit() of class org.flowable.eventregistry.spring.configurator.SpringEventRegistryConfigurator (priority:100000)
2021-09-09 11:19:39.239 INFO 2836 — [ restartedMain] o.f.s.SpringProcessEngineConfiguration : Executing beforeInit() of class org.flowable.idm.engine.configurator.IdmEngineConfigurator (priority:150000)
2021-09-09 11:19:39.310 INFO 2836 — [ restartedMain] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting…
2021-09-09 11:19:39.437 INFO 2836 — [ restartedMain] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
2021-09-09 11:19:40.390 INFO 2836 — [ restartedMain] o.f.s.SpringProcessEngineConfiguration : Executing configure() of class org.flowable.eventregistry.spring.configurator.SpringEventRegistryConfigurator (priority:100000)
2021-09-09 11:19:40.994 ERROR 2836 — [ restartedMain] liquibase.license.LicenseServiceFactory : Unable to instantiate LicenseService

java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlElement
at liquibase.pro.packaged.ki.(Unknown Source) ~[liquibase-core-3.8.9.jar:na]
at liquibase.pro.packaged.ki.(Unknown Source) ~[liquibase-core-3.8.9.jar:na]
at liquibase.pro.packaged.kj.setupModule(Unknown Source) ~[liquibase-core-3.8.9.jar:na]
at liquibase.pro.packaged.bW.registerModule(Unknown Source) ~[liquibase-core-3.8.9.jar:na]
at liquibase.pro.packaged.lQ.d_(Unknown Source) ~[liquibase-core-3.8.9.jar:na]
at liquibase.pro.packaged.ku.a(Unknown Source) ~[liquibase-core-3.8.9.jar:na]
at liquibase.pro.packaged.ku.a(Unknown Source) ~[liquibase-core-3.8.9.jar:na]
at liquibase.pro.packaged.kv.a(Unknown Source) ~[liquibase-core-3.8.9.jar:na]
at liquibase.pro.packaged.kv$a.a(Unknown Source) ~[liquibase-core-3.8.9.jar:na]
at liquibase.pro.packaged.kv$a$1.f(Unknown Source) ~[liquibase-core-3.8.9.jar:na]
at liquibase.pro.packaged.ks.a(Unknown Source) ~[liquibase-core-3.8.9.jar:na]
at liquibase.pro.packaged.kr.a(Unknown Source) ~[liquibase-core-3.8.9.jar:na]
at liquibase.pro.packaged.kp.a(Unknown Source) ~[liquibase-core-3.8.9.jar:na]
at liquibase.pro.packaged.kp.(Unknown Source) ~[liquibase-core-3.8.9.jar:na]
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:na]
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[na:na]
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:na]
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490) ~[na:na]
at java.base/java.lang.Class.newInstance(Class.java:584) ~[na:na]
at liquibase.license.LicenseServiceFactory.getLicenseService(LicenseServiceFactory.java:33) ~[liquibase-core-3.8.9.jar:na]
at liquibase.license.LicenseServiceUtils.checkForValidLicense(LicenseServiceUtils.java:46) ~[liquibase-core-3.8.9.jar:na]
at com.datical.liquibase.ext.storedlogic.AbstractStoredDatabaseLogicSnapshotGenerator.getPriority(Unknown Source) ~[liquibase-core-3.8.9.jar:na]
at com.datical.liquibase.ext.storedlogic.function.FunctionSnapshotGenerator.getPriority(Unknown Source) ~[liquibase-core-3.8.9.jar:na]
at liquibase.snapshot.SnapshotGeneratorFactory.getGenerators(SnapshotGeneratorFactory.java:86) ~[liquibase-core-3.8.9.jar:na]
at liquibase.snapshot.SnapshotGeneratorFactory.getContainerTypes(SnapshotGeneratorFactory.java:308) ~[liquibase-core-3.8.9.jar:na]
at liquibase.snapshot.SnapshotGeneratorFactory.getContainerTypes(SnapshotGeneratorFactory.java:292) ~[liquibase-core-3.8.9.jar:na]
at liquibase.snapshot.SnapshotGeneratorFactory.has(SnapshotGeneratorFactory.java:103) ~[liquibase-core-3.8.9.jar:na]
at liquibase.snapshot.SnapshotGeneratorFactory.hasDatabaseChangeLogLockTable(SnapshotGeneratorFactory.java:281) ~[liquibase-core-3.8.9.jar:na]
at liquibase.lockservice.StandardLockService.hasDatabaseChangeLogLockTable(StandardLockService.java:198) ~[liquibase-core-3.8.9.jar:na]
at liquibase.lockservice.StandardLockService.init(StandardLockService.java:99) ~[liquibase-core-3.8.9.jar:na]
at liquibase.lockservice.StandardLockService.acquireLock(StandardLockService.java:252) ~[liquibase-core-3.8.9.jar:na]
at liquibase.lockservice.StandardLockService.waitForLock(StandardLockService.java:213) ~[liquibase-core-3.8.9.jar:na]
at liquibase.Liquibase.update(Liquibase.java:184) ~[liquibase-core-3.8.9.jar:na]
at liquibase.Liquibase.update(Liquibase.java:179) ~[liquibase-core-3.8.9.jar:na]
at liquibase.Liquibase.update(Liquibase.java:175) ~[liquibase-core-3.8.9.jar:na]
at liquibase.Liquibase.update(Liquibase.java:168) ~[liquibase-core-3.8.9.jar:na]
at org.flowable.common.engine.impl.db.LiquibaseBasedSchemaManager.schemaUpdate(LiquibaseBasedSchemaManager.java:127) ~[flowable-engine-common-6.7.0.jar:6.7.0]
at org.flowable.eventregistry.impl.db.EventDbSchemaManager.schemaUpdate(EventDbSchemaManager.java:63) ~[flowable-event-registry-6.7.0.jar:6.7.0]
at liquibase.Scope.child(Scope.java:101) ~[liquibase-core-3.8.9.jar:na]
at liquibase.Scope.child(Scope.java:82) ~[liquibase-core-3.8.9.jar:na]
at org.flowable.common.engine.impl.db.LiquibaseBasedSchemaManager.runForLiquibase(LiquibaseBasedSchemaManager.java:93) ~[flowable-engine-common-6.7.0.jar:6.7.0]
at org.flowable.common.engine.impl.db.LiquibaseBasedSchemaManager.initSchema(LiquibaseBasedSchemaManager.java:81) ~[flowable-engine-common-6.7.0.jar:6.7.0]
at org.flowable.eventregistry.impl.db.EventDbSchemaManager.initSchema(EventDbSchemaManager.java:36) ~[flowable-event-registry-6.7.0.jar:6.7.0]
at org.flowable.eventregistry.impl.cmd.SchemaOperationsEventRegistryEngineBuild.execute(SchemaOperationsEventRegistryEngineBuild.java:29) ~[flowable-event-registry-6.7.0.jar:6.7.0]
at org.flowable.eventregistry.impl.cmd.SchemaOperationsEventRegistryEngineBuild.execute(SchemaOperationsEventRegistryEngineBuild.java:24) ~[flowable-event-registry-6.7.0.jar:6.7.0]
at org.flowable.common.engine.impl.interceptor.DefaultCommandInvoker.execute(DefaultCommandInvoker.java:22) ~[flowable-engine-common-6.7.0.jar:6.7.0]
at org.flowable.common.engine.impl.interceptor.TransactionContextInterceptor.execute(TransactionContextInterceptor.java:53) ~[flowable-engine-common-6.7.0.jar:6.7.0]
at org.flowable.common.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:98) ~[flowable-engine-common-6.7.0.jar:6.7.0]
at org.flowable.common.spring.SpringTransactionInterceptor.lambda$execute$0(SpringTransactionInterceptor.java:57) ~[flowable-spring-common-6.7.0.jar:6.7.0]
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140) ~[spring-tx-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.flowable.common.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:57) ~[flowable-spring-common-6.7.0.jar:6.7.0]
at org.flowable.common.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:30) ~[flowable-engine-common-6.7.0.jar:6.7.0]
at org.flowable.common.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:56) ~[flowable-engine-common-6.7.0.jar:6.7.0]
at org.flowable.eventregistry.impl.EventRegistryEngineImpl.(EventRegistryEngineImpl.java:47) ~[flowable-event-registry-6.7.0.jar:6.7.0]
at org.flowable.eventregistry.impl.EventRegistryEngineConfiguration.buildEventRegistryEngine(EventRegistryEngineConfiguration.java:195) ~[flowable-event-registry-6.7.0.jar:6.7.0]
at org.flowable.eventregistry.spring.SpringEventRegistryEngineConfiguration.buildEventRegistryEngine(SpringEventRegistryEngineConfiguration.java:73) ~[flowable-event-registry-spring-6.7.0.jar:6.7.0]
at org.flowable.eventregistry.spring.configurator.SpringEventRegistryConfigurator.initEventRegistryEngine(SpringEventRegistryConfigurator.java:57) ~[flowable-event-registry-spring-configurator-6.7.0.jar:6.7.0]
at org.flowable.eventregistry.spring.configurator.SpringEventRegistryConfigurator.configure(SpringEventRegistryConfigurator.java:47) ~[flowable-event-registry-spring-configurator-6.7.0.jar:6.7.0]
at org.flowable.common.engine.impl.AbstractEngineConfiguration.configuratorsAfterInit(AbstractEngineConfiguration.java:1107) ~[flowable-engine-common-6.7.0.jar:6.7.0]
at org.flowable.engine.impl.cfg.ProcessEngineConfigurationImpl.init(ProcessEngineConfigurationImpl.java:1012) ~[flowable-engine-6.7.0.jar:6.7.0]
at org.flowable.engine.impl.cfg.ProcessEngineConfigurationImpl.buildProcessEngine(ProcessEngineConfigurationImpl.java:900) ~[flowable-engine-6.7.0.jar:6.7.0]
at org.flowable.spring.SpringProcessEngineConfiguration.buildProcessEngine(SpringProcessEngineConfiguration.java:76) ~[flowable-spring-6.7.0.jar:6.7.0]
at org.flowable.spring.ProcessEngineFactoryBean.getObject(ProcessEngineFactoryBean.java:59) ~[flowable-spring-6.7.0.jar:6.7.0]
at org.flowable.spring.ProcessEngineFactoryBean.getObject(ProcessEngineFactoryBean.java:32) ~[flowable-spring-6.7.0.jar:6.7.0]
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:169) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:101) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1828) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getObjectForBeanInstance(AbstractAutowireCapableBeanFactory.java:1270) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:334) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1307) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1227) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:886) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:790) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:540) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1341) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1181) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:556) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1307) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1227) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:657) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:640) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1425) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:593) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:897) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:879) ~[spring-context-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:551) ~[spring-context-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143) ~[spring-boot-2.3.12.RELEASE.jar:2.3.12.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:755) ~[spring-boot-2.3.12.RELEASE.jar:2.3.12.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747) ~[spring-boot-2.3.12.RELEASE.jar:2.3.12.RELEASE]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:402) ~[spring-boot-2.3.12.RELEASE.jar:2.3.12.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:312) ~[spring-boot-2.3.12.RELEASE.jar:2.3.12.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1247) ~[spring-boot-2.3.12.RELEASE.jar:2.3.12.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1236) ~[spring-boot-2.3.12.RELEASE.jar:2.3.12.RELEASE]
at mic3.affectli.flowable.FlowableApplication.main(FlowableApplication.java:45) ~[classes/:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:na]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
at java.base/java.lang.reflect.Method.invoke(Method.java:566) ~[na:na]
at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) ~[spring-boot-devtools-2.3.12.RELEASE.jar:2.3.12.RELEASE]
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlElement
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) ~[na:na]
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) ~[na:na]
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) ~[na:na]
… 114 common frames omitted

2021-09-09 11:19:40.997 ERROR 2836 — [ restartedMain] liquibase.license.LicenseServiceFactory : Unable to instantiate LicenseService

java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlElement
at liquibase.pro.packaged.ki.(Unknown Source) ~[liquibase-core-3.8.9.jar:na]


2021-09-09 11:19:43.248 INFO 2836 — [ restartedMain] liquibase.executor.jvm.JdbcExecutor : SELECT COUNT(*) FROM flowable.flw_ev_databasechangelog
2021-09-09 11:19:43.248 INFO 2836 — [ restartedMain] l.c.StandardChangeLogHistoryService : Reading from flowable.flw_ev_databasechangelog
2021-09-09 11:19:43.249 INFO 2836 — [ restartedMain] liquibase.executor.jvm.JdbcExecutor : SELECT * FROM flowable.flw_ev_databasechangelog ORDER BY DATEEXECUTED ASC, ORDEREXECUTED ASC
2021-09-09 11:19:43.278 INFO 2836 — [ restartedMain] l.lockservice.StandardLockService : Successfully released change log lock
2021-09-09 11:19:43.279 INFO 2836 — [ restartedMain] o.f.e.impl.EventRegistryEngineImpl : EventRegistryEngine default created
2021-09-09 11:19:43.279 INFO 2836 — [ restartedMain] o.f.s.SpringProcessEngineConfiguration : Executing configure() of class org.flowable.idm.engine.configurator.IdmEngineConfigurator (priority:150000)
2021-09-09 11:19:43.295 INFO 2836 — [ restartedMain] o.f.idm.engine.impl.IdmEngineImpl : IdmEngine default created
2021-09-09 11:19:43.342 INFO 2836 — [ restartedMain] o.f.engine.impl.ProcessEngineImpl : ProcessEngine default created
2021-09-09 11:19:43.363 INFO 2836 — [ restartedMain] o.f.e.impl.cmd.ValidateV5EntitiesCmd : Total of v5 deployments found: 0
2021-09-09 11:19:43.669 INFO 2836 — [ restartedMain] o.s.b.d.a.OptionalLiveReloadServer : LiveReload server is running on port 35729
2021-09-09 11:19:43.714 INFO 2836 — [ restartedMain] o.f.j.s.i.a.AbstractAsyncExecutor : Starting up the async job executor [org.flowable.spring.job.service.SpringAsyncExecutor].
2021-09-09 11:19:43.725 INFO 2836 — [ Thread-9] o.f.j.s.i.a.ResetExpiredJobsRunnable : starting to reset expired jobs for engine bpmn
2021-09-09 11:19:43.725 INFO 2836 — [ Thread-7] o.f.j.s.i.a.AcquireAsyncJobsDueRunnable : starting to acquire async jobs due
2021-09-09 11:19:43.725 INFO 2836 — [ Thread-8] o.f.j.s.i.a.AcquireTimerJobsRunnable : starting to acquire async jobs due
2021-09-09 11:19:43.788 INFO 2836 — [ restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 2020 (http) with context path ‘’
2021-09-09 11:19:43.802 INFO 2836 — [ restartedMain] m.affectli.flowable.FlowableApplication : Started FlowableApplication in 6.906 seconds (JVM running for 7.453)
2021-09-09 11:19:43.814 INFO 2836 — [ restartedMain] m.affectli.flowable.FlowableApplication : Number of process definitions : 0
2021-09-09 11:19:43.830 INFO 2836 — [ restartedMain] m.affectli.flowable.FlowableApplication : Number of processes : 0
2021-09-09 11:19:43.846 INFO 2836 — [ restartedMain] m.affectli.flowable.FlowableApplication : Number of tasks : 0
2021-09-09 11:20:50.285 INFO 2836 — [nio-2020-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet ‘Flowable BPMN Rest API’
2021-09-09 11:20:50.285 INFO 2836 — [nio-2020-exec-1] o.s.web.servlet.DispatcherServlet : Initializing Servlet ‘Flowable BPMN Rest API’
2021-09-09 11:20:50.796 INFO 2836 — [nio-2020-exec-1] o.s.web.servlet.DispatcherServlet : Completed initialization in 511 ms

Cheers,
Luca

I’m using the AdoptOpenJDK 11.0.11. Adding in the pom.xml the following dependency is fixing the error:

javax.xml.bind jaxb-api 2.3.1

Is this the proper solution?

No it is not.

I saw that Liquibase 3.8.9 is used. However, we updated the dependency for Flowable. We are using 4.3.5. Spring Boot has upgraded this to 4.3.5 in the 2.5.x line as well. Can you upgrade Spring Boot or change the liquibase version to 4.3.5.

Cheers,
Filip

1 Like

Hi Filip,
I upgraded to Spring 2.5.4 and now the application works fine without the jaxb-api dependency.

Thank you very much for the support.

Have a nice day!
Luca