GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Exception since release 3.1.0: `Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found` · Issue #322 · mojohaus/exec-maven-plugin

Exception since release 3.1.0: Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found #322

New issue
Copy link
New issue
Copy link
Closed
#337
Closed
Exception since release 3.1.0: Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found#322
#337
Copy link
Labels
bugSomething isn't working
Milestone
3.5.0

Description

@cbismuth
cbismuth
opened on Jul 19, 2022
Issue body actions

Works with: org.codehaus.mojo:exec-maven-plugin:3.0.0:java
Does not Work with: org.codehaus.mojo:exec-maven-plugin:3.1.0:java

No code change on our side.

Thanks a lot,
Christophe

[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.1.0:java (default-cli) on project azure-insights-probes: An exception occurred while executing the Java class. Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.1.0:java (default-cli) on project azure-insights-probes: An exception occurred while executing the Java class. Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.apache.maven.plugin.MojoExecutionException: An exception occurred while executing the Java class. Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found
    at org.codehaus.mojo.exec.ExecJavaMojo.execute (ExecJavaMojo.java:349)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found
    at javax.xml.parsers.SAXParserFactory.newInstance (Unknown Source)
    at ch.qos.logback.core.joran.event.SaxEventRecorder.buildSaxParser (SaxEventRecorder.java:79)
    at ch.qos.logback.core.joran.event.SaxEventRecorder.recordEvents (SaxEventRecorder.java:57)
    at ch.qos.logback.core.joran.GenericConfigurator.doConfigure (GenericConfigurator.java:151)
    at ch.qos.logback.core.joran.GenericConfigurator.doConfigure (GenericConfigurator.java:110)
    at ch.qos.logback.core.joran.GenericConfigurator.doConfigure (GenericConfigurator.java:53)
    at ch.qos.logback.classic.util.ContextInitializer.configureByResource (ContextInitializer.java:64)
    at ch.qos.logback.classic.util.ContextInitializer.autoConfig (ContextInitializer.java:134)
    at org.slf4j.impl.StaticLoggerBinder.init (StaticLoggerBinder.java:84)
    at org.slf4j.impl.StaticLoggerBinder.<clinit> (StaticLoggerBinder.java:55)
    at org.slf4j.LoggerFactory.bind (LoggerFactory.java:150)
    at org.slf4j.LoggerFactory.performInitialization (LoggerFactory.java:124)
    at org.slf4j.LoggerFactory.getILoggerFactory (LoggerFactory.java:417)
    at org.slf4j.LoggerFactory.getLogger (LoggerFactory.java:362)
    at org.slf4j.LoggerFactory.getLogger (LoggerFactory.java:388)
    at fr.tf1.data.monitoring.probes.FiveMinutesProbesApp.<clinit> (FiveMinutesProbesApp.java:9)
    at sun.misc.Unsafe.ensureClassInitialized (Native Method)
    at java.lang.invoke.DirectMethodHandle$EnsureInitialized.computeValue (DirectMethodHandle.java:330)
    at java.lang.invoke.DirectMethodHandle$EnsureInitialized.computeValue (DirectMethodHandle.java:327)
    at java.lang.ClassValue.getFromHashMap (ClassValue.java:227)
    at java.lang.ClassValue.getFromBackup (ClassValue.java:209)
    at java.lang.ClassValue.get (ClassValue.java:115)
    at java.lang.invoke.DirectMethodHandle.checkInitialized (DirectMethodHandle.java:351)
    at java.lang.invoke.DirectMethodHandle.ensureInitialized (DirectMethodHandle.java:341)
    at java.lang.invoke.DirectMethodHandle.internalMemberNameEnsureInit (DirectMethodHandle.java:291)
    at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:279)
    at java.lang.Thread.run (Thread.java:748)
[ERROR] 
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Reacted by Tobias B aka The_Minefighter, Colin Wong and Sebastian Thomschke

Activity

  1. salmundani commented on Jul 19, 2022

    @salmundani
    salmundani
    on Jul 19, 2022
    More actions

    I'm having a very similar problem. Same thing happened, worked on 3.0.0 and stopped working on 3.1.0

    I created a test project to see if I could find the bug and it seems it happens when adding a dependency which has a lot of (very old) transitive dependencies

    javax.xml.parsers.FactoryConfigurationError: Provider for javax.xml.parsers.DocumentBuilderFactory cannot be found
        at javax.xml.parsers.DocumentBuilderFactory.newInstance (Unknown Source)
        at org.apache.log4j.xml.DOMConfigurator.doConfigure (DOMConfigurator.java:849)
        at org.apache.log4j.xml.DOMConfigurator.doConfigure (DOMConfigurator.java:773)
        at org.apache.log4j.helpers.OptionConverter.selectAndConfigure (OptionConverter.java:483)
        at org.apache.log4j.LogManager.<clinit> (LogManager.java:127)
        at org.slf4j.impl.Log4jLoggerFactory.getLogger (Log4jLoggerFactory.java:64)
        at org.slf4j.LoggerFactory.getLogger (LoggerFactory.java:253)
        at org.slf4j.LoggerFactory.getLogger (LoggerFactory.java:265)
        at com.mycompany.app.App.<clinit> (App.java:8)
        at sun.misc.Unsafe.ensureClassInitialized (Native Method)
        at java.lang.invoke.DirectMethodHandle$EnsureInitialized.computeValue (DirectMethodHandle.java:330)
        at java.lang.invoke.DirectMethodHandle$EnsureInitialized.computeValue (DirectMethodHandle.java:327)
        at java.lang.ClassValue.getFromHashMap (ClassValue.java:227)
        at java.lang.ClassValue.getFromBackup (ClassValue.java:209)
        at java.lang.ClassValue.get (ClassValue.java:115)
        at java.lang.invoke.DirectMethodHandle.checkInitialized (DirectMethodHandle.java:351)
        at java.lang.invoke.DirectMethodHandle.ensureInitialized (DirectMethodHandle.java:341)
        at java.lang.invoke.DirectMethodHandle.internalMemberNameEnsureInit (DirectMethodHandle.java:291)
        at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:279)
        at java.lang.Thread.run (Thread.java:748)
    

    UPDATE: I managed to replicate the bug with the attached files and running mvn exec:java -Dexec.mainClass=com.mycompany.app.App

    I can seem to make it work running mvn exec:exec instead as a workaround

    mvn_exec_test.zip

    Reacted by mfisher-tyro
  2. bmarwell commented on Jul 19, 2022

    @bmarwell
    bmarwell
    on Jul 19, 2022
    Contributor
    More actions

    @rmannibucau could this be related to class loading?

    @cbismuth did you upgrade your java version recently? Saw the same issue after I updated from Java 8 to 11. Could you try to use an updated xerces library as a exec-mvn-plugin dependency?

  3. cbismuth commented on Jul 19, 2022

    @cbismuth
    cbismuth
    on Jul 19, 2022
    Author
    More actions

    Still with Java 8 and silent upgrade as we did not specify plugin version at first.

  4. rmannibucau commented on Jul 19, 2022

    @rmannibucau
    rmannibucau
    on Jul 19, 2022
    Contributor
    More actions

    Can be worth checking https://github.com/mojohaus/exec-maven-plugin/blob/master/src/main/java/org/codehaus/mojo/exec/URLClassLoaderBuilder.java#L519, in particular if on windows (case).

  5. rmannibucau commented on Jul 20, 2022

    @rmannibucau
    rmannibucau
    on Jul 20, 2022
    Contributor
    More actions

    Looked quickly the sample, the issue is xml-apis:xml-apis:jar:1.0.b2:compile is in the project as dependency and its API is preferred over JVM one so it fails to find a matching implementation. Excluding the jar (with classpathFilenameExclusions for ex) is sufficient to make it working. The idea to enable to override javax package is that it is often needed but I guess for xml one we can make a particular case if it helps or automatically exclude xml-apis if desired.

  6. marcellanz commented on Jul 20, 2022

    @marcellanz
    marcellanz
    on Jul 20, 2022
    More actions

    We've seen this exception with 3.1.0; that worked with 3.0.0 as we did not pin the version too. We're on Java8 with this, otherwise no changes.

    javax.xml.stream.FactoryConfigurationError: Provider com.bea.xml.stream.EventFactory not found
    	at javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:72)
    	at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:178)
    	at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:92)
    	at javax.xml.stream.XMLEventFactory.newInstance(XMLEventFactory.java:30)
    	at org.apache.poi.openxml4j.opc.internal.marshallers.PackagePropertiesMarshaller.<clinit>(PackagePropertiesMarshaller.java:41)
    	at org.apache.poi.openxml4j.opc.OPCPackage.init(OPCPackage.java:162)
    	at org.apache.poi.openxml4j.opc.OPCPackage.<init>(OPCPackage.java:142)
    	at org.apache.poi.openxml4j.opc.Package.<init>(Package.java:37)
    	at org.apache.poi.openxml4j.opc.ZipPackage.<init>(ZipPackage.java:130)
    	at org.apache.poi.openxml4j.opc.OPCPackage.open(OPCPackage.java:252)
    	at org.apache.poi.openxml4j.opc.OPCPackage.open(OPCPackage.java:201)
    
  7. rmannibucau commented on Jul 20, 2022

    @rmannibucau
    rmannibucau
    on Jul 20, 2022
    Contributor
    More actions

    @marcellanz was likely a bug it worked in 3.0.0 since your dependency (xml-apis) was not taken into account, now it is fixed it highlights it misses an impl. The fat it works with exec:exec is due to the fact it flattens the execution (single classloader) vs a hierarchical classloading (exec:java).

  8. msglifeIberia commented on Jul 21, 2022

    @msglifeIberia
    msglifeIberia
    on Jul 21, 2022
    More actions

    I'm also seeing a similar issue after upgrading from version 3.0.0 to version 3.1.0 when starting my app:

    Caused by: javax.xml.stream.FactoryConfigurationError: Provider org.apache.xerces.stax.XMLEventFactoryImpl not found
        at javax.xml.stream.XMLEventFactory.newInstance (Unknown Source)
        at org.hibernate.boot.jaxb.internal.MappingBinder.<init> (MappingBinder.java:34)
        at org.hibernate.boot.spi.XmlMappingBinderAccess.<init> (XmlMappingBinderAccess.java:43)
        at org.hibernate.boot.MetadataSources.getXmlMappingBinderAccess (MetadataSources.java:115)
        at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.prepare (MetadataBuildingProcess.java:110)
        at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.<init> (EntityManagerFactoryBuilderImpl.java:269)
        at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.<init> (EntityManagerFactoryBuilderImpl.java:182)
        at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory (SpringHibernateJpaPersistenceProvider.java:52)
    
  9. marcellanz commented on Jul 21, 2022

    @marcellanz
    marcellanz
    on Jul 21, 2022
    More actions

    @marcellanz was likely a bug it worked in 3.0.0 since your dependency (xml-apis) was not taken into account, now it is fixed it highlights it misses an impl. The fat it works with exec:exec is due to the fact it flattens the execution (single classloader) vs a hierarchical classloading (exec:java).

    @rmannibucau interesting, thanks.

  10. bmarwell commented on Jul 27, 2022

    @bmarwell
    bmarwell
    on Jul 27, 2022
    Contributor
    More actions

    @marcellanz @msglifeIberia can we close this issue?

    Could not reproduce using your zip:

    bmarwell@wells ~/git/my-app $ mvn compile exec:java -Dexec.mainClass=com.mycompany.app.App
    [INFO] Scanning for projects...
    [INFO] 
    [INFO] ----------------------< com.mycompany.app:my-app >----------------------
    [INFO] Building my-app 1.0-SNAPSHOT
    [INFO] --------------------------------[ jar ]---------------------------------
    [INFO] 
    [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ my-app ---
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] skip non existing resourceDirectory /home/bmarwell/git/my-app/src/main/resources
    [INFO] 
    [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ my-app ---
    [INFO] Changes detected - recompiling the module!
    [INFO] Compiling 1 source file to /home/bmarwell/git/my-app/target/classes
    [INFO] 
    [INFO] --- exec-maven-plugin:3.0.0:java (default-cli) @ my-app ---
    log4j:WARN No appenders could be found for logger (com.mycompany.app.App).
    log4j:WARN Please initialize the log4j system properly.
    log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD SUCCESS
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time:  1.195 s
    [INFO] Finished at: 2022-07-27T21:26:31+02:00
    [INFO] ------------------------------------------------------------------------
    

    Same with 3.1.0:

    bmarwell@wells ~/git/my-app $ mvn compile org.codehaus.mojo:exec-maven-plugin:3.1.0:java -Dexec.mainClass=com.mycompany.app.App
    [INFO] Scanning for projects...
    [INFO] 
    [INFO] ----------------------< com.mycompany.app:my-app >----------------------
    [INFO] Building my-app 1.0-SNAPSHOT
    [INFO] --------------------------------[ jar ]---------------------------------
    [INFO] 
    [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ my-app ---
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] skip non existing resourceDirectory /home/bmarwell/git/my-app/src/main/resources
    [INFO] 
    [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ my-app ---
    [INFO] Nothing to compile - all classes are up to date
    [INFO] 
    [INFO] --- exec-maven-plugin:3.1.0:java (default-cli) @ my-app ---
    log4j:WARN No appenders could be found for logger (com.mycompany.app.App).
    log4j:WARN Please initialize the log4j system properly.
    log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD SUCCESS
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time:  1.057 s
    [INFO] Finished at: 2022-07-27T21:27:17+02:00
    [INFO] ------------------------------------------------------------------------
    
  11. msglifeIberia commented on Jul 28, 2022

    @msglifeIberia
    msglifeIberia
    on Jul 28, 2022
    More actions

    @bmarwell I still face a similar issue. Here are the logs when I run the exec:java goal with 3.1.0. I masked some confidential information as this is a private project but that should not affect the logs. Let me know if this helps you. I can also try to provide you a sample project that reproduces this issue but only next week or so. I think it should be reproducible in a project with latest Spring Boot and Hibernate dependencies but I'm not sure if it is something else we have on the classpath.

    [INFO] Scanning for projects...
    [INFO] 
    [INFO] -----------------< xxxxx:my-project >------------------
    [INFO] Building My Application 1.18.1.0
    [INFO] --------------------------------[ jar ]---------------------------------
    [INFO] 
    [INFO] --- exec-maven-plugin:3.1.0:java (SpringBootStart) @ my-project ---
    
      .   ____          _            __ _ _
     /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
    ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
     \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
      '  |____| .__|_| |_|_| |_\__, | / / / /
     =========|_|==============|___/=/_/_/_/
     :: Spring Boot ::                (v2.7.1)
    
    2022-07-28 10:18:46.158  INFO [,,] 13520 --- [lication.main()] xxxxx.Application            : Starting Application using Java 1.8.0_332 on my-pc with PID 13520 (C:\Projects\2020\eclipse\my-project\target\classes started by USER in C:\Projects\2020\eclipse\my-project)
    2022-07-28 10:18:46.163  INFO [,,] 13520 --- [lication.main()] xxxxx.Application            : No active profile set, falling back to 1 default profile: "default"
    2022-07-28 10:18:47.548  INFO [,,] 13520 --- [lication.main()] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
    2022-07-28 10:18:47.700  INFO [,,] 13520 --- [lication.main()] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 138 ms. Found 14 JPA repository interfaces.
    2022-07-28 10:18:48.106  INFO [,,] 13520 --- [lication.main()] o.s.cloud.context.scope.GenericScope     : BeanFactory id=04938d8d-518e-36ef-9450-495163b52f92
    2022-07-28 10:18:49.011  INFO [,,] 13520 --- [lication.main()] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 9590 (http)
    2022-07-28 10:18:49.026  INFO [,,] 13520 --- [lication.main()] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
    2022-07-28 10:18:49.026  INFO [,,] 13520 --- [lication.main()] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.64]
    2022-07-28 10:18:49.131  INFO [,,] 13520 --- [lication.main()] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
    2022-07-28 10:18:49.131  INFO [,,] 13520 --- [lication.main()] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 2922 ms
    2022-07-28 10:18:49.190  INFO [,,] 13520 --- [lication.main()] xxxxx.DataSourceConfig       : Configuring datasources for the different workspaces...
    2022-07-28 10:18:49.421  INFO [,,] 13520 --- [lication.main()] xxxxx.DataSourceConfig       : Configuring datasource for workspace: dev
    2022-07-28 10:18:49.422  INFO [,,] 13520 --- [lication.main()] xxxxx.DataSourceConfig       : Using local datasource, ref: jdbc:mysql://localhost:4406/test_db/dev
    2022-07-28 10:18:49.427  INFO [,,] 13520 --- [lication.main()] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Starting...
    2022-07-28 10:18:49.682  INFO [,,] 13520 --- [lication.main()] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Start completed.
    2022-07-28 10:18:49.682  INFO [,,] 13520 --- [lication.main()] xxxxx.DataSourceConfig       : Configuring datasource for workspace: qa
    2022-07-28 10:18:49.682  INFO [,,] 13520 --- [lication.main()] xxxxx.DataSourceConfig       : Using local datasource, ref: jdbc:mysql://localhost:4406/test_db/qa
    2022-07-28 10:18:49.682  INFO [,,] 13520 --- [lication.main()] com.zaxxer.hikari.HikariDataSource       : HikariPool-2 - Starting...
    2022-07-28 10:18:49.718  INFO [,,] 13520 --- [lication.main()] com.zaxxer.hikari.HikariDataSource       : HikariPool-2 - Start completed.
    2022-07-28 10:18:50.178  INFO [,,] 13520 --- [lication.main()] o.hibernate.jpa.internal.util.LogHelper  : HHH000204: Processing PersistenceUnitInfo [name: default]
    2022-07-28 10:18:50.280  INFO [,,] 13520 --- [lication.main()] org.hibernate.Version                    : HHH000412: Hibernate ORM core version 5.6.9.Final
    2022-07-28 10:18:50.559  INFO [,,] 13520 --- [lication.main()] o.hibernate.annotations.common.Version   : HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
    2022-07-28 10:18:50.682 ERROR [,,] 13520 --- [lication.main()] o.s.b.web.embedded.tomcat.TomcatStarter  : Error starting Tomcat context. Exception: org.springframework.beans.factory.UnsatisfiedDependencyException. Message: Error creating bean with name 'handlerInterceptorConfig': Unsatisfied dependency expressed through field 'entityManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.orm.jpa.SharedEntityManagerCreator#0': Cannot resolve reference to bean 'entityManagerFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is javax.xml.stream.FactoryConfigurationError: Provider org.apache.xerces.stax.XMLEventFactoryImpl not found
    2022-07-28 10:18:50.712  INFO [,,] 13520 --- [lication.main()] o.apache.catalina.core.StandardService   : Stopping service [Tomcat]
    2022-07-28 10:18:50.714  WARN [,,] 13520 --- [lication.main()] o.a.c.loader.WebappClassLoaderBase       : The web application [ROOT] appears to have started a thread named [HikariPool-1 housekeeper] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
     sun.misc.Unsafe.park(Native Method)
     java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
     java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)
     java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1093)
     java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809)
     java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074)
     java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134)
     java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
     java.lang.Thread.run(Thread.java:750)
    2022-07-28 10:18:50.715  WARN [,,] 13520 --- [lication.main()] o.a.c.loader.WebappClassLoaderBase       : The web application [ROOT] appears to have started a thread named [HikariPool-2 housekeeper] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
     sun.misc.Unsafe.park(Native Method)
     java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
     java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)
     java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1093)
     java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809)
     java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074)
     java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134)
     java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
     java.lang.Thread.run(Thread.java:750)
    2022-07-28 10:18:50.715  WARN [,,] 13520 --- [lication.main()] o.a.c.loader.WebappClassLoaderBase       : The web application [ROOT] appears to have started a thread named [HikariPool-1 connection adder] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
     sun.misc.Unsafe.park(Native Method)
     java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
     java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)
     java.util.concurrent.LinkedBlockingQueue.poll(LinkedBlockingQueue.java:467)
     java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1073)
     java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134)
     java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
     java.lang.Thread.run(Thread.java:750)
    2022-07-28 10:18:50.716  WARN [,,] 13520 --- [lication.main()] o.a.c.loader.WebappClassLoaderBase       : The web application [ROOT] appears to have started a thread named [HikariPool-2 connection adder] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
     sun.misc.Unsafe.park(Native Method)
     java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
     java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)
     java.util.concurrent.LinkedBlockingQueue.poll(LinkedBlockingQueue.java:467)
     java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1073)
     java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134)
     java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
     java.lang.Thread.run(Thread.java:750)
    2022-07-28 10:18:50.718  WARN [,,] 13520 --- [lication.main()] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
    2022-07-28 10:18:50.736  INFO [,,] 13520 --- [lication.main()] ConditionEvaluationReportLoggingListener : 
    
    Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
    2022-07-28 10:18:50.767 ERROR [,,] 13520 --- [lication.main()] o.s.boot.SpringApplication               : Application run failed
    
    org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
    	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:165) ~[spring-boot-2.7.1.jar:2.7.1]
    	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:577) ~[spring-context-5.3.21.jar:5.3.21]
    	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:147) ~[spring-boot-2.7.1.jar:2.7.1]
    	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:734) [spring-boot-2.7.1.jar:2.7.1]
    	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:408) [spring-boot-2.7.1.jar:2.7.1]
    	at org.springframework.boot.SpringApplication.run(SpringApplication.java:308) [spring-boot-2.7.1.jar:2.7.1]
    	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1306) [spring-boot-2.7.1.jar:2.7.1]
    	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1295) [spring-boot-2.7.1.jar:2.7.1]
    	at xxxxx.Application.main(Application.java:24) [classes/:na]
    	at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:279) [exec-maven-plugin-3.1.0.jar:na]
    	at java.lang.Thread.run(Thread.java:750) [na:1.8.0_332]
    Caused by: org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
    	at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:142) ~[spring-boot-2.7.1.jar:2.7.1]
    	at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.<init>(TomcatWebServer.java:104) ~[spring-boot-2.7.1.jar:2.7.1]
    	at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer(TomcatServletWebServerFactory.java:479) ~[spring-boot-2.7.1.jar:2.7.1]
    	at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:211) ~[spring-boot-2.7.1.jar:2.7.1]
    	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:184) ~[spring-boot-2.7.1.jar:2.7.1]
    	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:162) ~[spring-boot-2.7.1.jar:2.7.1]
    	... 10 common frames omitted
    Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'handlerInterceptorConfig': Unsatisfied dependency expressed through field 'entityManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.orm.jpa.SharedEntityManagerCreator#0': Cannot resolve reference to bean 'entityManagerFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is javax.xml.stream.FactoryConfigurationError: Provider org.apache.xerces.stax.XMLEventFactoryImpl not found
    	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:659) ~[spring-beans-5.3.21.jar:5.3.21]
    	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:639) ~[spring-beans-5.3.21.jar:5.3.21]
    	at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119) ~[spring-beans-5.3.21.jar:5.3.21]
    	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399) ~[spring-beans-5.3.21.jar:5.3.21]
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1431) ~[spring-beans-5.3.21.jar:5.3.21]
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:619) ~[spring-beans-5.3.21.jar:5.3.21]
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) ~[spring-beans-5.3.21.jar:5.3.21]
    	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.21.jar:5.3.21]
    	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.21.jar:5.3.21]
    	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.21.jar:5.3.21]
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) ~[spring-beans-5.3.21.jar:5.3.21]
    	at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:410) ~[spring-beans-5.3.21.jar:5.3.21]
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352) ~[spring-beans-5.3.21.jar:5.3.21]
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195) ~[spring-beans-5.3.21.jar:5.3.21]
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582) ~[spring-beans-5.3.21.jar:5.3.21]
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) ~[spring-beans-5.3.21.jar:5.3.21]
    	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.21.jar:5.3.21]
    	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.21.jar:5.3.21]
    	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.21.jar:5.3.21]
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:213) ~[spring-beans-5.3.21.jar:5.3.21]
    	at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:212) ~[spring-boot-2.7.1.jar:2.7.1]
    	at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:203) ~[spring-boot-2.7.1.jar:2.7.1]
    	at org.springframework.boot.web.servlet.ServletContextInitializerBeans.addServletContextInitializerBeans(ServletContextInitializerBeans.java:97) ~[spring-boot-2.7.1.jar:2.7.1]
    	at org.springframework.boot.web.servlet.ServletContextInitializerBeans.<init>(ServletContextInitializerBeans.java:86) ~[spring-boot-2.7.1.jar:2.7.1]
    	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.getServletContextInitializerBeans(ServletWebServerApplicationContext.java:262) ~[spring-boot-2.7.1.jar:2.7.1]
    	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.selfInitialize(ServletWebServerApplicationContext.java:236) ~[spring-boot-2.7.1.jar:2.7.1]
    	at org.springframework.boot.web.embedded.tomcat.TomcatStarter.onStartup(TomcatStarter.java:53) ~[spring-boot-2.7.1.jar:2.7.1]
    	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5219) ~[tomcat-embed-core-9.0.64.jar:9.0.64]
    	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ~[tomcat-embed-core-9.0.64.jar:9.0.64]
    	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396) ~[tomcat-embed-core-9.0.64.jar:9.0.64]
    	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386) ~[tomcat-embed-core-9.0.64.jar:9.0.64]
    	at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_332]
    	at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) ~[tomcat-embed-core-9.0.64.jar:9.0.64]
    	at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134) ~[na:1.8.0_332]
    	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919) ~[tomcat-embed-core-9.0.64.jar:9.0.64]
    	at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:835) ~[tomcat-embed-core-9.0.64.jar:9.0.64]
    	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ~[tomcat-embed-core-9.0.64.jar:9.0.64]
    	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396) ~[tomcat-embed-core-9.0.64.jar:9.0.64]
    	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386) ~[tomcat-embed-core-9.0.64.jar:9.0.64]
    	at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_332]
    	at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) ~[tomcat-embed-core-9.0.64.jar:9.0.64]
    	at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134) ~[na:1.8.0_332]
    	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919) ~[tomcat-embed-core-9.0.64.jar:9.0.64]
    	at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:263) ~[tomcat-embed-core-9.0.64.jar:9.0.64]
    	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ~[tomcat-embed-core-9.0.64.jar:9.0.64]
    	at org.apache.catalina.core.StandardService.startInternal(StandardService.java:432) ~[tomcat-embed-core-9.0.64.jar:9.0.64]
    	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ~[tomcat-embed-core-9.0.64.jar:9.0.64]
    	at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930) ~[tomcat-embed-core-9.0.64.jar:9.0.64]
    	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ~[tomcat-embed-core-9.0.64.jar:9.0.64]
    	at org.apache.catalina.startup.Tomcat.start(Tomcat.java:486) ~[tomcat-embed-core-9.0.64.jar:9.0.64]
    	at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:123) ~[spring-boot-2.7.1.jar:2.7.1]
    	... 15 common frames omitted
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.orm.jpa.SharedEntityManagerCreator#0': Cannot resolve reference to bean 'entityManagerFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is javax.xml.stream.FactoryConfigurationError: Provider org.apache.xerces.stax.XMLEventFactoryImpl not found
    	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:342) ~[spring-beans-5.3.21.jar:5.3.21]
    	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:113) ~[spring-beans-5.3.21.jar:5.3.21]
    	at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:693) ~[spring-beans-5.3.21.jar:5.3.21]
    	at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:510) ~[spring-beans-5.3.21.jar:5.3.21]
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352) ~[spring-beans-5.3.21.jar:5.3.21]
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195) ~[spring-beans-5.3.21.jar:5.3.21]
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582) ~[spring-beans-5.3.21.jar:5.3.21]
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) ~[spring-beans-5.3.21.jar:5.3.21]
    	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.21.jar:5.3.21]
    	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.21.jar:5.3.21]
    	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.21.jar:5.3.21]
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) ~[spring-beans-5.3.21.jar:5.3.21]
    	at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276) ~[spring-beans-5.3.21.jar:5.3.21]
    	at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1391) ~[spring-beans-5.3.21.jar:5.3.21]
    	at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1311) ~[spring-beans-5.3.21.jar:5.3.21]
    	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:656) ~[spring-beans-5.3.21.jar:5.3.21]
    	... 65 common frames omitted
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is javax.xml.stream.FactoryConfigurationError: Provider org.apache.xerces.stax.XMLEventFactoryImpl not found
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1804) ~[spring-beans-5.3.21.jar:5.3.21]
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620) ~[spring-beans-5.3.21.jar:5.3.21]
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) ~[spring-beans-5.3.21.jar:5.3.21]
    	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.21.jar:5.3.21]
    	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.21.jar:5.3.21]
    	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.21.jar:5.3.21]
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) ~[spring-beans-5.3.21.jar:5.3.21]
    	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:330) ~[spring-beans-5.3.21.jar:5.3.21]
    	... 80 common frames omitted
    Caused by: javax.xml.stream.FactoryConfigurationError: Provider org.apache.xerces.stax.XMLEventFactoryImpl not found
    	at javax.xml.stream.XMLEventFactory.newInstance(Unknown Source) ~[xml-apis-1.4.01.jar:1.4.01]
    	at org.hibernate.boot.jaxb.internal.MappingBinder.<init>(MappingBinder.java:34) ~[hibernate-core-5.6.9.Final.jar:5.6.9.Final]
    	at org.hibernate.boot.spi.XmlMappingBinderAccess.<init>(XmlMappingBinderAccess.java:43) ~[hibernate-core-5.6.9.Final.jar:5.6.9.Final]
    	at org.hibernate.boot.MetadataSources.getXmlMappingBinderAccess(MetadataSources.java:115) ~[hibernate-core-5.6.9.Final.jar:5.6.9.Final]
    	at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.prepare(MetadataBuildingProcess.java:110) ~[hibernate-core-5.6.9.Final.jar:5.6.9.Final]
    	at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.<init>(EntityManagerFactoryBuilderImpl.java:269) ~[hibernate-core-5.6.9.Final.jar:5.6.9.Final]
    	at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.<init>(EntityManagerFactoryBuilderImpl.java:182) ~[hibernate-core-5.6.9.Final.jar:5.6.9.Final]
    	at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:52) ~[spring-orm-5.3.21.jar:5.3.21]
    	at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:365) ~[spring-orm-5.3.21.jar:5.3.21]
    	at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:409) ~[spring-orm-5.3.21.jar:5.3.21]
    	at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:396) ~[spring-orm-5.3.21.jar:5.3.21]
    	at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:341) ~[spring-orm-5.3.21.jar:5.3.21]
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1863) ~[spring-beans-5.3.21.jar:5.3.21]
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1800) ~[spring-beans-5.3.21.jar:5.3.21]
    	... 87 common frames omitted
    
    [WARNING] 
    org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
        at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh (ServletWebServerApplicationContext.java:165)
        at org.springframework.context.support.AbstractApplicationContext.refresh (AbstractApplicationContext.java:577)
        at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh (ServletWebServerApplicationContext.java:147)
        at org.springframework.boot.SpringApplication.refresh (SpringApplication.java:734)
        at org.springframework.boot.SpringApplication.refreshContext (SpringApplication.java:408)
        at org.springframework.boot.SpringApplication.run (SpringApplication.java:308)
        at org.springframework.boot.SpringApplication.run (SpringApplication.java:1306)
        at org.springframework.boot.SpringApplication.run (SpringApplication.java:1295)
        at xxxxx.Application.main (Application.java:24)
        at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:279)
        at java.lang.Thread.run (Thread.java:750)
    Caused by: org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
        at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize (TomcatWebServer.java:142)
        at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.<init> (TomcatWebServer.java:104)
        at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer (TomcatServletWebServerFactory.java:479)
        at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer (TomcatServletWebServerFactory.java:211)
        at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer (ServletWebServerApplicationContext.java:184)
        at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh (ServletWebServerApplicationContext.java:162)
        at org.springframework.context.support.AbstractApplicationContext.refresh (AbstractApplicationContext.java:577)
        at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh (ServletWebServerApplicationContext.java:147)
        at org.springframework.boot.SpringApplication.refresh (SpringApplication.java:734)
        at org.springframework.boot.SpringApplication.refreshContext (SpringApplication.java:408)
        at org.springframework.boot.SpringApplication.run (SpringApplication.java:308)
        at org.springframework.boot.SpringApplication.run (SpringApplication.java:1306)
        at org.springframework.boot.SpringApplication.run (SpringApplication.java:1295)
        at xxxxx.Application.main (Application.java:24)
        at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:279)
        at java.lang.Thread.run (Thread.java:750)
    Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'handlerInterceptorConfig': Unsatisfied dependency expressed through field 'entityManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.orm.jpa.SharedEntityManagerCreator#0': Cannot resolve reference to bean 'entityManagerFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is javax.xml.stream.FactoryConfigurationError: Provider org.apache.xerces.stax.XMLEventFactoryImpl not found
        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue (AutowiredAnnotationBeanPostProcessor.java:659)
        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject (AutowiredAnnotationBeanPostProcessor.java:639)
        at org.springframework.beans.factory.annotation.InjectionMetadata.inject (InjectionMetadata.java:119)
        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties (AutowiredAnnotationBeanPostProcessor.java:399)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean (AbstractAutowireCapableBeanFactory.java:1431)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:619)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:542)
        at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0 (AbstractBeanFactory.java:335)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:234)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (AbstractBeanFactory.java:333)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:208)
        at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod (ConstructorResolver.java:410)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod (AbstractAutowireCapableBeanFactory.java:1352)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance (AbstractAutowireCapableBeanFactory.java:1195)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:582)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:542)
        at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0 (AbstractBeanFactory.java:335)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:234)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (AbstractBeanFactory.java:333)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:213)
        at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType (ServletContextInitializerBeans.java:212)
        at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType (ServletContextInitializerBeans.java:203)
        at org.springframework.boot.web.servlet.ServletContextInitializerBeans.addServletContextInitializerBeans (ServletContextInitializerBeans.java:97)
        at org.springframework.boot.web.servlet.ServletContextInitializerBeans.<init> (ServletContextInitializerBeans.java:86)
        at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.getServletContextInitializerBeans (ServletWebServerApplicationContext.java:262)
        at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.selfInitialize (ServletWebServerApplicationContext.java:236)
        at org.springframework.boot.web.embedded.tomcat.TomcatStarter.onStartup (TomcatStarter.java:53)
        at org.apache.catalina.core.StandardContext.startInternal (StandardContext.java:5219)
        at org.apache.catalina.util.LifecycleBase.start (LifecycleBase.java:183)
        at org.apache.catalina.core.ContainerBase$StartChild.call (ContainerBase.java:1396)
        at org.apache.catalina.core.ContainerBase$StartChild.call (ContainerBase.java:1386)
        at java.util.concurrent.FutureTask.run (FutureTask.java:266)
        at org.apache.tomcat.util.threads.InlineExecutorService.execute (InlineExecutorService.java:75)
        at java.util.concurrent.AbstractExecutorService.submit (AbstractExecutorService.java:134)
        at org.apache.catalina.core.ContainerBase.startInternal (ContainerBase.java:919)
        at org.apache.catalina.core.StandardHost.startInternal (StandardHost.java:835)
        at org.apache.catalina.util.LifecycleBase.start (LifecycleBase.java:183)
        at org.apache.catalina.core.ContainerBase$StartChild.call (ContainerBase.java:1396)
        at org.apache.catalina.core.ContainerBase$StartChild.call (ContainerBase.java:1386)
        at java.util.concurrent.FutureTask.run (FutureTask.java:266)
        at org.apache.tomcat.util.threads.InlineExecutorService.execute (InlineExecutorService.java:75)
        at java.util.concurrent.AbstractExecutorService.submit (AbstractExecutorService.java:134)
        at org.apache.catalina.core.ContainerBase.startInternal (ContainerBase.java:919)
        at org.apache.catalina.core.StandardEngine.startInternal (StandardEngine.java:263)
        at org.apache.catalina.util.LifecycleBase.start (LifecycleBase.java:183)
        at org.apache.catalina.core.StandardService.startInternal (StandardService.java:432)
        at org.apache.catalina.util.LifecycleBase.start (LifecycleBase.java:183)
        at org.apache.catalina.core.StandardServer.startInternal (StandardServer.java:930)
        at org.apache.catalina.util.LifecycleBase.start (LifecycleBase.java:183)
        at org.apache.catalina.startup.Tomcat.start (Tomcat.java:486)
        at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize (TomcatWebServer.java:123)
        at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.<init> (TomcatWebServer.java:104)
        at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer (TomcatServletWebServerFactory.java:479)
        at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer (TomcatServletWebServerFactory.java:211)
        at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer (ServletWebServerApplicationContext.java:184)
        at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh (ServletWebServerApplicationContext.java:162)
        at org.springframework.context.support.AbstractApplicationContext.refresh (AbstractApplicationContext.java:577)
        at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh (ServletWebServerApplicationContext.java:147)
        at org.springframework.boot.SpringApplication.refresh (SpringApplication.java:734)
        at org.springframework.boot.SpringApplication.refreshContext (SpringApplication.java:408)
        at org.springframework.boot.SpringApplication.run (SpringApplication.java:308)
        at org.springframework.boot.SpringApplication.run (SpringApplication.java:1306)
        at org.springframework.boot.SpringApplication.run (SpringApplication.java:1295)
        at xxxxx.Application.main (Application.java:24)
        at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:279)
        at java.lang.Thread.run (Thread.java:750)
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.orm.jpa.SharedEntityManagerCreator#0': Cannot resolve reference to bean 'entityManagerFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is javax.xml.stream.FactoryConfigurationError: Provider org.apache.xerces.stax.XMLEventFactoryImpl not found
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference (BeanDefinitionValueResolver.java:342)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary (BeanDefinitionValueResolver.java:113)
        at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments (ConstructorResolver.java:693)
        at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod (ConstructorResolver.java:510)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod (AbstractAutowireCapableBeanFactory.java:1352)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance (AbstractAutowireCapableBeanFactory.java:1195)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:582)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:542)
        at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0 (AbstractBeanFactory.java:335)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:234)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (AbstractBeanFactory.java:333)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:208)
        at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate (DependencyDescriptor.java:276)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency (DefaultListableBeanFactory.java:1391)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency (DefaultListableBeanFactory.java:1311)
        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue (AutowiredAnnotationBeanPostProcessor.java:656)
        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject (AutowiredAnnotationBeanPostProcessor.java:639)
        at org.springframework.beans.factory.annotation.InjectionMetadata.inject (InjectionMetadata.java:119)
        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties (AutowiredAnnotationBeanPostProcessor.java:399)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean (AbstractAutowireCapableBeanFactory.java:1431)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:619)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:542)
        at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0 (AbstractBeanFactory.java:335)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:234)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (AbstractBeanFactory.java:333)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:208)
        at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod (ConstructorResolver.java:410)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod (AbstractAutowireCapableBeanFactory.java:1352)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance (AbstractAutowireCapableBeanFactory.java:1195)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:582)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:542)
        at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0 (AbstractBeanFactory.java:335)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:234)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (AbstractBeanFactory.java:333)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:213)
        at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType (ServletContextInitializerBeans.java:212)
        at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType (ServletContextInitializerBeans.java:203)
        at org.springframework.boot.web.servlet.ServletContextInitializerBeans.addServletContextInitializerBeans (ServletContextInitializerBeans.java:97)
        at org.springframework.boot.web.servlet.ServletContextInitializerBeans.<init> (ServletContextInitializerBeans.java:86)
        at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.getServletContextInitializerBeans (ServletWebServerApplicationContext.java:262)
        at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.selfInitialize (ServletWebServerApplicationContext.java:236)
        at org.springframework.boot.web.embedded.tomcat.TomcatStarter.onStartup (TomcatStarter.java:53)
        at org.apache.catalina.core.StandardContext.startInternal (StandardContext.java:5219)
        at org.apache.catalina.util.LifecycleBase.start (LifecycleBase.java:183)
        at org.apache.catalina.core.ContainerBase$StartChild.call (ContainerBase.java:1396)
        at org.apache.catalina.core.ContainerBase$StartChild.call (ContainerBase.java:1386)
        at java.util.concurrent.FutureTask.run (FutureTask.java:266)
        at org.apache.tomcat.util.threads.InlineExecutorService.execute (InlineExecutorService.java:75)
        at java.util.concurrent.AbstractExecutorService.submit (AbstractExecutorService.java:134)
        at org.apache.catalina.core.ContainerBase.startInternal (ContainerBase.java:919)
        at org.apache.catalina.core.StandardHost.startInternal (StandardHost.java:835)
        at org.apache.catalina.util.LifecycleBase.start (LifecycleBase.java:183)
        at org.apache.catalina.core.ContainerBase$StartChild.call (ContainerBase.java:1396)
        at org.apache.catalina.core.ContainerBase$StartChild.call (ContainerBase.java:1386)
        at java.util.concurrent.FutureTask.run (FutureTask.java:266)
        at org.apache.tomcat.util.threads.InlineExecutorService.execute (InlineExecutorService.java:75)
        at java.util.concurrent.AbstractExecutorService.submit (AbstractExecutorService.java:134)
        at org.apache.catalina.core.ContainerBase.startInternal (ContainerBase.java:919)
        at org.apache.catalina.core.StandardEngine.startInternal (StandardEngine.java:263)
        at org.apache.catalina.util.LifecycleBase.start (LifecycleBase.java:183)
        at org.apache.catalina.core.StandardService.startInternal (StandardService.java:432)
        at org.apache.catalina.util.LifecycleBase.start (LifecycleBase.java:183)
        at org.apache.catalina.core.StandardServer.startInternal (StandardServer.java:930)
        at org.apache.catalina.util.LifecycleBase.start (LifecycleBase.java:183)
        at org.apache.catalina.startup.Tomcat.start (Tomcat.java:486)
        at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize (TomcatWebServer.java:123)
        at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.<init> (TomcatWebServer.java:104)
        at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer (TomcatServletWebServerFactory.java:479)
        at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer (TomcatServletWebServerFactory.java:211)
        at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer (ServletWebServerApplicationContext.java:184)
        at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh (ServletWebServerApplicationContext.java:162)
        at org.springframework.context.support.AbstractApplicationContext.refresh (AbstractApplicationContext.java:577)
        at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh (ServletWebServerApplicationContext.java:147)
        at org.springframework.boot.SpringApplication.refresh (SpringApplication.java:734)
        at org.springframework.boot.SpringApplication.refreshContext (SpringApplication.java:408)
        at org.springframework.boot.SpringApplication.run (SpringApplication.java:308)
        at org.springframework.boot.SpringApplication.run (SpringApplication.java:1306)
        at org.springframework.boot.SpringApplication.run (SpringApplication.java:1295)
        at xxxxx.Application.main (Application.java:24)
        at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:279)
        at java.lang.Thread.run (Thread.java:750)
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is javax.xml.stream.FactoryConfigurationError: Provider org.apache.xerces.stax.XMLEventFactoryImpl not found
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean (AbstractAutowireCapableBeanFactory.java:1804)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:620)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:542)
        at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0 (AbstractBeanFactory.java:335)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:234)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (AbstractBeanFactory.java:333)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:208)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference (BeanDefinitionValueResolver.java:330)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary (BeanDefinitionValueResolver.java:113)
        at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments (ConstructorResolver.java:693)
        at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod (ConstructorResolver.java:510)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod (AbstractAutowireCapableBeanFactory.java:1352)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance (AbstractAutowireCapableBeanFactory.java:1195)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:582)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:542)
        at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0 (AbstractBeanFactory.java:335)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:234)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (AbstractBeanFactory.java:333)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:208)
        at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate (DependencyDescriptor.java:276)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency (DefaultListableBeanFactory.java:1391)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency (DefaultListableBeanFactory.java:1311)
        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue (AutowiredAnnotationBeanPostProcessor.java:656)
        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject (AutowiredAnnotationBeanPostProcessor.java:639)
        at org.springframework.beans.factory.annotation.InjectionMetadata.inject (InjectionMetadata.java:119)
        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties (AutowiredAnnotationBeanPostProcessor.java:399)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean (AbstractAutowireCapableBeanFactory.java:1431)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:619)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:542)
        at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0 (AbstractBeanFactory.java:335)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:234)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (AbstractBeanFactory.java:333)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:208)
        at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod (ConstructorResolver.java:410)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod (AbstractAutowireCapableBeanFactory.java:1352)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance (AbstractAutowireCapableBeanFactory.java:1195)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:582)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:542)
        at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0 (AbstractBeanFactory.java:335)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:234)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (AbstractBeanFactory.java:333)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:213)
        at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType (ServletContextInitializerBeans.java:212)
        at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType (ServletContextInitializerBeans.java:203)
        at org.springframework.boot.web.servlet.ServletContextInitializerBeans.addServletContextInitializerBeans (ServletContextInitializerBeans.java:97)
        at org.springframework.boot.web.servlet.ServletContextInitializerBeans.<init> (ServletContextInitializerBeans.java:86)
        at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.getServletContextInitializerBeans (ServletWebServerApplicationContext.java:262)
        at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.selfInitialize (ServletWebServerApplicationContext.java:236)
        at org.springframework.boot.web.embedded.tomcat.TomcatStarter.onStartup (TomcatStarter.java:53)
        at org.apache.catalina.core.StandardContext.startInternal (StandardContext.java:5219)
        at org.apache.catalina.util.LifecycleBase.start (LifecycleBase.java:183)
        at org.apache.catalina.core.ContainerBase$StartChild.call (ContainerBase.java:1396)
        at org.apache.catalina.core.ContainerBase$StartChild.call (ContainerBase.java:1386)
        at java.util.concurrent.FutureTask.run (FutureTask.java:266)
        at org.apache.tomcat.util.threads.InlineExecutorService.execute (InlineExecutorService.java:75)
        at java.util.concurrent.AbstractExecutorService.submit (AbstractExecutorService.java:134)
        at org.apache.catalina.core.ContainerBase.startInternal (ContainerBase.java:919)
        at org.apache.catalina.core.StandardHost.startInternal (StandardHost.java:835)
        at org.apache.catalina.util.LifecycleBase.start (LifecycleBase.java:183)
        at org.apache.catalina.core.ContainerBase$StartChild.call (ContainerBase.java:1396)
        at org.apache.catalina.core.ContainerBase$StartChild.call (ContainerBase.java:1386)
        at java.util.concurrent.FutureTask.run (FutureTask.java:266)
        at org.apache.tomcat.util.threads.InlineExecutorService.execute (InlineExecutorService.java:75)
        at java.util.concurrent.AbstractExecutorService.submit (AbstractExecutorService.java:134)
        at org.apache.catalina.core.ContainerBase.startInternal (ContainerBase.java:919)
        at org.apache.catalina.core.StandardEngine.startInternal (StandardEngine.java:263)
        at org.apache.catalina.util.LifecycleBase.start (LifecycleBase.java:183)
        at org.apache.catalina.core.StandardService.startInternal (StandardService.java:432)
        at org.apache.catalina.util.LifecycleBase.start (LifecycleBase.java:183)
        at org.apache.catalina.core.StandardServer.startInternal (StandardServer.java:930)
        at org.apache.catalina.util.LifecycleBase.start (LifecycleBase.java:183)
        at org.apache.catalina.startup.Tomcat.start (Tomcat.java:486)
        at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize (TomcatWebServer.java:123)
        at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.<init> (TomcatWebServer.java:104)
        at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer (TomcatServletWebServerFactory.java:479)
        at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer (TomcatServletWebServerFactory.java:211)
        at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer (ServletWebServerApplicationContext.java:184)
        at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh (ServletWebServerApplicationContext.java:162)
        at org.springframework.context.support.AbstractApplicationContext.refresh (AbstractApplicationContext.java:577)
        at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh (ServletWebServerApplicationContext.java:147)
        at org.springframework.boot.SpringApplication.refresh (SpringApplication.java:734)
        at org.springframework.boot.SpringApplication.refreshContext (SpringApplication.java:408)
        at org.springframework.boot.SpringApplication.run (SpringApplication.java:308)
        at org.springframework.boot.SpringApplication.run (SpringApplication.java:1306)
        at org.springframework.boot.SpringApplication.run (SpringApplication.java:1295)
        at xxxxx.Application.main (Application.java:24)
        at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:279)
        at java.lang.Thread.run (Thread.java:750)
    Caused by: javax.xml.stream.FactoryConfigurationError: Provider org.apache.xerces.stax.XMLEventFactoryImpl not found
        at javax.xml.stream.XMLEventFactory.newInstance (Unknown Source)
        at org.hibernate.boot.jaxb.internal.MappingBinder.<init> (MappingBinder.java:34)
        at org.hibernate.boot.spi.XmlMappingBinderAccess.<init> (XmlMappingBinderAccess.java:43)
        at org.hibernate.boot.MetadataSources.getXmlMappingBinderAccess (MetadataSources.java:115)
        at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.prepare (MetadataBuildingProcess.java:110)
        at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.<init> (EntityManagerFactoryBuilderImpl.java:269)
        at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.<init> (EntityManagerFactoryBuilderImpl.java:182)
        at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory (SpringHibernateJpaPersistenceProvider.java:52)
        at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory (LocalContainerEntityManagerFactoryBean.java:365)
        at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory (AbstractEntityManagerFactoryBean.java:409)
        at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet (AbstractEntityManagerFactoryBean.java:396)
        at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet (LocalContainerEntityManagerFactoryBean.java:341)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods (AbstractAutowireCapableBeanFactory.java:1863)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean (AbstractAutowireCapableBeanFactory.java:1800)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:620)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:542)
        at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0 (AbstractBeanFactory.java:335)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:234)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (AbstractBeanFactory.java:333)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:208)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference (BeanDefinitionValueResolver.java:330)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary (BeanDefinitionValueResolver.java:113)
        at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments (ConstructorResolver.java:693)
        at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod (ConstructorResolver.java:510)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod (AbstractAutowireCapableBeanFactory.java:1352)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance (AbstractAutowireCapableBeanFactory.java:1195)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:582)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:542)
        at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0 (AbstractBeanFactory.java:335)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:234)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (AbstractBeanFactory.java:333)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:208)
        at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate (DependencyDescriptor.java:276)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency (DefaultListableBeanFactory.java:1391)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency (DefaultListableBeanFactory.java:1311)
        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue (AutowiredAnnotationBeanPostProcessor.java:656)
        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject (AutowiredAnnotationBeanPostProcessor.java:639)
        at org.springframework.beans.factory.annotation.InjectionMetadata.inject (InjectionMetadata.java:119)
        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties (AutowiredAnnotationBeanPostProcessor.java:399)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean (AbstractAutowireCapableBeanFactory.java:1431)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:619)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:542)
        at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0 (AbstractBeanFactory.java:335)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:234)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (AbstractBeanFactory.java:333)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:208)
        at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod (ConstructorResolver.java:410)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod (AbstractAutowireCapableBeanFactory.java:1352)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance (AbstractAutowireCapableBeanFactory.java:1195)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:582)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:542)
        at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0 (AbstractBeanFactory.java:335)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:234)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (AbstractBeanFactory.java:333)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:213)
        at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType (ServletContextInitializerBeans.java:212)
        at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType (ServletContextInitializerBeans.java:203)
        at org.springframework.boot.web.servlet.ServletContextInitializerBeans.addServletContextInitializerBeans (ServletContextInitializerBeans.java:97)
        at org.springframework.boot.web.servlet.ServletContextInitializerBeans.<init> (ServletContextInitializerBeans.java:86)
        at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.getServletContextInitializerBeans (ServletWebServerApplicationContext.java:262)
        at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.selfInitialize (ServletWebServerApplicationContext.java:236)
        at org.springframework.boot.web.embedded.tomcat.TomcatStarter.onStartup (TomcatStarter.java:53)
        at org.apache.catalina.core.StandardContext.startInternal (StandardContext.java:5219)
        at org.apache.catalina.util.LifecycleBase.start (LifecycleBase.java:183)
        at org.apache.catalina.core.ContainerBase$StartChild.call (ContainerBase.java:1396)
        at org.apache.catalina.core.ContainerBase$StartChild.call (ContainerBase.java:1386)
        at java.util.concurrent.FutureTask.run (FutureTask.java:266)
        at org.apache.tomcat.util.threads.InlineExecutorService.execute (InlineExecutorService.java:75)
        at java.util.concurrent.AbstractExecutorService.submit (AbstractExecutorService.java:134)
        at org.apache.catalina.core.ContainerBase.startInternal (ContainerBase.java:919)
        at org.apache.catalina.core.StandardHost.startInternal (StandardHost.java:835)
        at org.apache.catalina.util.LifecycleBase.start (LifecycleBase.java:183)
        at org.apache.catalina.core.ContainerBase$StartChild.call (ContainerBase.java:1396)
        at org.apache.catalina.core.ContainerBase$StartChild.call (ContainerBase.java:1386)
        at java.util.concurrent.FutureTask.run (FutureTask.java:266)
        at org.apache.tomcat.util.threads.InlineExecutorService.execute (InlineExecutorService.java:75)
        at java.util.concurrent.AbstractExecutorService.submit (AbstractExecutorService.java:134)
        at org.apache.catalina.core.ContainerBase.startInternal (ContainerBase.java:919)
        at org.apache.catalina.core.StandardEngine.startInternal (StandardEngine.java:263)
        at org.apache.catalina.util.LifecycleBase.start (LifecycleBase.java:183)
        at org.apache.catalina.core.StandardService.startInternal (StandardService.java:432)
        at org.apache.catalina.util.LifecycleBase.start (LifecycleBase.java:183)
        at org.apache.catalina.core.StandardServer.startInternal (StandardServer.java:930)
        at org.apache.catalina.util.LifecycleBase.start (LifecycleBase.java:183)
        at org.apache.catalina.startup.Tomcat.start (Tomcat.java:486)
        at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize (TomcatWebServer.java:123)
        at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.<init> (TomcatWebServer.java:104)
        at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer (TomcatServletWebServerFactory.java:479)
        at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer (TomcatServletWebServerFactory.java:211)
        at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer (ServletWebServerApplicationContext.java:184)
        at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh (ServletWebServerApplicationContext.java:162)
        at org.springframework.context.support.AbstractApplicationContext.refresh (AbstractApplicationContext.java:577)
        at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh (ServletWebServerApplicationContext.java:147)
        at org.springframework.boot.SpringApplication.refresh (SpringApplication.java:734)
        at org.springframework.boot.SpringApplication.refreshContext (SpringApplication.java:408)
        at org.springframework.boot.SpringApplication.run (SpringApplication.java:308)
        at org.springframework.boot.SpringApplication.run (SpringApplication.java:1306)
        at org.springframework.boot.SpringApplication.run (SpringApplication.java:1295)
        at xxxxx.Application.main (Application.java:24)
        at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:279)
        at java.lang.Thread.run (Thread.java:750)
    [WARNING] thread Thread[mysql-cj-abandoned-connection-cleanup,5,xxxxx.Application] was interrupted but is still alive after waiting at least 15000msecs
    [WARNING] thread Thread[mysql-cj-abandoned-connection-cleanup,5,xxxxx.Application] will linger despite being asked to die via interruption
    [WARNING] thread Thread[HikariPool-1 housekeeper,5,xxxxx.Application] will linger despite being asked to die via interruption
    [WARNING] thread Thread[HikariPool-2 housekeeper,5,xxxxx.Application] will linger despite being asked to die via interruption
    [WARNING] NOTE: 3 thread(s) did not finish despite being asked to via interruption. This is not a problem with exec:java, it is a problem with the running code. Although not serious, it should be remedied.
    [WARNING] Couldn't destroy threadgroup org.codehaus.mojo.exec.ExecJavaMojo$IsolatedThreadGroup[name=xxxxx.Application,maxpri=10]
    java.lang.IllegalThreadStateException
        at java.lang.ThreadGroup.destroy (ThreadGroup.java:778)
        at org.codehaus.mojo.exec.ExecJavaMojo.execute (ExecJavaMojo.java:319)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
        at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
        at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
        at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
        at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
        at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
        at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
        at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
        at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke (Method.java:498)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time:  22.638 s
    [INFO] Finished at: 2022-07-28T10:19:05+01:00
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.1.0:java (SpringBootStart) on project my-project: An exception occurred while executing the Java class. Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat: Error creating bean with name 'handlerInterceptorConfig': Unsatisfied dependency expressed through field 'entityManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.orm.jpa.SharedEntityManagerCreator#0': Cannot resolve reference to bean 'entityManagerFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is javax.xml.stream.FactoryConfigurationError: Provider org.apache.xerces.stax.XMLEventFactoryImpl not found -> [Help 1]
    [ERROR] 
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR] 
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
    

    Not sure if this helps but here are the contents of the release file of my JDK:

    JAVA_VERSION="1.8.0_332"
    OS_NAME="Windows"
    OS_VERSION="5.2"
    OS_ARCH="amd64"
    SOURCE="git:7567559e3559+"
    IMPLEMENTOR="Eclipse Adoptium"
    BUILD_SOURCE="git:955033f"
    BUILD_SOURCE_REPO="https://github.com/adoptium/temurin-build.git"
    SOURCE_REPO="https://github.com/adoptium/jdk8u.git"
    FULL_VERSION="1.8.0_332-b09"
    SEMANTIC_VERSION="8.0.332+9"
    BUILD_INFO="OS: Windows Server 2012 R2 Version: 6.3"
    JVM_VARIANT="Hotspot"
    JVM_VERSION="25.332-b09"
    IMAGE_TYPE="JDK"
    
  12. rmannibucau commented on Jul 28, 2022

    @rmannibucau
    rmannibucau
    on Jul 28, 2022
    Contributor
    More actions

    Did you try cleaning the dependencies? I recall spring leaks some undesired xml libraries easily so can be the very same issue.

  13. msglifeIberia commented on Jul 28, 2022

    @msglifeIberia
    msglifeIberia
    on Jul 28, 2022
    More actions

    No I have not. I can try doing that but I would prefer not to as in 3.0.0 it works with the same dependencies

  14. rmannibucau commented on Jul 28, 2022

    @rmannibucau
    rmannibucau
    on Jul 28, 2022
    Contributor
    More actions

    @msglifeIberia it was a bug of 3.0.0 as explained earlier, tolerating wrong classpath and leaking too much libs. 3.1.0 fixed it showing it on your stack. If keeping the classpath issue is desired, exec.exec is a better choice since thz fork enables to keep conflicts as before silently.

  15. msglifeIberia commented on Jul 28, 2022

    @msglifeIberia
    msglifeIberia
    on Jul 28, 2022
    More actions

    Ok then I will try to fix my dependencies

  16. marcellanz commented on Jul 28, 2022

    @marcellanz
    marcellanz
    on Jul 28, 2022
    More actions

    @marcellanz @msglifeIberia can we close this issue?

    fine with me.

  17. jpalus commented on Sep 8, 2022

    @jpalus
    jpalus
    on Sep 8, 2022
    More actions

    Encountered the issue today. xml-apis is loaded instead of java runtime resulting in:

    java.lang.VerifyError: (class: com/..., method: createSAXTransformerFactoryInstance signature: ()Ljavax/xml/transform/sax/SAXTransformerFactory;) Wrong return type in function
    

    Excluding xml-apis from classpath does not seem to be an option since xercesImpl appears to require it.

    Just in case small reproducer:

    pom.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    
    <modelVersion>4.0.0</modelVersion>
    
    <artifactId>exec-test</artifactId>
    <groupId>com.test</groupId>
    <version>0.1</version>
    
    <name>exec-test</name>
    
    <dependencies>
      <dependency>
        <groupId>xml-apis</groupId>
        <artifactId>xml-apis</artifactId>
        <version>1.4.01</version>
      </dependency>
    </dependencies>
    
    <build>
      <plugins>
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>exec-maven-plugin</artifactId>
          <version>3.1.0</version>
          <executions>
            <execution>
              <id>run</id>
              <phase>install</phase>
              <goals>
                <goal>java</goal>
              </goals>
            </execution>
          </executions>
          <configuration>
            <mainClass>com.test.Test</mainClass>
          </configuration>
        </plugin>
      </plugins>
    
    </build>
    
    </project>
    com.test.Test
    package com.test;
    
    import javax.xml.transform.sax.SAXTransformerFactory;
    
    public class Test {
      public static void main(String[] args) {
        System.out.println(SAXTransformerFactory.class.getProtectionDomain().getCodeSource() != null ? SAXTransformerFactory.class.getProtectionDomain().getCodeSource().getLocation() : null);
      }
    }

    Output with exec-maven-plugin:

    file:/home/users/jan/.m2/repository/xml-apis/xml-apis/1.4.01/xml-apis-1.4.01.jar
    

    Output with "equivalent" manual invocation java -cp ./target/classes:/home/users/jan/.m2/repository/xml-apis/xml-apis/1.4.01/xml-apis-1.4.01.jar com.test.Test:

    null
    

    I would expect both to be null meaning class always comes from java runtime.

  18. rmannibucau
    added a commit that references this issue on Sep 8, 2022

    mojohaus#322, enable to control the exec:java interaction with JVM cl…

    1bab77f
  19. rmannibucau commented on Sep 8, 2022

    @rmannibucau
    rmannibucau
    on Sep 8, 2022
    Contributor
    More actions

    Proposing #337, do you want to give a try with this patch?

    Reacted by Benjamin Marwell
  20. jpalus commented on Sep 12, 2022

    @jpalus
    jpalus
    on Sep 12, 2022
    More actions

    @rmannibucau thanks. Confirmed that #337 fixes my issue.

    Reacted by Benjamin Marwell
  21. rmannibucau
    added a commit that references this issue on Jul 10, 2023

    mojohaus#322, enable to control the exec:java interaction with JVM cl…

    1ae99f4
  22. sonnyhcl commented on Oct 10, 2023

    @sonnyhcl
    sonnyhcl
    on Oct 10, 2023
    More actions

    Is there any mitigation?

  23. rmannibucau commented on Oct 10, 2023

    @rmannibucau
    rmannibucau
    on Oct 10, 2023
    Contributor
    More actions

    @sonnyhcl most of the time cleaning transitive deps which are actually unexpected, else i guess using a version with the fix

  24. slawekjaranowski
    linked a pull request that will close this issue#322, enable to control the exec:java interaction with JVM classloader more finely #337on Oct 22, 2024
  25. slawekjaranowski
    added this to the next-release milestone on Oct 22, 2024
  26. slawekjaranowski
    added
    bugSomething isn't working
    on Oct 22, 2024
  27. slawekjaranowski
    added a commit that references this issue on Oct 22, 2024

    #322, enable to control the exec:java interaction with JVM classloade…

    47eac15
  28. slawekjaranowski
    closed this as completedin #337on Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      • 3.5.0

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.