Liquibase ValidationFailedException and Logging Error
05:21 05 Nov 2025

I have two issues with Liquibase.

  1. When deploying my war file I get the error:

     15:31:25.985 [main] WARN org.hibernate.orm.deprecation -- HHH90000012: Recognized obsolete hibernate namespace http://hibernate.sourceforge.net/hibernate-mapping. Use namespace http://www.hibernate.org/dtd/hibernate-mapping instead.  Support for obsolete DTD/XSD namespaces may be removed at any time.
    
     15:31:26.033 [main] WARN org.hibernate.orm.deprecation -- HHH90000028: Support for `` is deprecated [INPUT_STREAM : file:/C:/Users/sam2004/apache-tomcat-11.0.9/webapps/gid/WEB-INF/fusion/orm/Fusion.hbm.xml]; migrate to orm.xml or mapping.xml, or enable `hibernate.transform_hbm_xml.enabled` for on the fly transformation
    
     15:31:26.775 [main] INFO org.springframework.orm.jpa.persistenceunit.SpringPersistenceUnitInfo -- No LoadTimeWeaver setup: ignoring JPA class transformer
     Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.
       15:31:27.979 [main] WARN org.hibernate.orm.deprecation -- HHH90000025: MySQLDialect does not need to be specified explicitly using 'hibernate.dialect' (remove the property setting and it will be selected by default)
    
        15:31:28.061 [main] INFO org.hibernate.orm.connections.pooling -- HHH10001005: Database info:
         Database JDBC URL [Connecting through datasource 'com.mchange.v2.c3p0.ComboPooledDataSource[ identityToken -> 1hge0w7ben5p3fgw3mgjw|51d27046, dataSourceName -> 1hge0w7ben5p3fgw3mgjw|51d27046 ]']
         Database driver: undefined/unknown
         Database version: 9.0.1
         Autocommit mode: undefined/unknown
         Isolation level: undefined/unknown
         Minimum pool size: undefined/unknown
         Maximum pool size: undefined/unknown
    
     15:31:30.482 [main] INFO org.hibernate.validator.internal.util.Version -- HV000001: Hibernate Validator 8.0.1.Final
     15:31:34.311 [main] INFO org.hibernate.engine.transaction.jta.platform.internal.JtaPlatformInitiator -- HHH000489: No JTA platform available (set 'hibernate.transaction.jta.platform' to enable JTA platform integration)
     15:31:35.645 [main] INFO org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean -- Initialized JPA EntityManagerFactory for persistence unit 'default'
     15:31:35.700 [main] INFO com.gtt.fusionapp.conf.ExternalAppConfig -- ExternalAppConfig: db.connectionURL is jdbc:mysql://localhost:3306/gid_portal
     15:31:37.647 [main] INFO org.togglz.core.repository.file.ReloadablePropertiesFile -- Reloaded file: C:\Users\sam2004\apache-tomcat-11.0.9\webapps\gid\WEB-INF\conf\dev.features.properties
     15:31:39.181 [restclient-monitor] INFO io.joshworks.restclient.http.IdleConnectionMonitor -- Starting idle connection monitor
     15:31:39.181 [main] INFO io.joshworks.restclient.http.RestClient -- New rest client created, id: 4941c7cc
     15:31:40.002 [main] ERROR EELFError -- setGlobalLoggingContext failed Cannot invoke "org.w3c.dom.Document.getElementsByTagName(String)" because "someNode" is null
     15:31:40.002 [main] ERROR EELFError -- setGlobalLoggingContext failed Cannot invoke "org.w3c.dom.Document.getElementsByTagName(String)" because "someNode" is null
     15:31:40.018 [main] INFO io.joshworks.restclient.http.RestClient -- New rest client created, id: 97b7332b
     15:31:40.255 [main] ERROR EELFError -- setGlobalLoggingContext failed Cannot invoke "org.w3c.dom.Document.getElementsByTagName(String)" because "someNode" is null
     15:31:40.255 [main] ERROR EELFError -- setGlobalLoggingContext failed Cannot invoke "org.w3c.dom.Document.getElementsByTagName(String)" because "someNode" is null
     15:31:40.273 [main] INFO io.joshworks.restclient.http.RestClient -- New rest client created, id: 099f3798
     05-Nov-2025 15:31:42.602 INFO [main] liquibase.changelog.null Reading from gid_portal.databasechangelog
     05-Nov-2025 15:31:43.666 INFO [main] liquibase.changelog.null Change failed validation!
     05-Nov-2025 15:31:43.666 INFO [main] liquibase.command.null Logging exception.
     05-Nov-2025 15:31:43.666 INFO [main] liquibase.ui.null ERROR: Exception Details
     05-Nov-2025 15:31:43.666 INFO [main] liquibase.ui.null ERROR: Exception Primary Class:  ValidationFailedException
     05-Nov-2025 15:31:43.666 INFO [main] liquibase.ui.null ERROR: Exception Primary Reason:  Validation Failed:
          1 changesets check sum
               db.changelog-master.xml::gid-schema-old::em088y was: 8:04ff9a62f74d62f157e425878b8d97b0 but is now: 8:6202da87704cb897ef16b73572873c4e
    
     05-Nov-2025 15:31:43.666 INFO [main] liquibase.ui.null ERROR: Exception Primary Source:  4.30.0
     05-Nov-2025 15:31:43.666 INFO [main] liquibase.command.null Command execution complete
     15:31:45.198 [main] WARN org.springframework.web.context.support.AnnotationConfigWebApplicationContext -- Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'deleteOldJobsSchedulerInitializer' defined in file [C:\Users\sam2004\apache-tomcat-11.0.9\webapps\gid\WEB-INF\classes\org\onap\gid\job\impl\DeleteOldJobsSchedulerInitializer.class]: Unsatisfied dependency expressed through constructor parameter 1: Error creating bean with name 'liquibaseBean' defined in com.gtt.fusionapp.conf.ExternalAppConfig: liquibase.exception.CommandExecutionException: liquibase.exception.ValidationFailedException: Validation Failed:
      1 changesets check sum
           db.changelog-master.xml::gid-schema-old::em088y was: 8:04ff9a62f74d62f157e425878b8d97b0 but is now: 8:6202da87704cb897ef16b73572873c4e
    
     15:31:45.203 [main] INFO org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean -- Closing JPA EntityManagerFactory for persistence unit 'default'
     15:31:45.206 [main] ERROR org.springframework.web.servlet.DispatcherServlet -- Context initialization failed
     org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'deleteOldJobsSchedulerInitializer' defined in file [C:\Users\sam2004\apache-tomcat-11.0.9\webapps\gid\WEB-INF\classes\org\onap\gid\job\impl\DeleteOldJobsSchedulerInitializer.class]: Unsatisfied dependency expressed through constructor parameter 1: Error creating bean with name 'liquibaseBean' defined in com.gtt.fusionapp.conf.ExternalAppConfig: liquibase.exception.CommandExecutionException: liquibase.exception.ValidationFailedException: Validation Failed:
      1 changesets check sum
           db.changelog-master.xml::gid-schema-old::em088y was: 8:04ff9a62f74d62f157e425878b8d97b0 but is now: 8:6202da87704cb897ef16b73572873c4e
    
         at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:804)
         at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:240)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1371)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1208)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:563)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:523)
         at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:336)
         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:288)
         at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:334)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
         at org.springframework.beans.factory.support.DefaultListableBeanFactory.instantiateSingleton(DefaultListableBeanFactory.java:1122)
         at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingleton(DefaultListableBeanFactory.java:1093)
         at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:1030)
         at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:987)
         at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:627)
         at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:706)
         at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:583)
         at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:537)
         at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:169)
         at jakarta.servlet.GenericServlet.init(GenericServlet.java:178)
         at jakarta.servlet.http.HttpServlet.init(HttpServlet.java:114)
         at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:822)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:699)
         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4189)
         at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4472)
         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:164)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:566)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
         at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:926)
         at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1842)
         at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
         at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
         at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
         at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:123)
         at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:730)
         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:381)
         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1582)
         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:265)
         at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:109)
         at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:389)
         at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:336)
         at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:743)
         at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:769)
         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:164)
         at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1164)
         at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1160)
         at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
         at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
         at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145)
         at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:716)
         at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:203)
         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:164)
         at org.apache.catalina.core.StandardService.startInternal(StandardService.java:412)
         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:164)
         at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:866)
         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:164)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:759)
         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
         at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.base/java.lang.reflect.Method.invoke(Method.java:568)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:342)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:473)
    

    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liquibaseBean' defined in com.gtt.fusionapp.conf.ExternalAppConfig: liquibase.exception.CommandExecutionException: liquibase.exception.ValidationFailedException: Validation Failed: 1 changesets check sum db.changelog-master.xml::gid-schema-old::em088y was: 8:04ff9a62f74d62f157e425878b8d97b0 but is now: 8:6202da87704cb897ef16b73572873c4e

         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1802)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:601)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:523)
         at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:336)
         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:288)
         at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:334)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
         at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:312)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
         at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:254)
         at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1626)
         at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1514)
         at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:913)
         at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791)
         ... 62 common frames omitted
     Caused by: liquibase.exception.LiquibaseException: liquibase.exception.CommandExecutionException: liquibase.exception.ValidationFailedException: Validation Failed:
      1 changesets check sum
           db.changelog-master.xml::gid-schema-old::em088y was: 8:04ff9a62f74d62f157e425878b8d97b0 but is now: 8:6202da87704cb897ef16b73572873c4e
    
         at liquibase.integration.spring.SpringLiquibase.afterPropertiesSet(SpringLiquibase.java:272)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1849)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1798)
         ... 75 common frames omitted
       Caused by: liquibase.exception.CommandExecutionException: liquibase.exception.ValidationFailedException: Validation Failed:
      1 changesets check sum
           db.changelog-master.xml::gid-schema-old::em088y was: 8:04ff9a62f74d62f157e425878b8d97b0 but is now: 8:6202da87704cb897ef16b73572873c4e
    
         at liquibase.command.CommandScope.lambda$execute$6(CommandScope.java:278)
         at liquibase.Scope.child(Scope.java:203)
         at liquibase.Scope.child(Scope.java:179)
         at liquibase.command.CommandScope.execute(CommandScope.java:219)
         at liquibase.Liquibase.lambda$update$0(Liquibase.java:216)
         at liquibase.Scope.lambda$child$0(Scope.java:194)
         at liquibase.Scope.child(Scope.java:203)
         at liquibase.Scope.child(Scope.java:193)
         at liquibase.Scope.child(Scope.java:172)
         at liquibase.Liquibase.runInScope(Liquibase.java:1329)
         at liquibase.Liquibase.update(Liquibase.java:205)
         at liquibase.Liquibase.update(Liquibase.java:188)
         at liquibase.integration.spring.SpringLiquibase.performUpdate(SpringLiquibase.java:310)
         at liquibase.integration.spring.SpringLiquibase.lambda$afterPropertiesSet$0(SpringLiquibase.java:262)
         at liquibase.Scope.lambda$child$0(Scope.java:194)
         at liquibase.Scope.child(Scope.java:203)
         at liquibase.Scope.child(Scope.java:193)
         at liquibase.Scope.child(Scope.java:172)
         at liquibase.integration.spring.SpringLiquibase.afterPropertiesSet(SpringLiquibase.java:255)
         ... 77 common frames omitted
    

    Caused by: liquibase.exception.ValidationFailedException: Validation Failed: 1 changesets check sum db.changelog-master.xml::gid-schema-old::em088y was: 8:04ff9a62f74d62f157e425878b8d97b0 but is now: 8:6202da87704cb897ef16b73572873c4e

         at liquibase.changelog.DatabaseChangeLog.validate(DatabaseChangeLog.java:407)
         at liquibase.command.core.helpers.DatabaseChangelogCommandStep.run(DatabaseChangelogCommandStep.java:92)
         at liquibase.command.CommandScope.lambda$execute$6(CommandScope.java:231)
         ... 95 common frames omitted
    

java.util.logging.ErrorManager: 5 liquibase.exception.UnexpectedLiquibaseException: Cannot find default log service at liquibase.Scope.getCurrentScope(Scope.java:110) at liquibase.configuration.ConfigurationDefinition.getCurrentConfiguredValue(ConfigurationDefinition.java:100) at liquibase.configuration.ConfigurationDefinition.getCurrentConfiguredValue(ConfigurationDefinition.java:90) at liquibase.configuration.ConfigurationDefinition.getCurrentValue(ConfigurationDefinition.java:64) at liquibase.util.StreamUtil.getLineSeparator(StreamUtil.java:17) at liquibase.exception.ValidationFailedException.getMessage(ValidationFailedException.java:48) at java.base/java.lang.Throwable.getLocalizedMessage(Throwable.java:397) at java.base/java.lang.Throwable.toString(Throwable.java:496) at java.base/java.lang.String.valueOf(String.java:4218) at java.base/java.lang.StringBuilder.append(StringBuilder.java:173) at java.base/java.lang.Throwable.printEnclosedStackTrace(Throwable.java:710) at java.base/java.lang.Throwable.printEnclosedStackTrace(Throwable.java:724) at java.base/java.lang.Throwable.printEnclosedStackTrace(Throwable.java:724) at java.base/java.lang.Throwable.printEnclosedStackTrace(Throwable.java:724) at java.base/java.lang.Throwable.printStackTrace(Throwable.java:682) at java.base/java.lang.Throwable.printStackTrace(Throwable.java:736) at org.springframework.beans.factory.BeanCreationException.printStackTrace(BeanCreationException.java:190) at org.apache.juli.OneLineFormatter.format(OneLineFormatter.java:159) at org.apache.juli.FileHandler.publish(FileHandler.java:233) at org.apache.juli.AsyncFileHandler.publishInternal(AsyncFileHandler.java:134) at org.apache.juli.AsyncFileHandler.lambda$publish$0(AsyncFileHandler.java:128) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:833) 05-Nov-2025 15:31:45.243 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [C:\Users\sam2004\apache-tomcat-11.0.9\webapps\gid.war] has finished in [57,146] ms 05-Nov-2025 15:31:45.243 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [C:\Users\sam2004\apache-tomcat-11.0.9\webapps\docs]

Sorry, I just am not able to format the logs at all.

I had added the liquibase plugin in the master pom to overcome this:


    org.liquibase
    liquibase-maven-plugin
    
        true
    

But without any luck.

Second one is, how do i get the liquibase logging issue:

liquibase.exception.UnexpectedLiquibaseException: Cannot find default log service
        at liquibase.Scope.getCurrentScope(Scope.java:110)
        at liquibase.configuration.ConfigurationDefinition.getCurrentConfiguredValue(ConfigurationDefinition.java:100)
        at liquibase.configuration.ConfigurationDefinition.getCurrentConfiguredValue(ConfigurationDefinition.java:90)
        at liquibase.configuration.ConfigurationDefinition.getCurrentValue(ConfigurationDefinition.java:64)
        at liquibase.util.StreamUtil.getLineSeparator(StreamUtil.java:17)

I am currently using:

Spring 6.2.0. MySQL Server is 9.0.1. Hibernate Core version of 6.6.3.Final.

This is not a spring boot app. I hope i provided all the info, if you need anymore, please let me know, I will update the question.

java hibernate liquibase checksum liquibase-hibernate