I'm currently working on a Spring boot Backend, it's my task to update all dependencies and make sure it'll run in Java 11.
I encountered an exception and found out that importing Spring data commons with maven solves the missing pageableCustomizer() method.
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-commons</artifactId>
<version>2.1.10.RELEASE</version>
</dependency>
Latter is the dependency I added to maven.
After adding that, java tells me the following:
***************************
APPLICATION FAILED TO START
***************************
Description:
An attempt was made to call a method that does not exist. The attempt was made from the following location:
org.springframework.data.jpa.repository.config.JpaRepositoryConfigExtension.postProcess(JpaRepositoryConfigExtension.java:120)
The following method did not exist:
org.springframework.data.repository.config.RepositoryConfigurationSource.getAttribute(Ljava/lang/String;)Ljava/lang/String;
The method's class, org.springframework.data.repository.config.RepositoryConfigurationSource, is available from the following locations:
jar:file:path_to_project/target/name_of_the_jar.jar!/BOOT-INF/lib/spring-data-commons-2.1.10.RELEASE.jar!/org/springframework/data/repository/config/RepositoryConfigurationSource.class
It was loaded from the following location:
jar:file:/path_to_project/target/name_of_the_jar.jar!/BOOT-INF/lib/spring-data-commons-2.1.10.RELEASE.jar!/
Action:
Correct the classpath of your application so that it contains a single, compatible version of org.springframework.data.repository.config.RepositoryConfigurationSource
I've found out that data JPA,
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
<version>2.1.7.RELEASE</version>
</dependency>
Is dependent on an older version of data commons
+ org.springframework.boot:spring-boot-starter-data-jpa:2.1.7.RELEASE
+ org.springframework.data:spring-data-jpa:1.8.2.RELEASE
+ org.springframework.data:spring-data-commons:1.10.2.RELEASE
Which seems to cause the problem.
I already tried to just use one of them and spent the whole day searching for a solution.
I also tried to use the dependencyManagement offered by Spring:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${spring-boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
That pulled the same versions of all the dependencies. (I, of course, removed the version tag in the dependency)
EDIT
The dependency:tree requested.
[INFO] Application:jar:0.0.3
[INFO] +- com.h2database:h2:jar:1.4.199:compile
[INFO] +- org.springframework.boot:spring-boot-starter-data-jpa:jar:2.1.7.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-aop:jar:2.1.7.RELEASE:compile
[INFO] | | \- org.aspectj:aspectjweaver:jar:1.9.4:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-jdbc:jar:2.1.7.RELEASE:compile
[INFO] | | \- com.zaxxer:HikariCP:jar:3.2.0:compile
[INFO] | +- javax.transaction:javax.transaction-api:jar:1.3:compile
[INFO] | +- javax.xml.bind:jaxb-api:jar:2.3.1:compile
[INFO] | | \- javax.activation:javax.activation-api:jar:1.2.0:compile
[INFO] | +- org.hibernate:hibernate-core:jar:5.3.10.Final:compile
[INFO] | | +- org.jboss.logging:jboss-logging:jar:3.3.2.Final:compile
[INFO] | | +- javax.persistence:javax.persistence-api:jar:2.2:compile
[INFO] | | +- org.javassist:javassist:jar:3.23.2-GA:compile
[INFO] | | +- net.bytebuddy:byte-buddy:jar:1.9.16:compile
[INFO] | | +- antlr:antlr:jar:2.7.7:compile
[INFO] | | +- org.jboss:jandex:jar:2.0.5.Final:compile
[INFO] | | +- com.fasterxml:classmate:jar:1.4.0:compile
[INFO] | | +- org.dom4j:dom4j:jar:2.1.1:compile
[INFO] | | \- org.hibernate.common:hibernate-commons-annotations:jar:5.0.4.Final:compile
[INFO] | +- org.springframework.data:spring-data-jpa:jar:1.8.2.RELEASE:compile
[INFO] | | +- org.springframework.data:spring-data-commons:jar:1.10.2.RELEASE:compile
[INFO] | | +- org.springframework:spring-beans:jar:5.1.9.RELEASE:compile
[INFO] | | +- org.springframework:spring-core:jar:5.1.9.RELEASE:compile
[INFO] | | | \- org.springframework:spring-jcl:jar:5.1.9.RELEASE:compile
[INFO] | | \- org.slf4j:slf4j-api:jar:1.7.25:compile
[INFO] | \- org.springframework:spring-aspects:jar:5.1.9.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-security:jar:2.1.7.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter:jar:2.1.7.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot:jar:2.1.7.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-logging:jar:2.1.7.RELEASE:compile
[INFO] | | | +- ch.qos.logback:logback-classic:jar:1.2.3:compile
[INFO] | | | | \- ch.qos.logback:logback-core:jar:1.2.3:compile
[INFO] | | | +- org.apache.logging.log4j:log4j-to-slf4j:jar:2.11.2:compile
[INFO] | | | | \- org.apache.logging.log4j:log4j-api:jar:2.11.2:compile
[INFO] | | | \- org.slf4j:jul-to-slf4j:jar:1.7.26:compile
[INFO] | | +- javax.annotation:javax.annotation-api:jar:1.3.2:compile
[INFO] | | \- org.yaml:snakeyaml:jar:1.23:runtime
[INFO] | +- org.springframework:spring-aop:jar:5.1.9.RELEASE:compile
[INFO] | +- org.springframework.security:spring-security-config:jar:5.1.6.RELEASE:compile
[INFO] | | \- org.springframework.security:spring-security-core:jar:5.1.6.RELEASE:compile
[INFO] | \- org.springframework.security:spring-security-web:jar:5.1.6.RELEASE:compile
[INFO] | +- org.springframework:spring-expression:jar:5.1.9.RELEASE:compile
[INFO] | \- org.springframework:spring-web:jar:5.1.9.RELEASE:compile
[INFO] +- org.projectlombok:lombok:jar:1.18.6:compile
[INFO] +- org.springframework.cloud:spring-cloud-starter-netflix-eureka-client:jar:2.1.2.RELEASE:compile
[INFO] | +- org.springframework.cloud:spring-cloud-starter:jar:2.1.0.RELEASE:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-context:jar:2.1.0.RELEASE:compile
[INFO] | | | \- org.springframework.security:spring-security-crypto:jar:5.1.6.RELEASE:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-commons:jar:2.1.0.RELEASE:compile
[INFO] | | \- org.springframework.security:spring-security-rsa:jar:1.0.7.RELEASE:compile
[INFO] | | \- org.bouncycastle:bcpkix-jdk15on:jar:1.60:compile
[INFO] | | \- org.bouncycastle:bcprov-jdk15on:jar:1.60:compile
[INFO] | +- org.springframework.cloud:spring-cloud-netflix-hystrix:jar:2.1.0.RELEASE:compile
[INFO] | +- org.springframework.cloud:spring-cloud-netflix-eureka-client:jar:2.1.0.RELEASE:compile
[INFO] | +- com.netflix.eureka:eureka-client:jar:1.9.8:compile
[INFO] | | +- org.codehaus.jettison:jettison:jar:1.3.7:runtime
[INFO] | | | \- stax:stax-api:jar:1.0.1:runtime
[INFO] | | +- com.netflix.netflix-commons:netflix-eventbus:jar:0.3.0:runtime
[INFO] | | | +- com.netflix.netflix-commons:netflix-infix:jar:0.3.0:runtime
[INFO] | | | | +- commons-jxpath:commons-jxpath:jar:1.3:runtime
[INFO] | | | | \- org.antlr:antlr-runtime:jar:3.4:runtime
[INFO] | | | | \- org.antlr:stringtemplate:jar:3.2.1:runtime
[INFO] | | | \- org.apache.commons:commons-math:jar:2.2:runtime
[INFO] | | +- com.netflix.archaius:archaius-core:jar:0.7.6:compile
[INFO] | | +- com.netflix.servo:servo-core:jar:0.12.21:runtime
[INFO] | | +- com.sun.jersey:jersey-core:jar:1.19.1:runtime
[INFO] | | +- com.sun.jersey:jersey-client:jar:1.19.1:runtime
[INFO] | | +- com.sun.jersey.contribs:jersey-apache-client4:jar:1.19.1:runtime
[INFO] | | +- org.apache.httpcomponents:httpclient:jar:4.5.9:runtime
[INFO] | | | +- org.apache.httpcomponents:httpcore:jar:4.4.11:runtime
[INFO] | | | \- commons-codec:commons-codec:jar:1.11:runtime
[INFO] | | +- com.google.inject:guice:jar:4.1.0:runtime
[INFO] | | | +- javax.inject:javax.inject:jar:1:runtime
[INFO] | | | \- aopalliance:aopalliance:jar:1.0:runtime
[INFO] | | +- com.github.vlsi.compactmap:compactmap:jar:1.2.1:runtime
[INFO] | | | \- com.github.andrewoma.dexx:dexx-collections:jar:0.2:runtime
[INFO] | | \- com.fasterxml.jackson.core:jackson-core:jar:2.9.9:compile
[INFO] | +- com.netflix.eureka:eureka-core:jar:1.9.8:compile
[INFO] | | \- org.codehaus.woodstox:woodstox-core-asl:jar:4.4.1:runtime
[INFO] | | +- javax.xml.stream:stax-api:jar:1.0-2:runtime
[INFO] | | \- org.codehaus.woodstox:stax2-api:jar:3.1.4:runtime
[INFO] | +- org.springframework.cloud:spring-cloud-starter-netflix-archaius:jar:2.1.0.RELEASE:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-netflix-ribbon:jar:2.1.0.RELEASE:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-netflix-archaius:jar:2.1.0.RELEASE:compile
[INFO] | | \- commons-configuration:commons-configuration:jar:1.8:compile
[INFO] | | \- commons-lang:commons-lang:jar:2.6:compile
[INFO] | +- org.springframework.cloud:spring-cloud-starter-netflix-ribbon:jar:2.1.0.RELEASE:compile
[INFO] | | +- com.netflix.ribbon:ribbon:jar:2.3.0:compile
[INFO] | | | +- com.netflix.ribbon:ribbon-transport:jar:2.3.0:runtime
[INFO] | | | | +- io.reactivex:rxnetty-contexts:jar:0.4.9:runtime
[INFO] | | | | \- io.reactivex:rxnetty-servo:jar:0.4.9:runtime
[INFO] | | | +- com.netflix.hystrix:hystrix-core:jar:1.5.18:runtime
[INFO] | | | | \- org.hdrhistogram:HdrHistogram:jar:2.1.9:runtime
[INFO] | | | \- io.reactivex:rxnetty:jar:0.4.9:runtime
[INFO] | | +- com.netflix.ribbon:ribbon-core:jar:2.3.0:compile
[INFO] | | +- com.netflix.ribbon:ribbon-httpclient:jar:2.3.0:compile
[INFO] | | | +- commons-collections:commons-collections:jar:3.2.2:runtime
[INFO] | | | \- com.netflix.netflix-commons:netflix-commons-util:jar:0.3.0:runtime
[INFO] | | +- com.netflix.ribbon:ribbon-loadbalancer:jar:2.3.0:compile
[INFO] | | | \- com.netflix.netflix-commons:netflix-statistics:jar:0.1.1:runtime
[INFO] | | \- io.reactivex:rxjava:jar:1.3.8:compile
[INFO] | +- com.netflix.ribbon:ribbon-eureka:jar:2.3.0:compile
[INFO] | \- com.thoughtworks.xstream:xstream:jar:1.4.10:compile
[INFO] | +- xmlpull:xmlpull:jar:1.1.3.1:compile
[INFO] | \- xpp3:xpp3_min:jar:1.1.4c:compile
[INFO] +- org.camunda.bpm.springboot:camunda-bpm-spring-boot-starter:jar:3.3.3:compile
[INFO] | +- org.camunda.bpm:camunda-engine-spring:jar:7.11.0:compile
[INFO] | | +- org.camunda.bpm:camunda-engine:jar:7.11.0:compile
[INFO] | | | +- org.camunda.bpm.model:camunda-bpmn-model:jar:7.11.0:compile
[INFO] | | | | \- org.camunda.bpm.model:camunda-xml-model:jar:7.11.0:compile
[INFO] | | | +- org.camunda.bpm.model:camunda-cmmn-model:jar:7.11.0:compile
[INFO] | | | +- org.camunda.bpm.dmn:camunda-engine-dmn:jar:7.11.0:compile
[INFO] | | | | +- org.camunda.commons:camunda-commons-utils:jar:1.7.1:compile
[INFO] | | | | +- org.camunda.bpm.model:camunda-dmn-model:jar:7.11.0:compile
[INFO] | | | | +- org.camunda.bpm.dmn:camunda-engine-feel-api:jar:7.11.0:compile
[INFO] | | | | \- org.camunda.bpm.dmn:camunda-engine-feel-juel:jar:7.11.0:compile
[INFO] | | | +- org.camunda.commons:camunda-commons-logging:jar:1.7.1:compile
[INFO] | | | +- org.camunda.commons:camunda-commons-typed-values:jar:1.7.1:compile
[INFO] | | | +- org.mybatis:mybatis:jar:3.4.4:compile
[INFO] | | | +- com.google.code.gson:gson:jar:2.8.5:compile
[INFO] | | | \- joda-time:joda-time:jar:2.10.3:compile
[INFO] | | \- commons-dbcp:commons-dbcp:jar:1.4:compile
[INFO] | | \- commons-pool:commons-pool:jar:1.6:compile
[INFO] | +- org.springframework:spring-context:jar:5.1.9.RELEASE:compile
[INFO] | +- org.springframework:spring-jdbc:jar:5.1.9.RELEASE:compile
[INFO] | +- org.springframework:spring-tx:jar:5.1.9.RELEASE:compile
[INFO] | +- org.springframework:spring-orm:jar:5.1.9.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-autoconfigure:jar:2.1.7.RELEASE:compile
[INFO] | \- com.fasterxml.uuid:java-uuid-generator:jar:3.1.2:compile
[INFO] +- swagger_spring_Selfmade:jar:0.0.2-20181112140901_9_e91acd7:compile
[INFO] | +- io.springfox:springfox-swagger2:jar:2.8.0:compile
[INFO] | | +- io.swagger:swagger-annotations:jar:1.5.14:compile
[INFO] | | +- io.swagger:swagger-models:jar:1.5.14:compile
[INFO] | | +- io.springfox:springfox-spi:jar:2.8.0:compile
[INFO] | | | \- io.springfox:springfox-core:jar:2.8.0:compile
[INFO] | | +- io.springfox:springfox-schema:jar:2.8.0:compile
[INFO] | | +- io.springfox:springfox-swagger-common:jar:2.8.0:compile
[INFO] | | +- io.springfox:springfox-spring-web:jar:2.8.0:compile
[INFO] | | | \- org.reflections:reflections:jar:0.9.11:compile
[INFO] | | +- org.springframework.plugin:spring-plugin-core:jar:1.2.0.RELEASE:compile
[INFO] | | +- org.springframework.plugin:spring-plugin-metadata:jar:1.2.0.RELEASE:compile
[INFO] | | \- org.mapstruct:mapstruct:jar:1.2.0.Final:compile
[INFO] | \- io.springfox:springfox-swagger-ui:jar:2.8.0:compile
[INFO] +- oidc_auth_filter_selfmade:jar:0.1.0-20181112140634_8_2e26773:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-web:jar:2.1.7.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-json:jar:2.1.7.RELEASE:compile
[INFO] | | | +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.9.9:compile
[INFO] | | | +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.9.9:compile
[INFO] | | | \- com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.9.9:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-tomcat:jar:2.1.7.RELEASE:compile
[INFO] | | | +- org.apache.tomcat.embed:tomcat-embed-core:jar:9.0.22:compile
[INFO] | | | +- org.apache.tomcat.embed:tomcat-embed-el:jar:9.0.22:compile
[INFO] | | | \- org.apache.tomcat.embed:tomcat-embed-websocket:jar:9.0.22:compile
[INFO] | | +- org.hibernate.validator:hibernate-validator:jar:6.0.17.Final:compile
[INFO] | | | \- javax.validation:validation-api:jar:2.0.1.Final:compile
[INFO] | | \- org.springframework:spring-webmvc:jar:5.1.9.RELEASE:compile
[INFO] | +- com.google.guava:guava:jar:21.0:compile
[INFO] | \- com.nimbusds:oauth2-oidc-sdk:jar:5.64.3:compile
[INFO] | +- javax.mail:javax.mail-api:jar:1.6.2:compile
[INFO] | +- com.sun.mail:javax.mail:jar:1.6.2:compile
[INFO] | | \- javax.activation:activation:jar:1.1:compile
[INFO] | +- com.github.stephenc.jcip:jcip-annotations:jar:1.0-1:compile
[INFO] | +- net.minidev:json-smart:jar:2.3:compile (version selected from constraint [1.3.1,2.3])
[INFO] | | \- net.minidev:accessors-smart:jar:1.2:compile
[INFO] | | \- org.ow2.asm:asm:jar:5.0.4:compile
[INFO] | +- com.nimbusds:lang-tag:jar:1.4.4:compile (version selected from constraint [1.4.3,))
[INFO] | \- com.nimbusds:nimbus-jose-jwt:jar:7.7:compile (version selected from constraint [5.5,))
[INFO] +- org.springframework.boot:spring-boot-starter-quartz:jar:2.1.7.RELEASE:compile
[INFO] | +- org.springframework:spring-context-support:jar:5.1.9.RELEASE:compile
[INFO] | \- org.quartz-scheduler:quartz:jar:2.3.1:compile
[INFO] | \- com.mchange:mchange-commons-java:jar:0.2.15:compile
[INFO] +- com.google.code.findbugs:annotations:jar:3.0.1u2:provided
[INFO] | +- net.jcip:jcip-annotations:jar:1.0:provided
[INFO] | \- com.google.code.findbugs:jsr305:jar:3.0.1:provided
[INFO] +- camunda_persistence_selfmade:jar:0.0.3-20181204140427_54_6d6c73a:compile
[INFO] +- camunda_templates_modeller(Selfmade):jar:0.1.1-20181204132850_11_89ff2f5:compile
[INFO] +- org.glassfish.jaxb:jaxb-runtime:jar:2.3.2:compile
[INFO] | +- jakarta.xml.bind:jakarta.xml.bind-api:jar:2.3.2:compile
[INFO] | +- org.glassfish.jaxb:txw2:jar:2.3.1:compile
[INFO] | +- com.sun.istack:istack-commons-runtime:jar:3.0.8:compile
[INFO] | +- org.jvnet.staxex:stax-ex:jar:1.8.1:compile
[INFO] | +- com.sun.xml.fastinfoset:FastInfoset:jar:1.2.16:compile
[INFO] | \- jakarta.activation:jakarta.activation-api:jar:1.2.1:compile
[INFO] +- jaxrs_client(Selfmade):jar:0.1.0-20181112140855_9_da1fd9b:compile
[INFO] +- jaxrs_jersey_client(Selfmade):jar:0.1.0-20181112141745_76_84d9b84:compile
[INFO] +- org.apache.commons:commons-lang3:jar:3.5:compile
[INFO] +- commons-io:commons-io:jar:2.5:compile
[INFO] +- org.glassfish.jersey.core:jersey-common:jar:2.29:compile
[INFO] | +- jakarta.ws.rs:jakarta.ws.rs-api:jar:2.1.5:compile
[INFO] | +- jakarta.annotation:jakarta.annotation-api:jar:1.3.4:compile
[INFO] | +- org.glassfish.hk2.external:jakarta.inject:jar:2.5.0:compile
[INFO] | +- org.glassfish.hk2:osgi-resource-locator:jar:1.0.3:compile
[INFO] | \- com.sun.activation:jakarta.activation:jar:1.2.1:compile
[INFO] +- org.glassfish.jersey.core:jersey-client:jar:2.29:compile
[INFO] +- org.glassfish.jersey.inject:jersey-hk2:jar:2.29:compile
[INFO] | \- org.glassfish.hk2:hk2-locator:jar:2.5.0:compile
[INFO] | +- org.glassfish.hk2.external:aopalliance-repackaged:jar:2.5.0:compile
[INFO] | +- org.glassfish.hk2:hk2-api:jar:2.5.0:compile
[INFO] | \- org.glassfish.hk2:hk2-utils:jar:2.5.0:compile
[INFO] +- org.glassfish.jersey.media:jersey-media-json-jackson:jar:2.29:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-annotations:jar:2.9.0:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-databind:jar:2.9.9:compile
[INFO] | \- com.fasterxml.jackson.module:jackson-module-jaxb-annotations:jar:2.9.9:compile
[INFO] +- org.glassfish.jersey.media:jersey-media-multipart:jar:2.29:compile
[INFO] | \- org.jvnet.mimepull:mimepull:jar:1.9.11:compile
[INFO] \- org.glassfish.jersey.ext:jersey-entity-filtering:jar:2.29:compile
I started another approach:
Removed ALL dependencies and added only those necessary to build the project (unworking for now) this produced the same error message I before solved with spring data commons. This time I can't solve that:
java.lang.IllegalStateException: Error processing condition on org.springframework.boot.autoconfigure.data.web.SpringDataWebAutoConfiguration.pageableCustomizer
at org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:60)
at org.springframework.context.annotation.ConditionEvaluator.shouldSkip(ConditionEvaluator.java:108)
at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsForBeanMethod(ConfigurationClassBeanDefinitionReader.java:181)
at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsForConfigurationClass(ConfigurationClassBeanDefinitionReader.java:141)
at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitions(ConfigurationClassBeanDefinitionReader.java:117)
at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:327)
at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:232)
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:275)
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:95)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:705)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:531)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:743)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:390)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:312)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1214)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1203)
at SpringApplication.main(WorkflowEngineSpringBootApplication.java:94)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:51)
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:52)
Caused by: java.lang.IllegalStateException: #ConditionalOnMissingBean did not specify a bean using type, name or annotation and the attempt to deduce the bean's type failed
at org.springframework.boot.autoconfigure.condition.OnBeanCondition$BeanSearchSpec.validate(OnBeanCondition.java:409)
at org.springframework.boot.autoconfigure.condition.OnBeanCondition$BeanSearchSpec.<init>(OnBeanCondition.java:400)
at org.springframework.boot.autoconfigure.condition.OnBeanCondition$BeanSearchSpec.<init>(OnBeanCondition.java:375)
at org.springframework.boot.autoconfigure.condition.OnBeanCondition.getMatchOutcome(OnBeanCondition.java:144)
at org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:47)
... 25 common frames omitted
Caused by: org.springframework.boot.autoconfigure.condition.OnBeanCondition$BeanTypeDeductionException: Failed to deduce bean type for org.springframework.boot.autoconfigure.data.web.SpringDataWebAutoConfiguration.pageableCustomizer
at org.springframework.boot.autoconfigure.condition.OnBeanCondition$BeanSearchSpec.addDeducedBeanTypeForBeanMethod(OnBeanCondition.java:449)
at org.springframework.boot.autoconfigure.condition.OnBeanCondition$BeanSearchSpec.addDeducedBeanType(OnBeanCondition.java:438)
at org.springframework.boot.autoconfigure.condition.OnBeanCondition$BeanSearchSpec.<init>(OnBeanCondition.java:394)
... 28 common frames omitted
Caused by: java.lang.ClassNotFoundException: org.springframework.data.web.config.PageableHandlerMethodArgumentResolverCustomizer
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:471)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:588)
at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:93)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:398)
at org.springframework.util.ClassUtils.forName(ClassUtils.java:275)
at org.springframework.boot.autoconfigure.condition.OnBeanCondition$BeanSearchSpec.getReturnType(OnBeanCondition.java:458)
at org.springframework.boot.autoconfigure.condition.OnBeanCondition$BeanSearchSpec.addDeducedBeanTypeForBeanMethod(OnBeanCondition.java:445)
... 30 common frames omitted
EDIT 2
https://pastebin.com/6ikPBSnF
My maven pom.
Problem could be the dependency for spring-data-releasetrain on the Fowler-SR2 release train version.
This release train is a few years old see the maven pom. You'll want to take a look as to why that is included in your pom.
Related
I have a spark spring-boot application and upgrading spring boot from 1.X to 2.1.5.Now with spring-boot 2.1.15 upgrade , I am getting snakeyaml error in application startup as:
ERROR SpringApplication - Application run failed
java.lang.NoSuchMethodError: org.yaml.snakeyaml.Yaml.<init>(Lorg/yaml/snakeyaml/constructor/BaseConstructor;Lorg/yaml/snakeyaml/representer/Representer;Lorg/yaml/snakeyaml/DumperOptions;Lorg/yaml/snakeyaml/LoaderOptions;Lorg/yaml/snakeyaml/resolver/Resolver;)V
at org.springframework.boot.env.OriginTrackedYamlLoader.createYaml(OriginTrackedYamlLoader.java:71)
at org.springframework.beans.factory.config.YamlProcessor.process(YamlProcessor.java:162)
at org.springframework.boot.env.OriginTrackedYamlLoader.load(OriginTrackedYamlLoader.java:76)
at org.springframework.boot.env.YamlPropertySourceLoader.load(YamlPropertySourceLoader.java:50)
at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.loadDocuments(ConfigFileApplicationListener.java:544)
at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.load(ConfigFileApplicationListener.java:499)
at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.loadForFileExtension(ConfigFileApplicationListener.java:475)
at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.load(ConfigFileApplicationListener.java:445)
at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.lambda$null$6(ConfigFileApplicationListener.java:427)
at java.lang.Iterable.forEach(Iterable.java:75)
at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.lambda$load$7(ConfigFileApplicationListener.java:427)
at java.lang.Iterable.forEach(Iterable.java:75)
at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.load(ConfigFileApplicationListener.java:424)
at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.load(ConfigFileApplicationListener.java:323)
at org.springframework.boot.context.config.ConfigFileApplicationListener.addPropertySources(ConfigFileApplicationListener.java:204)
at org.springframework.boot.context.config.ConfigFileApplicationListener.postProcessEnvironment(ConfigFileApplicationListener.java:188)
at org.springframework.boot.context.config.ConfigFileApplicationListener.onApplicationEnvironmentPreparedEvent(ConfigFileApplicationListener.java:178)
at org.springframework.boot.context.config.ConfigFileApplicationListener.onApplicationEvent(ConfigFileApplicationListener.java:166)
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:127)
at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:76)
at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:53)
at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:342)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:305)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1204)
at com.capitalone.customercore.autolink.AutolinkApp.main(AutolinkApp.java:17)
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.apache.spark.deploy.JavaMainApplication.start(SparkApplication.scala:52)
at org.apache.spark.deploy.SparkSubmit.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:845)
at org.apache.spark.deploy.SparkSubmit.doRunMain$1(SparkSubmit.scala:161)
at org.apache.spark.deploy.SparkSubmit.submit(SparkSubmit.scala:184)
at org.apache.spark.deploy.SparkSubmit.doSubmit(SparkSubmit.scala:86)
at org.apache.spark.deploy.SparkSubmit$$anon$2.doSubmit(SparkSubmit.scala:920)
at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:929)
at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
I did check the snakeyaml in dependency:tree and see org.yaml:snakeyaml:jar:1.23:compile
My dependency:tree is :
com.test.customercore:autolink-utility:jar:0.30-SNAPSHOT
[INFO] +- org.springframework.boot:spring-boot-starter:jar:2.1.15.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot:jar:2.1.15.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-autoconfigure:jar:2.1.15.RELEASE:compile
[INFO] | +- javax.annotation:javax.annotation-api:jar:1.3.2:compile
[INFO] | +- org.springframework:spring-core:jar:5.1.16.RELEASE:compile
[INFO] | | \- org.springframework:spring-jcl:jar:5.1.16.RELEASE:compile
[INFO] | \- org.yaml:snakeyaml:jar:1.23:compile
[INFO] +- org.springframework:spring-expression:jar:5.3.17:compile
[INFO] [INFO] | +- com.amazonaws:aws-java-sdk-kinesisvideo:jar:1.11.511:compile
[INFO] | | \- io.netty:netty-handler:jar:4.1.50.Final:compile
[INFO] | | +- io.netty:netty-common:jar:4.1.50.Final:compile
[INFO] | | +- io.netty:netty-resolver:jar:4.1.50.Final:compile
[INFO] | | +- io.netty:netty-buffer:jar:4.1.50.Final:compile
[INFO] | | +- io.netty:netty-transport:jar:4.1.50.Final:compile
[INFO] | | \- io.netty:netty-codec:jar:4.1.50.Final:compile
[INFO] | [INFO] +- org.springframework.boot:spring-boot-starter-data-cassandra:jar:2.1.15.RELEASE:compile
[INFO] | \- org.springframework:spring-tx:jar:5.1.16.RELEASE:compile
[INFO] +- org.springframework.data:spring-data-cassandra:jar:2.1.18.RELEASE:compile
[INFO] | +- org.springframework:spring-context:jar:5.1.16.RELEASE:compile
[INFO] | | \- org.springframework:spring-aop:jar:5.1.16.RELEASE:compile
[INFO] | +- org.springframework:spring-beans:jar:5.1.16.RELEASE:compile
[INFO] | +- org.springframework.data:spring-data-commons:jar:2.1.18.RELEASE:compile
[INFO] | +- com.datastax.cassandra:cassandra-driver-core:jar:3.6.0:compile
[INFO] | | +- com.github.jnr:jnr-ffi:jar:2.1.7:compile
[INFO] | | | +- com.github.jnr:jffi:jar:1.2.16:compile
[INFO] | | | +- com.github.jnr:jffi:jar:native:1.2.16:runtime
[INFO] | | | +- org.ow2.asm:asm:jar:5.0.3:compile
[INFO] | | | +- org.ow2.asm:asm-commons:jar:5.0.3:compile
[INFO] | | | +- org.ow2.asm:asm-analysis:jar:5.0.3:compile
[INFO] | | | +- org.ow2.asm:asm-tree:jar:5.0.3:compile
[INFO] | | | +- org.ow2.asm:asm-util:jar:5.0.3:compile
[INFO] | | | \- com.github.jnr:jnr-x86asm:jar:1.0.2:compile
[INFO] | | \- com.github.jnr:jnr-posix:jar:3.0.44:compile
[INFO] | | \- com.github.jnr:jnr-constants:jar:0.9.9:compile
[INFO] | \- org.slf4j:slf4j-api:jar:1.7.30:compile
[INFO] +- org.springframework.boot:spring-boot-starter-test:jar:2.1.15.RELEASE:test
[INFO] | +- org.springframework.boot:spring-boot-test:jar:2.1.15.RELEASE:test
[INFO] | +- org.springframework.boot:spring-boot-test-autoconfigure:jar:2.1.15.RELEASE:test
[INFO] | +- com.jayway.jsonpath:json-path:jar:2.4.0:test
[INFO] | | \- net.minidev:json-smart:jar:2.3:compile
[INFO] | | \- net.minidev:accessors-smart:jar:1.2:compile
[INFO] | +- junit:junit:jar:4.12:test
[INFO] | +- org.assertj:assertj-core:jar:3.11.1:test
[INFO] | +- org.mockito:mockito-core:jar:2.23.4:test
[INFO] | | +- net.bytebuddy:byte-buddy:jar:1.9.16:compile
[INFO] | | +- net.bytebuddy:byte-buddy-agent:jar:1.9.16:test
[INFO] | | \- org.objenesis:objenesis:jar:2.6:compile
[INFO] | +- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] | +- org.hamcrest:hamcrest-library:jar:1.3:test
[INFO] | +- org.skyscreamer:jsonassert:jar:1.5.0:test
[INFO] | | \- com.vaadin.external.google:android-json:jar:0.0.20131108.vaadin1:test
[INFO] | +- org.springframework:spring-test:jar:5.1.16.RELEASE:test
[INFO] | \- org.xmlunit:xmlunit-core:jar:2.6.4:test
[INFO] +- org.springframework.boot:spring-boot-starter-log4j:jar:1.3.8.RELEASE:compile
[INFO] | +- org.slf4j:jcl-over-slf4j:jar:1.7.30:compile
[INFO] | +- org.slf4j:jul-to-slf4j:jar:1.7.30:compile
[INFO] | \- org.slf4j:slf4j-log4j12:jar:1.7.30:compile
[INFO] +- org.apache.logging.log4j:log4j-api:jar:2.17.1:compile
[INFO] +- com.test.api.customers:customers-relations-common:jar:1.1.28-RELEASE:compile
[INFO] | +- javax.inject:javax.inject:jar:1:compile
[INFO] | +- org.apache.commons:commons-lang3:jar:3.8.1:compile
[INFO] | +- org.apache.commons:commons-collections4:jar:4.1:compile
[INFO] | +- com.test.chassis.model:chassis-business-model:jar:3.1.1.RELEASE:compile
[INFO] | | +- com.test.chassis:chassis-annotations:jar:3.1.1.RELEASE:compile
[INFO] | | +- io.swagger:swagger-annotations:jar:1.5.21:compile
[INFO] | | +- javax.xml.bind:jaxb-api:jar:2.3.1:compile
[INFO] | | | \- javax.activation:javax.activation-api:jar:1.2.0:compile
[INFO] | | +- org.jooq:jool-java-8:jar:0.9.13:compile
[INFO] | | +- com.sun.xml.bind:jaxb-core:jar:2.3.0:compile
[INFO] | | \- com.sun.xml.bind:jaxb-impl:jar:2.3.0:compile
[INFO] | +- com.test.chassis.engine:chassis-model:jar:3.1.1.RELEASE:compile
[INFO] | | +- javax.ws.rs:javax.ws.rs-api:jar:2.1:compile
[INFO] | | +- javax.validation:validation-api:jar:2.0.1.Final:compile
[INFO] | | +- javax.el:javax.el-api:jar:3.0.0:compile
[INFO] | | \- org.glassfish.web:el-impl:jar:2.2:compile
[INFO] | +- com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:jar:2.9.10:compile
[INFO] | | \- com.fasterxml.jackson.core:jackson-core:jar:2.9.10:compile
[INFO] | +- org.hamcrest:java-hamcrest:jar:2.0.0.0:compile
[INFO] | +- redis.clients:jedis:jar:2.9.3:compile
[INFO] | | \- org.apache.commons:commons-pool2:jar:2.6.2:compile
[INFO] | \- org.springframework.data:spring-data-redis:jar:2.1.18.RELEASE:compile
[INFO] | +- org.springframework.data:spring-data-keyvalue:jar:2.1.18.RELEASE:compile
[INFO] | +- org.springframework:spring-oxm:jar:5.1.16.RELEASE:compile
[INFO] | \- org.springframework:spring-context-support:jar:5.1.16.RELEASE:compile
[INFO] +- org.hibernate.validator:hibernate-validator:jar:6.1.5.Final:compile
[INFO] | +- jakarta.validation:jakarta.validation-api:jar:2.0.2:compile
[INFO] | +- org.jboss.logging:jboss-logging:jar:3.3.3.Final:compile
[INFO] | \- com.fasterxml:classmate:jar:1.4.0:compile
[INFO] +- org.apache.spark:spark-sql_2.11:jar:2.4.0:compile
[INFO] | +- com.univocity:univocity-parsers:jar:2.7.3:compile
[INFO] | +- org.apache.spark:spark-sketch_2.11:jar:2.4.0:compile
[INFO] | +- org.apache.spark:spark-catalyst_2.11:jar:2.4.0:compile
[INFO] | | +- org.scala-lang.modules:scala-parser-combinators_2.11:jar:1.1.0:compile
[INFO] | | +- org.codehaus.janino:janino:jar:3.0.16:compile
[INFO] | | +- org.codehaus.janino:commons-compiler:jar:3.0.16:compile
[INFO] | | \- org.antlr:antlr4-runtime:jar:4.7:compile
[INFO] | +- org.apache.spark:spark-tags_2.11:jar:2.4.0:compile
[INFO] | +- org.apache.orc:orc-core:jar:nohive:1.5.2:compile
[INFO] | | +- org.apache.orc:orc-shims:jar:1.5.2:compile
[INFO] | | \- io.airlift:aircompressor:jar:0.10:compile
[INFO] | +- org.apache.orc:orc-mapreduce:jar:nohive:1.5.2:compile
[INFO] | +- org.apache.parquet:parquet-column:jar:1.10.0:compile
[INFO] | | +- org.apache.parquet:parquet-common:jar:1.10.0:compile
[INFO] | | \- org.apache.parquet:parquet-encoding:jar:1.10.0:compile
[INFO] | +- org.apache.parquet:parquet-hadoop:jar:1.10.0:compile
[INFO] | | +- org.apache.parquet:parquet-format:jar:2.4.0:compile
[INFO] | | +- org.apache.parquet:parquet-jackson:jar:1.10.0:compile
[INFO] | | \- org.codehaus.jackson:jackson-core-asl:jar:1.9.13:compile
[INFO] | +- org.apache.arrow:arrow-vector:jar:0.10.0:compile
[INFO] | | +- org.apache.arrow:arrow-format:jar:0.10.0:compile
[INFO] | | +- org.apache.arrow:arrow-memory:jar:0.10.0:compile
[INFO] | | +- com.carrotsearch:hppc:jar:0.7.2:compile
[INFO] | | \- com.vlkan:flatbuffers:jar:1.2.0-3f79e055:compile
[INFO] | +- org.apache.xbean:xbean-asm6-shaded:jar:4.8:compile
[INFO] | \- org.spark-project.spark:unused:jar:1.0.0:compile
[INFO] +- org.apache.spark:spark-core_2.11:jar:2.4.1:compile
[INFO] | +- com.thoughtworks.paranamer:paranamer:jar:2.8:compile
[INFO] | +- org.apache.avro:avro:jar:1.8.2:compile
[INFO] | | \- org.tukaani:xz:jar:1.5:compile
[INFO] | +- org.apache.avro:avro-mapred:jar:hadoop2:1.8.2:compile
[INFO] | | \- org.apache.avro:avro-ipc:jar:1.8.2:compile
[INFO] | +- com.twitter:chill_2.11:jar:0.9.3:compile
[INFO] | | \- com.esotericsoftware:kryo-shaded:jar:4.0.2:compile
[INFO] | | \- com.esotericsoftware:minlog:jar:1.3.0:compile
[INFO] | +- com.twitter:chill-java:jar:0.9.3:compile
[INFO] | +- org.apache.spark:spark-launcher_2.11:jar:2.4.1:compile
[INFO] | +- org.apache.spark:spark-kvstore_2.11:jar:2.4.1:compile
[INFO] | +- org.apache.spark:spark-network-shuffle_2.11:jar:2.4.1:compile
[INFO] | +- org.apache.spark:spark-unsafe_2.11:jar:2.4.1:compile
[INFO] | +- javax.activation:activation:jar:1.1.1:compile
[INFO] | +- org.apache.curator:curator-recipes:jar:2.6.0:compile
[INFO] | | \- org.apache.curator:curator-framework:jar:2.6.0:compile
[INFO] | +- org.apache.zookeeper:zookeeper:jar:3.4.6:compile
[INFO] | +- javax.servlet:javax.servlet-api:jar:4.0.1:compile
[INFO] | +- org.apache.commons:commons-math3:jar:3.4.1:compile
[INFO] | +- com.google.code.findbugs:jsr305:jar:1.3.9:compile
[INFO] | +- com.ning:compress-lzf:jar:1.0.3:compile
[INFO] | +- org.xerial.snappy:snappy-java:jar:1.1.7.1:compile
[INFO] | +- org.lz4:lz4-java:jar:1.4.0:compile
[INFO] | +- com.github.luben:zstd-jni:jar:1.3.2-2:compile
[INFO] | +- org.roaringbitmap:RoaringBitmap:jar:0.5.11:compile
[INFO] | +- commons-net:commons-net:jar:3.1:compile
[INFO] | +- org.scala-lang:scala-library:jar:2.11.12:compile
[INFO] | +- org.json4s:json4s-jackson_2.11:jar:3.5.3:compile
[INFO] | | \- org.json4s:json4s-core_2.11:jar:3.5.3:compile
[INFO] | | +- org.json4s:json4s-ast_2.11:jar:3.5.3:compile
[INFO] | | +- org.json4s:json4s-scalap_2.11:jar:3.5.3:compile
[INFO] | | \- org.scala-lang.modules:scala-xml_2.11:jar:1.0.6:compile
[INFO] | +- org.glassfish.jersey.core:jersey-client:jar:2.27:compile
[INFO] | | \- org.glassfish.hk2.external:javax.inject:jar:2.5.0-b42:compile
[INFO] | +- org.glassfish.jersey.core:jersey-common:jar:2.27:compile
[INFO] | | \- org.glassfish.hk2:osgi-resource-locator:jar:1.0.1:compile
[INFO] | +- org.glassfish.jersey.core:jersey-server:jar:2.27:compile
[INFO] | | \- org.glassfish.jersey.media:jersey-media-jaxb:jar:2.27:compile
[INFO] | +- org.glassfish.jersey.containers:jersey-container-servlet:jar:2.27:compile
[INFO] | +- org.glassfish.jersey.containers:jersey-container-servlet-core:jar:2.27:compile
[INFO] | +- com.clearspring.analytics:stream:jar:2.7.0:compile
[INFO] | +- io.dropwizard.metrics:metrics-core:jar:3.2.2:compile
[INFO] | +- io.dropwizard.metrics:metrics-jvm:jar:4.0.7:compile
[INFO] | +- io.dropwizard.metrics:metrics-json:jar:4.0.7:compile
[INFO] | +- io.dropwizard.metrics:metrics-graphite:jar:4.0.7:compile
[INFO] | | \- com.rabbitmq:amqp-client:jar:5.4.3:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-databind:jar:2.9.10.4:compile
[INFO] | +- com.fasterxml.jackson.module:jackson-module-scala_2.11:jar:2.9.10:compile
[INFO] | | \- com.fasterxml.jackson.module:jackson-module-paranamer:jar:2.9.10:compile
[INFO] | +- org.apache.ivy:ivy:jar:2.4.0:compile
[INFO] | +- oro:oro:jar:2.0.8:compile
[INFO] | +- net.razorvine:pyrolite:jar:4.13:compile
[INFO] | +- net.sf.py4j:py4j:jar:0.10.7:compile
[INFO] | \- org.apache.commons:commons-crypto:jar:1.0.0:compile
[INFO] +- org.apache.spark:spark-network-common_2.11:jar:2.4.6:compile
[INFO] | +- org.fusesource.leveldbjni:leveldbjni-all:jar:1.8:compile
[INFO] | \- com.fasterxml.jackson.core:jackson-annotations:jar:2.9.10:compile
[INFO] +- commons-codec:commons-codec:jar:1.13:compile
[INFO] +- org.apache.logging.log4j:log4j-1.2-api:jar:2.17.1:compile
[INFO] +- commons-lang:commons-lang:jar:2.6:compile
[INFO] +- com.datastax.spark:spark-cassandra-connector-unshaded_2.11:jar:2.4.0:compile
[INFO] | +- org.joda:joda-convert:jar:1.2:compile
[INFO] | +- joda-time:joda-time:jar:2.10.6:compile
[INFO] | +- io.netty:netty-all:jar:4.1.50.Final:compile
[INFO] | +- com.twitter:jsr166e:jar:1.1.0:compile
[INFO] | \- org.scala-lang:scala-reflect:jar:2.11.12:compile
[INFO] +- org.cassandraunit:cassandra-unit:jar:3.1.1.0:test
[INFO] | +- org.apache.cassandra:cassandra-all:jar:3.9:test
[INFO] | | +- net.jpountz.lz4:lz4:jar:1.3.0:test
[INFO] | | +- commons-cli:commons-cli:jar:1.1:compile
[INFO] | | +- com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:jar:1.4:test
[INFO] | | +- org.antlr:antlr:jar:3.5.2:test
[INFO] | | | \- org.antlr:ST4:jar:4.0.8:test
[INFO] | | +- org.antlr:antlr-runtime:jar:3.5.2:test
[INFO] | | +- org.codehaus.jackson:jackson-mapper-asl:jar:1.9.2:test
[INFO] | | +- com.googlecode.json-simple:json-simple:jar:1.1:test
[INFO] | | +- com.boundary:high-scale-lib:jar:1.0.6:test
[INFO] | | +- org.mindrot:jbcrypt:jar:0.3m:test
[INFO] | | +- com.addthis.metrics:reporter-config3:jar:3.0.0:test
[INFO] | | | \- com.addthis.metrics:reporter-config-base:jar:3.0.0:test
[INFO] | | +- com.thinkaurelius.thrift:thrift-server:jar:0.3.7:test
[INFO] | | | \- com.lmax:disruptor:jar:3.0.1:test
[INFO] | | +- org.apache.thrift:libthrift:jar:0.9.2:test
[INFO] | | +- org.apache.cassandra:cassandra-thrift:jar:3.9:test
[INFO] | | | +- de.jflex:jflex:jar:1.6.0:test
[INFO] | | | | \- org.apache.ant:ant:jar:1.7.0:test
[INFO] | | | | \- org.apache.ant:ant-launcher:jar:1.7.0:test
[INFO] | | | +- net.mintern:primitive:jar:1.0:test
[INFO] | | | +- com.github.rholder:snowball-stemmer:jar:1.3.0.581.1:test
[INFO] | | | \- com.googlecode.concurrent-trees:concurrent-trees:jar:2.4.0:test
[INFO] | | +- net.java.dev.jna:jna:jar:4.5.2:test
[INFO] | | +- com.github.jbellis:jamm:jar:0.3.0:test
[INFO] | | +- org.fusesource:sigar:jar:1.6.4:test
[INFO] | | +- org.eclipse.jdt.core.compiler:ecj:jar:4.4.2:test
[INFO] | | +- org.caffinitas.ohc:ohc-core:jar:0.4.3:test
[INFO] | | \- com.github.ben-manes.caffeine:caffeine:jar:2.6.2:test
[INFO] | \- com.google.guava:guava:jar:18.0:compile
[INFO] +- io.netty:netty:jar:3.10.6.Final:compile
[INFO] +- org.apache.hadoop:hadoop-client:jar:3.3.2:compile
[INFO] | +- org.apache.hadoop:hadoop-common:jar:3.3.2:compile
[INFO] | | +- org.apache.hadoop.thirdparty:hadoop-shaded-protobuf_3_7:jar:1.1.1:compile
[INFO] | | +- org.apache.hadoop.thirdparty:hadoop-shaded-guava:jar:1.1.1:compile
[INFO] | | +- org.apache.httpcomponents:httpclient:jar:4.5.12:compile
[INFO] | | | \- org.apache.httpcomponents:httpcore:jar:4.4.13:compile
[INFO] | | +- commons-io:commons-io:jar:2.8.0:compile
[INFO] | | +- commons-collections:commons-collections:jar:3.2.2:compile
[INFO] | | +- jakarta.activation:jakarta.activation-api:jar:1.2.1:runtime
[INFO] | | +- javax.servlet.jsp:jsp-api:jar:2.1:runtime
[INFO] | | +- com.sun.jersey:jersey-servlet:jar:1.19:compile
[INFO] | | +- commons-beanutils:commons-beanutils:jar:1.9.4:compile
[INFO] | | +- org.apache.commons:commons-configuration2:jar:2.1.1:compile
[INFO] | | +- org.apache.commons:commons-text:jar:1.4:compile
[INFO] | | +- com.google.re2j:re2j:jar:1.1:compile
[INFO] | | +- com.google.protobuf:protobuf-java:jar:2.5.0:compile
[INFO] | | +- com.google.code.gson:gson:jar:2.8.6:compile
[INFO] | | +- org.apache.hadoop:hadoop-auth:jar:3.3.2:compile
[INFO] | | | +- com.nimbusds:nimbus-jose-jwt:jar:9.8.1:compile
[INFO] | | | | \- com.github.stephenc.jcip:jcip-annotations:jar:1.0-1:compile
[INFO] | | | \- org.apache.kerby:kerb-simplekdc:jar:1.0.1:compile
[INFO] | | | +- org.apache.kerby:kerb-client:jar:1.0.1:compile
[INFO] | | | | +- org.apache.kerby:kerby-config:jar:1.0.1:compile
[INFO] | | | | +- org.apache.kerby:kerb-common:jar:1.0.1:compile
[INFO] | | | | | \- org.apache.kerby:kerb-crypto:jar:1.0.1:compile
[INFO] | | | | +- org.apache.kerby:kerb-util:jar:1.0.1:compile
[INFO] | | | | \- org.apache.kerby:token-provider:jar:1.0.1:compile
[INFO] | | | \- org.apache.kerby:kerb-admin:jar:1.0.1:compile
[INFO] | | | +- org.apache.kerby:kerb-server:jar:1.0.1:compile
[INFO] | | | | \- org.apache.kerby:kerb-identity:jar:1.0.1:compile
[INFO] | | | \- org.apache.kerby:kerby-xdr:jar:1.0.1:compile
[INFO] | | +- org.apache.curator:curator-client:jar:4.2.0:compile
[INFO] | | +- org.apache.commons:commons-compress:jar:1.21:compile
[INFO] | | +- org.apache.kerby:kerb-core:jar:1.0.1:compile
[INFO] | | | \- org.apache.kerby:kerby-pkix:jar:1.0.1:compile
[INFO] | | | +- org.apache.kerby:kerby-asn1:jar:1.0.1:compile
[INFO] | | | \- org.apache.kerby:kerby-util:jar:1.0.1:compile
[INFO] | | +- org.codehaus.woodstox:stax2-api:jar:4.2.1:compile
[INFO] | | +- com.fasterxml.woodstox:woodstox-core:jar:5.0.3:compile
[INFO] | | \- dnsjava:dnsjava:jar:2.1.7:compile
[INFO] | +- org.apache.hadoop:hadoop-hdfs-client:jar:3.3.2:compile
[INFO] | | \- com.squareup.okhttp:okhttp:jar:2.7.5:compile
[INFO] | | \- com.squareup.okio:okio:jar:1.6.0:compile
[INFO] | +- org.apache.hadoop:hadoop-yarn-api:jar:3.3.2:compile
[INFO] | +- org.apache.hadoop:hadoop-yarn-client:jar:3.3.2:compile
[INFO] | | \- org.jline:jline:jar:3.9.0:compile
[INFO] | \- org.apache.hadoop:hadoop-annotations:jar:3.3.2:compile
[INFO] \- commons-configuration:commons-configuration:jar:1.10:compile
[INFO] \- commons-logging:commons-logging:jar:1.1.1:compile
[INFO] --------------------------------------------------------------------
how do I resolve snakeyaml error?
So, you had been using Snakeyaml with an earlier Spring Boot version, but with a newer Spring Boot version, Snakeyaml stopped working. This very much seems to be a version incompatibility issue.
Here: https://search.maven.org/artifact/org.springframework.boot/spring-boot-starter/2.1.15.RELEASE/jar
we can see this structure:
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starters</artifactId>
<version>2.1.15.RELEASE</version>
</parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
<version>2.1.15.RELEASE</version>
<name>Spring Boot Starter</name>
<description>Core starter, including auto-configuration support, logging and YAML</description>
<url>https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot-starters/spring-boot-starter</url>
<organization>
<name>Pivotal Software, Inc.</name>
<url>https://spring.io</url>
</organization>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0</url>
</license>
</licenses>
<developers>
<developer>
<name>Pivotal</name>
<email>info#pivotal.io</email>
<organization>Pivotal Software, Inc.</organization>
<organizationUrl>https://www.spring.io</organizationUrl>
</developer>
</developers>
<scm>
<connection>scm:git:git://github.com/spring-projects/spring-boot.git</connection>
<developerConnection>scm:git:ssh://git#github.com/spring-projects/spring-boot.git</developerConnection>
<url>https://github.com/spring-projects/spring-boot</url>
</scm>
<issueManagement>
<system>Github</system>
<url>https://github.com/spring-projects/spring-boot/issues</url>
</issueManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot</artifactId>
<version>2.1.15.RELEASE</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-autoconfigure</artifactId>
<version>2.1.15.RELEASE</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
<version>2.1.15.RELEASE</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>1.3.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>5.1.16.RELEASE</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
<version>1.23</version>
<scope>runtime</scope>
</dependency>
</dependencies>
</project>
where the interesting part from our perspective is:
<artifactId>snakeyaml</artifactId>
<version>1.23</version>
so, you will likely need to ensure that your Snakeyaml version is 1.23.
We can create a software solution for the above case by separating the above functionalities in three objects as below. 1) The Snake Box Factory The factory will produce the Snake Boxes. The factory could be
I have a spring boot application and would like to upgrade to 2.6.6
it can be built but when trying to run , getting error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/core/metrics/ApplicationStartup
at org.springframework.boot.SpringApplication.<init>(SpringApplication.java:228)
at org.springframework.boot.SpringApplication.<init>(SpringApplication.java:241)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1312)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1301)
at ca.x.x.api.CheckoutApiApplication.main(CheckoutApiApplication.java:40)
Caused by: java.lang.ClassNotFoundException: org.springframework.core.metrics.ApplicationStartup
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 5 more
In my pom file I have :
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.6.6</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>2021.0.1</version>
<type>pom</type>
<scope>import</scope>
</dependency>
And here is my dependency tree:
+- org.springframework.cloud:spring-cloud-starter-config:jar:3.1.1:compile
[INFO] | +- org.springframework.cloud:spring-cloud-starter:jar:3.1.1:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-context:jar:3.1.1:compile
[INFO] | | | \- org.springframework.security:spring-security-crypto:jar:5.2.2.RELEASE:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-commons:jar:3.1.1:compile
[INFO] | | \- org.springframework.security:spring-security-rsa:jar:1.0.10.RELEASE:compile
[INFO] | +- org.springframework.cloud:spring-cloud-config-client:jar:3.1.1:compile
[INFO] | \- com.fasterxml.jackson.core:jackson-databind:jar:2.9.5:compile
[INFO] +- org.springframework.boot:spring-boot-starter-security:jar:2.6.6:compile
[INFO] | +- org.springframework.boot:spring-boot-starter:jar:2.6.6:compile
[INFO] | | +- org.springframework.boot:spring-boot:jar:2.6.6:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-logging:jar:2.6.6:compile
[INFO] | | | +- org.apache.logging.log4j:log4j-to-slf4j:jar:2.12.1:compile
[INFO] | | | | \- org.apache.logging.log4j:log4j-api:jar:2.12.1:compile
[INFO] | | | \- org.slf4j:jul-to-slf4j:jar:1.7.36:compile
[INFO] | | \- jakarta.annotation:jakarta.annotation-api:jar:1.3.5:compile
[INFO] | +- org.springframework:spring-aop:jar:5.2.4.RELEASE:compile
[INFO] | | \- org.springframework:spring-beans:jar:5.2.4.RELEASE:compile
[INFO] | +- org.springframework.security:spring-security-config:jar:5.2.2.RELEASE:compile
[INFO] | \- org.springframework.security:spring-security-web:jar:5.2.2.RELEASE:compile
[INFO] | \- org.springframework:spring-expression:jar:5.2.4.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-web:jar:2.6.6:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-json:jar:2.6.6:compile
[INFO] | | \- com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.9.5:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-tomcat:jar:2.6.6:compile
[INFO] | | +- org.apache.tomcat.embed:tomcat-embed-core:jar:9.0.60:compile
[INFO] | | +- org.apache.tomcat.embed:tomcat-embed-el:jar:9.0.60:compile
[INFO] | | \- org.apache.tomcat.embed:tomcat-embed-websocket:jar:9.0.60:compile
[INFO] | +- org.springframework:spring-web:jar:5.2.4.RELEASE:compile
[INFO] | \- org.springframework:spring-webmvc:jar:5.2.4.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-actuator:jar:2.6.6:compile
[INFO] | +- org.springframework.boot:spring-boot-actuator-autoconfigure:jar:2.6.6:compile
[INFO] | | \- org.springframework.boot:spring-boot-actuator:jar:2.6.6:compile
[INFO] | \- io.micrometer:micrometer-core:jar:1.3.5:compile
[INFO] | +- org.hdrhistogram:HdrHistogram:jar:2.1.11:compile
[INFO] | \- org.latencyutils:LatencyUtils:jar:2.0.3:compile
[INFO] +- io.springfox:springfox-swagger2:jar:2.9.2:compile
[INFO] | +- io.swagger:swagger-annotations:jar:1.5.20:compile
[INFO] | +- io.swagger:swagger-models:jar:1.5.20:compile
[INFO] | +- io.springfox:springfox-spi:jar:2.9.2:compile
[INFO] | | \- io.springfox:springfox-core:jar:2.9.2:compile
[INFO] | +- io.springfox:springfox-schema:jar:2.9.2:compile
[INFO] | +- io.springfox:springfox-swagger-common:jar:2.9.2:compile
[INFO] | +- io.springfox:springfox-spring-web:jar:2.9.2:compile
[INFO] | +- com.google.guava:guava:jar:20.0:compile
[INFO] | +- com.fasterxml:classmate:jar:1.5.1:compile
[INFO] | +- org.slf4j:slf4j-api:jar:1.7.36:compile
[INFO] | +- org.springframework.plugin:spring-plugin-core:jar:1.2.0.RELEASE:compile
[INFO] | \- org.springframework.plugin:spring-plugin-metadata:jar:1.2.0.RELEASE:compile
[INFO] +- io.springfox:springfox-swagger-ui:jar:2.9.2:compile
[INFO] +- org.springframework.cloud:spring-cloud-starter-sleuth:jar:3.1.1:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-aop:jar:2.6.6:compile
[INFO] | | \- org.aspectj:aspectjweaver:jar:1.9.7:compile
[INFO] | +- org.springframework.cloud:spring-cloud-sleuth-autoconfigure:jar:3.1.1:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-sleuth-instrumentation:jar:3.1.1:compile
[INFO] | | | \- org.springframework.cloud:spring-cloud-sleuth-api:jar:3.1.1:compile
[INFO] | | \- org.aspectj:aspectjrt:jar:1.9.7:compile
[INFO] | \- org.springframework.cloud:spring-cloud-sleuth-brave:jar:3.1.1:compile
[INFO] | +- io.zipkin.brave:brave:jar:5.13.7:compile
[INFO] | +- io.zipkin.brave:brave-context-slf4j:jar:5.13.7:compile
[INFO] | +- io.zipkin.brave:brave-instrumentation-messaging:jar:5.13.7:compile
[INFO] | +- io.zipkin.brave:brave-instrumentation-rpc:jar:5.13.7:compile
[INFO] | +- io.zipkin.brave:brave-instrumentation-spring-rabbit:jar:5.13.7:compile
[INFO] | +- io.zipkin.brave:brave-instrumentation-kafka-clients:jar:5.13.7:compile
[INFO] | +- io.zipkin.brave:brave-instrumentation-kafka-streams:jar:5.13.7:compile
[INFO] | +- io.zipkin.brave:brave-instrumentation-httpclient:jar:5.13.7:compile
[INFO] | | \- io.zipkin.brave:brave-instrumentation-http:jar:5.13.7:compile
[INFO] | +- io.zipkin.brave:brave-instrumentation-httpasyncclient:jar:5.13.7:compile
[INFO] | +- io.zipkin.brave:brave-instrumentation-jms:jar:5.13.7:compile
[INFO] | +- io.zipkin.brave:brave-instrumentation-mongodb:jar:5.13.7:compile
[INFO] | +- io.zipkin.aws:brave-propagation-aws:jar:0.21.3:compile
[INFO] | \- io.zipkin.reporter2:zipkin-reporter-metrics-micrometer:jar:2.16.3:compile
[INFO] | \- io.zipkin.reporter2:zipkin-reporter:jar:2.16.3:compile
[INFO] | \- io.zipkin.zipkin2:zipkin:jar:2.23.2:compile
validation:jar:2.6.6:compile
[INFO] | | | \- org.hibernate.validator:hibernate-validator:jar:6.2.3.Final:compile
[INFO] | | | \- jakarta.validation:jakarta.validation-api:jar:2.0.2:compile
[INFO] | | +- org.springframework:spring-messaging:jar:5.2.4.RELEASE:compile
[INFO] | | +- org.springframework.integration:spring-integration-core:jar:5.2.4.RELEASE:compile
[INFO] | | +- org.springframework.integration:spring-integration-jmx:jar:5.2.4.RELEASE:compile
[INFO] | | +- org.springframework.retry:spring-retry:jar:1.3.2:compile
[INFO] | | \- org.springframework.cloud:spring-cloud-function-context:jar:3.2.2:compile
[INFO] | | +- net.jodah:typetools:jar:0.6.2:compile
[INFO] | | \- org.springframework.cloud:spring-cloud-function-core:jar:3.2.2:compile
[INFO] | \- org.springframework.cloud:spring-cloud-starter-stream-rabbit:jar:3.2.2:compile
[INFO] | \- org.springframework.cloud:spring-cloud-stream-binder-rabbit:jar:3.2.2:compile
[INFO] | +- org.springframework.cloud:spring-cloud-function-deployer:jar:3.2.2:compile
[INFO] | | +- org.springframework.boot:spring-boot-loader:jar:2.6.6:compile
[INFO] | | \- org.springframework.cloud:spring-cloud-deployer-resource-maven:jar:2.5.1:compile
[INFO] | | +- org.apache.maven:maven-model-builder:jar:3.6.2:compile
[INFO] | | | +- org.codehaus.plexus:plexus-utils:jar:3.2.1:compile
[INFO] | | | +- org.codehaus.plexus:plexus-interpolation:jar:1.25:compile
[INFO] | | | +- org.apache.maven:maven-model:jar:3.6.2:compile
[INFO] | | | +- org.apache.maven:maven-artifact:jar:3.6.2:compile
[INFO] | | | +- org.apache.maven:maven-builder-support:jar:3.6.2:compile
[INFO] | | | \- org.eclipse.sisu:org.eclipse.sisu.inject:jar:0.3.3:compile
[INFO] | | +- org.apache.maven:maven-resolver-provider:jar:3.6.2:compile
[INFO] | | | +- org.apache.maven:maven-repository-metadata:jar:3.6.2:compile
[INFO] | | | +- org.apache.maven.resolver:maven-resolver-api:jar:1.4.1:compile
[INFO] | | | +- org.apache.maven.resolver:maven-resolver-spi:jar:1.4.1:compile
[INFO] | | | \- org.apache.maven.resolver:maven-resolver-util:jar:1.4.1:compile
[INFO] | | +- org.apache.maven.resolver:maven-resolver-connector-basic:jar:1.4.1:compile
[INFO] | | +- org.apache.maven.resolver:maven-resolver-transport-file:jar:1.4.1:compile
[INFO] | | +- org.apache.maven.resolver:maven-resolver-transport-http:jar:1.4.1:compile
[INFO] | | | \- org.slf4j:jcl-over-slf4j:jar:1.7.36:runtime
[INFO] | | +- org.apache.maven.resolver:maven-resolver-transport-wagon:jar:1.4.1:compile
[INFO] | | | \- org.apache.maven.wagon:wagon-provider-api:jar:3.0.0:compile
[INFO] | | +- org.apache.maven.resolver:maven-resolver-impl:jar:1.4.1:compile
[INFO] | | \- org.apache.maven.wagon:wagon-http:jar:3.3.4:compile
[INFO] | | \- org.apache.maven.wagon:wagon-http-shared:jar:3.3.4:compile
[INFO] | | \- org.jsoup:jsoup:jar:1.12.1:compile
[INFO] | +- org.springframework.cloud:spring-cloud-stream-binder-rabbit-core:jar:3.2.2:compile
[INFO] | | +- org.springframework.integration:spring-integration-amqp:jar:5.2.4.RELEASE:compile
[INFO] | | \- com.rabbitmq:http-client:jar:2.1.0.RELEASE:compile
[INFO] | \- org.springframework.boot:spring-boot-starter-amqp:jar:2.6.6:compile
[INFO] | \- org.springframework.amqp:spring-rabbit:jar:2.4.3:compile
[INFO] | +- org.springframework.amqp:spring-amqp:jar:2.4.3:compile
[INFO] | \- com.rabbitmq:amqp-client:jar:5.13.1:compile
SNAPSHOT:compile
[INFO] +- com.h2database:h2:jar:1.4.200:runtime
[INFO] +- com.microsoft.sqlserver:mssql-jdbc:jar:6.4.0.jre8:compile
[INFO] +- org.apache.commons:commons-math3:jar:3.6.1:compile
[INFO] +- org.springframework.ws:spring-ws-test:jar:3.1.3:test
[INFO] | +- org.springframework.ws:spring-xml:jar:3.1.3:compile
[INFO] | +- org.springframework.ws:spring-ws-core:jar:3.1.3:compile
[INFO] | | \- org.springframework:spring-oxm:jar:5.2.4.RELEASE:compile
[INFO] | +- org.springframework:spring-context:jar:5.2.4.RELEASE:compile
[INFO] | +- xmlunit:xmlunit:jar:1.6:test
[INFO] | \- org.springframework:spring-core:jar:5.2.4.RELEASE:compile
[INFO] | \- org.springframework:spring-jcl:jar:5.2.4.RELEASE:compile
[INFO] +- org.springframework.security:spring-security-test:jar:5.2.2.RELEASE:test
[INFO] | +- org.springframework.security:spring-security-core:jar:5.2.2.RELEASE:compile
[INFO] | \- org.springframework:spring-test:jar:5.2.4.RELEASE:test
[INFO] +- org.springframework.cloud:spring-cloud-stream-test-support:jar:3.2.2:test
[INFO] | \- org.springframework.boot:spring-boot-autoconfigure:jar:2.6.6:compile
[INFO] +- org.springframework.cloud:spring-cloud-contract-verifier:jar:2.1.3.RELEASE:test
[INFO] | +- org.springframework.cloud:spring-cloud-contract-spec:jar:3.1.1:test
[INFO] | | +- org.springframework.cloud:spring-cloud-contract-spec-java:jar:3.1.1:test
[INFO] | | | \- dk.brics.automaton:automaton:jar:1.11-8:test
[INFO] | | \- org.springframework.cloud:spring-cloud-contract-spec-groovy:jar:3.1.1:test
[INFO] | +- org.springframework.boot:spring-boot-test-autoconfigure:jar:2.6.6:test
[INFO] | +- javax.inject:javax.inject:jar:1:compile
[INFO] | +- com.github.tomakehurst:wiremock-standalone:jar:2.20.0:test
[INFO] | +- com.toomuchcoding.jsonassert:jsonassert:jar:0.6.1:test
[INFO] | +- com.rackspace.eclipse.webtools.sourceediting:org.eclipse.wst.xml.xpath2.processor:jar:2.1.100:test
[INFO] | | +- edu.princeton.cup:java-cup:jar:10k:test
[INFO] | | \- com.ibm.icu:icu4j:jar:4.6:test
[INFO] | +- org.codehaus.groovy:groovy:jar:2.5.9:test
[INFO] | +- org.codehaus.groovy:groovy-nio:jar:2.5.9:test
[INFO] | +- org.codehaus.groovy:groovy-json:jar:2.5.9:test
[INFO] | +- org.codehaus.groovy:groovy-xml:jar:2.5.9:test
[INFO] | +- org.skyscreamer:jsonassert:jar:1.5.0:test
[INFO] | | \- com.vaadin.external.google:android-json:jar:0.0.20131108.vaadin1:test
[INFO] | +- com.github.jknack:handlebars:jar:4.1.2:test
[INFO] | +- commons-beanutils:commons-beanutils:jar:1.9.4:test
[INFO] | | \- commons-collections:commons-collections:jar:3.2.2:test
[INFO] | +- org.yaml:snakeyaml:jar:1.29:compile
[INFO] | \- com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:jar:2.9.5:test
[INFO] +- commons-io:commons-io:jar:2.8.0:compile
[INFO] +- org.powermock:powermock-module-junit4:jar:2.0.2:test
[INFO] | +- org.powermock:powermock-module-junit4-common:jar:2.0.2:test
[INFO] | | +- org.powermock:powermock-reflect:jar:2.0.2:test
[INFO] | | | \- net.bytebuddy:byte-buddy-agent:jar:1.11.22:test
[INFO] | | \- org.powermock:powermock-core:jar:2.0.2:test
[INFO] | | \- org.javassist:javassist:jar:3.24.0-GA:test
[INFO] | +- junit:junit:jar:4.13.2:compile
[INFO] | \- org.hamcrest:hamcrest-core:jar:2.2:test
[INFO] +- org.powermock:powermock-api-mockito2:jar:2.0.2:test
[INFO] | +- org.powermock:powermock-api-support:jar:2.0.2:test
[INFO] | \- org.mockito:mockito-core:jar:4.0.0:test
[INFO] | \- org.objenesis:objenesis:jar:3.2:test
[INFO] | +- org.springframework.security.oauth:spring-security-oauth2:jar:2.3.6.RELEASE:compile
[INFO] | | \- org.codehaus.jackson:jackson-mapper-asl:jar:1.9.13:compile
[INFO] | | \- org.codehaus.jackson:jackson-core-asl:jar:1.9.13:compile
[INFO] | +- org.springframework.security:spring-security-jwt:jar:1.0.11.RELEASE:compile
[INFO] | | \- org.bouncycastle:bcpkix-jdk15on:jar:1.64:compile
[INFO] | | \- org.bouncycastle:bcprov-jdk15on:jar:1.64:compile
[INFO] | +- io.jsonwebtoken:jjwt:jar:0.9.1:compile
[INFO] | +- cglib:cglib:jar:3.2.12:compile
[INFO] | | \- org.ow2.asm:asm:jar:7.1:compile
[INFO] | +- commons-httpclient:commons-httpclient:jar:3.1:compile
[INFO] | \- org.springframework:spring-webflux:jar:5.2.4.RELEASE:compile
[INFO] | \- io.projectreactor:reactor-core:jar:3.3.3.RELEASE:compile
[INFO] +- org.apache.httpcomponents:httpclient:jar:4.5.6:compile
[INFO] | +- org.apache.httpcomponents:httpcore:jar:4.4.15:compile
[INFO] | +- commons-logging:commons-logging:jar:1.2:compile
[INFO] | \- commons-codec:commons-codec:jar:1.15:compile
[INFO] +- org.mapstruct:mapstruct:jar:1.3.1.Final:compile
[INFO] +- org.mapstruct:mapstruct-processor:jar:1.3.1.Final:provided
[INFO] +- org.projectlombok:lombok:jar:1.18.10:compile
[INFO] +- org.apache.commons:commons-lang3:jar:3.7:compile
[INFO] +- org.apache.commons:commons-text:jar:1.6:compile
[INFO] +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.9.5:compile
[INFO] +- org.springframework.boot:spring-boot-starter-test:jar:2.6.6:test
[INFO] | +- org.springframework.boot:spring-boot-test:jar:2.6.6:test
[INFO] | +- com.jayway.jsonpath:json-path:jar:2.6.0:compile
[INFO] | | \- net.minidev:json-smart:jar:2.4.8:compile
[INFO] | | \- net.minidev:accessors-smart:jar:2.4.8:compile
[INFO] | +- jakarta.xml.bind:jakarta.xml.bind-api:jar:2.3.3:compile
[INFO] | | \- jakarta.activation:jakarta.activation-api:jar:1.2.2:compile
[INFO] | +- org.hamcrest:hamcrest:jar:2.2:test
[INFO] | +- org.junit.jupiter:junit-jupiter:jar:5.5.2:test
[INFO] | | +- org.junit.jupiter:junit-jupiter-api:jar:5.5.2:test
[INFO] | | +- org.junit.jupiter:junit-jupiter-params:jar:5.5.2:test
[INFO] | | \- org.junit.jupiter:junit-jupiter-engine:jar:5.5.2:test
[INFO] | +- org.mockito:mockito-junit-jupiter:jar:4.0.0:test
[INFO] | \- org.xmlunit:xmlunit-core:jar:2.8.4:test
[INFO] +- org.testng:testng:jar:6.8.8:test
[INFO] | +- org.beanshell:bsh:jar:2.0b4:test
[INFO] | \- com.beust:jcommander:jar:1.27:test
[INFO] +- org.springframework.cloud:spring-cloud-starter-netflix-hystrix:jar:2.2.2.RELEASE:compile
[INFO] | +- org.springframework.cloud:spring-cloud-netflix-hystrix:jar:2.2.2.RELEASE:compile
[INFO] | +- org.springframework.cloud:spring-cloud-netflix-ribbon:jar:2.2.2.RELEASE:compile
[INFO] | | \- org.springframework.cloud:spring-cloud-netflix-archaius:jar:2.2.2.RELEASE:compile
[INFO] | +- org.springframework.cloud:spring-cloud-starter-netflix-archaius:jar:2.2.2.RELEASE:compile
[INFO] | | +- com.netflix.archaius:archaius-core:jar:0.7.6:compile
[INFO] | | | \- com.google.code.findbugs:jsr305:jar:3.0.1:runtime
[INFO] | | \- commons-configuration:commons-configuration:jar:1.8:compile
[INFO] | | \- commons-lang:commons-lang:jar:2.6:compile
[INFO] | +- com.netflix.hystrix:hystrix-core:jar:1.5.18:compile
[INFO] | | \- io.reactivex:rxjava:jar:1.3.8:compile
[INFO] | +- com.netflix.hystrix:hystrix-serialization:jar:1.5.18:compile
[INFO] | | \- com.fasterxml.jackson.module:jackson-module-afterburner:jar:2.9.5:runtime
[INFO] | +- com.netflix.hystrix:hystrix-metrics-event-stream:jar:1.5.18:compile
[INFO] | +- com.netflix.hystrix:hystrix-javanica:jar:1.5.18:compile
[INFO] | \- io.reactivex:rxjava-reactive-streams:jar:1.2.1:compile
[INFO] | \- org.reactivestreams:reactive-streams:jar:1.0.3:compile
[INFO] +- org.springframework.cloud:spring-cloud-starter-bootstrap:jar:3.1.1:compile
[INFO] +- org.springframework.boot:spring-boot-starter-data-jpa:jar:2.6.6:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-jdbc:jar:2.6.6:compile
[INFO] | | +- com.zaxxer:HikariCP:jar:4.0.3:compile
[INFO] | | \- org.springframework:spring-jdbc:jar:5.2.4.RELEASE:compile
[INFO] | +- jakarta.transaction:jakarta.transaction-api:jar:1.3.3:compile
[INFO] | +- jakarta.persistence:jakarta.persistence-api:jar:2.2.3:compile
[INFO] | +- org.hibernate:hibernate-core:jar:5.6.7.Final:compile
[INFO] | | +- org.jboss.logging:jboss-logging:jar:3.4.3.Final:compile
[INFO] | | +- net.bytebuddy:byte-buddy:jar:1.11.22:compile
[INFO] | | +- antlr:antlr:jar:2.7.7:compile
[INFO] | | +- org.jboss:jandex:jar:2.4.2.Final:compile
[INFO] | | +- org.hibernate.common:hibernate-commons-annotations:jar:5.1.2.Final:compile
[INFO] | | \- org.glassfish.jaxb:jaxb-runtime:jar:2.3.6:compile
[INFO] | | +- org.glassfish.jaxb:txw2:jar:2.3.6:compile
[INFO] | | +- com.sun.istack:istack-commons-runtime:jar:3.0.12:compile
[INFO] | | \- com.sun.activation:jakarta.activation:jar:1.2.2:runtime
[INFO] | +- org.springframework.data:spring-data-jpa:jar:2.2.5.RELEASE:compile
[INFO] | | +- org.springframework.data:spring-data-commons:jar:2.2.5.RELEASE:compile
[INFO] | | +- org.springframework:spring-orm:jar:5.2.4.RELEASE:compile
[INFO] | | \- org.springframework:spring-tx:jar:5.2.4.RELEASE:compile
[INFO] | \- org.springframework:spring-aspects:jar:5.2.4.RELEASE:compile
I searched a lot and tried many solutions but no success .
Should I add spring-core or spring context separately in pom file ?
How can I check which spring-core is matched for spring boot 2.6.6?
Any advice to fix this?
The issue is indeed with spring-core jar.If you see the version of spring-core that is shown in dependency tree its 5.2.4.
https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/core/metrics/ApplicationStartup.html
If we see this javadoc, this class is since 5.3 spring framework version, so its not found.
I would recommend you to add starter dependencies in your pom.
eg:
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
</dependencies>
and so on. These dependencies will then be fully available in compile classpath + fetch all transitive dependencies.
Eg same graph for me looks like:
+--- org.springframework.boot:spring-boot-starter-actuator -> 2.6.3
| +--- org.springframework.boot:spring-boot-starter:2.6.3
| | +--- org.springframework.boot:spring-boot:2.6.3
| | | +--- org.springframework:spring-core:5.3.15
| | | | \--- org.springframework:spring-jcl:5.3.15
| | | \--- org.springframework:spring-context:5.3.15
| | | +--- org.springframework:spring-aop:5.3.15
| | | | +--- org.springframework:spring-beans:5.3.15
| | | | | \--- org.springframework:spring-core:5.3.15 (*)
| | | | \--- org.springframework:spring-core:5.3.15 (*)
| | | +--- org.springframework:spring-beans:5.3.15 (*)
| | | +--- org.springframework:spring-core:5.3.15 (*)
| | | \--- org.springframework:spring-expression:5.3.15
| | | \--- org.springframework:spring-core:5.3.15 (*)
| | +--- org.springframework.boot:spring-boot-autoconfigure:2.6.3
| | | \--- org.springframework.boot:spring-boot:2.6.3 (*)
| | +--- org.springframework.boot:spring-boot-starter-logging:2.6.3
| | | +--- ch.qos.logback:logback-classic:1.2.10
| | | | +--- ch.qos.logback:logback-core:1.2.10
| | | | \--- org.slf4j:slf4j-api:1.7.32 -> 1.7.33
| | | +--- org.apache.logging.log4j:log4j-to-slf4j:2.17.1
| | | | +--- org.slf4j:slf4j-api:1.7.25 -> 1.7.33
| | | | \--- org.apache.logging.log4j:log4j-api:2.17.1
| | | \--- org.slf4j:jul-to-slf4j:1.7.33
| | | \--- org.slf4j:slf4j-api:1.7.33
| | +--- jakarta.annotation:jakarta.annotation-api:1.3.5
| | +--- org.springframework:spring-core:5.3.15 (*)
| | \--- org.yaml:snakeyaml:1.29
....
Note: Even spring-web,data jpa dependencies fetch spring core so do not worry, just ensure you add them in pom to get things running.
I am developing a simple spring boot web enabled application. Spring boot Version is 2.2.1. When I start application I am getting this error
***************************
APPLICATION FAILED TO START
***************************
Description:
An attempt was made to call a method that does not exist. The attempt was made from the following location:
org.hibernate.validator.internal.xml.config.ValidationBootstrapParameters.<init>(ValidationBootstrapParameters.java:63)
The following method did not exist:
javax.validation.BootstrapConfiguration.getClockProviderClassName()Ljava/lang/String;
The method's class, javax.validation.BootstrapConfiguration, is available from the following locations:
jar:file:/home/shantanu/.m2/repository/io/swagger/swagger-codegen-cli/2.3.0/swagger-codegen-cli-2.3.0.jar!/javax/validation/BootstrapConfiguration.class
jar:file:/home/shantanu/.m2/repository/javax/validation/validation-api/2.0.1.Final/validation-api-2.0.1.Final.jar!/javax/validation/BootstrapConfiguration.class
jar:file:/home/shantanu/.m2/repository/jakarta/validation/jakarta.validation-api/2.0.1/jakarta.validation-api-2.0.1.jar!/javax/validation/BootstrapConfiguration.class
It was loaded from the following location:
file:/home/shantanu/.m2/repository/io/swagger/swagger-codegen-cli/2.3.0/swagger-codegen-cli-2.3.0.jar
Action:
Correct the classpath of your application so that it contains a single, compatible version of javax.validation.BootstrapConfiguration
I have no idea what is causing this error. I even tried putting exclusions for javax.validations on multiple dependencies but nothing helped. Here's the POM dependency tree. Please help.
[INFO] com.ibm.dip:MonolithDecomposer:jar:0.1
[INFO] +- org.springframework.boot:spring-boot-starter:jar:2.2.1.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot:jar:2.2.1.RELEASE:compile
[INFO] | | \- org.springframework:spring-context:jar:5.2.1.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-autoconfigure:jar:2.2.1.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-logging:jar:2.2.1.RELEASE:compile
[INFO] | | +- ch.qos.logback:logback-classic:jar:1.2.3:compile
[INFO] | | | \- ch.qos.logback:logback-core:jar:1.2.3:compile
[INFO] | | +- org.apache.logging.log4j:log4j-to-slf4j:jar:2.12.1:compile
[INFO] | | | \- org.apache.logging.log4j:log4j-api:jar:2.12.1:compile
[INFO] | | \- org.slf4j:jul-to-slf4j:jar:1.7.29:compile
[INFO] | +- jakarta.annotation:jakarta.annotation-api:jar:1.3.5:compile
[INFO] | +- org.springframework:spring-core:jar:5.2.1.RELEASE:compile
[INFO] | | \- org.springframework:spring-jcl:jar:5.2.1.RELEASE:compile
[INFO] | \- org.yaml:snakeyaml:jar:1.25:compile
[INFO] +- org.springframework.boot:spring-boot-devtools:jar:2.2.1.RELEASE:runtime (optional)
[INFO] +- org.springframework.boot:spring-boot-starter-test:jar:2.2.1.RELEASE:test
[INFO] | +- org.springframework.boot:spring-boot-test:jar:2.2.1.RELEASE:test
[INFO] | +- org.springframework.boot:spring-boot-test-autoconfigure:jar:2.2.1.RELEASE:test
[INFO] | +- com.jayway.jsonpath:json-path:jar:2.4.0:test
[INFO] | | \- net.minidev:json-smart:jar:2.3:test
[INFO] | | \- net.minidev:accessors-smart:jar:1.2:test
[INFO] | | \- org.ow2.asm:asm:jar:5.0.4:test
[INFO] | +- jakarta.xml.bind:jakarta.xml.bind-api:jar:2.3.2:test
[INFO] | | \- jakarta.activation:jakarta.activation-api:jar:1.2.1:test
[INFO] | +- org.junit.jupiter:junit-jupiter:jar:5.5.2:test
[INFO] | | +- org.junit.jupiter:junit-jupiter-api:jar:5.5.2:test
[INFO] | | | +- org.apiguardian:apiguardian-api:jar:1.1.0:test
[INFO] | | | +- org.opentest4j:opentest4j:jar:1.2.0:test
[INFO] | | | \- org.junit.platform:junit-platform-commons:jar:1.5.2:test
[INFO] | | +- org.junit.jupiter:junit-jupiter-params:jar:5.5.2:test
[INFO] | | \- org.junit.jupiter:junit-jupiter-engine:jar:5.5.2:test
[INFO] | | \- org.junit.platform:junit-platform-engine:jar:1.5.2:test
[INFO] | +- org.mockito:mockito-junit-jupiter:jar:3.1.0:test
[INFO] | +- org.assertj:assertj-core:jar:3.13.2:test
[INFO] | +- org.hamcrest:hamcrest:jar:2.1:compile
[INFO] | +- org.mockito:mockito-core:jar:3.1.0:test
[INFO] | | +- net.bytebuddy:byte-buddy:jar:1.10.2:test
[INFO] | | +- net.bytebuddy:byte-buddy-agent:jar:1.10.2:test
[INFO] | | \- org.objenesis:objenesis:jar:2.6:test
[INFO] | +- org.skyscreamer:jsonassert:jar:1.5.0:test
[INFO] | | \- com.vaadin.external.google:android-json:jar:0.0.20131108.vaadin1:test
[INFO] | +- org.springframework:spring-test:jar:5.2.1.RELEASE:test
[INFO] | \- org.xmlunit:xmlunit-core:jar:2.6.3:test
[INFO] +- com.github.javaparser:javaparser-core:jar:3.15.2:compile
[INFO] +- org.apache.commons:commons-io:jar:1.3.2:compile
[INFO] +- org.springframework.boot:spring-boot-starter-data-mongodb:jar:2.2.1.RELEASE:compile
[INFO] | +- org.mongodb:mongodb-driver:jar:3.11.2:compile
[INFO] | | +- org.mongodb:bson:jar:3.11.2:compile
[INFO] | | \- org.mongodb:mongodb-driver-core:jar:3.11.2:compile
[INFO] | \- org.springframework.data:spring-data-mongodb:jar:2.2.1.RELEASE:compile
[INFO] | +- org.springframework:spring-tx:jar:5.2.1.RELEASE:compile
[INFO] | +- org.springframework:spring-beans:jar:5.2.1.RELEASE:compile
[INFO] | +- org.springframework:spring-expression:jar:5.2.1.RELEASE:compile
[INFO] | \- org.springframework.data:spring-data-commons:jar:2.2.1.RELEASE:compile
[INFO] +- com.fasterxml.jackson.core:jackson-databind:jar:2.10.0:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-annotations:jar:2.10.0:compile
[INFO] | \- com.fasterxml.jackson.core:jackson-core:jar:2.10.0:compile
[INFO] +- commons-lang:commons-lang:jar:2.6:compile
[INFO] +- io.swagger:swagger-codegen-cli:jar:2.3.0:compile
[INFO] +- io.swagger.parser.v3:swagger-parser:jar:2.0.15:compile
[INFO] | +- io.swagger.parser.v3:swagger-parser-v2-converter:jar:2.0.15:compile
[INFO] | | +- io.swagger:swagger-parser:jar:1.0.47:compile
[INFO] | | | \- io.swagger:swagger-core:jar:1.5.24:compile
[INFO] | | | +- io.swagger:swagger-models:jar:1.5.24:compile
[INFO] | | | | \- io.swagger:swagger-annotations:jar:1.5.24:compile
[INFO] | | | \- com.google.guava:guava:jar:27.0.1-android:compile
[INFO] | | | +- com.google.guava:failureaccess:jar:1.0.1:compile
[INFO] | | | +- com.google.guava:listenablefuture:jar:9999.0-empty-to-avoid-conflict-with-guava:compile
[INFO] | | | +- org.checkerframework:checker-compat-qual:jar:2.5.2:compile
[INFO] | | | +- com.google.errorprone:error_prone_annotations:jar:2.2.0:compile
[INFO] | | | +- com.google.j2objc:j2objc-annotations:jar:1.1:compile
[INFO] | | | \- org.codehaus.mojo:animal-sniffer-annotations:jar:1.17:compile
[INFO] | | +- io.swagger:swagger-compat-spec-parser:jar:1.0.47:compile
[INFO] | | | +- com.github.java-json-tools:json-schema-validator:jar:2.2.8:compile
[INFO] | | | | +- com.github.java-json-tools:json-schema-core:jar:1.2.8:compile
[INFO] | | | | | +- org.mozilla:rhino:jar:1.7R4:compile
[INFO] | | | | | \- com.github.fge:uri-template:jar:0.9:compile
[INFO] | | | | +- javax.mail:mailapi:jar:1.4.3:compile
[INFO] | | | | | \- javax.activation:activation:jar:1.1:compile
[INFO] | | | | +- joda-time:joda-time:jar:2.10.5:compile
[INFO] | | | | +- com.googlecode.libphonenumber:libphonenumber:jar:8.0.0:compile
[INFO] | | | | +- com.google.code.findbugs:jsr305:jar:3.0.1:compile
[INFO] | | | | \- net.sf.jopt-simple:jopt-simple:jar:5.0.3:compile
[INFO] | | | +- com.github.fge:json-patch:jar:1.6:compile
[INFO] | | | | \- com.github.fge:jackson-coreutils:jar:1.6:compile
[INFO] | | | | \- com.github.fge:msg-simple:jar:1.1:compile
[INFO] | | | | \- com.github.fge:btf:jar:1.2:compile
[INFO] | | | \- org.apache.httpcomponents:httpclient:jar:4.5.10:compile
[INFO] | | | +- org.apache.httpcomponents:httpcore:jar:4.4.12:compile
[INFO] | | | \- commons-codec:commons-codec:jar:1.13:compile
[INFO] | | +- io.swagger.core.v3:swagger-models:jar:2.0.10:compile
[INFO] | | \- io.swagger.parser.v3:swagger-parser-core:jar:2.0.15:compile
[INFO] | +- io.swagger.parser.v3:swagger-parser-v3:jar:2.0.15:compile
[INFO] | | +- io.swagger.core.v3:swagger-core:jar:2.0.10:compile
[INFO] | | | +- javax.xml.bind:jaxb-api:jar:2.3.1:compile
[INFO] | | | | \- javax.activation:javax.activation-api:jar:1.2.0:compile
[INFO] | | | \- io.swagger.core.v3:swagger-annotations:jar:2.0.10:compile
[INFO] | | \- com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:jar:2.10.0:compile
[INFO] | +- org.slf4j:slf4j-ext:jar:1.7.29:compile
[INFO] | +- org.slf4j:slf4j-api:jar:1.7.29:compile
[INFO] | \- commons-io:commons-io:jar:2.4:compile
[INFO] +- org.json:json:jar:20160810:compile
[INFO] +- com.googlecode.json-simple:json-simple:jar:1.1.1:compile
[INFO] | \- junit:junit:jar:4.12:compile
[INFO] | \- org.hamcrest:hamcrest-core:jar:2.1:compile
[INFO] +- javax.validation:validation-api:jar:2.0.1.Final:compile
[INFO] +- org.apache.maven:maven-model:jar:3.5.0:compile
[INFO] | +- org.codehaus.plexus:plexus-utils:jar:3.0.24:compile
[INFO] | \- org.apache.commons:commons-lang3:jar:3.9:compile
[INFO] +- org.springframework.boot:spring-boot-starter-web:jar:2.2.1.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-json:jar:2.2.1.RELEASE:compile
[INFO] | | +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.10.0:compile
[INFO] | | +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.10.0:compile
[INFO] | | \- com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.10.0:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-tomcat:jar:2.2.1.RELEASE:compile
[INFO] | | +- org.apache.tomcat.embed:tomcat-embed-core:jar:9.0.27:compile
[INFO] | | +- org.apache.tomcat.embed:tomcat-embed-el:jar:9.0.27:compile
[INFO] | | \- org.apache.tomcat.embed:tomcat-embed-websocket:jar:9.0.27:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-validation:jar:2.2.1.RELEASE:compile
[INFO] | | +- jakarta.validation:jakarta.validation-api:jar:2.0.1:compile
[INFO] | | \- org.hibernate.validator:hibernate-validator:jar:6.0.18.Final:compile
[INFO] | | +- org.jboss.logging:jboss-logging:jar:3.4.1.Final:compile
[INFO] | | \- com.fasterxml:classmate:jar:1.5.1:compile
[INFO] | +- org.springframework:spring-web:jar:5.2.1.RELEASE:compile
[INFO] | \- org.springframework:spring-webmvc:jar:5.2.1.RELEASE:compile
[INFO] | \- org.springframework:spring-aop:jar:5.2.1.RELEASE:compile
[INFO] \- org.eclipse.jgit:org.eclipse.jgit:jar:5.2.1.201812262042-r:compile
[INFO] +- com.jcraft:jsch:jar:0.1.54:compile
[INFO] +- com.jcraft:jzlib:jar:1.1.1:compile
[INFO] \- com.googlecode.javaewah:JavaEWAH:jar:1.1.6:compile
It looks like you have both have:
jakarta.validation:jakarta.validation-api
(transitive dependency via org.springframework.boot:spring-boot-starter-validation)
and
javax.validation:validation-api
on your classpath.
Since Spring Boot 2.2: Java EE dependencies with a javax. group ID are replaced by the equivalent Jakarta EE dependencies with a jakarta. group ID in Spring Boot’s starters.
For more information check the release notes:
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.2-Release-Notes#jakarta-ee-dependencies
So you can remove the javax.validation:validation-api dependency from your project.
I'm using Java 11, Spring Boot 2.1.1 and Apache CXF 3.2.7 to expose a SOAP web service that imports an XSD schema. In the WSDL it shows like:
<wsdl:import location="http://localhost:9000/endpoint/ws?wsdl=WS_endpointSoapPort.wsdl" namespace="http://test.com"> </wsdl:import>
When I send a query it fails with the following stack:
2018-12-31 12:05:54,908 ERROR se.[Tomcat].[localhost].[/].[CXFServlet]: 175 - Servlet.service() for servlet [CXFServlet] in context with path [] threw exception [Servlet execution threw an exception] with root cause
java.lang.NoSuchMethodError: org.codehaus.stax2.ri.EmptyIterator.getInstance()Lorg/codehaus/stax2/ri/EmptyIterator;
Any thoughts?
I had a conflict on the org.codehaus.woodstox:stax2-api which was included in version 3.1.4 within org.apache.cxf:cxf-core and in version 4.1 within com.sun.xml.ws:rt. I solved the conflict by removing the library using Maven excludes:
<exclusions>
<exclusion>
<groupId>org.codehaus.woodstox</groupId>
<artifactId>stax2-api</artifactId><!-- 4.1 conflicts with 3.1.4 from apache cxf-spring-boot-starter-jaxws-->
</exclusion>
</exclusions>
After research in deeply, I found the following JIRA that mentions a problem with Stax2 version. BTW the ticket said that it resolves with the version that I'm using.
In the end, I fixed upgrading to woodstox-core-5.2.0. In fact, the library mentions a similar problem that was solved in that version. Details here.
My current mvn dependency:tree is:
[INFO] +- org.springframework.boot:spring-boot-starter:jar:2.1.1.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot:jar:2.1.1.RELEASE:compile
[INFO] | | \- org.springframework:spring-context:jar:5.1.3.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-logging:jar:2.1.1.RELEASE:compile
[INFO] | | +- ch.qos.logback:logback-classic:jar:1.2.3:compile
[INFO] | | | \- ch.qos.logback:logback-core:jar:1.2.3:compile
[INFO] | | +- org.apache.logging.log4j:log4j-to-slf4j:jar:2.11.1:compile
[INFO] | | | \- org.apache.logging.log4j:log4j-api:jar:2.11.1:compile
[INFO] | | \- org.slf4j:jul-to-slf4j:jar:1.7.25:compile
[INFO] | +- javax.annotation:javax.annotation-api:jar:1.3.2:compile
[INFO] | +- org.springframework:spring-core:jar:5.1.3.RELEASE:compile
[INFO] | | \- org.springframework:spring-jcl:jar:5.1.3.RELEASE:compile
[INFO] | \- org.yaml:snakeyaml:jar:1.23:runtime
[INFO] +- org.springframework.boot:spring-boot-starter-web:jar:2.1.1.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-json:jar:2.1.1.RELEASE:compile
[INFO] | | +- com.fasterxml.jackson.core:jackson-databind:jar:2.9.7:compile
[INFO] | | | +- com.fasterxml.jackson.core:jackson-annotations:jar:2.9.0:compile
[INFO] | | | \- com.fasterxml.jackson.core:jackson-core:jar:2.9.7:compile
[INFO] | | +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.9.7:compile
[INFO] | | +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.9.7:compile
[INFO] | | \- com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.9.7:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-tomcat:jar:2.1.1.RELEASE:compile
[INFO] | | +- org.apache.tomcat.embed:tomcat-embed-core:jar:9.0.13:compile
[INFO] | | +- org.apache.tomcat.embed:tomcat-embed-el:jar:9.0.13:compile
[INFO] | | \- org.apache.tomcat.embed:tomcat-embed-websocket:jar:9.0.13:compile
[INFO] | +- org.hibernate.validator:hibernate-validator:jar:6.0.13.Final:compile
[INFO] | | +- org.jboss.logging:jboss-logging:jar:3.3.2.Final:compile
[INFO] | | \- com.fasterxml:classmate:jar:1.4.0:compile
[INFO] | +- org.springframework:spring-web:jar:5.1.3.RELEASE:compile
[INFO] | | \- org.springframework:spring-beans:jar:5.1.3.RELEASE:compile
[INFO] | \- org.springframework:spring-webmvc:jar:5.1.3.RELEASE:compile
[INFO] | +- org.springframework:spring-aop:jar:5.1.3.RELEASE:compile
[INFO] | \- org.springframework:spring-expression:jar:5.1.3.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-autoconfigure:jar:2.1.1.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-test:jar:2.1.1.RELEASE:test
[INFO] | +- org.springframework.boot:spring-boot-test:jar:2.1.1.RELEASE:test
[INFO] | +- org.springframework.boot:spring-boot-test-autoconfigure:jar:2.1.1.RELEASE:test
[INFO] | +- com.jayway.jsonpath:json-path:jar:2.4.0:test
[INFO] | | \- net.minidev:json-smart:jar:2.3:test
[INFO] | | \- net.minidev:accessors-smart:jar:1.2:test
[INFO] | +- junit:junit:jar:4.12:test
[INFO] | +- org.assertj:assertj-core:jar:3.11.1:test
[INFO] | +- org.mockito:mockito-core:jar:2.23.4:test
[INFO] | | +- net.bytebuddy:byte-buddy:jar:1.9.5:test
[INFO] | | +- net.bytebuddy:byte-buddy-agent:jar:1.9.5:test
[INFO] | | \- org.objenesis:objenesis:jar:2.6:test
[INFO] | +- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] | +- org.hamcrest:hamcrest-library:jar:1.3:test
[INFO] | +- org.skyscreamer:jsonassert:jar:1.5.0:test
[INFO] | | \- com.vaadin.external.google:android-json:jar:0.0.20131108.vaadin1:test
[INFO] | +- org.springframework:spring-test:jar:5.1.3.RELEASE:test
[INFO] | \- org.xmlunit:xmlunit-core:jar:2.6.2:test
[INFO] +- org.apache.cxf:cxf-spring-boot-starter-jaxws:jar:3.2.7:compile
[INFO] | +- org.apache.cxf:cxf-spring-boot-autoconfigure:jar:3.2.7:compile
[INFO] | +- org.apache.cxf:cxf-rt-frontend-jaxws:jar:3.2.7:compile
[INFO] | | +- xml-resolver:xml-resolver:jar:1.2:compile
[INFO] | | +- org.ow2.asm:asm:jar:6.2:compile
[INFO] | | +- org.apache.cxf:cxf-rt-bindings-xml:jar:3.2.7:compile
[INFO] | | +- org.apache.cxf:cxf-rt-frontend-simple:jar:3.2.7:compile
[INFO] | | \- org.apache.cxf:cxf-rt-ws-addr:jar:3.2.7:compile
[INFO] | | \- org.apache.cxf:cxf-rt-ws-policy:jar:3.2.7:compile
[INFO] | \- javax.validation:validation-api:jar:2.0.1.Final:compile
[INFO] +- com.fasterxml.woodstox:woodstox-core:jar:5.2.0:compile
[INFO] | \- org.codehaus.woodstox:stax2-api:jar:4.1:compile
[INFO] +- org.apache.cxf:cxf-rt-transports-http:jar:3.2.7:compile
[INFO] | \- org.apache.cxf:cxf-core:jar:3.2.7:compile
[INFO] | \- org.apache.ws.xmlschema:xmlschema-core:jar:2.2.3:compile
[INFO] +- org.apache.cxf:cxf-rt-ws-security:jar:3.2.7:compile
[INFO] | +- org.apache.cxf:cxf-rt-bindings-soap:jar:3.2.7:compile
[INFO] | | +- org.apache.cxf:cxf-rt-wsdl:jar:3.2.7:compile
[INFO] | | | \- wsdl4j:wsdl4j:jar:1.6.3:compile
[INFO] | | \- org.apache.cxf:cxf-rt-databinding-jaxb:jar:3.2.7:compile
[INFO] | +- org.apache.cxf:cxf-rt-security-saml:jar:3.2.7:compile
[INFO] | | \- org.apache.cxf:cxf-rt-security:jar:3.2.7:compile
[INFO] | +- net.sf.ehcache:ehcache:jar:2.10.6:compile
[INFO] | +- org.apache.wss4j:wss4j-ws-security-dom:jar:2.2.2:compile
[INFO] | | \- org.apache.wss4j:wss4j-ws-security-common:jar:2.2.2:compile
[INFO] | | +- org.apache.santuario:xmlsec:jar:2.1.2:compile
[INFO] | | | \- commons-codec:commons-codec:jar:1.11:compile
[INFO] | | +- org.opensaml:opensaml-saml-impl:jar:3.3.0:compile
[INFO] | | | +- org.opensaml:opensaml-profile-api:jar:3.3.0:compile
[INFO] | | | | \- org.opensaml:opensaml-core:jar:3.3.0:compile
[INFO] | | | | \- io.dropwizard.metrics:metrics-core:jar:4.0.3:compile
[INFO] | | | +- org.opensaml:opensaml-saml-api:jar:3.3.0:compile
[INFO] | | | | +- org.opensaml:opensaml-xmlsec-api:jar:3.3.0:compile
[INFO] | | | | \- org.opensaml:opensaml-soap-api:jar:3.3.0:compile
[INFO] | | | +- org.opensaml:opensaml-security-impl:jar:3.3.0:compile
[INFO] | | | | \- org.opensaml:opensaml-security-api:jar:3.3.0:compile
[INFO] | | | | +- org.cryptacular:cryptacular:jar:1.1.1:compile
[INFO] | | | | \- org.bouncycastle:bcprov-jdk15on:jar:1.54:compile
[INFO] | | | +- org.opensaml:opensaml-xmlsec-impl:jar:3.3.0:compile
[INFO] | | | \- net.shibboleth.utilities:java-support:jar:7.3.0:compile
[INFO] | | | +- com.google.guava:guava:jar:19.0:compile
[INFO] | | | \- joda-time:joda-time:jar:2.10.1:compile
[INFO] | | +- org.opensaml:opensaml-xacml-impl:jar:3.3.0:compile
[INFO] | | | \- org.opensaml:opensaml-xacml-api:jar:3.3.0:compile
[INFO] | | +- org.opensaml:opensaml-xacml-saml-impl:jar:3.3.0:compile
[INFO] | | | \- org.opensaml:opensaml-xacml-saml-api:jar:3.3.0:compile
[INFO] | | +- org.jasypt:jasypt:jar:1.9.2:compile
[INFO] | | \- org.apache.geronimo.javamail:geronimo-javamail_1.4_mail:jar:1.8.4:compile
[INFO] | +- org.apache.wss4j:wss4j-policy:jar:2.2.2:compile
[INFO] | | \- org.apache.neethi:neethi:jar:3.1.1:compile
[INFO] | | \- org.codehaus.woodstox:woodstox-core-asl:jar:4.4.1:compile
[INFO] | | \- javax.xml.stream:stax-api:jar:1.0-2:compile
[INFO] | +- org.apache.wss4j:wss4j-ws-security-stax:jar:2.2.2:compile
[INFO] | | \- org.apache.wss4j:wss4j-bindings:jar:2.2.2:compile
[INFO] | \- org.apache.wss4j:wss4j-ws-security-policy-stax:jar:2.2.2:compile
[INFO] +- org.apache.cxf:cxf-rt-features-logging:jar:3.2.7:compile
[INFO] | \- org.slf4j:slf4j-api:jar:1.7.25:compile
[INFO] +- org.apache.commons:commons-lang3:jar:3.8.1:compile
[INFO] +- org.glassfish.jaxb:jaxb-runtime:jar:2.4.0-b180830.0438:compile
[INFO] | +- javax.xml.bind:jaxb-api:jar:2.3.1:compile
[INFO] | +- org.glassfish.jaxb:txw2:jar:2.4.0-b180830.0438:compile
[INFO] | +- com.sun.istack:istack-commons-runtime:jar:3.0.7:compile
[INFO] | +- org.jvnet.staxex:stax-ex:jar:1.8:compile
[INFO] | +- com.sun.xml.fastinfoset:FastInfoset:jar:1.2.15:compile
[INFO] | \- javax.activation:javax.activation-api:jar:1.2.0:compile
[INFO] +- com.sun.xml.ws:jaxws-rt:pom:2.3.1:compile
[INFO] | +- javax.xml.ws:jaxws-api:jar:2.3.1:compile
[INFO] | +- javax.xml.soap:javax.xml.soap-api:jar:1.4.0:compile
[INFO] | +- javax.jws:javax.jws-api:jar:1.1:compile
[INFO] | +- com.sun.xml.ws:policy:jar:2.7.5:compile
[INFO] | | \- com.sun.activation:javax.activation:jar:1.2.0:compile
[INFO] | +- org.glassfish.gmbal:gmbal-api-only:jar:3.1.0-b001:compile
[INFO] | | \- org.glassfish.external:management-api:jar:3.0.0-b012:compile
[INFO] | +- com.sun.xml.stream.buffer:streambuffer:jar:1.5.6:compile
[INFO] | +- org.jvnet.mimepull:mimepull:jar:1.9.10:compile
[INFO] | +- org.glassfish.ha:ha-api:jar:3.1.9:compile
[INFO] | \- com.sun.xml.messaging.saaj:saaj-impl:jar:1.5.0:compile
[INFO] \- com.sun.xml.ws:rt:jar:2.3.1:compile
I run into the same problem and upgrading to CXF 3.2.7 or later fixed the issue for me.
The key is likely in your mvn:dependency-tree output. In my case:
[INFO] \- org.apache.cxf:cxf-rt-ws-security:jar:3.3.6:compile
[INFO] +- org.apache.cxf:cxf-core:jar:3.3.6:compile
[INFO] | \- com.fasterxml.woodstox:woodstox-core:jar:5.3.0:compile (version managed from 5.0.3)
[INFO] | \- org.codehaus.woodstox:stax2-api:jar:4.2:compile
[INFO] \- org.apache.wss4j:wss4j-policy:jar:2.2.5:compile
[INFO] \- org.apache.neethi:neethi:jar:3.1.1:compile
[INFO] \- org.codehaus.woodstox:woodstox-core-asl:jar:4.4.1:compile
[INFO] \- (org.codehaus.woodstox:stax2-api:jar:3.1.4:compile - omitted for conflict with 4.2)
org.apache.cxf:cxf-rt-ws-security:jar:3.3.6 leads to both version 3.1.4 and version 4.2 of stax2-api because of the very much outdated woodstox-core-asl dependency (from 2014). I will have to see if I can get rid of this, because it leads to the NoSuchMethodFoundError described above.
the problem is in new version of stax2-api new methods added. you can solve the problem by adding new version of the stax2-api. in my case adding
<dependency>
<groupId>org.codehaus.woodstox</groupId>
<artifactId>stax2-api</artifactId>
<version>4.2.1</version>
</dependency>
solved the problem.
This is the "jar hell problem".
You should use the exclusions clause that was mentioned Julien Kronegg.
Sorry for the previous answer that I have deleted.
I have the problem that maven is including 2 versions of the org.json package from two different dependencies.
I have the following:
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
</dependency>
But I also have the following outputs ( vaadin is the one I don't want ):
[INFO] +- org.springframework.boot:spring-boot-starter-test:jar:2.0.3.RELEASE:test
The dependency tree is showing the following two entries:
[INFO] +- org.springframework.boot:spring-boot-starter-test:jar:2.0.3.RELEASE:test
[INFO] | +- org.springframework.boot:spring-boot-test:jar:2.0.3.RELEASE:test
[INFO] | +- org.springframework.boot:spring-boot-test-autoconfigure:jar:2.0.3.RELEASE:test
[INFO] | +- com.jayway.jsonpath:json-path:jar:2.4.0:test
[INFO] | | \- net.minidev:json-smart:jar:2.3:test
[INFO] | | \- net.minidev:accessors-smart:jar:1.2:test
[INFO] | +- junit:junit:jar:4.12:test
[INFO] | +- org.assertj:assertj-core:jar:3.9.1:test
[INFO] | +- org.mockito:mockito-core:jar:2.15.0:test
[INFO] | | +- net.bytebuddy:byte-buddy:jar:1.7.11:compile
[INFO] | | +- net.bytebuddy:byte-buddy-agent:jar:1.7.11:test
[INFO] | | \- org.objenesis:objenesis:jar:2.6:test
[INFO] | +- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] | +- org.hamcrest:hamcrest-library:jar:1.3:test
[INFO] | +- org.skyscreamer:jsonassert:jar:1.5.0:test
[INFO] | | \- com.vaadin.external.google:android-json:jar:0.0.20131108.vaadin1:runtime
AND
[INFO] +- org.json:json:jar:20171018:compile
I have tried the following but the annoying vaadin jar is still being included in the project:
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
</dependency>
<dependency>
<groupId>org.mbak.test</groupId>
<artifactId>mb-cloud-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>com.vaadin.external.google</groupId>
<artifactId>android-json</artifactId>
</exclusion>
</exclusions>
</dependency>
This is causing a method not found exception.
If we go and delete the JAR from the packaged war manually, everthing is fine!
Update
Below is the full stack trace:
[INFO] --- maven-dependency-plugin:3.0.2:tree (default-cli) # mb-doc-tools ---
[INFO] Verbose not supported since maven-dependency-plugin 3.0
[INFO] org.mbak.menios:mb-doc-tools:war:0.0.1-SNAPSHOT
[INFO] +- org.mbak.mb.meniosapp:mb-cloud-starter:jar:2.0.6.19-SNAPSHOT:compile
[INFO] | +- org.mbak.mb.meniosapp:mb-masc:jar:0.0.0-SNAPSHOT:compile
[INFO] | | +- com.fasterxml.jackson.core:jackson-core:jar:2.9.6:compile
[INFO] | | +- com.fasterxml.jackson.core:jackson-annotations:jar:2.9.0:compile
[INFO] | | +- de.escalon.hypermedia:hydra-spring:jar:0.3.1:compile
[INFO] | | | +- de.escalon.hypermedia:hydra-jsonld:jar:0.3.1:compile
[INFO] | | | | \- de.escalon.hypermedia:hydra-commons:jar:0.3.1:compile
[INFO] | | | +- de.escalon.hypermedia:spring-hateoas-ext:jar:0.3.1:compile
[INFO] | | | | \- com.damnhandy:handy-uri-templates:jar:2.1.4:compile
[INFO] | | | \- com.github.jsonld-java:jsonld-java:jar:0.5.1:compile
[INFO] | | | +- org.apache.httpcomponents:httpclient-cache:jar:4.5.6:compile
[INFO] | | | \- org.slf4j:jcl-over-slf4j:jar:1.7.25:runtime
[INFO] | | \- org.springframework.hateoas:spring-hateoas:jar:0.25.0.RELEASE:compile
[INFO] | +- org.springframework.data:spring-data-commons:jar:2.0.8.RELEASE:compile
[INFO] | | \- org.springframework:spring-beans:jar:5.0.7.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-properties-migrator:jar:2.0.5.RELEASE:runtime
[INFO] | | \- org.springframework.boot:spring-boot-configuration-metadata:jar:2.0.5.RELEASE:runtime
[INFO] | +- org.jolokia:jolokia-core:jar:1.5.0:compile
[INFO] | | \- com.googlecode.json-simple:json-simple:jar:1.1.1:compile
[INFO] | +- org.springframework.cloud:spring-cloud-starter-config:jar:2.0.0.RELEASE:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-starter:jar:2.0.0.RELEASE:compile
[INFO] | | | +- org.springframework.cloud:spring-cloud-context:jar:2.0.0.RELEASE:compile
[INFO] | | | \- org.springframework.security:spring-security-rsa:jar:1.0.5.RELEASE:compile
[INFO] | | | \- org.bouncycastle:bcpkix-jdk15on:jar:1.56:compile
[INFO] | | | \- org.bouncycastle:bcprov-jdk15on:jar:1.56:compile
[INFO] | | \- org.springframework.cloud:spring-cloud-config-client:jar:2.0.0.RELEASE:compile
[INFO] | +- org.springframework.cloud:spring-cloud-commons:jar:2.0.0.RELEASE:compile
[INFO] | | \- org.springframework.security:spring-security-crypto:jar:5.0.6.RELEASE:compile
[INFO] | +- org.springframework.cloud:spring-cloud-starter-netflix-eureka-client:jar:2.0.0.RELEASE:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-netflix-core:jar:2.0.0.RELEASE:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-netflix-eureka-client:jar:2.0.0.RELEASE:compile
[INFO] | | +- com.netflix.eureka:eureka-client:jar:1.9.2:compile
[INFO] | | | +- org.codehaus.jettison:jettison:jar:1.3.7:runtime
[INFO] | | | | \- stax:stax-api:jar:1.0.1:runtime
[INFO] | | | +- com.netflix.netflix-commons:netflix-eventbus:jar:0.3.0:runtime
[INFO] | | | | +- com.netflix.netflix-commons:netflix-appix:jar:0.3.0:runtime
[INFO] | | | | | +- commons-jxpath:commons-jxpath:jar:1.3:runtime
[INFO] | | | | | \- org.antlr:antlr-runtime:jar:3.4:runtime
[INFO] | | | | | +- org.antlr:stringtemplate:jar:3.2.1:runtime
[INFO] | | | | | \- antlr:antlr:jar:2.7.7:runtime
[INFO] | | | | \- org.apache.commons:commons-math:jar:2.2:runtime
[INFO] | | | +- com.netflix.archaius:archaius-core:jar:0.7.6:compile
[INFO] | | | +- javax.ws.rs:jsr311-api:jar:1.1.1:runtime
[INFO] | | | +- com.netflix.servo:servo-core:jar:0.12.21:runtime
[INFO] | | | +- com.sun.jersey:jersey-core:jar:1.19.1:runtime
[INFO] | | | +- com.sun.jersey:jersey-client:jar:1.19.1:runtime
[INFO] | | | +- com.sun.jersey.contribs:jersey-apache-client4:jar:1.19.1:runtime
[INFO] | | | +- com.google.inject:guice:jar:4.1.0:runtime
[INFO] | | | | \- aopalliance:aopalliance:jar:1.0:runtime
[INFO] | | | \- com.github.vlsi.compactmap:compactmap:jar:1.2.1:runtime
[INFO] | | | \- com.github.andrewoma.dexx:dexx-collections:jar:0.2:runtime
[INFO] | | +- com.netflix.eureka:eureka-core:jar:1.9.2:compile
[INFO] | | | \- org.codehaus.woodstox:woodstox-core-asl:jar:4.4.1:runtime
[INFO] | | | +- javax.xml.stream:stax-api:jar:1.0-2:runtime
[INFO] | | | \- org.codehaus.woodstox:stax2-api:jar:3.1.4:runtime
[INFO] | | +- org.springframework.cloud:spring-cloud-starter-netflix-archaius:jar:2.0.0.RELEASE:compile
[INFO] | | | +- org.springframework.cloud:spring-cloud-netflix-archaius:jar:2.0.0.RELEASE:compile
[INFO] | | | \- commons-configuration:commons-configuration:jar:1.8:compile
[INFO] | | \- com.netflix.ribbon:ribbon-eureka:jar:2.2.5:compile
[INFO] | +- org.springframework.cloud:spring-cloud-starter-netflix-zuul:jar:2.0.0.RELEASE:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-netflix-zuul:jar:2.0.0.RELEASE:compile
[INFO] | | | \- com.netflix.netflix-commons:netflix-commons-util:jar:0.3.0:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-starter-netflix-hystrix:jar:2.0.0.RELEASE:compile
[INFO] | | | +- com.netflix.hystrix:hystrix-core:jar:1.5.12:compile
[INFO] | | | +- com.netflix.hystrix:hystrix-serialization:jar:1.5.12:compile
[INFO] | | | | \- com.fasterxml.jackson.module:jackson-module-afterburner:jar:2.9.6:runtime
[INFO] | | | +- com.netflix.hystrix:hystrix-metrics-event-stream:jar:1.5.12:compile
[INFO] | | | +- com.netflix.hystrix:hystrix-javanica:jar:1.5.12:compile
[INFO] | | | | \- org.ow2.asm:asm:jar:5.0.4:runtime
[INFO] | | | \- io.reactivex:rxjava-reactive-streams:jar:1.2.1:compile
[INFO] | | | \- org.reactivestreams:reactive-streams:jar:1.0.2:runtime
[INFO] | | \- com.netflix.zuul:zuul-core:jar:1.3.1:compile
[INFO] | +- org.springframework.cloud:spring-cloud-starter-netflix-ribbon:jar:2.0.0.RELEASE:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-netflix-ribbon:jar:2.0.0.RELEASE:compile
[INFO] | | +- com.netflix.ribbon:ribbon:jar:2.2.5:compile
[INFO] | | | +- com.netflix.ribbon:ribbon-transport:jar:2.2.5:runtime
[INFO] | | | | +- io.reactivex:rxnetty-contexts:jar:0.4.9:runtime
[INFO] | | | | \- io.reactivex:rxnetty-servo:jar:0.4.9:runtime
[INFO] | | | +- javax.inject:javax.inject:jar:1:runtime
[INFO] | | | \- io.reactivex:rxnetty:jar:0.4.9:runtime
[INFO] | | | +- io.netty:netty-codec-http:jar:4.1.25.Final:runtime
[INFO] | | | | \- io.netty:netty-codec:jar:4.1.25.Final:runtime
[INFO] | | | \- io.netty:netty-transport-native-epoll:jar:4.1.25.Final:runtime
[INFO] | | | +- io.netty:netty-common:jar:4.1.25.Final:runtime
[INFO] | | | +- io.netty:netty-buffer:jar:4.1.25.Final:runtime
[INFO] | | | +- io.netty:netty-transport-native-unix-common:jar:4.1.25.Final:runtime
[INFO] | | | \- io.netty:netty-transport:jar:4.1.25.Final:runtime
[INFO] | | | \- io.netty:netty-resolver:jar:4.1.25.Final:runtime
[INFO] | | +- com.netflix.ribbon:ribbon-core:jar:2.2.5:compile
[INFO] | | | \- commons-lang:commons-lang:jar:2.6:compile
[INFO] | | +- com.netflix.ribbon:ribbon-httpclient:jar:2.2.5:compile
[INFO] | | +- com.netflix.ribbon:ribbon-loadbalancer:jar:2.2.5:compile
[INFO] | | | \- com.netflix.netflix-commons:netflix-statistics:jar:0.1.1:runtime
[INFO] | | \- io.reactivex:rxjava:jar:1.3.8:compile
[INFO] | +- org.springframework.cloud:spring-cloud-starter-openfeign:jar:2.0.0.RELEASE:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-openfeign-core:jar:2.0.0.RELEASE:compile
[INFO] | | +- io.github.openfeign:feign-core:jar:9.5.1:compile
[INFO] | | +- io.github.openfeign:feign-slf4j:jar:9.5.1:compile
[INFO] | | +- io.github.openfeign:feign-hystrix:jar:9.5.1:compile
[INFO] | | \- io.github.openfeign:feign-java8:jar:9.5.1:compile
[INFO] | +- org.springframework.cloud:spring-cloud-starter-ribbon:jar:1.4.5.RELEASE:compile
[INFO] | +- org.springframework.cloud:spring-cloud-starter-hystrix:jar:1.4.5.RELEASE:compile
[INFO] | +- io.github.openfeign.form:feign-form:jar:3.3.0:compile
[INFO] | | \- com.google.code.findbugs:annotations:jar:3.0.1:compile
[INFO] | | \- net.jcip:jcip-annotations:jar:1.0:compile
[INFO] | +- io.github.openfeign.form:feign-form-spring:jar:3.3.0:compile
[INFO] | | \- commons-fileupload:commons-fileupload:jar:1.3.3:compile
[INFO] | +- com.keyholesoftware:khs-spring-boot-troublemaker-starter:jar:1.0.0:compile
[INFO] | +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.9.6:compile
[INFO] | +- ch.qos.logback:logback-core:jar:1.2.3:compile
[INFO] | +- ch.qos.logback:logback-classic:jar:1.2.3:compile
[INFO] | +- net.logstash.logback:logstash-logback-encoder:jar:4.11:compile
[INFO] | +- ch.qos.logback:logback-access:jar:1.2.3:compile
[INFO] | +- commons-io:commons-io:jar:2.6:compile
[INFO] | +- org.springframework.cloud:spring-cloud-starter-sleuth:jar:2.0.0.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-aop:jar:2.0.5.RELEASE:compile
[INFO] | | | \- org.aspectj:aspectjweaver:jar:1.8.13:compile
[INFO] | | \- org.springframework.cloud:spring-cloud-sleuth-core:jar:2.0.0.RELEASE:compile
[INFO] | | +- org.aspectj:aspectjrt:jar:1.8.13:compile
[INFO] | | +- io.zipkin.brave:brave:jar:5.1.0:compile
[INFO] | | +- io.zipkin.brave:brave-context-log4j2:jar:5.1.0:compile
[INFO] | | +- io.zipkin.brave:brave-instrumentation-spring-web:jar:5.1.0:compile
[INFO] | | | \- io.zipkin.brave:brave-instrumentation-http:jar:5.1.0:compile
[INFO] | | +- io.zipkin.brave:brave-instrumentation-spring-rabbit:jar:5.1.0:compile
[INFO] | | +- io.zipkin.brave:brave-instrumentation-kafka-clients:jar:5.1.0:compile
[INFO] | | +- io.zipkin.brave:brave-instrumentation-httpclient:jar:5.1.0:compile
[INFO] | | +- io.zipkin.brave:brave-instrumentation-httpasyncclient:jar:5.1.0:compile
[INFO] | | \- io.zipkin.brave:brave-instrumentation-spring-webmvc:jar:5.1.0:compile
[INFO] | | \- io.zipkin.brave:brave-instrumentation-servlet:jar:5.1.0:compile
[INFO] | +- org.springframework.cloud:spring-cloud-starter-zipkin:jar:2.0.0.RELEASE:compile
[INFO] | | \- org.springframework.cloud:spring-cloud-sleuth-zipkin:jar:2.0.0.RELEASE:compile
[INFO] | | +- io.zipkin.zipkin2:zipkin:jar:2.9.3:compile
[INFO] | | +- io.zipkin.reporter2:zipkin-reporter:jar:2.7.3:compile
[INFO] | | +- io.zipkin.reporter2:zipkin-sender-kafka11:jar:2.7.3:compile
[INFO] | | \- io.zipkin.reporter2:zipkin-sender-amqp-client:jar:2.7.3:compile
[INFO] | +- io.micrometer:micrometer-core:jar:1.0.6:compile
[INFO] | | +- org.hdrhistogram:HdrHistogram:jar:2.1.10:compile
[INFO] | | \- org.latencyutils:LatencyUtils:jar:2.0.3:compile
[INFO] | +- io.micrometer:micrometer-registry-prometheus:jar:1.0.6:compile
[INFO] | | \- io.prometheus:simpleclient_common:jar:0.4.0:compile
[INFO] | | \- io.prometheus:simpleclient:jar:0.4.0:compile
[INFO] | +- org.togglz:togglz-spring-boot-starter:jar:2.7.0-SNAPSHOT:compile
[INFO] | | \- org.togglz:togglz-spring-boot-autoconfigure:jar:2.7.0-SNAPSHOT:compile
[INFO] | | +- org.togglz:togglz-core:jar:2.7.0-SNAPSHOT:compile
[INFO] | | +- org.togglz:togglz-spring-core:jar:2.7.0-SNAPSHOT:compile
[INFO] | | \- org.togglz:togglz-spring-web:jar:2.7.0-SNAPSHOT:compile
[INFO] | +- org.togglz:togglz-console:jar:2.7.0-SNAPSHOT:compile
[INFO] | | \- org.togglz:togglz-servlet:jar:2.7.0-SNAPSHOT:compile
[INFO] | \- io.github.anand1st:sshd-shell-spring-boot-starter:jar:2.5:compile
[INFO] | +- org.apache.sshd:sshd-core:jar:1.6.0:compile
[INFO] | +- org.jline:jline-reader:jar:3.5.1:compile
[INFO] | | \- org.jline:jline-terminal:jar:3.5.1:compile
[INFO] | \- org.jline:jline-builtins:jar:3.5.1:compile
[INFO] +- com.google.code.gson:gson:jar:2.8.5:compile
[INFO] +- org.mbak.mb.meniosapp:mb-cloud-starter-test:jar:2.0.0-SNAPSHOT:test
[INFO] +- com.aspose:aspose-cells:jar:8.8.2:compile
[INFO] +- com.aspose.pdf:aspose-pdf-jdk16:jar:9.3.1.0:compile
[INFO] +- com.thoughtworks.xstream:xstream:jar:1.4.10:compile
[INFO] | +- xmlpull:xmlpull:jar:1.1.3.1:compile
[INFO] | \- xpp3:xpp3_min:jar:1.1.4c:compile
[INFO] +- com.stanfy:gson-xml-java:jar:0.1.7:compile
[INFO] +- org.json:json:jar:20171018:compile
[INFO] +- com.aspose:aspose-words:jar:jdk16:16.8.0:compile
[INFO] +- org.springframework.boot:spring-boot-starter-web:jar:2.0.5.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter:jar:2.0.5.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-logging:jar:2.0.5.RELEASE:compile
[INFO] | | | +- org.apache.logging.log4j:log4j-to-slf4j:jar:2.10.0:compile
[INFO] | | | | \- org.apache.logging.log4j:log4j-api:jar:2.10.0:compile
[INFO] | | | \- org.slf4j:jul-to-slf4j:jar:1.7.25:compile
[INFO] | | +- javax.annotation:javax.annotation-api:jar:1.3.2:compile
[INFO] | | \- org.yaml:snakeyaml:jar:1.19:runtime
[INFO] | +- org.springframework.boot:spring-boot-starter-json:jar:2.0.5.RELEASE:compile
[INFO] | | +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.9.6:compile
[INFO] | | \- com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.9.6:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-tomcat:jar:2.0.5.RELEASE:compile
[INFO] | | +- org.apache.tomcat.embed:tomcat-embed-core:jar:8.5.34:compile
[INFO] | | +- org.apache.tomcat.embed:tomcat-embed-el:jar:8.5.34:compile
[INFO] | | \- org.apache.tomcat.embed:tomcat-embed-websocket:jar:8.5.34:compile
[INFO] | +- org.hibernate.validator:hibernate-validator:jar:6.0.12.Final:compile
[INFO] | | +- javax.validation:validation-api:jar:2.0.1.Final:compile
[INFO] | | \- org.jboss.logging:jboss-logging:jar:3.3.2.Final:compile
[INFO] | +- org.springframework:spring-web:jar:5.0.7.RELEASE:compile
[INFO] | \- org.springframework:spring-webmvc:jar:5.0.7.RELEASE:compile
[INFO] | +- org.springframework:spring-aop:jar:5.0.7.RELEASE:compile
[INFO] | +- org.springframework:spring-context:jar:5.0.7.RELEASE:compile
[INFO] | \- org.springframework:spring-expression:jar:5.0.7.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-actuator:jar:2.0.5.RELEASE:compile
[INFO] | \- org.springframework.boot:spring-boot-actuator-autoconfigure:jar:2.0.5.RELEASE:compile
[INFO] | \- org.springframework.boot:spring-boot-actuator:jar:2.0.5.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-devtools:jar:2.0.5.RELEASE:runtime
[INFO] | +- org.springframework.boot:spring-boot:jar:2.0.5.RELEASE:compile
[INFO] | \- org.springframework.boot:spring-boot-autoconfigure:jar:2.0.5.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-test:jar:2.0.5.RELEASE:test
[INFO] | +- org.springframework.boot:spring-boot-test:jar:2.0.5.RELEASE:test
[INFO] | +- org.springframework.boot:spring-boot-test-autoconfigure:jar:2.0.5.RELEASE:test
[INFO] | +- com.jayway.jsonpath:json-path:jar:2.4.0:test
[INFO] | | \- net.minidev:json-smart:jar:2.3:test
[INFO] | | \- net.minidev:accessors-smart:jar:1.2:test
[INFO] | +- junit:junit:jar:4.12:test
[INFO] | +- org.assertj:assertj-core:jar:3.9.1:test
[INFO] | +- org.mockito:mockito-core:jar:2.15.0:test
[INFO] | | +- net.bytebuddy:byte-buddy:jar:1.7.11:compile
[INFO] | | +- net.bytebuddy:byte-buddy-agent:jar:1.7.11:test
[INFO] | | \- org.objenesis:objenesis:jar:2.6:test
[INFO] | +- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] | +- org.hamcrest:hamcrest-library:jar:1.3:test
[INFO] | +- org.skyscreamer:jsonassert:jar:1.5.0:test
-here
[INFO] | | \- com.vaadin.external.google:android-json:jar:0.0.20131108.vaadin1:runtime
[INFO] | +- org.springframework:spring-core:jar:5.0.9.RELEASE:compile
[INFO] | | \- org.springframework:spring-jcl:jar:5.0.7.RELEASE:compile
[INFO] | +- org.springframework:spring-test:jar:5.0.7.RELEASE:test
[INFO] | \- org.xmlunit:xmlunit-core:jar:2.5.1:test
[INFO] +- org.springframework.restdocs:spring-restdocs-mockmvc:jar:2.0.0.RELEASE:test
[INFO] | \- javax.servlet:javax.servlet-api:jar:3.1.0:test
[INFO] +- io.rest-assured:rest-assured:jar:3.0.6:test
[INFO] | +- org.codehaus.groovy:groovy:jar:2.4.15:compile
[INFO] | +- org.codehaus.groovy:groovy-xml:jar:2.4.15:compile
[INFO] | +- org.apache.httpcomponents:httpclient:jar:4.5.6:compile
[INFO] | | +- org.apache.httpcomponents:httpcore:jar:4.4.10:compile
[INFO] | | \- commons-codec:commons-codec:jar:1.11:compile
[INFO] | +- org.apache.httpcomponents:httpmime:jar:4.5.6:test
[INFO] | \- org.ccil.cowan.tagsoup:tagsoup:jar:1.2.1:compile
[INFO] +- io.rest-assured:xml-path:jar:3.0.6:compile
[INFO] | +- io.rest-assured:rest-assured-common:jar:3.0.6:compile
[INFO] | +- org.apache.commons:commons-lang3:jar:3.7:compile
[INFO] | \- javax.xml.bind:jaxb-api:jar:2.3.0:compile
[INFO] +- io.rest-assured:json-path:jar:3.0.6:compile
[INFO] | \- org.codehaus.groovy:groovy-json:jar:2.4.15:compile
[INFO] +- io.rest-assured:json-schema-validator:jar:3.0.6:test
[INFO] | \- com.github.fge:json-schema-validator:jar:2.2.6:test
[INFO] | +- com.google.code.findbugs:jsr305:jar:3.0.0:compile
[INFO] | +- joda-time:joda-time:jar:2.9.9:compile
[INFO] | +- com.googlecode.libphonenumber:libphonenumber:jar:6.2:test
[INFO] | +- com.github.fge:json-schema-core:jar:1.2.5:test
[INFO] | | +- com.github.fge:uri-template:jar:0.9:test
[INFO] | | | \- com.github.fge:mmb-simple:jar:1.1:test
[INFO] | | | \- com.github.fge:btf:jar:1.2:test
[INFO] | | +- com.github.fge:jackson-coreutils:jar:1.8:test
[INFO] | | \- org.mozilla:rhino:jar:1.7R4:test
[INFO] | +- javax.mail:mailapi:jar:1.4.3:test
[INFO] | | \- javax.activation:activation:jar:1.1:test
[INFO] | \- net.sf.jopt-simple:jopt-simple:jar:4.6:test
[INFO] +- org.springframework.restdocs:spring-restdocs-core:jar:2.0.0.RELEASE:compile
[INFO] | \- com.fasterxml.jackson.core:jackson-databind:jar:2.9.6:compile
[INFO] +- org.springframework.restdocs:spring-restdocs-restassured:jar:2.0.0.RELEASE:compile
[INFO] +- capital.scalable:spring-auto-restdocs-core:jar:1.0.11:test
[INFO] | +- commons-collections:commons-collections:jar:3.2.2:runtime
[INFO] | \- org.slf4j:slf4j-api:jar:1.7.25:compile
[INFO] +- io.springfox:springfox-swagger2:jar:2.8.0:compile
[INFO] | +- io.swagger:swagger-annotations:jar:1.5.14:compile
[INFO] | +- io.swagger:swagger-models:jar:1.5.14:compile
[INFO] | +- io.springfox:springfox-spi:jar:2.8.0:compile
[INFO] | | \- io.springfox:springfox-core:jar:2.8.0:compile
[INFO] | +- io.springfox:springfox-schema:jar:2.8.0:compile
[INFO] | +- io.springfox:springfox-swagger-common:jar:2.8.0:compile
[INFO] | +- io.springfox:springfox-spring-web:jar:2.8.0:compile
[INFO] | | \- org.reflections:reflections:jar:0.9.11:compile
[INFO] | | \- org.javassist:javassist:jar:3.21.0-GA:compile
[INFO] | +- com.google.guava:guava:jar:20.0:compile
[INFO] | +- com.fasterxml:classmate:jar:1.3.4:compile
[INFO] | +- org.springframework.plugin:spring-plugin-core:jar:1.2.0.RELEASE:compile
[INFO] | +- org.springframework.plugin:spring-plugin-metadata:jar:1.2.0.RELEASE:compile
[INFO] | \- org.mapstruct:mapstruct:jar:1.2.0.Final:compile
[INFO] +- io.springfox:springfox-swagger-ui:jar:2.8.0:compile
[INFO] \- org.projectlombok:lombok:jar:1.16.22:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
And because of vaadin I was getting:
org.springframework.web.util.NestedServletException: Handler dispatch failed; nested exception is java.lang.NoSuchMethodError: org.json.JSONObject.entrySet()Ljava/util/Set;
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1006)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:925)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:974)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:877)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:661)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:851)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
Update
I tried the following but it still doesn't fail to exclude vaadin:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>com.vaadin.external.google</groupId>
<artifactId>android-json</artifactId>
</exclusion>
</exclusions>
</dependency>
Additionally, I am noticing the behavior is different when you do mvn spring-boot:run and when you run a packaged war file.
When running the packaged war file we have the error. When we do spring-boot:run we do not.
Weird fix
A colleague of mine fixed this by entering the following exclusion ( but I don't understand why it worked ):
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
<exclusions>
<exclusion>
<groupId>com.vaadin.external.google</groupId>
<artifactId>android-json</artifactId>
</exclusion>
</exclusions>
</dependency>
Anyone got any ideas?
Similar/same Issue
https://github.com/spring-projects/spring-boot/issues/8706
https://github.com/spring-projects/spring-boot/issues/9248
Dependency still on classpath after Gradle dependency exclusion
You can specify the version which you want to use with dependency org.json and use that dependency above the one which you don't want.
A colleague of mine fixed this by entering the following exclusion ( but I don't understanf why it worked ):
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
<exclusions>
<exclusion>
<groupId>com.vaadin.external.google</groupId>
<artifactId>android-json</artifactId>
</exclusion>
</exclusions>
</dependency>