Java / Maven Loader Constraint Violation with Apache Kafka with org.slf4j - java

i'm currently struggling with a java.lang.LinkageError: loader constraint violation.
I'm developing a Jira Server App with the Atlassian Jira SDK that will include a Apache Kafka Producer. I added a dependency for Kafka in my pom.xml but i receive this error:
java.lang.RuntimeException: loader constraint violation: when resolving method "org.slf4j.impl.StaticLoggerBinder.getLoggerFactory()Lorg/slf4j/ILoggerFactory;" the class loader (instance of org/apache/felix/framework/BundleWiringImpl$BundleClassLoader) of the current class, org/slf4j/LoggerFactory, and the class loader (instance of org/apache/catalina/loader/ParallelWebappClassLoader) for the method's defining class, org/slf4j/impl/StaticLoggerBinder, have different Class objects for the type org/slf4j/ILoggerFactory used in the signature. Listener: com.rse.atlassian.kafka.jira.eventlistener.MasterListener event: com.atlassian.jira.event.issue.IssueEvent
at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:53)...
Caused by: java.lang.LinkageError: loader constraint violation: when resolving method "org.slf4j.impl.StaticLoggerBinder.getLoggerFactory()Lorg/slf4j/ILoggerFactory;" the class loader (instance of org/apache/felix/framework/BundleWiringImpl$BundleClassLoader) of the current class, org/slf4j/LoggerFactory, and the class loader (instance of org/apache/catalina/loader/ParallelWebappClassLoader) for the method's defining class, org/slf4j/impl/StaticLoggerBinder, have different Class objects for the type org/slf4j/ILoggerFactory used in the signature
at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:423)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:362)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:388)
at org.apache.kafka.common.utils.Utils.<clinit>(Utils.java:99)
at org.apache.kafka.clients.producer.KafkaProducer.<init>(KafkaProducer.java:318)
I read that this might originate from the org.slf4j dependency being both in Kafka and Atlassian Jira, so i used statements in my pom.xml. See the relevant part here:
<dependency>
<groupId>com.atlassian.jira</groupId>
<artifactId>jira-api</artifactId>
<version>${jira.version}</version>
<scope>provided</scope>
<exclusions>
<exclusion>
<artifactId>slf4j-api</artifactId>
<groupId>org.slf4j</groupId>
</exclusion>
<exclusion>
<artifactId>log4j</artifactId>
<groupId>log4j</groupId>
</exclusion>
</exclusions>
</dependency>
<!-- Kafka -->
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka-clients</artifactId>
<version>2.8.0</version>
<scope>compile</scope>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.30</version>
<scope>provided</scope>
</dependency>
By this point i think i tried two dozen different permutations of this... but no luck so far.
Here is also my mvn dependency:tree
[INFO] +- com.atlassian.jira:jira-api:jar:8.20.1:provided
[INFO] | +- com.atlassian.annotations:atlassian-annotations:jar:3.0.3:provided
[INFO] | | +- com.google.code.findbugs:jsr305:jar:3.0.2:provided
[INFO] | | \- org.checkerframework:checker-qual:jar:2.8.1:provided
[INFO] | +- com.atlassian.ofbiz:entityengine-share:jar:1.5.0:provided
[INFO] | | \- xerces:xercesImpl:jar:2.12.0:provided
[INFO] | | \- xml-apis:xml-apis:jar:1.4.01:provided
[INFO] | +- com.atlassian.ofbiz:entityengine:jar:1.5.0:provided
[INFO] | | \- jta:jta:jar:1.0.1:provided
[INFO] | +- com.atlassian.collectors:atlassian-collectors-util:jar:1.1:provided
[INFO] | +- opensymphony:webwork:jar:1.4-atlassian-30:provided
[INFO] | | \- com.atlassian.html:atlassian-html-encoder:jar:1.4:provided
[INFO] | +- webwork:pell-multipart-request:jar:1.31.0:provided
[INFO] | +- com.atlassian.core:atlassian-core:jar:7.0.4:provided
[INFO] | | +- commons-collections:commons-collections:jar:3.2.2:provided
[INFO] | | +- dom4j:dom4j:jar:1.6.1-atlassian-2:provided
[INFO] | | \- com.atlassian.image:atlassian-image-consumer:jar:1.0.1:provided
[INFO] | +- com.atlassian.core:atlassian-core-user:jar:7.0.4:provided
[INFO] | +- com.atlassian.core:atlassian-core-thumbnail:jar:7.0.4:provided
[INFO] | | +- com.twelvemonkeys.imageio:imageio-jpeg:jar:3.4.1:provided
[INFO] | | | +- com.twelvemonkeys.imageio:imageio-core:jar:3.4.1:provided
[INFO] | | | +- com.twelvemonkeys.imageio:imageio-metadata:jar:3.4.1:provided
[INFO] | | | +- com.twelvemonkeys.common:common-lang:jar:3.4.1:provided
[INFO] | | | +- com.twelvemonkeys.common:common-io:jar:3.4.1:provided
[INFO] | | | \- com.twelvemonkeys.common:common-image:jar:3.4.1:provided
[INFO] | | \- com.twelvemonkeys.imageio:imageio-tiff:jar:3.4.1:provided
[INFO] | +- com.atlassian.extras:atlassian-extras:jar:3.4.6:provided
[INFO] | | +- commons-codec:commons-codec:jar:1.11:provided
[INFO] | | \- com.atlassian.extras:atlassian-extras-key-manager:jar:3.4.6:provided
[INFO] | | \- com.atlassian.extras:atlassian-extras-common:jar:3.4.6:provided
[INFO] | | \- com.atlassian.extras:atlassian-extras-api:jar:3.4.6:provided
[INFO] | +- com.atlassian.velocity:atlassian-velocity:jar:1.3:provided
[INFO] | | +- opensymphony:oscore:jar:2.2.7:provided
[INFO] | | \- org.apache.velocity:velocity:jar:1.6.4:provided
[INFO] | +- osworkflow:osworkflow:jar:2.9.0-atlassian-1:provided
[INFO] | +- opensymphony:propertyset:jar:1.5:provided
[INFO] | +- com.atlassian.cache:atlassian-cache-api:jar:5.1.3:provided
[INFO] | | \- com.atlassian.instrumentation:atlassian-instrumentation-core:jar:3.0.0:provided
[INFO] | +- com.atlassian.beehive:beehive-api:jar:4.0.4:provided
[INFO] | +- com.atlassian.tenancy:atlassian-tenancy-api:jar:3.0.1:provided
[INFO] | | \- com.atlassian.event:atlassian-event:jar:4.0.0:provided
[INFO] | +- com.atlassian.upgrade:upgrade-task-framework-api:jar:2.0.2:provided
[INFO] | +- com.atlassian.crowd:embedded-crowd-api:jar:4.3.6-743967e012:provided
[INFO] | +- com.google.guava:guava:jar:26.0-jre:provided
[INFO] | | +- com.google.errorprone:error_prone_annotations:jar:2.1.3:provided
[INFO] | | +- com.google.j2objc:j2objc-annotations:jar:1.1:provided
[INFO] | | \- org.codehaus.mojo:animal-sniffer-annotations:jar:1.14:provided
[INFO] | +- com.atlassian.fugue:fugue:jar:2.7.0:provided
[INFO] | +- io.atlassian.fugue:fugue:jar:4.7.2:provided
[INFO] | +- org.codehaus.jackson:jackson-core-asl:jar:1.9.13-atlassian-6:provided
[INFO] | +- org.codehaus.jackson:jackson-mapper-asl:jar:1.9.13-atlassian-6:provided
[INFO] | +- com.sun.mail:jakarta.mail:jar:1.6.5-atlassian-2:provided
[INFO] | | \- com.sun.activation:jakarta.activation:jar:1.2.1:provided
[INFO] | +- com.atlassian.mail:atlassian-mail:jar:5.1.2:provided
[INFO] | | +- commons-beanutils:commons-beanutils:jar:1.9.4:provided
[INFO] | | \- commons-digester:commons-digester:jar:1.8.1:provided
[INFO] | +- oro:oro:jar:2.0.7:provided
[INFO] | +- com.atlassian.threadlocal:atlassian-threadlocal:jar:1.3:provided
[INFO] | +- com.google.javascript:closure-compiler-unshaded:jar:v20181008:provided
[INFO] | | +- com.google.javascript:closure-compiler-externs:jar:v20181008:provided
[INFO] | | +- args4j:args4j:jar:2.0.26:provided
[INFO] | | \- com.google.jsinterop:jsinterop-annotations:jar:1.0.0:provided
[INFO] | +- com.google.protobuf:protobuf-java:jar:3.4.0:provided
[INFO] | +- com.atlassian.velocity.htmlsafe:velocity-htmlsafe:jar:3.2.0:provided
[INFO] | +- com.atlassian.plugins:atlassian-plugins-api:jar:5.3.13:provided
[INFO] | +- com.atlassian.plugins:atlassian-plugins-webfragment:jar:5.3.2:provided
[INFO] | +- com.atlassian.plugins:atlassian-plugins-webfragment-api:jar:5.3.2:provided
[INFO] | +- com.atlassian.ozymandias:atlassian-plugin-point-safety:jar:1.0.0:provided
[INFO] | +- jfree:jfreechart:jar:1.0.13:provided
[INFO] | +- com.atlassian.plugins:atlassian-plugins-webresource:jar:4.3.6:provided
[INFO] | | +- com.atlassian.plugins:atlassian-plugins-webresource-spi:jar:4.3.6:provided
[INFO] | | +- com.atlassian.plugins:atlassian-plugins-webresource-api:jar:4.3.6:provided
[INFO] | | +- org.tuckey:urlrewritefilter:jar:4.0.4:provided
[INFO] | | \- com.atlassian.sourcemap:sourcemap:jar:1.7.7:provided
[INFO] | +- com.atlassian.plugins:atlassian-plugins-webresource-compiler-gcc:jar:4.3.6:provided
[INFO] | +- jfree:jcommon:jar:1.0.8:provided
[INFO] | +- com.atlassian.gadgets:atlassian-gadgets-api:jar:7.0.3:provided
[INFO] | +- com.atlassian.johnson:atlassian-johnson-core:jar:4.0.0:provided
[INFO] | | \- com.atlassian.plugins:atlassian-plugins-servlet:jar:5.0.0:provided
[INFO] | +- joda-time:joda-time:jar:2.10.5:provided
[INFO] | +- commons-lang:commons-lang:jar:2.6:provided
[INFO] | +- org.apache.commons:commons-lang3:jar:3.9:provided
[INFO] | +- commons-io:commons-io:jar:2.8.0:provided
[INFO] | +- commons-httpclient:commons-httpclient:jar:3.1-atlassian-2:provided
[INFO] | +- com.atlassian.profiling:atlassian-profiling:jar:3.2.0:provided
[INFO] | +- com.atlassian.scheduler:atlassian-scheduler-api:jar:3.0.1:provided
[INFO] | +- com.atlassian.analytics:analytics-api:jar:6.1.12:provided
[INFO] | +- com.atlassian.application:atlassian-application-api:jar:2.0.0:provided
[INFO] | +- javax.validation:validation-api:jar:2.0.1.Final:provided
[INFO] | +- javax.inject:javax.inject:jar:1:provided
[INFO] | \- com.atlassian:lucene-extras:jar:7.3.1-atlassian-4:provided
[INFO] +- junit:junit:jar:4.10:test
[INFO] | \- org.hamcrest:hamcrest-core:jar:1.1:test
[INFO] +- com.atlassian.plugins:atlassian-plugins-osgi-javaconfig:jar:0.2.0:compile
[INFO] +- org.apache.felix:org.apache.felix.framework:jar:4.0.0:provided
[INFO] +- org.springframework:spring-beans:jar:4.2.5.RELEASE:provided
[INFO] | \- org.springframework:spring-core:jar:4.2.5.RELEASE:provided
[INFO] | \- commons-logging:commons-logging:jar:1.2:provided
[INFO] +- org.springframework:spring-context:jar:4.2.5.RELEASE:provided
[INFO] | +- org.springframework:spring-aop:jar:4.2.5.RELEASE:provided
[INFO] | | \- aopalliance:aopalliance:jar:1.0:provided
[INFO] | \- org.springframework:spring-expression:jar:4.2.5.RELEASE:provided
[INFO] +- com.atlassian.plugins:atlassian-plugins-osgi-testrunner:jar:2.0.2:test
[INFO] | +- org.apache.wink:wink-client:jar:1.1.3-incubating:test
[INFO] | | +- org.apache.wink:wink-common:jar:1.1.3-incubating:test
[INFO] | | | \- org.apache.geronimo.specs:geronimo-annotation_1.1_spec:jar:1.0:test
[INFO] | | +- javax.xml.bind:jaxb-api:jar:2.2:test
[INFO] | | | \- javax.xml.stream:stax-api:jar:1.0-2:test
[INFO] | | +- com.sun.xml.bind:jaxb-impl:jar:2.2.1.1:test
[INFO] | | \- javax.activation:activation:jar:1.1:test
[INFO] | \- com.atlassian.upm:upm-api:jar:2.15:test
[INFO] +- javax.ws.rs:jsr311-api:jar:1.1.1:provided
[INFO] +- com.google.code.gson:gson:jar:2.2.2-atlassian-1:compile
[INFO] +- com.atlassian.applinks:applinks-api:jar:8.0.7:provided
[INFO] +- com.atlassian.applinks:applinks-spi:jar:8.0.7:provided
[INFO] +- com.atlassian.applinks:applinks-host:jar:8.0.7:provided
[INFO] +- com.atlassian.applinks:applinks-plugin:jar:8.0.7:provided
[INFO] | +- com.atlassian.applinks:applinks-common:jar:8.0.7:provided
[INFO] | | +- com.atlassian.security:atlassian-secure-xml:jar:3.2.14:provided
[INFO] | | +- io.swagger:swagger-annotations:jar:1.5.24:provided
[INFO] | | +- com.fasterxml.jackson.core:jackson-annotations:jar:2.12.3:provided
[INFO] | | \- com.fasterxml.jackson.core:jackson-databind:jar:2.12.3:provided
[INFO] | | \- com.fasterxml.jackson.core:jackson-core:jar:2.12.3:provided
[INFO] | \- com.atlassian.frontend:atlassian-frontend-runtime-plugin:jar:0.3.0:provided
[INFO] +- com.atlassian.templaterenderer:atlassian-template-renderer-api:jar:4.1.5:provided
[INFO] +- com.atlassian.servicedesk:jira-servicedesk-api:jar:4.13.3:provided
[INFO] | +- jakarta.mail:jakarta.mail-api:jar:1.6.5:provided
[INFO] | \- io.atlassian.util.concurrent:atlassian-util-concurrent:jar:4.0.1:provided
[INFO] +- com.atlassian.plugin:atlassian-spring-scanner-annotation:jar:2.2.0:provided
[INFO] +- com.atlassian.sal:sal-api:jar:3.0.0:provided
[INFO] +- org.apache.kafka:kafka-clients:jar:2.8.0:compile
[INFO] | +- com.github.luben:zstd-jni:jar:1.4.9-1:compile
[INFO] | +- org.lz4:lz4-java:jar:1.7.1:compile
[INFO] | \- org.xerial.snappy:snappy-java:jar:1.1.8.1:compile
[INFO] \- org.slf4j:slf4j-api:jar:1.7.30:provided
Thanks in advance for all answers!

Your error is coming from org.apache.felix:org.apache.felix.framework, so you should try adding that as a dependency with its own slf4j exclusion as well.
Then, try again, and repeat as needed, based on each package name that is shown in the error.
Alternatively, you could see if adding the maven-shade-plugin will help to rename the kafka-clients packages and not have conflicting classes.

Related

Missing Validators on tomcat

I am attempting to use hibernate validators with SpringBoot and Tomcat and yet continue to get this error
No validator could be found for constraint 'javax.validation.constraints.NotBlank'
I tried adding the following to my maven pom.xml without luck
<dependency>
<groupId>org.hibernate.validator</groupId>
<artifactId>hibernate-validator</artifactId>
<version>7.0.1.Final</version>
</dependency>
<dependency>
<groupId>org.glassfish</groupId>
<artifactId>jakarta.el</artifactId>
<version>4.0.0-RC2</version>
</dependency>
<dependency>
<groupId>org.hibernate.validator</groupId>
<artifactId>hibernate-validator-cdi</artifactId>
<version>7.0.1.Final</version>
</dependency>
<!-- https://mvnrepository.com/artifact/javax.validation/validation-api -->
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<version>2.0.1.Final</version>
</dependency>
It works locally when started by java so how can I fix this? I found this issue [HV000030: No validator could be found for constraint 'javax.validation.constraints.NotEmpty' validating type 'java.lang.String' but it didn't seem to fix my problems whenever I double checked that hibernate-validator was at version 7.
File causing issue can be seen here https://github.com/OntoloBridge/ontolobridge-project/blob/Authentication/src/main/java/edu/miami/schurer/ontolobridge/models/User.java
Here is my dependency Tree
[INFO] --- maven-dependency-plugin:3.0.2:tree (default-cli) #
ontologbridge ---
[INFO] edu.miami.schurer:ontologbridge:war:0.0.1-SNAPSHOT
[INFO] +- org.springframework.boot:spring-boot-starter:jar:2.0.5.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot:jar:2.0.5.RELEASE:compile
[INFO] | | \- org.springframework:spring-context:jar:5.0.9.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-autoconfigure: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.springframework:spring-core:jar:5.0.9.RELEASE:compile
[INFO] | | \- org.springframework:spring-jcl:jar:5.0.9.RELEASE:compile
[INFO] | \- org.yaml:snakeyaml:jar:1.19:runtime
[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] | | \- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.9.6: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] +- org.springframework.boot:spring-boot-starter-web:jar:2.0.5.RELEASE:compile
[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:spring-web:jar:5.0.9.RELEASE:compile
[INFO] | | \- org.springframework:spring-beans:jar:5.0.9.RELEASE:compile
[INFO] | \- org.springframework:spring-webmvc:jar:5.0.9.RELEASE:compile
[INFO] | \- org.springframework:spring-expression:jar:5.0.9.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-security:jar:2.0.5.RELEASE:compile
[INFO] | +- org.springframework:spring-aop:jar:5.0.9.RELEASE:compile
[INFO] | +- org.springframework.security:spring-security-config:jar:5.0.8.RELEASE:compile
[INFO] | | \- org.springframework.security:spring-security-core:jar:5.0.8.RELEASE:compile
[INFO] | \- org.springframework.security:spring-security-web:jar:5.0.8.RELEASE:compile
[INFO] +- org.postgresql:postgresql:jar:42.2.5:runtime
[INFO] +- io.jsonwebtoken:jjwt:jar:0.9.0:compile
[INFO] | \- com.fasterxml.jackson.core:jackson-databind:jar:2.9.6:compile
[INFO] | \- com.fasterxml.jackson.core:jackson-annotations:jar:2.9.0:compile
[INFO] +- mysql:mysql-connector-java:jar:8.0.20:compile
[INFO] | \- com.google.protobuf:protobuf-java:jar:3.6.1:compile
[INFO] +- org.apache.commons:commons-dbcp2:jar:2.1.1:compile
[INFO] | \- org.apache.commons:commons-pool2:jar:2.5.0:compile
[INFO] +- org.springframework.boot:spring-boot-starter-tomcat:jar:2.0.5.RELEASE:provided
[INFO] | +- org.apache.tomcat.embed:tomcat-embed-core:jar:8.5.34:provided
[INFO] | +- org.apache.tomcat.embed:tomcat-embed-el:jar:8.5.34:provided
[INFO] | \- org.apache.tomcat.embed:tomcat-embed-websocket:jar:8.5.34:provided
[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] | +- 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:test
[INFO] | +- org.springframework:spring-test:jar:5.0.9.RELEASE:test
[INFO] | \- org.xmlunit:xmlunit-core:jar:2.5.1:test
[INFO] +- org.springframework.boot:spring-boot-starter-jdbc:jar:2.0.5.RELEASE:compile
[INFO] | +- com.zaxxer:HikariCP:jar:2.7.9:compile
[INFO] | \- org.springframework:spring-jdbc:jar:5.0.9.RELEASE:compile
[INFO] | \- org.springframework:spring-tx:jar:5.0.9.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-configuration-processor:jar:2.0.5.RELEASE:compile (optional)
[INFO] +- it.ozimov:spring-boot-email-core:jar:0.6.3:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-mail:jar:2.0.5.RELEASE:compile
[INFO] | | +- org.springframework:spring-context-support:jar:5.0.9.RELEASE:compile
[INFO] | | \- com.sun.mail:javax.mail:jar:1.6.2:compile
[INFO] | | \- javax.activation:activation:jar:1.1:compile
[INFO] | +- org.apache.tika:tika-core:jar:1.14:compile
[INFO] | +- org.hibernate:hibernate-validator:jar:5.3.3.Final:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-data-redis:jar:2.0.5.RELEASE:compile
[INFO] | | +- org.springframework.data:spring-data-redis:jar:2.0.10.RELEASE:compile
[INFO] | | | +- org.springframework.data:spring-data-keyvalue:jar:2.0.10.RELEASE:compile
[INFO] | | | \- org.springframework:spring-oxm:jar:5.0.9.RELEASE:compile
[INFO] | | \- io.lettuce:lettuce-core:jar:5.0.5.RELEASE:compile
[INFO] | | +- io.projectreactor:reactor-core:jar:3.1.9.RELEASE:compile
[INFO] | | | \- org.reactivestreams:reactive-streams:jar:1.0.2:compile
[INFO] | | +- io.netty:netty-common:jar:4.1.29.Final:compile
[INFO] | | +- io.netty:netty-transport:jar:4.1.29.Final:compile
[INFO] | | | +- io.netty:netty-buffer:jar:4.1.29.Final:compile
[INFO] | | | \- io.netty:netty-resolver:jar:4.1.29.Final:compile
[INFO] | | \- io.netty:netty-handler:jar:4.1.29.Final:compile
[INFO] | | \- io.netty:netty-codec:jar:4.1.29.Final:compile
[INFO] | +- it.ozimov:embedded-redis:jar:0.7.0:compile
[INFO] | | \- commons-io:commons-io:jar:2.5:compile
[INFO] | +- org.owasp.encoder:encoder:jar:1.2.1:compile
[INFO] | \- com.google.guava:guava:jar:21.0:compile
[INFO] +- com.opencsv:opencsv:jar:4.1:compile
[INFO] | +- org.apache.commons:commons-lang3:jar:3.7:compile
[INFO] | +- org.apache.commons:commons-text:jar:1.1:compile
[INFO] | \- commons-beanutils:commons-beanutils:jar:1.9.3:compile
[INFO] | +- commons-logging:commons-logging:jar:1.2:compile
[INFO] | \- commons-collections:commons-collections:jar:3.2.2:compile
[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] | \- org.slf4j:slf4j-api:jar:1.7.25: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.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.9.2:compile
[INFO] +- org.springframework.boot:spring-boot-starter-data-jpa:jar:2.0.5.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] | +- javax.transaction:javax.transaction-api:jar:1.2:compile
[INFO] | +- org.hibernate:hibernate-core:jar:5.2.17.Final:compile
[INFO] | | +- org.hibernate.javax.persistence:hibernate-jpa-2.1-api:jar:1.0.2.Final:compile
[INFO] | | +- org.javassist:javassist:jar:3.22.0-GA:compile
[INFO] | | +- antlr:antlr:jar:2.7.7:compile
[INFO] | | +- org.jboss:jandex:jar:2.0.3.Final:compile
[INFO] | | +- dom4j:dom4j:jar:1.6.1:compile
[INFO] | | \- org.hibernate.common:hibernate-commons-annotations:jar:5.0.1.Final:compile
[INFO] | +- org.springframework.data:spring-data-jpa:jar:2.0.10.RELEASE:compile
[INFO] | | +- org.springframework.data:spring-data-commons:jar:2.0.10.RELEASE:compile
[INFO] | | \- org.springframework:spring-orm:jar:5.0.9.RELEASE:compile
[INFO] | \- org.springframework:spring-aspects:jar:5.0.9.RELEASE:compile
[INFO] +- io.sentry:sentry:jar:1.7.30:compile
[INFO] | \- com.fasterxml.jackson.core:jackson-core:jar:2.9.6:compile
[INFO] +- io.sentry:sentry-logback:jar:1.7.30:compile
[INFO] | +- ch.qos.logback:logback-core:jar:1.2.3:compile
[INFO] | \- ch.qos.logback:logback-classic:jar:1.2.3:compile
[INFO] +- jakarta.xml.bind:jakarta.xml.bind-api:jar:2.3.2:compile
[INFO] | \- jakarta.activation:jakarta.activation-api:jar:1.2.1:compile
[INFO] +- org.glassfish.jaxb:jaxb-runtime:jar:2.3.2:compile
[INFO] | +- org.glassfish.jaxb:txw2:jar:2.3.2: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] +- org.hibernate.validator:hibernate-validator:jar:7.0.1.Final:compile
[INFO] | +- jakarta.validation:jakarta.validation-api:jar:3.0.0:compile
[INFO] | \- org.jboss.logging:jboss-logging:jar:3.3.2.Final:compile
[INFO] +- org.glassfish:jakarta.el:jar:4.0.0-RC2:compile
[INFO] | \- jakarta.el:jakarta.el-api:jar:4.0.0-RC2:compile
[INFO] +- org.hibernate.validator:hibernate-validator-cdi:jar:7.0.1.Final:compile
[INFO] \- javax.validation:validation-api:jar:2.0.1.Final:compile
The issue appears to have been the spring-boot-email-core
[INFO] +- it.ozimov:spring-boot-email-core:jar:0.6.3:compile
[INFO] | +- org.hibernate:hibernate-validator:jar:5.3.3.Final:compile
Adding the following to the dependency fixed it
<exclusions>
<exclusion>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
</exclusion>
</exclusions>

Spring-kafka with spring boot actuator error - Caused by: java.lang.ClassNotFoundException: org.springframework.kafka.core.ProducerFactory$Listener

This is wired my spring boot application was working fine with spring-kafka dependency. For application monitoring with prometheus as soon I add spring-boot-starter-actuator dependency, my application blows up with exception.
If I remove the spring-boot-starter-actuator dependency application works fine. It seems spring-kafka has some compatibility issue with spring-boot-starter-actuator. Actuator is not able to collect/publish Kafka metrics. Please suggest how can I do my springboot application monitoring with actuator & prometheus
EDIT
After updating the spring-kafka and kafka-clients dependencies as per the compatibility matrix, I started getting exception in my junits for EmbeddedKafkaBroker server startup. The method org.apache.kafka.common.security.JaasUtils.isZkSecurityEnabled() seems to be removed/updated in kafka-clients which is being called from EmbeddedKafkaBroker class of sprint-kafka-test. The exception stack trace is updated below. Also provided mvn dependency tree.
If dependencies are included as per compatibility suggested by spring, what can be the reason that spring-kafka-test and kafka-clients are not in sync. Please suggest to resolve this error.
pom.xml (Edited)
<properties>
<spring-boot.version>2.3.0.RELEASE</spring-boot.version>
<spring.version>5.2.6.RELEASE</spring.version>
<springkafka.version>2.5.1.RELEASE</springkafka.version>
<kafkaclient.version>2.5.0</kafkaclient.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
<version>${spring-boot.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-tx</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
<version>${spring-boot.version}</version>
</dependency>
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-registry-prometheus</artifactId>
<version>1.5.3</version>
</dependency>
</dependencies>
Exception stack trace (Edited)
[ERROR]:::[]:[]:[]:[]:[Fatal error during KafkaServer startup. Prepare to shutdown]
java.lang.NoSuchMethodError: org.apache.kafka.common.security.JaasUtils.isZkSecurityEnabled()Z
at kafka.server.KafkaServer.initZkClient(KafkaServer.scala:384)
at kafka.server.KafkaServer.startup(KafkaServer.scala:207)
at kafka.utils.TestUtils$.createServer(TestUtils.scala:159)
at kafka.utils.TestUtils$.createServer(TestUtils.scala:150)
at kafka.utils.TestUtils.createServer(TestUtils.scala)
at org.springframework.kafka.test.EmbeddedKafkaBroker.afterPropertiesSet(EmbeddedKafkaBroker.java:309)
at org.springframework.kafka.test.rule.EmbeddedKafkaRule.before(EmbeddedKafkaRule.java:113)
at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:50)
at org.junit.rules.RunRules.evaluate(RunRules.java:20)
at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:190)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
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.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
mvn dependency:tree
[INFO] +- org.springframework.boot:spring-boot-starter:jar:2.3.0.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot:jar:2.3.0.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-autoconfigure:jar:2.3.0.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-logging:jar:2.3.0.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.13.2:compile
[INFO] | | \- org.slf4j:jul-to-slf4j:jar:1.7.30:compile
[INFO] | +- jakarta.annotation:jakarta.annotation-api:jar:1.3.5:compile
[INFO] | +- org.springframework:spring-core:jar:5.2.6.RELEASE:compile
[INFO] | | \- org.springframework:spring-jcl:jar:5.2.6.RELEASE:compile
[INFO] | \- org.yaml:snakeyaml:jar:1.26:compile
[INFO] +- org.springframework.boot:spring-boot-starter-data-redis:jar:2.3.0.RELEASE:compile
[INFO] | +- org.springframework.data:spring-data-redis:jar:2.3.0.RELEASE:compile
[INFO] | | +- org.springframework.data:spring-data-keyvalue:jar:2.3.0.RELEASE:compile
[INFO] | | +- org.springframework:spring-oxm:jar:5.2.6.RELEASE:compile
[INFO] | | \- org.springframework:spring-aop:jar:5.2.6.RELEASE:compile
[INFO] | \- io.lettuce:lettuce-core:jar:5.3.0.RELEASE:compile
[INFO] | \- io.projectreactor:reactor-core:jar:3.3.5.RELEASE:compile
[INFO] | \- org.reactivestreams:reactive-streams:jar:1.0.3:compile
[INFO] +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.11.3:compile
[INFO] | \- com.fasterxml.jackson.core:jackson-annotations:jar:2.11.3:compile
[INFO] +- org.springframework.boot:spring-boot-starter-quartz:jar:2.3.0.RELEASE:compile
[INFO] | +- org.springframework:spring-context-support:jar:5.2.6.RELEASE:compile
[INFO] | \- org.quartz-scheduler:quartz:jar:2.3.2:compile
[INFO] | \- com.mchange:mchange-commons-java:jar:0.2.15:compile
[INFO] +- com.google.guava:guava:jar:19.0:compile
[INFO] +- io.netty:netty-handler-proxy:jar:4.1.46.Final:compile
[INFO] | +- io.netty:netty-common:jar:4.1.46.Final:compile
[INFO] | +- io.netty:netty-buffer:jar:4.1.46.Final:compile
[INFO] | +- io.netty:netty-transport:jar:4.1.46.Final:compile
[INFO] | +- io.netty:netty-codec:jar:4.1.46.Final:compile
[INFO] | +- io.netty:netty-codec-socks:jar:4.1.46.Final:compile
[INFO] | \- io.netty:netty-codec-http:jar:4.1.46.Final:compile
[INFO] +- io.netty:netty-codec-http2:jar:4.1.46.Final:compile
[INFO] | \- io.netty:netty-handler:jar:4.1.46.Final:compile
[INFO] +- com.bmc.aif:aif-core-grpc-library:jar:1.0.00-SNAPSHOT:compile
[INFO] | +- io.grpc:grpc-netty:jar:1.6.1:compile
[INFO] | +- io.grpc:grpc-core:jar:1.6.1:compile
[INFO] | +- io.grpc:grpc-context:jar:1.6.1:compile
[INFO] | +- com.google.errorprone:error_prone_annotations:jar:2.0.19:compile
[INFO] | +- com.google.code.findbugs:jsr305:jar:3.0.0:compile
[INFO] | +- com.google.instrumentation:instrumentation-api:jar:0.4.3:compile
[INFO] | +- io.opencensus:opencensus-api:jar:0.5.1:compile
[INFO] | +- io.netty:netty-resolver:jar:4.1.46.Final:compile
[INFO] | +- io.grpc:grpc-protobuf:jar:1.6.1:compile
[INFO] | +- com.google.protobuf:protobuf-java:jar:3.3.1:compile
[INFO] | +- com.google.protobuf:protobuf-java-util:jar:3.3.1:compile
[INFO] | +- com.google.api.grpc:proto-google-common-protos:jar:0.1.9:compile
[INFO] | | \- com.google.api:api-common:jar:1.0.0-rc1:compile
[INFO] | | \- com.google.auto.value:auto-value:jar:1.1:compile
[INFO] | +- io.grpc:grpc-protobuf-lite:jar:1.6.1:compile
[INFO] | | \- com.google.protobuf:protobuf-lite:jar:3.0.1:compile
[INFO] | +- io.grpc:grpc-stub:jar:1.6.1:compile
[INFO] | \- javax.annotation:javax.annotation-api:jar:1.2:compile
[INFO] +- com.bmc.aif:kafka-messaging-library:jar:1.0.00-SNAPSHOT:compile
[INFO] | +- org.eclipse.collections:eclipse-collections:jar:10.2.0:compile
[INFO] | \- org.eclipse.collections:eclipse-collections-api:jar:10.2.0:compile
[INFO] +- com.bmc.aif:aif-job-manager-grpc-library:jar:1.0.00-SNAPSHOT:compile
[INFO] +- org.springframework.boot:spring-boot-starter-test:jar:2.3.0.RELEASE:test
[INFO] | +- org.springframework.boot:spring-boot-test:jar:2.3.0.RELEASE:test
[INFO] | +- org.springframework.boot:spring-boot-test-autoconfigure:jar:2.3.0.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.3:test
[INFO] | | \- jakarta.activation:jakarta.activation-api:jar:1.2.2:test
[INFO] | +- org.assertj:assertj-core:jar:3.16.1:test
[INFO] | +- org.hamcrest:hamcrest:jar:2.2:test
[INFO] | +- org.junit.jupiter:junit-jupiter:jar:5.6.2:test
[INFO] | | +- org.junit.jupiter:junit-jupiter-params:jar:5.6.2:test
[INFO] | | \- org.junit.jupiter:junit-jupiter-engine:jar:5.6.2:test
[INFO] | +- org.junit.vintage:junit-vintage-engine:jar:5.6.2:test
[INFO] | | +- org.apiguardian:apiguardian-api:jar:1.1.0:test
[INFO] | | +- org.junit.platform:junit-platform-engine:jar:1.6.2:test
[INFO] | | \- junit:junit:jar:4.13:test
[INFO] | +- org.mockito:mockito-core:jar:3.3.3:test
[INFO] | | +- net.bytebuddy:byte-buddy-agent:jar:1.10.5:test
[INFO] | | \- org.objenesis:objenesis:jar:2.6:test
[INFO] | +- org.mockito:mockito-junit-jupiter:jar:3.3.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.2.6.RELEASE:test
[INFO] | \- org.xmlunit:xmlunit-core:jar:2.7.0:test
[INFO] +- org.projectlombok:lombok:jar:1.16.22:provided
[INFO] +- com.h2database:h2:jar:1.4.200:test
[INFO] +- com.fasterxml.jackson.core:jackson-databind:jar:2.11.0:compile
[INFO] +- com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:jar:2.11.0:runtime
[INFO] +- com.fasterxml.jackson.core:jackson-core:jar:2.11.0:compile
[INFO] +- org.springframework:spring-tx:jar:5.2.6.RELEASE:compile
[INFO] | \- org.springframework:spring-beans:jar:5.2.6.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-data-jdbc:jar:2.3.0.RELEASE:runtime
[INFO] | +- org.springframework.boot:spring-boot-starter-jdbc:jar:2.3.0.RELEASE:compile
[INFO] | | +- com.zaxxer:HikariCP:jar:3.4.5:compile
[INFO] | | \- org.springframework:spring-jdbc:jar:5.2.6.RELEASE:compile
[INFO] | \- org.springframework.data:spring-data-jdbc:jar:2.0.0.RELEASE:runtime
[INFO] | +- org.springframework.data:spring-data-relational:jar:2.0.0.RELEASE:runtime
[INFO] | \- org.springframework.data:spring-data-commons:jar:2.3.0.RELEASE:compile
[INFO] +- org.postgresql:postgresql:jar:42.2.14:runtime
[INFO] +- javax.xml.bind:jaxb-api:jar:2.2.6:runtime
[INFO] +- org.slf4j:slf4j-api:jar:1.7.30:compile
[INFO] +- net.bytebuddy:byte-buddy:jar:1.10.9:runtime
[INFO] +- com.github.everit-org.json-schema:org.everit.json.schema:jar:1.12.1:compile
[INFO] | +- commons-validator:commons-validator:jar:1.6:compile
[INFO] | | +- commons-digester:commons-digester:jar:1.8.1:compile
[INFO] | | +- commons-logging:commons-logging:jar:1.2:compile
[INFO] | | \- commons-collections:commons-collections:jar:3.2.2:compile
[INFO] | +- com.damnhandy:handy-uri-templates:jar:2.1.8:compile
[INFO] | | \- joda-time:joda-time:jar:2.10.2:compile
[INFO] | \- com.google.re2j:re2j:jar:1.3:compile
[INFO] +- com.bmc.truesight.saas:tspod-library:jar:1.0.00-SNAPSHOT:compile
[INFO] +- com.bmc.ade.core:service-pre-deployment-library:jar:1.0.00-SNAPSHOT:runtime
[INFO] | +- com.bmc.truesight.saas.thirdparty:jackson-databind:jar:2.10.0:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:jopt-simple:jar:5.0.3:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:zkclient:jar:0.10:compile
[INFO] | +- com.yammer.metrics:metrics-core:jar:2.2.0:compile
[INFO] | +- org.apache.zookeeper:zookeeper-jute:jar:3.5.6:compile
[INFO] | | \- org.apache.yetus:audience-annotations:jar:0.5.0:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:jackson-dataformat-yaml:jar:2.10.0:compile
[INFO] | +- org.scala-lang:scala-library:jar:2.12.10:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:curator-recipes:jar:2.9.0:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:curator-framework:jar:2.9.0:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:curator-client:jar:2.9.0:compile
[INFO] | +- org.apache.kafka:kafka_2.12:jar:2.4.1:compile
[INFO] | | +- com.fasterxml.jackson.module:jackson-module-scala_2.12:jar:2.10.0:compile
[INFO] | | | \- com.fasterxml.jackson.module:jackson-module-paranamer:jar:2.10.0:compile
[INFO] | | | \- com.thoughtworks.paranamer:paranamer:jar:2.8:compile
[INFO] | | +- com.fasterxml.jackson.dataformat:jackson-dataformat-csv:jar:2.10.0:compile
[INFO] | | +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.10.0:compile
[INFO] | | +- net.sf.jopt-simple:jopt-simple:jar:5.0.4:compile
[INFO] | | +- org.scala-lang.modules:scala-collection-compat_2.12:jar:2.1.2:compile
[INFO] | | +- org.scala-lang.modules:scala-java8-compat_2.12:jar:0.9.0:compile
[INFO] | | +- com.typesafe.scala-logging:scala-logging_2.12:jar:3.9.2:compile
[INFO] | | \- commons-cli:commons-cli:jar:1.4:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:zookeeper:jar:3.5.6:compile
[INFO] | +- org.apache.kafka:kafka-streams:jar:2.4.1:runtime
[INFO] | | +- org.apache.kafka:connect-json:jar:2.4.1:runtime
[INFO] | | | \- org.apache.kafka:connect-api:jar:2.4.1:runtime
[INFO] | | \- org.rocksdb:rocksdbjni:jar:5.18.3:runtime
[INFO] | +- com.bmc.truesight.saas.thirdparty:metrics-core:jar:3.2.4:runtime
[INFO] | +- org.scala-lang:scala-reflect:jar:2.12.10:compile
[INFO] | \- com.bmc.truesight.saas.thirdparty:scala-logging_2.12:jar:3.9.0:runtime
[INFO] +- com.bmc.truesight.saas:tspod-library-implv2:jar:1.0.00-SNAPSHOT:compile
[INFO] | +- org.apache.commons:commons-lang3:jar:3.4:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:slf4j-api:jar:1.7.25:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:logback-classic:jar:1.2.3:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:logback-core:jar:1.2.3:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:netty-codec-http2:jar:4.1.46.Final:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:netty-common:jar:4.1.46.Final:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:netty-buffer:jar:4.1.46.Final:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:netty-codec:jar:4.1.46.Final:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:netty-codec-http:jar:4.1.46.Final:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:netty-codec-socks:jar:4.1.46.Final:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:netty-handler:jar:4.1.46.Final:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:netty-handler-proxy:jar:4.1.46.Final:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:netty-resolver:jar:4.1.46.Final:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:netty-transport:jar:4.1.46.Final:compile
[INFO] | +- org.apache.zookeeper:zookeeper:jar:3.5.6:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:netty-transport-native-epoll:jar:4.1.46.Final:compile
[INFO] | | \- io.netty:netty-transport-native-unix-common:jar:4.1.46.Final:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:netty-transport-native-unix-common:jar:4.1.46.Final:compile
[INFO] | +- org.apache.logging.log4j:log4j-1.2-api:jar:2.13.0:compile
[INFO] | | \- org.apache.logging.log4j:log4j-api:jar:2.13.0:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:curator-x-discovery:jar:2.9.0:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:grpc-core:jar:1.6.1:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:jackson-mapper-asl:jar:1.9.13.redhat-2:compile
[INFO] | +- org.codehaus.jackson:jackson-core-asl:jar:1.9.13:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:jackson-core:jar:2.10.0:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:jackson-annotations:jar:2.10.0:compile
[INFO] | +- com.bmc.truesight.saas:tspod-commu-service-grpc-library:jar:1.0.00-SNAPSHOT:compile
[INFO] | \- com.bmc.truesight.saas:pre-deployment-library:jar:1.0.00-SNAPSHOT:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:cassandra-driver-core:jar:3.8.0:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:guava:jar:19.0:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:elasticsearch:jar:7.7.0:compile
[INFO] | | +- org.elasticsearch:elasticsearch-core:jar:7.7.0:compile
[INFO] | | +- org.elasticsearch:elasticsearch-secure-sm:jar:7.7.0:compile
[INFO] | | +- org.elasticsearch:elasticsearch-x-content:jar:7.7.0:compile
[INFO] | | +- org.elasticsearch:elasticsearch-geo:jar:7.7.0:compile
[INFO] | | +- org.apache.lucene:lucene-core:jar:8.5.1:compile
[INFO] | | +- org.apache.lucene:lucene-analyzers-common:jar:8.5.1:compile
[INFO] | | +- org.apache.lucene:lucene-backward-codecs:jar:8.5.1:compile
[INFO] | | +- org.apache.lucene:lucene-grouping:jar:8.5.1:compile
[INFO] | | +- org.apache.lucene:lucene-highlighter:jar:8.5.1:compile
[INFO] | | +- org.apache.lucene:lucene-join:jar:8.5.1:compile
[INFO] | | +- org.apache.lucene:lucene-memory:jar:8.5.1:compile
[INFO] | | +- org.apache.lucene:lucene-misc:jar:8.5.1:compile
[INFO] | | +- org.apache.lucene:lucene-queries:jar:8.5.1:compile
[INFO] | | +- org.apache.lucene:lucene-queryparser:jar:8.5.1:compile
[INFO] | | +- org.apache.lucene:lucene-sandbox:jar:8.5.1:compile
[INFO] | | +- org.apache.lucene:lucene-spatial-extras:jar:8.5.1:compile
[INFO] | | +- org.apache.lucene:lucene-spatial3d:jar:8.5.1:compile
[INFO] | | +- org.apache.lucene:lucene-suggest:jar:8.5.1:compile
[INFO] | | +- org.elasticsearch:elasticsearch-cli:jar:7.7.0:compile
[INFO] | | +- com.carrotsearch:hppc:jar:0.8.1:compile
[INFO] | | +- com.tdunning:t-digest:jar:3.2:compile
[INFO] | | \- org.elasticsearch:jna:jar:4.5.1:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:elasticsearch-core:jar:7.7.0:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:elasticsearch-x-content:jar:7.7.0:compile
[INFO] | | +- com.fasterxml.jackson.dataformat:jackson-dataformat-smile:jar:2.10.4:compile
[INFO] | | \- com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:jar:2.10.4:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:transport:jar:7.7.0:compile
[INFO] | | +- org.elasticsearch:elasticsearch:jar:7.7.0:compile
[INFO] | | +- org.elasticsearch.plugin:transport-netty4-client:jar:7.7.0:compile
[INFO] | | +- org.elasticsearch.plugin:reindex-client:jar:7.7.0:compile
[INFO] | | +- org.elasticsearch.plugin:lang-mustache-client:jar:7.7.0:compile
[INFO] | | +- org.elasticsearch.plugin:percolator-client:jar:7.7.0:compile
[INFO] | | +- org.elasticsearch.plugin:parent-join-client:jar:7.7.0:compile
[INFO] | | \- org.elasticsearch.plugin:rank-eval-client:jar:7.7.0:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:transport-netty4-client:jar:7.7.0:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:reindex-client:jar:7.7.0:compile
[INFO] | | \- org.elasticsearch:elasticsearch-ssl-config:jar:7.7.0:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:parent-join-client:jar:7.7.0:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:lang-mustache-client:jar:7.7.0:compile
[INFO] | | \- com.github.spullara.mustache.java:compiler:jar:0.9.6:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:percolator-client:jar:7.7.0:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:elasticsearch-rest-high-level-client:jar:7.7.0:compile
[INFO] | | +- org.elasticsearch.plugin:mapper-extras-client:jar:7.7.0:compile
[INFO] | | \- org.elasticsearch.plugin:aggs-matrix-stats-client:jar:7.7.0:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:rank-eval-client:jar:7.7.0:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:lucene-core:jar:8.5.2:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:lucene-analyzers-common:jar:8.5.2:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:lucene-backward-codecs:jar:8.5.2:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:lucene-grouping:jar:8.5.2:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:lucene-highlighter:jar:8.5.2:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:lucene-join:jar:8.5.2:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:lucene-memory:jar:8.5.2:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:lucene-misc:jar:8.5.2:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:lucene-queries:jar:8.5.2:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:lucene-queryparser:jar:8.5.2:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:lucene-sandbox:jar:8.5.2:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:lucene-spatial:jar:8.4.1:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:lucene-spatial-extras:jar:8.5.2:compile
[INFO] | | +- io.sgr:s2-geometry-library-java:jar:1.0.0:compile
[INFO] | | \- org.locationtech.spatial4j:spatial4j:jar:0.7:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:lucene-suggest:jar:8.5.2:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:httpclient:jar:4.5.7:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:httpcore:jar:4.4.11:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:httpcore-nio:jar:4.4.11:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:httpasyncclient:jar:4.1.4:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:commons-codec:jar:1.11:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:commons-logging:jar:1.1.3:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:netty-all:jar:4.1.46.Final:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:compiler:jar:0.9.3:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:jcl-over-slf4j:jar:1.7.25:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:log4j-core:jar:2.12.1:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:log4j-api:jar:2.12.1:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:jackson-dataformat-cbor:jar:2.10.0:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:scala-parser-combinators_2.12:jar:1.1.1:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:scala-library:jar:2.12.6:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:cassandra-driver-mapping:jar:3.8.0:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:joda-time:jar:2.10.2:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:elasticsearch-cli:jar:7.7.0:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:t-digest:jar:3.2:compile
[INFO] | \- com.bmc.truesight.saas.thirdparty:hppc:jar:0.8.1:compile
[INFO] +- commons-io:commons-io:jar:2.7:compile
[INFO] +- com.bmc.truesight.saas:env-provider-library:jar:1.0.00-SNAPSHOT:compile
[INFO] +- com.bmc.truesight.saas:env-provider-library-impl:jar:1.0.00-SNAPSHOT:compile
[INFO] +- org.json:json:jar:20200518:compile
[INFO] +- io.kubernetes:client-java:jar:8.0.0:compile
[INFO] | +- io.kubernetes:client-java-api:jar:8.0.0:compile
[INFO] | | +- io.sundr:builder-annotations:jar:0.21.0:compile
[INFO] | | | +- io.sundr:sundr-core:jar:0.21.0:compile
[INFO] | | | +- io.sundr:sundr-codegen:jar:0.21.0:compile
[INFO] | | | \- io.sundr:resourcecify-annotations:jar:0.21.0:compile
[INFO] | | +- io.swagger:swagger-annotations:jar:1.5.22:compile
[INFO] | | +- com.squareup.okhttp3:okhttp:jar:3.14.3:compile
[INFO] | | | \- com.squareup.okio:okio:jar:1.17.2:compile
[INFO] | | +- com.squareup.okhttp3:logging-interceptor:jar:3.14.3:compile
[INFO] | | +- io.gsonfire:gson-fire:jar:1.8.3:compile
[INFO] | | \- org.joda:joda-convert:jar:1.2:compile
[INFO] | +- io.kubernetes:client-java-proto:jar:8.0.0:compile
[INFO] | +- commons-codec:commons-codec:jar:1.11:compile
[INFO] | +- org.apache.commons:commons-compress:jar:1.19:compile
[INFO] | +- org.apache.commons:commons-collections4:jar:4.1:compile
[INFO] | \- org.bitbucket.b_c:jose4j:jar:0.7.0:compile
[INFO] +- org.bouncycastle:bcprov-jdk15on:jar:1.66:test
[INFO] +- org.springframework.boot:spring-boot-starter-data-jpa:jar:2.3.0.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-aop:jar:2.3.0.RELEASE:compile
[INFO] | | \- org.aspectj:aspectjweaver:jar:1.9.5: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.4.15.Final:compile
[INFO] | | +- org.jboss.logging:jboss-logging:jar:3.3.2.Final:compile
[INFO] | | +- org.javassist:javassist:jar:3.24.0-GA:compile
[INFO] | | +- antlr:antlr:jar:2.7.7:compile
[INFO] | | +- org.jboss:jandex:jar:2.1.3.Final:compile
[INFO] | | +- com.fasterxml:classmate:jar:1.5.1:compile
[INFO] | | +- org.dom4j:dom4j:jar:2.1.3:compile
[INFO] | | +- org.hibernate.common:hibernate-commons-annotations:jar:5.1.0.Final:compile
[INFO] | | \- org.glassfish.jaxb:jaxb-runtime:jar:2.3.1:compile
[INFO] | | +- org.glassfish.jaxb:txw2:jar:2.3.1: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] | +- org.springframework.data:spring-data-jpa:jar:2.3.0.RELEASE:compile
[INFO] | | \- org.springframework:spring-orm:jar:5.2.6.RELEASE:compile
[INFO] | \- org.springframework:spring-aspects:jar:5.2.6.RELEASE:compile
[INFO] +- org.apache.kafka:kafka-clients:jar:2.5.0:compile
[INFO] | +- com.github.luben:zstd-jni:jar:1.4.4-7:compile
[INFO] | +- org.lz4:lz4-java:jar:1.7.1:compile
[INFO] | \- org.xerial.snappy:snappy-java:jar:1.1.7.3:compile
[INFO] +- **org.springframework.kafka:spring-kafka-test:jar:2.5.1.RELEASE:test**
[INFO] | +- org.springframework:spring-context:jar:5.2.6.RELEASE:compile
[INFO] | | \- org.springframework:spring-expression:jar:5.2.6.RELEASE:compile
[INFO] | +- org.springframework.retry:spring-retry:jar:1.2.5.RELEASE:compile
[INFO] | +- **org.apache.kafka:kafka-clients:jar:test:2.5.0:test**
[INFO] | +- org.apache.kafka:kafka-streams-test-utils:jar:2.5.0:test
[INFO] | +- org.apache.kafka:kafka_2.12:jar:test:2.5.0:test
[INFO] | \- org.junit.jupiter:junit-jupiter-api:jar:5.6.2:test
[INFO] | +- org.opentest4j:opentest4j:jar:1.2.0:test
[INFO] | \- org.junit.platform:junit-platform-commons:jar:1.6.2:test
[INFO] +- **org.springframework.kafka:spring-kafka:jar:2.5.1.RELEASE:compile**
[INFO] | \- org.springframework:spring-messaging:jar:5.2.6.RELEASE:compile
[INFO] +- com.google.code.gson:gson:jar:2.8.6:compile
[INFO] +- org.flywaydb:flyway-core:jar:6.5.0:compile
[INFO] +- com.bmc.ade:ims-java-sdk:jar:0.0.7:compile
[INFO] | +- org.slf4j:slf4j-log4j12:jar:1.7.21:compile
[INFO] | | \- log4j:log4j:jar:1.2.17:compile
[INFO] | +- com.auth0:java-jwt:jar:3.3.0:compile
[INFO] | \- org.apache.httpcomponents:httpclient:jar:4.5.5:compile
[INFO] | \- org.apache.httpcomponents:httpcore:jar:4.4.9:compile
[INFO] +- org.springframework.boot:spring-boot-starter-actuator:jar:2.3.0.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-actuator-autoconfigure:jar:2.3.0.RELEASE:compile
[INFO] | | \- org.springframework.boot:spring-boot-actuator:jar:2.3.0.RELEASE:compile
[INFO] | \- io.micrometer:micrometer-core:jar:1.5.1:compile
[INFO] | +- org.hdrhistogram:HdrHistogram:jar:2.1.12:compile
[INFO] | \- org.latencyutils:LatencyUtils:jar:2.0.3:runtime
[INFO] \- io.micrometer:micrometer-registry-prometheus:jar:1.5.3:compile
[INFO] \- io.prometheus:simpleclient_common:jar:0.8.1:compile
[INFO] \- io.prometheus:simpleclient:jar:0.8.1:compile
Spring Boot 2.3 (currently 2.3.6) requires spring-kafka 2.5 (currently 2.5.8).
Generally, you should not specify versions for Boot dependencies; boot will properly bring in its compatible versions.
To add to Gary's comment, if you still want to managed the dependencies yourself, you can consult the compatibility matrix found here: https://spring.io/projects/spring-kafka
spring-kafka 2.5.X + Kafka Client 2.5.0 + Spring Boot 2.3.X
In your case, where I assume spring-boot is leading, you will need to upgrade kafka-client + spring-kafka.

neo4j 3.3.3 Cannot query embedded db because No dependency satisfies type interface org.neo4j.kernel.impl.query.QueryExecutionEngine

I try to use embedded neo4j and I have few questions
1.
Why embedded db has different structure than standalone so I cannot point view db in desktop app - embedded db doesn't produces dbms folder and no graph.db
2.
I cannot query embedded db using cypher, I can query using db.findNodes etc. I am getting
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.bolt.v1.runtime.BoltFactoryImpl#4917d36b' was successfully initialized, but failed to start. Please see the attached cause exception "No dependency satisfies type interface org.neo4j.kernel.impl.query.QueryExecutionEngine".
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:466)
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:445)
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107)
at org.neo4j.kernel.extension.KernelExtensions.start(KernelExtensions.java:84)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:445)
Caused by: org.neo4j.kernel.impl.util.UnsatisfiedDependencyException: No dependency satisfies type interface org.neo4j.kernel.impl.query.QueryExecutionEngine
at org.neo4j.kernel.impl.util.Dependencies.resolveDependency(Dependencies.java:73)
at org.neo4j.kernel.impl.util.Dependencies.resolveDependency(Dependencies.java:68)
at org.neo4j.graphdb.DependencyResolver$Adapter.resolveDependency(DependencyResolver.java:101)
at org.neo4j.bolt.v1.runtime.BoltFactoryImpl.start(BoltFactoryImpl.java:71)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:445)
I've started with
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j</artifactId>
<version>3.3.3</version>
</dependency>
but quickly ended up with
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j</artifactId>
<version>3.3.3</version>
</dependency>
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-slf4j</artifactId>
<version>3.3.3</version>
</dependency>
--- advised by [SO issue][1]
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-cypher-compiler-3.3</artifactId>
<version>3.3.3</version>
</dependency>
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-cypher-frontend-3.3</artifactId>
<version>3.3.3</version>
</dependency>
-- advised by friend :]
<dependency>
<groupId>org.neo4j.app</groupId>
<artifactId>neo4j-server</artifactId>
<version>3.3.3</version>
</dependency>
the error shows that neo has problem with bolt which is nowhere explicitly declared, when I removed neo4j-server (which inlcudes bolt) I get
java.lang.UnsupportedOperationException: No query engine installed.
at org.neo4j.kernel.impl.query.NoQueryEngine.noQueryEngine(NoQueryEngine.java:63) ~[neo4j-kernel-3.3.3.jar:3.3.3,13ce0dc2e5eb1d72cc4e8df41612e4ec136c83e3]
at org.neo4j.kernel.impl.query.NoQueryEngine.executeQuery(NoQueryEngine.java:34) ~[neo4j-kernel-3.3.3.jar:3.3.3,13ce0dc2e5eb1d72cc4e8df41612e4ec136c83e3]
at org.neo4j.kernel.impl.factory.ClassicCoreSPI.executeQuery(ClassicCoreSPI.java:80) ~[neo4j-kernel-3.3.3.jar:3.3.3,13ce0dc2e5eb1d72cc4e8df41612e4ec136c83e3]
at org.neo4j.kernel.impl.factory.GraphDatabaseFacade.execute(GraphDatabaseFacade.java:451) ~[neo4j-kernel-3.3.3.jar:3.3.3,13ce0dc2e5eb1d72cc4e8df41612e4ec136c83e3]
at org.neo4j.kernel.impl.factory.GraphDatabaseFacade.execute(GraphDatabaseFacade.java:434) ~[neo4j-kernel-3.3.3.jar:3.3.3,13ce0dc2e5eb1d72cc4e8df41612e4ec136c83e3]
at com.codewise.voluum.dsp.bidder.it.neo4j.IndexManager.read(IndexManager.java:94) [test-classes/:?]
at com.codewise.voluum.dsp.bidder.it.neo4j.IndexReader$Reader.run(IndexReader.java:105) [test-classes/:?]
Actually I am lost as implementation of Query engine is in neo4j-kernel (which is available) but for some reason is not chosen. Maybe someone would like to see maven dependencies
[INFO] --- maven-dependency-plugin:3.0.2:tree (default-cli)
[INFO] +- com.fasterxml.jackson.core:jackson-databind:jar:2.9.3:compile
[INFO] | \- com.fasterxml.jackson.core:jackson-annotations:jar:2.9.3:compile
[INFO] +- org.neo4j:neo4j:jar:3.3.3:compile
[INFO] | +- org.neo4j:neo4j-kernel:jar:3.3.3:compile
[INFO] | | +- org.neo4j:neo4j-graphdb-api:jar:3.3.3:compile
[INFO] | | | \- org.neo4j:neo4j-resource:jar:3.3.3:compile
[INFO] | | +- org.neo4j:neo4j-common:jar:3.3.3:compile
[INFO] | | +- org.neo4j:neo4j-values:jar:3.3.3:compile
[INFO] | | +- org.neo4j:neo4j-collections:jar:3.3.3:compile
[INFO] | | +- org.neo4j:neo4j-primitive-collections:jar:3.3.3:compile
[INFO] | | | \- org.neo4j:neo4j-unsafe:jar:3.3.3:compile
[INFO] | | +- org.neo4j:neo4j-io:jar:3.3.3:compile
[INFO] | | +- org.neo4j:neo4j-csv:jar:3.3.3:compile
[INFO] | | +- org.neo4j:neo4j-lucene-upgrade:jar:3.3.3:compile
[INFO] | | | \- org.apache.lucene:lucene-backward-codecs:jar:5.5.2:compile
[INFO] | | +- org.neo4j:neo4j-configuration:jar:3.3.3:compile
[INFO] | | +- org.neo4j:neo4j-index:jar:3.3.3:compile
[INFO] | | \- org.neo4j:neo4j-ssl:jar:3.3.3:compile
[INFO] | | \- org.bouncycastle:bcpkix-jdk15on:jar:1.53:compile
[INFO] | | \- org.bouncycastle:bcprov-jdk15on:jar:1.53:compile
[INFO] | +- org.neo4j:neo4j-lucene-index:jar:3.3.3:compile
[INFO] | | +- org.apache.lucene:lucene-analyzers-common:jar:5.5.2:compile
[INFO] | | +- org.apache.lucene:lucene-core:jar:5.5.2:compile
[INFO] | | +- org.apache.lucene:lucene-queryparser:jar:5.5.2:compile
[INFO] | | \- org.apache.lucene:lucene-codecs:jar:5.5.0:compile
[INFO] | +- org.neo4j:neo4j-graph-algo:jar:3.3.3:compile
[INFO] | +- org.neo4j:neo4j-udc:jar:3.3.3:compile
[INFO] | +- org.neo4j:neo4j-cypher:jar:3.3.3:compile
[INFO] | | +- org.neo4j:neo4j-graph-matching:jar:3.1.6:compile
[INFO] | | +- org.neo4j:neo4j-codegen:jar:3.3.3:compile
[INFO] | | | +- org.ow2.asm:asm:jar:5.2:compile
[INFO] | | | +- org.ow2.asm:asm-util:jar:5.2:compile
[INFO] | | | +- org.ow2.asm:asm-analysis:jar:5.2:compile
[INFO] | | | \- org.ow2.asm:asm-tree:jar:5.2:compile
[INFO] | | +- org.neo4j:neo4j-cypher-compiler-2.3:jar:2.3.12:compile
[INFO] | | | +- org.neo4j:neo4j-cypher-frontend-2.3:jar:2.3.12:compile
[INFO] | | | \- com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:jar:1.4.2:compile
[INFO] | | +- org.neo4j:neo4j-cypher-compiler-3.1:jar:3.1.6:compile
[INFO] | | | \- org.neo4j:neo4j-cypher-frontend-3.1:jar:3.1.6:compile
[INFO] | | +- org.neo4j:neo4j-cypher-compiler-3.2:jar:3.2.9:compile
[INFO] | | | +- org.neo4j:neo4j-cypher-frontend-3.2:jar:3.2.9:compile
[INFO] | | | \- org.neo4j:neo4j-cypher-ir-3.2:jar:3.2.9:compile
[INFO] | | \- net.sf.opencsv:opencsv:jar:2.3:compile
[INFO] | +- org.neo4j:neo4j-jmx:jar:3.3.3:compile
[INFO] | \- org.neo4j:neo4j-consistency-check:jar:3.3.3:compile
[INFO] | +- org.neo4j:neo4j-command-line:jar:3.3.3:compile
[INFO] | | \- org.apache.commons:commons-text:jar:1.1:compile
[INFO] | \- org.neo4j:neo4j-dbms:jar:3.3.3:compile
[INFO] | +- org.neo4j:neo4j-import-tool:jar:3.3.3:compile
[INFO] | \- org.apache.commons:commons-compress:jar:1.14:compile
[INFO] +- org.neo4j:neo4j-slf4j:jar:3.3.3:compile
[INFO] | \- org.neo4j:neo4j-logging:jar:3.3.3:compile
[INFO] +- org.neo4j:neo4j-cypher-compiler-3.3:jar:3.3.3:compile
[INFO] | +- org.scala-lang:scala-library:jar:2.11.7:compile
[INFO] | +- org.scala-lang:scala-reflect:jar:2.11.12:compile
[INFO] | +- org.neo4j:neo4j-cypher-ir-3.3:jar:3.3.3:compile
[INFO] | +- org.neo4j:neo4j-cypher-logical-plans-3.3:jar:3.3.3:compile
[INFO] | \- org.parboiled:parboiled-scala_2.11:jar:1.1.7:compile
[INFO] | \- org.parboiled:parboiled-core:jar:1.1.7:compile
[INFO] +- org.neo4j:neo4j-cypher-frontend-3.3:jar:3.3.3:compile
[INFO] +- com.google.guava:guava:jar:22.0:compile
[INFO] | +- com.google.errorprone:error_prone_annotations:jar:2.0.18:compile
[INFO] | +- com.google.j2objc:j2objc-annotations:jar:1.1:compile
[INFO] | \- org.codehaus.mojo:animal-sniffer-annotations:jar:1.14:compile
[INFO] +- junit:junit:jar:4.12:test
[INFO] | \- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] +- pl.pragmatists:JUnitParams:jar:1.0.3:test
[INFO] +- org.assertj:assertj-core:jar:3.6.1:test
[INFO] +- org.mockito:mockito-all:jar:1.10.19:test
[INFO] +- com.jayway.awaitility:awaitility:jar:1.7.0:test
[INFO] | +- org.hamcrest:hamcrest-library:jar:1.3:test
[INFO] | +- cglib:cglib-nodep:jar:3.1:test
[INFO] | \- org.objenesis:objenesis:jar:2.1:test
[INFO] \- org.springframework:spring-test:jar:4.3.7.RELEASE:test
[INFO] \- org.springframework:spring-core:jar:4.3.7.RELEASE:compile
[INFO] \- commons-logging:commons-logging:jar:1.2:compile

Errors occur when include many 3rd party jars to one simple spring boot project

Whether it's possible to use API from one JAR from myself, while not include its dependency?
I created one standalone maven project(A) which is an API module and it uses many 3rd party jars and should be used in several projects. But in one spring boot project(B), since A introduced its dependencies, the spring boot project cannot work well.
If A is excluded from pom, then spring boot works well. But I do need several APIs from it. How should I solve this problem?
At first, everything works well. It is a pure console application.
Pom is something like below.
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
<!--
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
-->
<!--
<dependency>
<groupId>InsuranceWrapper</groupId>
<artifactId>InsuranceWrapper</artifactId>
<version>1.0</version>
</dependency>
-->
</dependencies>
Then I add InsuranceWrapper to it, it will has one error.
java.lang.IllegalStateException: Could not evaluate condition on org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration$TransactionManagementConfiguration due to org/springframework/web/servlet/view/freemarker/FreeMarkerConfigurer not found. Make sure your own configuration does not rely on that class. This can also happen if you are #ComponentScanning a springframework package (e.g. if you put a #ComponentScan in the default package by mistake)
at org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:55) ~[spring-boot-autoconfigure-1.3.1.RELEASE.jar:1.3.1.RELEASE]
at
Caused by: java.lang.NoClassDefFoundError: org/springframework/web/servlet/view/freemarker/FreeMarkerConfigurer
at java.lang.Class.getDeclaredMethods0(Native Method) ~[na:1.8.0_45]
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) ~[na:1.8.0_45]
at java.lang.Class.getDeclaredMethods(Class.java:1975) ~[na:1.8.0_45]
at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:609) ~[spring-core-4.2.4.RELEASE.jar:4.2.4.RELEASE]
at
Caused by: java.lang.ClassNotFoundException: org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer
at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[na:1.8.0_45]
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_45]
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) ~[na:1.8.0_45]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_45]
... 38 common frames omitted
Then I thought spring boot may think I am a web project. So I add spring boot web. Now another error occurs.
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: javax.persistence.spi.PersistenceUnitInfo.getValidationMode()Ljavax/persistence/ValidationMode;
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1578) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE]
at
Caused by: java.lang.NoSuchMethodError: javax.persistence.spi.PersistenceUnitInfo.getValidationMode()Ljavax/persistence/ValidationMode;
at org.hibernate.jpa.boot.internal.PersistenceUnitInfoDescriptor.getValidationMode(PersistenceUnitInfoDescriptor.java:99) ~[hibernate-entitymanager-4.3.11.Final.jar:4.3.11.Final]
Searched these errors, no clues at all. My A project is a complex spring+hibernate project. That's why I ask this question and just want a clean environment for B while use several APIs from A.
UPDATE
add spring-boot-starter-freemarker to fix first error
UPDATE
Update mvn tree
[INFO] net.ebaolife:EBTasks:jar:0.0.1-SNAPSHOT
[INFO] +- org.springframework.boot:spring-boot-starter:jar:1.3.1.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot:jar:1.3.1.RELEASE:compile
[INFO] | | \- org.springframework:spring-context:jar:4.2.4.RELEASE:compile
[INFO] | | \- org.springframework:spring-expression:jar:4.2.4.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-autoconfigure:jar:1.3.1.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-logging:jar:1.3.1.RELEASE:compile
[INFO] | | +- ch.qos.logback:logback-classic:jar:1.1.2:compile
[INFO] | | | \- ch.qos.logback:logback-core:jar:1.1.2:compile
[INFO] | | +- org.slf4j:jcl-over-slf4j:jar:1.7.7:compile
[INFO] | | +- org.slf4j:jul-to-slf4j:jar:1.7.7:compile
[INFO] | | \- org.slf4j:log4j-over-slf4j:jar:1.7.7:compile
[INFO] | +- org.springframework:spring-core:jar:4.2.4.RELEASE:compile
[INFO] | \- org.yaml:snakeyaml:jar:1.16:runtime
[INFO] +- org.springframework.boot:spring-boot-starter-freemarker:jar:1.3.1.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-web:jar:1.3.1.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-tomcat:jar:1.3.1.RELEASE:compile
[INFO] | | | +- org.apache.tomcat.embed:tomcat-embed-core:jar:8.0.30:compile
[INFO] | | | +- org.apache.tomcat.embed:tomcat-embed-el:jar:8.0.30:compile
[INFO] | | | +- org.apache.tomcat.embed:tomcat-embed-logging-juli:jar:8.0.30:compile
[INFO] | | | \- org.apache.tomcat.embed:tomcat-embed-websocket:jar:8.0.30:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-validation:jar:1.3.1.RELEASE:compile
[INFO] | | +- com.fasterxml.jackson.core:jackson-databind:jar:2.6.4:compile
[INFO] | | | +- com.fasterxml.jackson.core:jackson-annotations:jar:2.6.4:compile
[INFO] | | | \- com.fasterxml.jackson.core:jackson-core:jar:2.6.4:compile
[INFO] | | +- org.springframework:spring-web:jar:4.2.4.RELEASE:compile
[INFO] | | \- org.springframework:spring-webmvc:jar:4.2.4.RELEASE:compile
[INFO] | +- org.freemarker:freemarker:jar:2.3.23:compile
[INFO] | \- org.springframework:spring-context-support:jar:4.2.4.RELEASE:compile
[INFO] | \- org.springframework:spring-beans:jar:4.2.4.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-jdbc:jar:1.3.1.RELEASE:compile
[INFO] | +- org.apache.tomcat:tomcat-jdbc:jar:8.0.30:compile
[INFO] | | \- org.apache.tomcat:tomcat-juli:jar:8.0.30:compile
[INFO] | \- org.springframework:spring-jdbc:jar:4.2.4.RELEASE:compile
[INFO] | \- org.springframework:spring-tx:jar:4.2.4.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-test:jar:1.3.1.RELEASE:test
[INFO] | +- junit:junit:jar:4.12:compile
[INFO] | +- org.mockito:mockito-core:jar:1.10.19:test
[INFO] | | \- org.objenesis:objenesis:jar:2.1:test
[INFO] | +- org.hamcrest:hamcrest-core:jar:1.3:compile
[INFO] | +- org.hamcrest:hamcrest-library:jar:1.3:test
[INFO] | \- org.springframework:spring-test:jar:4.2.4.RELEASE:test
[INFO] +- com.dangdang:elastic-job-core:jar:1.0.2:compile
[INFO] | +- org.projectlombok:lombok:jar:1.16.4:compile
[INFO] | +- com.google.guava:guava:jar:18.0:compile
[INFO] | +- commons-beanutils:commons-beanutils:jar:1.9.2:compile
[INFO] | | \- commons-collections:commons-collections:jar:3.2.2:compile
[INFO] | +- org.quartz-scheduler:quartz:jar:2.2.1:compile
[INFO] | | +- c3p0:c3p0:jar:0.9.1.1:compile
[INFO] | | \- org.slf4j:slf4j-api:jar:1.7.7:compile
[INFO] | +- org.apache.curator:curator-framework:jar:2.8.0:compile
[INFO] | | \- org.apache.zookeeper:zookeeper:jar:3.4.6:compile
[INFO] | | +- log4j:log4j:jar:1.2.17:compile
[INFO] | | +- jline:jline:jar:0.9.94:compile
[INFO] | | \- io.netty:netty:jar:3.7.0.Final:compile
[INFO] | +- org.apache.curator:curator-client:jar:2.8.0:compile
[INFO] | \- org.apache.curator:curator-recipes:jar:2.8.0:compile
[INFO] +- com.dangdang:elastic-job-spring:jar:1.0.2:compile
[INFO] +- org.mybatis:mybatis:jar:3.2.8:compile
[INFO] +- org.mybatis:mybatis-spring:jar:1.2.2:compile
[INFO] +- mysql:mysql-connector-java:jar:5.1.38:compile
[INFO] +- org.mongodb.morphia:morphia:jar:1.1.0:compile
[INFO] | +- org.mongodb:mongo-java-driver:jar:2.13.3:compile
[INFO] | +- com.thoughtworks.proxytoys:proxytoys:jar:1.0:compile
[INFO] | \- cglib:cglib-nodep:jar:2.2.2:compile
[INFO] +- eu.bitwalker:UserAgentUtils:jar:1.18:compile
[INFO] \- InsuranceWrapper:InsuranceWrapper:jar:1.0:compile
[INFO] +- ebcore:ebcore:jar:1.0:compile
[INFO] | +- com.google.code.gson:gson:jar:2.3.1:compile
[INFO] | +- org.apache.commons:commons-dbcp2:jar:2.1.1:compile
[INFO] | | \- org.apache.commons:commons-pool2:jar:2.4.2:compile
[INFO] | +- org.jdom:jdom:jar:1.1:compile
[INFO] | +- org.jdom:jdom2:jar:2.0.6:compile
[INFO] | +- commons-pool:commons-pool:jar:1.6:compile
[INFO] | +- aopalliance:aopalliance:jar:1.0:compile
[INFO] | +- org.springframework:spring-aop:jar:4.2.4.RELEASE:compile
[INFO] | +- org.springframework:spring-orm:jar:4.2.4.RELEASE:compile
[INFO] | +- org.acegisecurity:acegi-security:jar:1.0.7:compile
[INFO] | | +- org.springframework:spring-remoting:jar:1.2.9:compile
[INFO] | | +- org.springframework:spring-support:jar:1.2.9:runtime
[INFO] | | \- commons-lang:commons-lang:jar:2.1:compile
[INFO] | +- com.aliyun.openservices:aliyun-openservices:jar:1.2.2:compile
[INFO] | | \- com.google.protobuf:protobuf-java:jar:2.4.1:compile
[INFO] | +- antlr:antlr:jar:2.7.7:compile
[INFO] | +- org.apache.ant:ant:jar:1.9.4:compile
[INFO] | | \- org.apache.ant:ant-launcher:jar:1.9.4:compile
[INFO] | +- asm:asm-attrs:jar:1.5.3:compile
[INFO] | +- asm:asm:jar:3.1:compile
[INFO] | +- org.aspectj:aspectjrt:jar:1.8.7:compile
[INFO] | +- aspectj:aspectjweaver:jar:1.5.3:compile
[INFO] | +- org.glassfish.hk2.external:cglib:jar:2.1.3:compile
[INFO] | +- org.cometd.java:cometd-api:jar:1.0.beta8:compile
[INFO] | +- org.mortbay.jetty:cometd-server:jar:6.1.17:compile
[INFO] | | \- org.mortbay.jetty:jetty-util5:jar:6.1.17:compile
[INFO] | +- commons-discovery:commons-discovery:jar:0.2:compile
[INFO] | +- commons-fileupload:commons-fileupload:jar:1.3:compile
[INFO] | | \- commons-io:commons-io:jar:2.2:compile
[INFO] | +- com.hynnet:commons-lang3:jar:3.3.2:compile
[INFO] | +- commons-net:commons-net:jar:3.3:compile
[INFO] | +- org.xhtmlrenderer:core-renderer:jar:R8:compile
[INFO] | +- dom4j:dom4j:jar:1.6.1:compile
[INFO] | | \- xml-apis:xml-apis:jar:1.0.b2:compile
[INFO] | +- org.directwebremoting:dwr:jar:2.0.3:compile
[INFO] | +- net.sf.ehcache:ehcache:jar:2.10.1:compile
[INFO] | +- org.hibernate:ejb3-persistence:jar:1.0.2.GA:compile
[INFO] | +- net.sf.ezmorph:ezmorph:jar:1.0.6:compile
[INFO] | +- org.hibernate:hibernate-annotations:jar:3.4.0.GA:compile
[INFO] | | +- org.hibernate:hibernate-commons-annotations:jar:3.1.0.GA:compile
[INFO] | | \- org.hibernate:hibernate-core:jar:4.3.11.Final:compile
[INFO] | | \- org.jboss:jandex:jar:1.1.0.Final:compile
[INFO] | +- org.hibernate:hibernate-entitymanager:jar:4.3.11.Final:compile
[INFO] | | +- org.jboss.logging:jboss-logging:jar:3.3.0.Final:compile
[INFO] | | +- org.jboss.logging:jboss-logging-annotations:jar:1.2.0.Beta1:compile
[INFO] | | +- org.hibernate.common:hibernate-commons-annotations:jar:4.0.5.Final:compile
[INFO] | | +- org.hibernate.javax.persistence:hibernate-jpa-2.1-api:jar:1.0.0.Final:compile
[INFO] | | +- org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec:jar:1.0.0.Final:compile
[INFO] | | \- org.javassist:javassist:jar:3.18.1-GA:compile
[INFO] | +- org.hibernate:hibernate-search:jar:3.1.0.GA:compile
[INFO] | | \- org.apache.lucene:lucene-core:jar:2.4.0:compile
[INFO] | +- org.hibernate:hibernate-tools:jar:3.2.4.GA:compile
[INFO] | | +- org.beanshell:bsh:jar:2.0b4:compile
[INFO] | | \- org.hibernate:jtidy:jar:r8-20060801:compile
[INFO] | +- org.hibernate:hibernate-validator:jar:5.2.2.Final:compile
[INFO] | | +- javax.validation:validation-api:jar:1.1.0.Final:compile
[INFO] | | \- com.fasterxml:classmate:jar:1.1.0:compile
[INFO] | +- oro:oro:jar:2.0.8:compile
[INFO] | +- javassist:javassist:jar:3.11.0.GA:compile
[INFO] | +- jaxen:jaxen:jar:1.1.6:compile
[INFO] | +- axis:axis-jaxrpc:jar:1.3:compile
[INFO] | +- jboss:jboss-archive-browsing:jar:2.0.2.alpha:compile
[INFO] | +- com.jcraft:jsch:jar:0.1.51:compile
[INFO] | +- org.json:json:jar:20140107:compile
[INFO] | +- javax.servlet:jstl:jar:1.2:compile
[INFO] | +- javax.transaction:jta:jar:1.1:compile
[INFO] | +- net.sourceforge.jexcelapi:jxl:jar:2.6.10:compile
[INFO] | +- com.sun.mail:javax.mail:jar:1.5.4:compile
[INFO] | +- ognl:ognl:jar:3.0.6:compile
[INFO] | +- jsptags:pager-taglib:jar:2.0:compile
[INFO] | +- com.belerweb:pinyin4j:jar:2.5.0:compile
[INFO] | +- org.apache.poi:poi:jar:3.12:compile
[INFO] | +- org.apache.poi:poi-scratchpad:jar:3.12:compile
[INFO] | +- org.slf4j:slf4j-log4j12:jar:1.7.7:compile
[INFO] | +- com.google.code.simple-spring-memcached:spymemcached:jar:2.8.4:compile
[INFO] | +- taglibs:standard:jar:1.1.2:compile
[INFO] | +- org.apache.struts:struts2-core:jar:2.3.24.1:compile
[INFO] | | \- org.apache.struts.xwork:xwork-core:jar:2.3.24.1:compile
[INFO] | | \- asm:asm-commons:jar:3.3:compile
[INFO] | | \- asm:asm-tree:jar:3.3:compile
[INFO] | +- org.apache.struts:struts2-json-plugin:jar:2.3.24.1:compile
[INFO] | | \- org.apache.commons:commons-lang3:jar:3.2:compile
[INFO] | +- org.apache.struts:struts2-spring-plugin:jar:2.3.24.1:compile
[INFO] | +- redis.clients:jedis:jar:2.7.3:compile
[INFO] | +- org.apache.httpcomponents:httpclient:jar:4.5.1:compile
[INFO] | | \- org.apache.httpcomponents:httpcore:jar:4.4.4:compile
[INFO] | +- ebao:tk-filters:jar:1.0:compile
[INFO] | +- ebao:flexjson:jar:1.0:compile
[INFO] | +- ebao:QRCode:jar:1.0:compile
[INFO] | +- ebao:java_memcached:jar:release_2.6.6:compile
[INFO] | +- ebao:jbarcode:jar:0.2.8:compile
[INFO] | +- ebao:jdbc2.0:jar:stdext:compile
[INFO] | \- ebao:lylab:jar:1.0:compile
[INFO] +- javax.servlet:javax.servlet-api:jar:3.1.0:compile
[INFO] +- ebao:cxf:jar:2.3.3:compile
[INFO] +- com.google.code.findbugs:jsr305:jar:3.0.0:compile
[INFO] +- org.apache.ws.commons.schema:XmlSchema:jar:1.4.7:compile
[INFO] +- org.apache.axis:axis:jar:1.4:compile
[INFO] +- org.codehaus.xfire:xfire-core:jar:1.2.6:compile
[INFO] | +- javax.activation:activation:jar:1.1:compile
[INFO] | +- wsdl4j:wsdl4j:jar:1.6.3:compile
[INFO] | +- stax:stax-api:jar:1.0.1:compile
[INFO] | +- commons-codec:commons-codec:jar:1.3:compile
[INFO] | +- org.codehaus.woodstox:wstx-asl:jar:3.2.0:compile
[INFO] | +- commons-logging:commons-logging:jar:1.0.4:compile
[INFO] | \- commons-httpclient:commons-httpclient:jar:3.0:compile
[INFO] +- org.codehaus.xfire:xfire-aegis:jar:1.2.6:compile
[INFO] | \- net.java.dev.stax-utils:stax-utils:jar:20040917:compile
[INFO] +- org.codehaus.xfire:xfire-java5:jar:1.2.6:compile
[INFO] | +- org.codehaus.xfire:xfire-annotations:jar:1.2.6:compile
[INFO] | | \- commons-attributes:commons-attributes-api:jar:2.1:compile
[INFO] | | \- qdox:qdox:jar:1.5:compile
[INFO] | \- xfire:xfire-jsr181-api:jar:1.0-M1:compile
[INFO] \- org.codehaus.xfire:xfire-xmlbeans:jar:1.2.6:compile
[INFO] \- xmlbeans:xbean:jar:2.2.0:compile
UPDATE
ADD below two exclusions, there are no errors now.
<exclusions>
<exclusion>
<artifactId>*</artifactId>
<groupId>org.hibernate</groupId>
</exclusion>
<exclusion>
<artifactId>*</artifactId>
<groupId>org.slf4j</groupId>
</exclusion>
</exclusions>
But since spring web is included.. It will start one tomcat from behind, which is very annoying..
UPDATE
Since any spring-web will make spring boot think now it is a web project, at last all spring web is removed. And also spring-boot-starter-freemarker is removed either, since it is not used actually.
<exclusions>
<exclusion>
<artifactId>*</artifactId>
<groupId>org.hibernate</groupId>
</exclusion>
<exclusion>
<artifactId>*</artifactId>
<groupId>org.slf4j</groupId>
</exclusion>
<exclusion>
<artifactId>freemarker</artifactId>
<groupId>org.freemarker</groupId>
</exclusion>
<exclusion>
<artifactId>spring-web</artifactId>
<groupId>org.springframework</groupId>
</exclusion>
<exclusion>
<artifactId>struts2-spring-plugin</artifactId>
<groupId>org.apache.struts</groupId>
</exclusion>
</exclusions>
All works now..
To exclude any file from a jar / target directory you can use the <excludes> tag in your pom.xml file.
In the next example, all files with .properties extension will not be included:
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<excludes>
<exclude>*.properties</exclude>
</excludes>
<filtering>false</filtering>
</resource>
</resources>
</build>
Also check out this
<dependencies>
<dependency>
<groupId>sample.ProjectB</groupId>
<artifactId>Project-B</artifactId>
<version>1.0-SNAPSHOT</version>
<exclusions>
<exclusion>
<groupId>sample.ProjectE</groupId> <!-- Exclude Project-E from Project-B -->
<artifactId>Project-E</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
https://maven.apache.org/guides/introduction/introduction-to-optional-and-excludes-dependencies.html

embedded neo4j webadmin not working

I'm having some problems with running neo4j (in embedded mode) with WebAdmin - version 1.6.
I initialize the DB and webadmin as follows:
graphDb = new EmbeddedGraphDatabase( DB_PATH);
srv = new WrappingNeoServerBootstrapper( graphDb);
srv.start();
registerShutdownHook( graphDb, srv );
which is just usual way described in Neo4j documentation.
And my Maven dependencies are:
<dependencies>
<dependency>
<groupId>commons-configuration</groupId>
<artifactId>commons-configuration</artifactId>
<version>1.4</version>
</dependency>
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j</artifactId>
<version>${neo4j-version}</version>
</dependency>
<dependency>
<groupId>org.neo4j.app</groupId>
<artifactId>neo4j-server</artifactId>
<version>${neo4j-version}</version>
</dependency>
<dependency>
<groupId>org.neo4j.app</groupId>
<artifactId>neo4j-server</artifactId>
<classifier>static-web</classifier>
<version>${neo4j-version}</version>
</dependency>
</dependencies>
The error I get when trying to access http://localhost:7474 is:
Problem accessing /. Reason:
javax.servlet.http.HttpServletRequest.getRequestURL()Ljava/lang/StringBuffer;
Caused by:
java.lang.NoSuchMethodError: javax.servlet.http.HttpServletRequest.getRequestURL()Ljava/lang/StringBuffer;
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:638)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
Despite my dependencies and my dependency:tree output looking like this:
[INFO] neo4j-starter:neo4j-starter:jar:0.0.1-SNAPSHOT
[INFO] +- commons-configuration:commons-configuration:jar:1.4:compile
[INFO] | +- commons-collections:commons-collections:jar:3.2:compile
[INFO] | +- commons-lang:commons-lang:jar:2.3:compile
[INFO] | +- commons-logging:commons-logging-api:jar:1.0.4:compile
[INFO] | +- commons-digester:commons-digester:jar:1.8:compile
[INFO] | | +- commons-beanutils:commons-beanutils:jar:1.7.0:compile
[INFO] | | \- commons-logging:commons-logging:jar:1.1:compile
[INFO] | | +- logkit:logkit:jar:1.0.1:compile
[INFO] | | \- avalon-framework:avalon-framework:jar:4.1.3:compile
[INFO] | +- commons-beanutils:commons-beanutils-core:jar:1.7.0:compile
[INFO] | +- commons-codec:commons-codec:jar:1.3:compile
[INFO] | \- commons-jxpath:commons-jxpath:jar:1.2:compile
[INFO] | +- xerces:xerces:jar:1.2.3:compile
[INFO] | +- javax.servlet:servlet-api:jar:2.2:compile
[INFO] | +- ant:ant-optional:jar:1.5.1:compile
[INFO] | +- xml-apis:xml-apis:jar:1.0.b2:compile
[INFO] | \- jdom:jdom:jar:b9:compile
[INFO] +- org.neo4j:neo4j:jar:1.6.M03:compile
[INFO] | +- org.neo4j:neo4j-kernel:jar:1.6.M03:compile
[INFO] | | \- org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar:1.1.1:compile
[INFO] | +- org.neo4j:neo4j-lucene-index:jar:1.6.M03:compile
[INFO] | | \- org.apache.lucene:lucene-core:jar:3.5.0:compile
[INFO] | +- org.neo4j:neo4j-graph-algo:jar:1.6.M03:compile
[INFO] | +- org.neo4j:neo4j-udc:jar:1.6.M03:compile
[INFO] | +- org.neo4j:neo4j-graph-matching:jar:1.6.M03:compile
[INFO] | +- org.neo4j:neo4j-cypher:jar:1.6.M03:compile
[INFO] | | \- org.scala-lang:scala-library:jar:2.9.0-1:compile
[INFO] | \- org.neo4j:neo4j-jmx:jar:1.6.M03:compile
[INFO] +- org.neo4j.app:neo4j-server:jar:1.6.M03:compile
[ INFO] | +- org.neo4j:neo4j:pom:1.6.M03:compile
[INFO] | +- org.neo4j:server-api:jar:1.6.M03:compile
[INFO] | | \- javax.ws.rs:jsr311-api:jar:1.1.1:compile
[INFO] | +- org.slf4j:slf4j-api:jar:1.6.1:compile
[INFO] | +- org.slf4j:log4j-over-slf4j:jar:1.6.1:compile
[INFO] | +- org.slf4j:jcl-over-slf4j:jar:1.6.1:compile
[INFO] | +- org.mortbay.jetty:jetty:jar:6.1.25:compile
[INFO] | | +- org.mortbay.jetty:jetty-util:jar:6.1.25:compile
[INFO] | | \- org.mortbay.jetty:servlet-api:jar:2.5-20081211:compile
[INFO] | +- com.sun.jersey:jersey-server:jar:1.9:compile
[INFO] | | +- asm:asm:jar:3.1:compile
[INFO] | | \- com.sun.jersey:jersey-core:jar:1.9:compile
[INFO] | +- commons-io:commons-io:jar:1.4:compile
[INFO] | +- org.codehaus.jackson:jackson-jaxrs:jar:1.8.3:compile
[INFO] | | +- org.codehaus.jackson:jackson-core-asl:jar:1.8.3:compile
[INFO] | | \- org.codehaus.jackson:jackson-mapper-asl:jar:1.8.3:compile
[INFO] | +- com.tinkerpop.gremlin:gremlin-groovy:jar:1.4:compile
[INFO] | | +- com.tinkerpop.gremlin:gremlin-java:jar:1.4:compile
[INFO] | | +- com.tinkerpop:pipes:jar:0.9:compile
[INFO] | | +- org.codehaus.groovy:groovy:jar:1.8.4:compile
[INFO] | | | +- antlr:antlr:jar:2.7.7:compile
[INFO] | | | +- asm:asm-commons:jar:3.2:compile
[INFO] | | | +- asm:asm-util:jar:3.2:compile
[INFO] | | | +- asm:asm-analysis:jar:3.2:compile
[INFO] | | | \- asm:asm-tree:jar:3.2:compile
[INFO] | | \- org.fusesource.jansi:jansi:jar:1.5:compile
[INFO] | +- com.tinkerpop.blueprints:blueprints-neo4j-graph:jar:1.1:compile
[INFO] | | \- com.tinkerpop.blueprints:blueprints-core:jar:1.1:compile
[INFO] | | \- org.codehaus.jettison:jettison:jar:1.3:compile
[INFO] | | \- stax:stax-api:jar:1.0.1:compile
[INFO] | +- org.rrd4j:rrd4j:jar:2.0.7:compile
[INFO] | +- com.sun.jersey.contribs:jersey-multipart:jar:1.9:compile
[INFO] | | \- org.jvnet:mimepull:jar:1.6:compile
[INFO] | \- org.neo4j:neo4j-shell:jar:1.6.M03:compile
[INFO] | \- org.apache.servicemix.bundles:org.apache.servicemix.bundles.jline:jar:0.9.94_1:compile
[INFO] +- org.neo4j.app:neo4j-server:jar:static-web:1.6.M03:compile
[INFO] +- org.slf4j:slf4j-log4j12:jar:1.6.4:compile
[INFO] | \- log4j:log4j:jar:1.2.16:compile
[INFO] \- junit:junit:jar:4.8:compile
I needed to include newer version of servlet-api
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.3</version>
</dependency>

Categories

Resources