When including a not-so-recent version of Guava (20.0) in my Quarkus (0.19.1) application via a third-party lib, at runtime (mvn compile quarkus:dev), I get the following exception:
java.lang.NoSuchMethodError: com.google.common.net.HostAndPort.getHostText()Ljava/lang/String;
Upgrading to the latest snapshot of the lib solves the problem because the version of Guava has been upgraded as well. But this is not an ideal solution as the lib has not yet released in this version. Furthermore, there are libraries out there relying on Guava (on another lib used by Quarkus internals) that might never get updated.
Is there a way to isolate the Guava lib (or any other lib) used by Quarkus from the one used by applications?
Edit
Some more details. The issue occurs with the org.littleshoot:littleproxy 1.1.2 (https://github.com/adamfisk/LittleProxy/blob/littleproxy-1.1.2/pom.xml) which has a dependency to com.google.guava:guava 20.0
A dependency tree check shows that com.google.guava:guava 27.0.1-jre is used instead of the 20.0 version.
[INFO] +- io.quarkus:quarkus-resteasy:jar:0.19.1:compile
[INFO] | +- io.quarkus:quarkus-undertow:jar:0.19.1:compile
[INFO] | | +- io.quarkus:quarkus-arc:jar:0.19.1:compile
[INFO] | | | \- io.quarkus.arc:arc:jar:0.19.1:compile
[INFO] | | +- io.undertow:undertow-servlet:jar:2.0.21.Final:compile
[INFO] | | | +- io.undertow:undertow-core:jar:2.0.21.Final:compile
[INFO] | | | \- org.jboss.spec.javax.servlet:jboss-servlet-api_4.0_spec:jar:1.0.0.Final:compile
[INFO] | | +- org.jboss.xnio:xnio-nio:jar:3.7.2.Final:compile
[INFO] | | +- org.jboss.xnio:xnio-api:jar:3.7.2.Final:compile
[INFO] | | \- org.eclipse.microprofile.context-propagation:microprofile-context-propagation-api:jar:1.0-RC1:compile
[INFO] | | \- javax.enterprise:cdi-api:jar:2.0.SP1:compile
[INFO] | | +- javax.el:javax.el-api:jar:3.0.0:compile
[INFO] | | \- javax.interceptor:javax.interceptor-api:jar:1.2:compile
[INFO] | \- io.quarkus:quarkus-resteasy-server-common:jar:0.19.1:compile
[INFO] | +- io.quarkus:quarkus-resteasy-common:jar:0.19.1:compile
[INFO] | | +- org.jboss.resteasy:resteasy-core:jar:4.1.0.Final:compile
[INFO] | | | +- org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_2.1_spec:jar:1.0.2.Final:compile
[INFO] | | | +- org.jboss.spec.javax.xml.bind:jboss-jaxb-api_2.3_spec:jar:1.0.1.Final:compile
[INFO] | | | +- org.jboss.resteasy:resteasy-core-spi:jar:4.1.0.Final:compile
[INFO] | | | \- org.reactivestreams:reactive-streams:jar:1.0.2:compile
[INFO] | | +- org.jboss.resteasy:resteasy-context-propagation:jar:4.1.0.Final:compile
[INFO] | | | \- io.smallrye:smallrye-context-propagation:jar:1.0.7:compile
[INFO] | | | \- io.smallrye:smallrye-context-propagation-api:jar:1.0.7:compile
[INFO] | | \- com.sun.activation:jakarta.activation:jar:1.2.1:compile
[INFO] | +- javax.validation:validation-api:jar:2.0.1.Final:compile
[INFO] | \- io.quarkus:quarkus-jaxb:jar:0.19.1:compile
[INFO] +- io.quarkus:quarkus-resteasy-jsonb:jar:0.19.1:compile
[INFO] | +- io.quarkus:quarkus-jsonb:jar:0.19.1:compile
[INFO] | | +- org.eclipse:yasson:jar:1.0.4:compile
[INFO] | | +- javax.json.bind:javax.json.bind-api:jar:1.0:compile
[INFO] | | \- io.quarkus:quarkus-jsonp:jar:0.19.1:compile
[INFO] | +- org.jboss.resteasy:resteasy-json-binding-provider:jar:4.1.0.Final:compile
[INFO] | | +- org.glassfish:javax.json:jar:1.1.4:compile
[INFO] | | \- org.jboss.logging:jboss-logging:jar:3.3.2.Final:compile
[INFO] | +- org.jboss.resteasy:resteasy-json-p-provider:jar:4.1.0.Final:compile
[INFO] | \- commons-io:commons-io:jar:2.5:compile
[INFO] +- org.littleshoot:littleproxy:jar:1.1.2:compile
[INFO] | +- com.google.guava:guava:jar:27.0.1-jre: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] | | +- com.google.code.findbugs:jsr305:jar:3.0.2:compile
[INFO] | | +- org.checkerframework:checker-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] | +- org.apache.commons:commons-lang3:jar:3.8.1:compile
[INFO] | +- io.netty:netty-all:jar:4.1.34.Final:compile
[INFO] | +- com.barchart.udt:barchart-udt-bundle:jar:2.3.0:compile
[INFO] | \- org.slf4j:slf4j-api:jar:1.7.25:compile
[INFO] +- io.quarkus:quarkus-junit5:jar:0.19.1:test
[INFO] | +- io.quarkus:quarkus-bootstrap-core:jar:0.19.1:test
[INFO] | | +- org.apache.maven:maven-embedder:jar:3.5.4:test
[INFO] | | | +- org.apache.maven:maven-settings:jar:3.5.4:test
[INFO] | | | +- org.apache.maven:maven-core:jar:3.5.4:test
[INFO] | | | | \- org.apache.maven:maven-artifact:jar:3.5.4:test
[INFO] | | | +- org.apache.maven:maven-plugin-api:jar:3.5.4:test
[INFO] | | | +- org.apache.maven:maven-model:jar:3.5.4:test
[INFO] | | | +- org.apache.maven:maven-model-builder:jar:3.5.4:test
[INFO] | | | +- org.apache.maven:maven-builder-support:jar:3.5.4:test
[INFO] | | | +- org.apache.maven.resolver:maven-resolver-api:jar:1.1.1:test
[INFO] | | | +- org.apache.maven.resolver:maven-resolver-util:jar:1.1.1:test
[INFO] | | | +- org.apache.maven.shared:maven-shared-utils:jar:3.2.1:test
[INFO] | | | +- com.google.inject:guice:jar:no_aop:4.2.0:test
[INFO] | | | | \- aopalliance:aopalliance:jar:1.0:test
[INFO] | | | +- javax.annotation:jsr250-api:jar:1.0:test
[INFO] | | | +- org.codehaus.plexus:plexus-utils:jar:3.0.24:test
[INFO] | | | +- org.codehaus.plexus:plexus-classworlds:jar:2.5.2:test
[INFO] | | | +- org.eclipse.sisu:org.eclipse.sisu.plexus:jar:0.3.3:test
[INFO] | | | +- org.codehaus.plexus:plexus-component-annotations:jar:1.7.1:test
[INFO] | | | \- commons-cli:commons-cli:jar:1.4:test
[INFO] | | +- org.apache.maven:maven-settings-builder:jar:3.5.4:test
[INFO] | | | +- org.codehaus.plexus:plexus-interpolation:jar:1.24:test
[INFO] | | | \- org.sonatype.plexus:plexus-sec-dispatcher:jar:1.4:test
[INFO] | | | \- org.sonatype.plexus:plexus-cipher:jar:1.4:test
[INFO] | | +- org.apache.maven:maven-resolver-provider:jar:3.5.4:test
[INFO] | | | +- org.apache.maven:maven-repository-metadata:jar:3.5.4:test
[INFO] | | | +- org.apache.maven.resolver:maven-resolver-spi:jar:1.1.1:test
[INFO] | | | \- org.apache.maven.resolver:maven-resolver-impl:jar:1.1.1:test
[INFO] | | +- org.apache.maven.resolver:maven-resolver-connector-basic:jar:1.1.1:test
[INFO] | | +- org.apache.maven.resolver:maven-resolver-transport-file:jar:1.1.1:test
[INFO] | | \- org.apache.maven.resolver:maven-resolver-transport-http:jar:1.1.1:test
[INFO] | | \- org.slf4j:jcl-over-slf4j:jar:1.7.25:test
[INFO] | +- io.quarkus:quarkus-test-common:jar:0.19.1:test
[INFO] | | +- io.quarkus:quarkus-core-deployment:jar:0.19.1:test
[INFO] | | | +- commons-beanutils:commons-beanutils:jar:1.9.3:test
[INFO] | | | | \- commons-collections:commons-collections:jar:3.2.2:test
[INFO] | | | +- org.jboss.invocation:jboss-invocation:jar:1.5.2.Final:test
[INFO] | | | +- org.jboss.classfilewriter:jboss-classfilewriter:jar:1.2.4.Final:test
[INFO] | | | +- io.quarkus.gizmo:gizmo:jar:1.0.0.Alpha5:test
[INFO] | | | | \- org.ow2.asm:asm-util:jar:7.1:test
[INFO] | | | | +- org.ow2.asm:asm-tree:jar:7.1:test
[INFO] | | | | \- org.ow2.asm:asm-analysis:jar:7.1:test
[INFO] | | | +- org.ow2.asm:asm:jar:7.1:test
[INFO] | | | \- io.quarkus:quarkus-builder:jar:0.19.1:test
[INFO] | | +- io.quarkus:quarkus-jsonp-deployment:jar:0.19.1:test
[INFO] | | \- org.jboss:jandex:jar:2.1.1.Final:test
[INFO] | +- org.junit.jupiter:junit-jupiter-api:jar:5.5.0: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.0:test
[INFO] | +- org.junit.jupiter:junit-jupiter-params:jar:5.5.0:test
[INFO] | +- org.junit.jupiter:junit-jupiter-engine:jar:5.5.0:test
[INFO] | | \- org.junit.platform:junit-platform-engine:jar:1.5.0:test
[INFO] | \- io.quarkus:quarkus-core:jar:0.19.1:compile
[INFO] | +- javax.inject:javax.inject:jar:1:compile
[INFO] | +- javax.annotation:javax.annotation-api:jar:1.3.2:compile
[INFO] | +- io.smallrye:smallrye-config:jar:1.3.5:compile
[INFO] | | \- org.eclipse.microprofile.config:microprofile-config-api:jar:1.3:compile
[INFO] | | \- org.osgi:org.osgi.annotation.versioning:jar:1.0.0:compile
[INFO] | +- org.jboss.logmanager:jboss-logmanager-embedded:jar:1.0.3:compile
[INFO] | +- org.jboss.logging:jboss-logging-annotations:jar:2.1.0.Final:compile
[INFO] | +- org.jboss.threads:jboss-threads:jar:3.0.0.Beta4:compile
[INFO] | +- org.jboss.slf4j:slf4j-jboss-logging:jar:1.2.0.Final:compile
[INFO] | +- org.graalvm.sdk:graal-sdk:jar:19.0.2:compile
[INFO] | +- org.wildfly.common:wildfly-common:jar:1.5.0.Final-format-001:compile
[INFO] | +- org.wildfly.security:wildfly-elytron-ssl:jar:2.0.0.Alpha4:compile
[INFO] | | +- org.wildfly.security:wildfly-elytron-auth-server:jar:2.0.0.Alpha4:compile
[INFO] | | | \- org.wildfly.security:wildfly-elytron-permission:jar:2.0.0.Alpha4:compile
[INFO] | | +- org.wildfly.security:wildfly-elytron-base:jar:2.0.0.Alpha4:compile
[INFO] | | +- org.wildfly.security:wildfly-elytron-credential:jar:2.0.0.Alpha4:compile
[INFO] | | | +- org.wildfly.security:wildfly-elytron-keystore:jar:2.0.0.Alpha4:compile
[INFO] | | | \- org.wildfly.security:wildfly-elytron-provider-util:jar:2.0.0.Alpha4:compile
[INFO] | | +- org.wildfly.security:wildfly-elytron-auth:jar:2.0.0.Alpha4:compile
[INFO] | | +- org.wildfly.security:wildfly-elytron-util:jar:2.0.0.Alpha4:compile
[INFO] | | \- org.wildfly.security:wildfly-elytron-x500:jar:2.0.0.Alpha4:compile
[INFO] | \- org.wildfly.security:wildfly-elytron-x500-cert:jar:2.0.0.Alpha4:compile
[INFO] | +- org.wildfly.security:wildfly-elytron-asn1:jar:2.0.0.Alpha4:compile
[INFO] | \- org.wildfly.security:wildfly-elytron-x500-cert-util:jar:2.0.0.Alpha4:compile
[INFO] \- io.rest-assured:rest-assured:jar:3.3.0:test
[INFO] +- org.codehaus.groovy:groovy:jar:2.4.15:test
[INFO] +- org.codehaus.groovy:groovy-xml:jar:2.4.15:test
[INFO] +- org.apache.httpcomponents:httpclient:jar:4.5.9:test
[INFO] | +- org.apache.httpcomponents:httpcore:jar:4.4.11:test
[INFO] | +- commons-logging:commons-logging:jar:1.2:test
[INFO] | \- commons-codec:commons-codec:jar:1.11:test
[INFO] +- org.apache.httpcomponents:httpmime:jar:4.5.3:test
[INFO] +- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] +- org.hamcrest:hamcrest-library:jar:1.3:test
[INFO] +- org.ccil.cowan.tagsoup:tagsoup:jar:1.2.1:test
[INFO] +- io.rest-assured:json-path:jar:3.3.0:test
[INFO] | +- org.codehaus.groovy:groovy-json:jar:2.4.15:test
[INFO] | \- io.rest-assured:rest-assured-common:jar:3.3.0:test
[INFO] \- io.rest-assured:xml-path:jar:3.3.0:test
[INFO] +- javax.xml.bind:jaxb-api:jar:2.3.1:compile
[INFO] \- org.apache.sling:org.apache.sling.javax.activation:jar:0.1.0:test
Edit 2: adding the full stacktrance
2019-08-06 14:44:07,908 INFO [io.qua.dep.QuarkusAugmentor] (main) Beginning quarkus augmentation
2019-08-06 14:44:09,055 INFO [io.qua.dep.QuarkusAugmentor] (main) Quarkus augmentation completed in 1147ms
2019-08-06 14:44:10,208 INFO [com.agf.orb.orm.LifecycleManager] (main) Bootstrap proxy on /127.0.0.1:8888
2019-08-06 14:44:10,346 INFO [com.agf.orb.orm.LifecycleManager] (main) Loaded config file from D:/dev/tmp/chaos.conf
2019-08-06 14:44:10,346 INFO [com.agf.orb.orm.LifecycleManager] (main) Chaos Proxy started. Read/Write/Delete configuration via GET|PUT|DELETE /resources/chaos/conf.
2019-08-06 14:44:10,348 INFO [io.quarkus] (main) Quarkus 0.19.1 started in 2.657s. Listening on: http://[::]:18080
2019-08-06 14:44:10,349 INFO [io.quarkus] (main) Installed features: [cdi, resteasy, resteasy-jsonb]
2019-08-06 14:44:18,744 ERROR [org.lit.pro.imp.ClientToProxyConnection] (LittleProxy-0-ClientToProxyWorker-0) (AWAITING_INITIAL) [id: 0x95348e38, L:/127.0.0.1:8888 - R:/127.0.0.1:63611]: Caught an exception on ClientToProxyConnection: java.lang.NoSuchMethodError: com.google.common.net.HostAndPort.getHostText()Ljava/lang/String;
at org.littleshoot.proxy.impl.ProxyToServerConnection.addressFor(ProxyToServerConnection.java:961)
at org.littleshoot.proxy.impl.ProxyToServerConnection.setupConnectionParameters(ProxyToServerConnection.java:832)
at org.littleshoot.proxy.impl.ProxyToServerConnection.<init>(ProxyToServerConnection.java:199)
at org.littleshoot.proxy.impl.ProxyToServerConnection.create(ProxyToServerConnection.java:173)
at org.littleshoot.proxy.impl.ClientToProxyConnection.doReadHTTPInitial(ClientToProxyConnection.java:300)
at org.littleshoot.proxy.impl.ClientToProxyConnection.readHTTPInitial(ClientToProxyConnection.java:206)
at org.littleshoot.proxy.impl.ClientToProxyConnection.readHTTPInitial(ClientToProxyConnection.java:80)
at org.littleshoot.proxy.impl.ProxyConnection.readHTTP(ProxyConnection.java:135)
at org.littleshoot.proxy.impl.ProxyConnection.read(ProxyConnection.java:120)
at org.littleshoot.proxy.impl.ProxyConnection.channelRead0(ProxyConnection.java:587)
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:359)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:345)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:337)
at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:359)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:345)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:337)
at io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86)
at org.littleshoot.proxy.impl.ProxyConnection$RequestReadMonitor.channelRead(ProxyConnection.java:715)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:359)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:345)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:337)
at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:323)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:297)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:359)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:345)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:337)
at io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86)
at org.littleshoot.proxy.impl.ProxyConnection$BytesReadMonitor.channelRead(ProxyConnection.java:692)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:359)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:345)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:337)
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1408)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:359)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:345)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:930)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:677)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:612)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:529)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:491)
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:905)
at java.lang.Thread.run(Thread.java:748)
I was able to get past the problem you describe by adding:
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>20.0</version>
</dependency>
in Maven's dependencyManagement section (after littleproxy).
Note that this will likely change in the future since guava is a transient dependency of maven-embedder, but the codebase of that dependency has since been updated to remove guava so Quarkus needs to pick up the new version
Related
I'm trying to use spring boot keycloak client and admin into microservice contains spring cloud,
I get this error when I want to create a user from keycloak admin api
Thanks for you support
error :
org.springframework.web.util.NestedServletException: Handler dispatch failed; nested exception is java.lang.NoSuchMethodError: javax.ws.rs.core.UriBuilder.resolveTemplates(Ljava/util/Map;)Ljavax/ws/rs/core/UriBuilder;
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1055)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:503)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:590)
at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:113)
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
at org.keycloak.adapters.springsecurity.filter.KeycloakAuthenticatedActionsFilter.doFilter(KeycloakAuthenticatedActionsFilter.java:57)
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
at org.keycloak.adapters.springsecurity.filter.KeycloakSecurityContextRequestFilter.doFilter(KeycloakSecurityContextRequestFilter.java:61)
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
at org.keycloak.adapters.springsecurity.filter.KeycloakPreAuthActionsFilter.doFilter(KeycloakPreAuthActionsFilter.java:96)
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:320)
at org.keycloak.adapters.undertow.ServletPreAuthActionsHandler.handleRequest(ServletPreAuthActionsHandler.java:69)
at org.keycloak.adapters.undertow.ServletPreAuthActionsHandler.handleRequest(ServletPreAuthActionsHandler.java:69)
/* source */
private RealmResource getRealmResource() {
this.keycloak = Keycloak.getInstance(
serverURL,
realmkeycloak,
usernamekeycloak,
passwordKeycloak,
clientIdkeycloak);
return keycloak.realm(globalRealm);
}
Maven Tree:
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) # onboardingms ---
[INFO] com.xxxxxx:onboardingms:jar:0.0.1-SNAPSHOT
[INFO] +- com.xxxxxx:commons:jar:0.0.1-SNAPSHOT:compile
[INFO] | +- io.github.jhipster:jhipster-framework:jar:3.4.0:compile
[INFO] | | \- org.springframework:spring-context-support:jar:5.2.3.RELEASE:compile
[INFO] | | \- org.springframework:spring-beans:jar:5.2.3.RELEASE:compile
[INFO] | +- javax.annotation:javax.annotation-api:jar:1.3.2:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-cache:jar:2.2.4.RELEASE:compile
[INFO] | +- com.fasterxml.jackson.datatype:jackson-datatype-hibernate5:jar:2.10.2:compile
[INFO] | | \- javax.transaction:javax.transaction-api:jar:1.3:compile
[INFO] | +- com.fasterxml.jackson.datatype:jackson-datatype-hppc:jar:2.10.2:compile
[INFO] | | \- com.carrotsearch:hppc:jar:0.8.1:compile
[INFO] | +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.10.2:compile
[INFO] | +- com.fasterxml.jackson.module:jackson-module-afterburner:jar:2.10.2: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:28.2-jre: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-qual:jar:2.10.0:compile
[INFO] | | | +- com.google.errorprone:error_prone_annotations:jar:2.3.4:compile
[INFO] | | | \- com.google.j2objc:j2objc-annotations:jar:1.3:compile
[INFO] | | +- com.fasterxml:classmate:jar:1.5.1:compile
[INFO] | | +- org.slf4j:slf4j-api:jar:1.7.30: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-bean-validators:jar:2.9.2:compile
[INFO] | +- com.zaxxer:HikariCP:jar:3.4.2:compile
[INFO] | +- commons-io:commons-io:jar:2.6:compile
[INFO] | +- org.apache.commons:commons-lang3:jar:3.9:compile
[INFO] | +- javax.cache:cache-api:jar:1.1.1:compile
[INFO] | +- mysql:mysql-connector-java:jar:8.0.19:compile
[INFO] | | \- com.google.protobuf:protobuf-java:jar:3.6.1:compile
[INFO] | +- org.ehcache:ehcache:jar:3.8.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:hibernate-jcache:jar:5.4.10.Final:compile
[INFO] | | \- org.jboss.logging:jboss-logging:jar:3.4.1.Final:compile
[INFO] | +- org.hibernate:hibernate-core:jar:5.4.10.Final:compile
[INFO] | | +- javax.persistence:javax.persistence-api:jar:2.2:compile
[INFO] | | +- org.javassist:javassist:jar:3.24.0-GA:compile
[INFO] | | +- net.bytebuddy:byte-buddy:jar:1.10.6:compile
[INFO] | | +- antlr:antlr:jar:2.7.7:compile
[INFO] | | +- org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec:jar:1.1.1.Final:compile
[INFO] | | +- org.jboss:jandex:jar:2.1.1.Final:compile
[INFO] | | +- javax.activation:javax.activation-api:jar:1.2.0:compile
[INFO] | | +- org.dom4j:dom4j:jar:2.1.1:compile
[INFO] | | +- org.hibernate.common:hibernate-commons-annotations:jar:5.1.0.Final:compile
[INFO] | | \- javax.xml.bind:jaxb-api:jar:2.3.1:compile
[INFO] | +- org.hibernate.validator:hibernate-validator:jar:6.0.18.Final:compile
[INFO] | | \- javax.validation:validation-api:jar:2.0.1.Final:compile
[INFO] | +- org.liquibase:liquibase-core:jar:3.8.5:compile
[INFO] | +- net.logstash.logback:logstash-logback-encoder:jar:6.3:compile
[INFO] | +- org.mapstruct:mapstruct:jar:1.3.1.Final:compile
[INFO] | +- org.springframework.boot:spring-boot-loader-tools:jar:2.2.4.RELEASE:compile
[INFO] | | \- org.apache.commons:commons-compress:jar:1.19:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-actuator:jar:2.2.4.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-actuator-autoconfigure:jar:2.2.4.RELEASE:compile
[INFO] | | | \- org.springframework.boot:spring-boot-actuator:jar:2.2.4.RELEASE:compile
[INFO] | | \- io.micrometer:micrometer-core:jar:1.3.3:compile
[INFO] | | +- org.hdrhistogram:HdrHistogram:jar:2.1.11:compile
[INFO] | | \- org.latencyutils:LatencyUtils:jar:2.0.3:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-aop:jar:2.2.4.RELEASE:compile
[INFO] | | +- org.springframework:spring-aop:jar:5.2.3.RELEASE:compile
[INFO] | | \- org.aspectj:aspectjweaver:jar:1.9.5:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-data-jpa:jar:2.2.4.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-jdbc:jar:2.2.4.RELEASE:compile
[INFO] | | | \- org.springframework:spring-jdbc:jar:5.2.3.RELEASE:compile
[INFO] | | +- jakarta.persistence:jakarta.persistence-api:jar:2.2.3:compile
[INFO] | | +- jakarta.transaction:jakarta.transaction-api:jar:1.3.3:compile
[INFO] | | +- org.springframework.data:spring-data-jpa:jar:2.2.4.RELEASE:compile
[INFO] | | | +- org.springframework:spring-orm:jar:5.2.3.RELEASE:compile
[INFO] | | | \- org.springframework:spring-tx:jar:5.2.3.RELEASE:compile
[INFO] | | \- org.springframework:spring-aspects:jar:5.2.3.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-logging:jar:2.2.4.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.30:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-mail:jar:2.2.4.RELEASE:compile
[INFO] | | \- com.sun.mail:jakarta.mail:jar:1.6.4:compile
[INFO] | | \- com.sun.activation:jakarta.activation:jar:1.2.1:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-security:jar:2.2.4.RELEASE:compile
[INFO] | | +- org.springframework.security:spring-security-config:jar:5.2.1.RELEASE:compile
[INFO] | | \- org.springframework.security:spring-security-web:jar:5.2.1.RELEASE:compile
[INFO] | | \- org.springframework:spring-expression:jar:5.2.3.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-thymeleaf:jar:2.2.4.RELEASE:compile
[INFO] | | +- org.thymeleaf:thymeleaf-spring5:jar:3.0.11.RELEASE:compile
[INFO] | | | \- org.thymeleaf:thymeleaf:jar:3.0.11.RELEASE:compile
[INFO] | | | +- org.attoparser:attoparser:jar:2.0.5.RELEASE:compile
[INFO] | | | \- org.unbescape:unbescape:jar:1.1.6.RELEASE:compile
[INFO] | | \- org.thymeleaf.extras:thymeleaf-extras-java8time:jar:3.0.4.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-web:jar:2.2.4.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-json:jar:2.2.4.RELEASE:compile
[INFO] | | | +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.10.2:compile
[INFO] | | | \- com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.10.2:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-validation:jar:2.2.4.RELEASE:compile
[INFO] | | | \- jakarta.validation:jakarta.validation-api:jar:2.0.2:compile
[INFO] | | +- org.springframework:spring-web:jar:5.2.3.RELEASE:compile
[INFO] | | \- org.springframework:spring-webmvc:jar:5.2.3.RELEASE:compile
[INFO] | +- org.zalando:problem-spring-web:jar:0.25.2:compile
[INFO] | | +- org.zalando:problem-violations:jar:0.25.2:compile
[INFO] | | +- org.zalando:problem-spring-common:jar:0.25.2:compile
[INFO] | | +- org.apiguardian:apiguardian-api:jar:1.1.0:compile
[INFO] | | +- com.google.code.findbugs:jsr305:jar:3.0.2:compile
[INFO] | | +- org.zalando:problem:jar:0.23.0:compile
[INFO] | | +- org.zalando:jackson-datatype-problem:jar:0.23.0:compile
[INFO] | | \- org.zalando:faux-pas:jar:0.8.0:compile
[INFO] | +- io.jsonwebtoken:jjwt-api:jar:0.10.7:compile
[INFO] | +- io.jsonwebtoken:jjwt-impl:jar:0.10.7:runtime
[INFO] | +- io.jsonwebtoken:jjwt-jackson:jar:0.10.7:runtime
[INFO] | +- org.springframework.cloud:spring-cloud-starter:jar:2.2.1.RELEASE:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-context:jar:2.2.1.RELEASE:compile
[INFO] | | | \- org.springframework.security:spring-security-crypto:jar:5.2.1.RELEASE:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-commons:jar:2.2.1.RELEASE:compile
[INFO] | | \- org.springframework.security:spring-security-rsa:jar:1.0.9.RELEASE:compile
[INFO] | +- org.springframework.cloud:spring-cloud-starter-netflix-ribbon:jar:2.2.1.RELEASE:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-netflix-ribbon:jar:2.2.1.RELEASE:compile
[INFO] | | | \- org.springframework.cloud:spring-cloud-netflix-archaius:jar:2.2.1.RELEASE:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-starter-netflix-archaius:jar:2.2.1.RELEASE:compile
[INFO] | | | +- com.netflix.archaius:archaius-core:jar:0.7.6:compile
[INFO] | | | \- commons-configuration:commons-configuration:jar:1.8: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] | | | \- io.reactivex:rxnetty:jar:0.4.9:runtime
[INFO] | | +- com.netflix.ribbon:ribbon-core:jar:2.3.0:compile
[INFO] | | | \- commons-lang:commons-lang:jar:2.6:compile
[INFO] | | +- com.netflix.ribbon:ribbon-httpclient:jar:2.3.0:compile
[INFO] | | | +- org.apache.httpcomponents:httpclient:jar:4.5.10:compile
[INFO] | | | | +- org.apache.httpcomponents:httpcore:jar:4.4.13:compile
[INFO] | | | | \- commons-codec:commons-codec:jar:1.13:compile
[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.netflix.servo:servo-core:jar:0.12.21: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] | +- org.springframework.cloud:spring-cloud-starter-netflix-hystrix:jar:2.2.1.RELEASE:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-netflix-hystrix:jar:2.2.1.RELEASE:compile
[INFO] | | +- com.netflix.hystrix:hystrix-core:jar:1.5.18:compile
[INFO] | | +- com.netflix.hystrix:hystrix-serialization:jar:1.5.18:compile
[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] | | | \- 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.3:compile
[INFO] | +- org.springframework.retry:spring-retry:jar:1.2.5.RELEASE:compile
[INFO] | +- org.springframework.cloud:spring-cloud-starter-netflix-eureka-client:jar:2.2.1.RELEASE:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-netflix-eureka-client:jar:2.2.1.RELEASE:compile
[INFO] | | +- com.netflix.eureka:eureka-client:jar:1.9.13: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] | | | +- javax.ws.rs:jsr311-api:jar:1.1.1:runtime
[INFO] | | | +- com.sun.jersey:jersey-core:jar:1.19.1:runtime
[INFO] | | | \- com.google.inject:guice:jar:4.1.0:runtime
[INFO] | | | \- aopalliance:aopalliance:jar:1.0:runtime
[INFO] | | +- com.netflix.eureka:eureka-core:jar:1.9.13:compile
[INFO] | | | \- com.fasterxml.woodstox:woodstox-core:jar:5.2.1:runtime
[INFO] | | | \- org.codehaus.woodstox:stax2-api:jar:4.2:runtime
[INFO] | | +- org.springframework.cloud:spring-cloud-starter-loadbalancer:jar:2.2.1.RELEASE:compile
[INFO] | | | +- org.springframework.cloud:spring-cloud-loadbalancer:jar:2.2.1.RELEASE:compile
[INFO] | | | | +- io.projectreactor:reactor-core:jar:3.3.2.RELEASE:compile
[INFO] | | | | \- io.projectreactor.addons:reactor-extra:jar:3.3.2.RELEASE:compile
[INFO] | | | \- com.stoyanr:evictor:jar:1.0.0:compile
[INFO] | | +- com.netflix.ribbon:ribbon-eureka:jar:2.3.0:compile
[INFO] | | \- com.thoughtworks.xstream:xstream:jar:1.4.11.1:compile
[INFO] | | +- xmlpull:xmlpull:jar:1.1.3.1:compile
[INFO] | | \- xpp3:xpp3_min:jar:1.1.4c:compile
[INFO] | +- org.springframework.cloud:spring-cloud-starter-config:jar:2.2.1.RELEASE:compile
[INFO] | | \- org.springframework.cloud:spring-cloud-config-client:jar:2.2.1.RELEASE:compile
[INFO] | +- org.springframework.cloud:spring-cloud-starter-openfeign:jar:2.2.1.RELEASE:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-openfeign-core:jar:2.2.1.RELEASE:compile
[INFO] | | | \- io.github.openfeign.form:feign-form-spring:jar:3.8.0:compile
[INFO] | | | +- io.github.openfeign.form:feign-form:jar:3.8.0:compile
[INFO] | | | \- commons-fileupload:commons-fileupload:jar:1.4:compile
[INFO] | | +- io.github.openfeign:feign-core:jar:10.4.0:compile
[INFO] | | +- io.github.openfeign:feign-slf4j:jar:10.4.0:compile
[INFO] | | \- io.github.openfeign:feign-hystrix:jar:10.4.0:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-cloud-connectors:jar:2.2.4.RELEASE:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-spring-service-connector:jar:2.0.7.RELEASE:compile
[INFO] | | | \- org.springframework.cloud:spring-cloud-connectors-core:jar:2.0.7.RELEASE:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-cloudfoundry-connector:jar:2.0.7.RELEASE:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-heroku-connector:jar:2.0.7.RELEASE:compile
[INFO] | | \- org.springframework.cloud:spring-cloud-localconfig-connector:jar:2.0.7.RELEASE:compile
[INFO] | +- org.springframework.security:spring-security-data:jar:5.2.1.RELEASE:compile
[INFO] | | +- org.springframework.data:spring-data-commons:jar:2.2.4.RELEASE:compile
[INFO] | | \- org.springframework.security:spring-security-core:jar:5.2.1.RELEASE:compile
[INFO] | +- io.micrometer:micrometer-registry-prometheus:jar:1.3.3:runtime
[INFO] | | \- io.prometheus:simpleclient_common:jar:0.7.0:runtime
[INFO] | | \- io.prometheus:simpleclient:jar:0.8.1:runtime
[INFO] | +- io.dropwizard.metrics:metrics-core:jar:4.1.2:compile
[INFO] | +- org.modelmapper.extensions:modelmapper-spring:jar:2.3.0:compile
[INFO] | | \- org.modelmapper:modelmapper:jar:2.3.0:compile
[INFO] | +- joda-time:joda-time:jar:2.10.5:compile
[INFO] | +- org.projectlombok:lombok:jar:1.18.10:compile
[INFO] | \- org.keycloak:keycloak-spring-boot-starter:jar:9.0.0:compile
[INFO] | +- org.keycloak:keycloak-spring-boot-2-adapter:jar:9.0.0:compile
[INFO] | | \- org.keycloak:keycloak-spring-boot-adapter-core:jar:9.0.0:compile
[INFO] | +- org.keycloak:keycloak-authz-client:jar:9.0.0:compile
[INFO] | +- org.keycloak:spring-boot-container-bundle:jar:9.0.0:compile
[INFO] | \- org.keycloak:keycloak-spring-security-adapter:jar:9.0.0:compile
[INFO] | +- org.keycloak:keycloak-adapter-spi:jar:9.0.0:compile
[INFO] | \- org.keycloak:keycloak-adapter-core:jar:9.0.0:compile
[INFO] +- net.sf.jasperreports:jasperreports:jar:6.13.0:compile
[INFO] | +- commons-beanutils:commons-beanutils:jar:1.9.4:compile
[INFO] | | \- commons-collections:commons-collections:jar:3.2.2:compile
[INFO] | +- commons-digester:commons-digester:jar:2.1:compile
[INFO] | +- commons-logging:commons-logging:jar:1.1.1:compile
[INFO] | +- org.apache.commons:commons-collections4:jar:4.2:compile
[INFO] | +- com.lowagie:itext:jar:2.1.7.js7:compile
[INFO] | | \- org.bouncycastle:bcprov-jdk15on:jar:1.62:compile
[INFO] | +- org.jfree:jcommon:jar:1.0.23:compile
[INFO] | +- org.jfree:jfreechart:jar:1.0.19:compile
[INFO] | +- org.eclipse.jdt:ecj:jar:3.21.0:compile
[INFO] | +- org.codehaus.castor:castor-xml:jar:1.4.1:compile
[INFO] | | +- org.codehaus.castor:castor-core:jar:1.4.1:compile
[INFO] | | \- javax.inject:javax.inject:jar:1:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-core:jar:2.10.2:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-databind:jar:2.10.2:compile
[INFO] | \- com.fasterxml.jackson.core:jackson-annotations:jar:2.10.2:compile
[INFO] +- net.sf.jasperreports:jasperreports-fonts:jar:4.0.0:compile
[INFO] +- com.google.zxing:core:jar:3.3.0:compile
[INFO] +- com.google.zxing:javase:jar:3.3.0:compile
[INFO] | +- com.beust:jcommander:jar:1.48:compile
[INFO] | \- com.github.jai-imageio:jai-imageio-core:jar:1.3.1:compile
[INFO] +- com.google.code.gson:gson:jar:2.8.6:compile
[INFO] +- com.google.api-client:google-api-client:jar:1.20.0:compile
[INFO] | +- com.google.oauth-client:google-oauth-client:jar:1.20.0:compile
[INFO] | | \- com.google.http-client:google-http-client:jar:1.20.0:compile
[INFO] | +- com.google.http-client:google-http-client-jackson2:jar:1.20.0:compile
[INFO] | \- com.google.guava:guava-jdk5:jar:13.0:compile
[INFO] +- com.fasterxml.jackson.module:jackson-module-jaxb-annotations:jar:2.10.2: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.springframework.boot:spring-boot-starter-test:jar:2.2.4.RELEASE:test
[INFO] | +- org.springframework.boot:spring-boot-starter:jar:2.2.4.RELEASE:compile
[INFO] | | +- jakarta.annotation:jakarta.annotation-api:jar:1.3.5:compile
[INFO] | | \- org.yaml:snakeyaml:jar:1.25:runtime
[INFO] | +- org.springframework.boot:spring-boot-test-autoconfigure:jar:2.2.4.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.junit.jupiter:junit-jupiter:jar:5.5.2:test
[INFO] | | +- org.junit.jupiter:junit-jupiter-api:jar:5.5.2: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.vintage:junit-vintage-engine:jar:5.5.2:test
[INFO] | | +- org.junit.platform:junit-platform-engine:jar:1.5.2:test
[INFO] | | \- junit:junit:jar:4.12: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:test
[INFO] | +- org.mockito:mockito-core:jar:3.1.0:test
[INFO] | | +- net.bytebuddy:byte-buddy-agent:jar:1.10.6:test
[INFO] | | \- org.objenesis:objenesis:jar:2.6:test
[INFO] | +- org.skyscreamer:jsonassert:jar:1.5.0:test
[INFO] | +- org.springframework:spring-core:jar:5.2.3.RELEASE:compile
[INFO] | | \- org.springframework:spring-jcl:jar:5.2.3.RELEASE:compile
[INFO] | +- org.springframework:spring-test:jar:5.2.3.RELEASE:test
[INFO] | \- org.xmlunit:xmlunit-core:jar:2.6.3:test
[INFO] +- org.springframework.boot:spring-boot-test:jar:2.2.4.RELEASE:test
[INFO] | \- org.springframework.boot:spring-boot:jar:2.2.4.RELEASE:compile
[INFO] | \- org.springframework:spring-context:jar:5.2.3.RELEASE:compile
[INFO] +- org.keycloak:keycloak-admin-client:jar:9.0.0:compile
[INFO] | +- org.keycloak:keycloak-core:jar:9.0.0:compile
[INFO] | | +- org.keycloak:keycloak-common:jar:9.0.0:compile
[INFO] | | \- org.bouncycastle:bcpkix-jdk15on:jar:1.60:compile
[INFO] | +- org.jboss.resteasy:resteasy-multipart-provider:jar:3.9.1.Final:compile
[INFO] | | +- org.jboss.resteasy:resteasy-jaxrs:jar:3.9.1.Final:compile
[INFO] | | | +- org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_2.1_spec:jar:1.0.3.Final:compile
[INFO] | | | +- org.jboss.spec.javax.xml.bind:jboss-jaxb-api_2.3_spec:jar:1.0.1.Final:compile
[INFO] | | | +- org.jboss.spec.javax.annotation:jboss-annotations-api_1.3_spec:jar:1.0.1.Final:compile
[INFO] | | | +- javax.activation:activation:jar:1.1.1:compile
[INFO] | | | \- com.github.stephenc.jcip:jcip-annotations:jar:1.0-1:compile
[INFO] | | +- org.jboss.resteasy:resteasy-client:jar:3.9.1.Final:compile
[INFO] | | +- org.jboss.resteasy:resteasy-jaxb-provider:jar:3.9.1.Final:compile
[INFO] | | +- com.sun.mail:javax.mail:jar:1.6.2:compile
[INFO] | | \- org.apache.james:apache-mime4j:jar:0.6:compile
[INFO] | \- org.jboss.resteasy:resteasy-jackson2-provider:jar:3.9.1.Final:compile
[INFO] | +- com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:jar:2.10.2:compile
[INFO] | | \- com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:jar:2.10.2:compile
[INFO] | \- com.github.fge:json-patch:jar:1.9: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.springframework.boot:spring-boot-starter-undertow:jar:2.2.4.RELEASE:compile
[INFO] | +- io.undertow:undertow-core:jar:2.0.29.Final:compile
[INFO] | | +- org.jboss.xnio:xnio-api:jar:3.3.8.Final:compile
[INFO] | | \- org.jboss.xnio:xnio-nio:jar:3.3.8.Final:runtime
[INFO] | +- io.undertow:undertow-servlet:jar:2.0.29.Final:compile
[INFO] | | \- org.jboss.spec.javax.annotation:jboss-annotations-api_1.2_spec:jar:1.0.2.Final:compile
[INFO] | +- io.undertow:undertow-websockets-jsr:jar:2.0.29.Final:compile
[INFO] | | \- org.jboss.spec.javax.websocket:jboss-websocket-api_1.1_spec:jar:1.1.4.Final:compile
[INFO] | +- jakarta.servlet:jakarta.servlet-api:jar:4.0.3:compile
[INFO] | \- org.glassfish:jakarta.el:jar:3.0.3:compile
[INFO] \- org.springframework.boot:spring-boot-devtools:jar:2.2.4.RELEASE:compile
[INFO] \- org.springframework.boot:spring-boot-autoconfigure:jar:2.2.4.RELEASE:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
Keycloak server is running
user and password are checked
maven build success
Api is running
create user api is KO
it's resolve it by :
adding this exclusion :
<exclusions>
<exclusion>
<groupId>javax.ws.rs</groupId>
<artifactId>jsr311-api</artifactId>
</exclusion>
</exclusions>
and upgrading jersey
<dependency>
<groupId>org.glassfish.jersey.core</groupId>
<artifactId>jersey-server</artifactId>
<version>2.17</version>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.containers</groupId>
<artifactId>jersey-container-servlet-core</artifactId>
<version>2.17</version>
</dependency>
I am using JDk 1.8 and Spring boot 2.0.8, app is working fine in local laptop however once deploy on PCF its start complain
Unable to start web server; nested exception is
java.lang.NoSuchMethodError:
org.apache.tomcat.util.ExceptionUtils.preload()V
Dependancy Tree:
[INFO] +- org.springframework.boot:spring-boot-starter-web:jar:2.0.8.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter:jar:2.0.8.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot:jar:2.0.8.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-autoconfigure:jar:2.0.8.RELEASE:compile
[INFO] | | \- org.yaml:snakeyaml:jar:1.19:runtime
[INFO] | +- org.springframework.boot:spring-boot-starter-json:jar:2.0.8.RELEASE:compile
[INFO] | | +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.9.8:compile
[INFO] | | +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.9.8:compile
[INFO] | | \- com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.9.8:compile
[INFO] | +- org.hibernate.validator:hibernate-validator:jar:6.0.14.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] | | \- com.fasterxml:classmate:jar:1.3.4:compile
[INFO] | +- org.springframework:spring-web:jar:5.0.12.RELEASE:compile
[INFO] | \- org.springframework:spring-webmvc:jar:5.0.12.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-tomcat:jar:2.0.8.RELEASE:compile
[INFO] | +- javax.annotation:javax.annotation-api:jar:1.3.2:compile
[INFO] | +- org.apache.tomcat.embed:tomcat-embed-core:jar:8.5.37:compile
[INFO] | +- org.apache.tomcat.embed:tomcat-embed-el:jar:8.5.37:compile
[INFO] | \- org.apache.tomcat.embed:tomcat-embed-websocket:jar:8.5.37:compile
[INFO] +- org.springframework.boot:spring-boot-starter-logging:jar:2.0.8.RELEASE: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-core:jar:1.2.3:compile
[INFO] | \- com.fasterxml.jackson.core:jackson-databind:jar:2.9.8:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-annotations:jar:2.9.0:compile
[INFO] | \- com.fasterxml.jackson.core:jackson-core:jar:2.9.8:compile
[INFO] \- org.apache.hive:hive-jdbc:jar:3.1.0.3.1.0.0-78:compile
[INFO] +- org.apache.hive:hive-common:jar:3.1.0.3.1.0.0-78:compile
[INFO] | +- org.apache.hive:hive-classification:jar:3.1.0.3.1.0.0-78:compile
[INFO] | +- org.apache.hive:hive-storage-api:jar:2.3.0.3.1.0.0-78:compile
[INFO] | +- commons-cli:commons-cli:jar:1.2:compile
[INFO] | +- commons-lang:commons-lang:jar:2.6:compile
[INFO] | +- org.apache.commons:commons-lang3:jar:3.7:compile
[INFO] | +- org.apache.orc:orc-core:jar:1.5.1.3.1.0.0-78:compile
[INFO] | | +- org.apache.orc:orc-shims:jar:1.5.1.3.1.0.0-78:compile
[INFO] | | +- com.google.protobuf:protobuf-java:jar:2.5.0:compile
[INFO] | | +- io.airlift:aircompressor:jar:0.10:compile
[INFO] | | \- org.apache.hadoop:hadoop-hdfs:jar:3.1.1.3.1.0.0-78:compile
[INFO] | | +- org.eclipse.jetty:jetty-util-ajax:jar:9.4.14.v20181114:compile
[INFO] | | +- com.sun.jersey:jersey-core:jar:1.19:compile
[INFO] | | | \- javax.ws.rs:jsr311-api:jar:1.1.1:compile
[INFO] | | \- com.sun.jersey:jersey-server:jar:1.19:compile
[INFO] | +- jline:jline:jar:2.14.3:compile
[INFO] | +- org.eclipse.jetty:jetty-http:jar:9.4.14.v20181114:compile
[INFO] | | +- org.eclipse.jetty:jetty-util:jar:9.4.14.v20181114:compile
[INFO] | | \- org.eclipse.jetty:jetty-io:jar:9.4.14.v20181114:compile
[INFO] | +- org.eclipse.jetty:jetty-rewrite:jar:9.4.14.v20181114:compile
[INFO] | +- org.eclipse.jetty:jetty-servlet:jar:9.4.14.v20181114:compile
[INFO] | | \- org.eclipse.jetty:jetty-security:jar:9.4.14.v20181114:compile
[INFO] | +- org.eclipse.jetty:jetty-webapp:jar:9.4.14.v20181114:compile
[INFO] | | \- org.eclipse.jetty:jetty-xml:jar:9.4.14.v20181114:compile
[INFO] | +- joda-time:joda-time:jar:2.9.9:compile
[INFO] | +- org.apache.logging.log4j:log4j-1.2-api:jar:2.10.0:compile
[INFO] | | \- org.apache.logging.log4j:log4j-core:jar:2.10.0:compile
[INFO] | +- org.apache.logging.log4j:log4j-web:jar:2.10.0:compile
[INFO] | +- org.apache.commons:commons-compress:jar:1.9:compile
[INFO] | +- org.apache.ant:ant:jar:1.9.1:compile
[INFO] | | \- org.apache.ant:ant-launcher:jar:1.9.1:compile
[INFO] | +- net.sf.jpam:jpam:jar:1.1:compile
[INFO] | | \- commons-logging:commons-logging:jar:1.1.3:compile
[INFO] | +- com.tdunning:json:jar:1.8:compile
[INFO] | +- io.dropwizard.metrics:metrics-core:jar:3.2.6:compile
[INFO] | +- io.dropwizard.metrics:metrics-jvm:jar:3.2.6:compile
[INFO] | +- io.dropwizard.metrics:metrics-json:jar:3.2.6:compile
[INFO] | +- com.github.joshelser:dropwizard-metrics-hadoop-metrics2-reporter:jar:0.1.2:compile
[INFO] | | \- org.apache.hadoop:hadoop-common:jar:3.1.1.3.1.0.0-78:compile
[INFO] | | +- org.apache.hadoop:hadoop-annotations:jar:3.1.1.3.1.0.0-78:compile
[INFO] | | | \- jdk.tools:jdk.tools:jar:1.8:system
[INFO] | | +- org.apache.commons:commons-math3:jar:3.6.1:compile
[INFO] | | +- commons-collections:commons-collections:jar:3.2.2:compile
[INFO] | | +- javax.servlet.jsp:jsp-api:jar:2.1:runtime
[INFO] | | +- com.sun.jersey:jersey-servlet:jar:1.19:compile
[INFO] | | +- org.apache.commons:commons-configuration2:jar:2.1.1:compile
[INFO] | | +- com.google.re2j:re2j:jar:1.1:compile
[INFO] | | +- com.jcraft:jsch:jar:0.1.54: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-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.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] | | | | \- com.nimbusds:nimbus-jose-jwt:jar:3.10:compile
[INFO] | | | | +- net.jcip:jcip-annotations:jar:1.0:compile
[INFO] | | | | +- net.minidev:json-smart:jar:2.3:compile
[INFO] | | | | | \- net.minidev:accessors-smart:jar:1.2:compile
[INFO] | | | | \- org.bouncycastle:bcprov-jdk15on:jar:1.52: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.codehaus.woodstox:stax2-api:jar:3.1.4:compile
[INFO] | | \- com.fasterxml.woodstox:woodstox-core:jar:5.0.3:compile
[INFO] | \- javolution:javolution:jar:5.5.1:compile
[INFO] +- org.apache.hive:hive-service:jar:3.1.0.3.1.0.0-78:compile
[INFO] | +- org.apache.hive:hive-llap-server:jar:3.1.0.3.1.0.0-78:compile
[INFO] | | +- org.apache.hive:hive-llap-common:jar:3.1.0.3.1.0.0-78:compile
[INFO] | | +- org.apache.hive:hive-llap-client:jar:3.1.0.3.1.0.0-78:compile
[INFO] | | | \- org.apache.curator:apache-curator:pom:2.12.0:compile
[INFO] | | +- org.apache.hive:hive-llap-tez:jar:3.1.0.3.1.0.0-78:compile
[INFO] | | +- io.netty:netty-all:jar:4.1.31.Final:compile
[INFO] | | +- org.apache.hive:hive-llap-common:test-jar:tests:3.1.0.3.1.0.0-78:compile
[INFO] | | +- org.apache.hbase:hbase-hadoop2-compat:jar:2.0.2.3.1.0.0-78:compile
[INFO] | | | +- org.apache.hbase:hbase-metrics:jar:2.0.2.3.1.0.0-78:compile
[INFO] | | | +- org.apache.hbase:hbase-metrics-api:jar:2.0.2.3.1.0.0-78:compile
[INFO] | | | \- org.apache.hadoop:hadoop-mapreduce-client-core:jar:3.1.1.3.1.0.0-78:compile
[INFO] | | | +- org.apache.hadoop:hadoop-yarn-client:jar:3.1.1.3.1.0.0-78:compile
[INFO] | | | \- org.apache.hadoop:hadoop-hdfs-client:jar:3.1.1.3.1.0.0-78:compile
[INFO] | | | \- com.squareup.okhttp:okhttp:jar:2.7.5:compile
[INFO] | | | \- com.squareup.okio:okio:jar:1.6.0:compile
[INFO] | | +- org.apache.hbase:hbase-server:jar:2.0.2.3.1.0.0-78:compile
[INFO] | | | +- org.apache.hbase:hbase-http:jar:2.0.2.3.1.0.0-78:compile
[INFO] | | | | +- org.glassfish.jersey.core:jersey-server:jar:2.26:compile
[INFO] | | | | | +- org.glassfish.jersey.core:jersey-common:jar:2.26:compile
[INFO] | | | | | | \- org.glassfish.hk2:osgi-resource-locator:jar:1.0.1:compile
[INFO] | | | | | +- org.glassfish.jersey.core:jersey-client:jar:2.26:compile
[INFO] | | | | | +- org.glassfish.jersey.media:jersey-media-jaxb:jar:2.26:compile
[INFO] | | | | | \- org.glassfish.hk2.external:javax.inject:jar:2.5.0-b42:compile
[INFO] | | | | \- org.glassfish.jersey.containers:jersey-container-servlet-core:jar:2.26:compile
[INFO] | | | +- org.apache.hbase:hbase-procedure:jar:2.0.2.3.1.0.0-78:compile
[INFO] | | | +- org.apache.hbase:hbase-zookeeper:jar:2.0.2.3.1.0.0-78:compile
[INFO] | | | +- org.apache.hbase:hbase-replication:jar:2.0.2.3.1.0.0-78:compile
[INFO] | | | +- org.glassfish.web:javax.servlet.jsp:jar:2.3.2:compile
[INFO] | | | | \- org.glassfish:javax.el:jar:3.0.0:compile
[INFO] | | | +- javax.ws.rs:javax.ws.rs-api:jar:2.1:compile
[INFO] | | | +- org.apache.htrace:htrace-core:jar:3.2.0-incubating:compile
[INFO] | | | +- com.lmax:disruptor:jar:3.3.6:compile
[INFO] | | | +- org.apache.hadoop:hadoop-distcp:jar:3.1.1.3.1.0.0-78:compile
[INFO] | | | \- org.apache.hadoop:hadoop-client:jar:3.1.1.3.1.0.0-78:compile
[INFO] | | | \- org.apache.hadoop:hadoop-mapreduce-client-jobclient:jar:3.1.1.3.1.0.0-78:compile
[INFO] | | | \- org.apache.hadoop:hadoop-mapreduce-client-common:jar:3.1.1.3.1.0.0-78:compile
[INFO] | | +- org.apache.hbase:hbase-mapreduce:jar:2.0.2.3.1.0.0-78:compile
[INFO] | | +- org.apache.hbase:hbase-common:jar:2.0.2.3.1.0.0-78:compile
[INFO] | | | \- com.github.stephenc.findbugs:findbugs-annotations:jar:1.3.9-1:compile
[INFO] | | \- org.apache.hbase:hbase-hadoop-compat:jar:2.0.2.3.1.0.0-78:compile
[INFO] | +- javax.servlet.jsp:javax.servlet.jsp-api:jar:2.3.1:compile
[INFO] | +- commons-codec:commons-codec:jar:1.11:compile
[INFO] | +- org.eclipse.jetty:jetty-runner:jar:9.3.25.v20180904:compile
[INFO] | | +- org.eclipse.jetty:jetty-plus:jar:9.4.14.v20181114:compile
[INFO] | | +- org.eclipse.jetty:jetty-annotations:jar:9.4.14.v20181114:compile
[INFO] | | | +- org.ow2.asm:asm:jar:6.2:compile
[INFO] | | | \- org.ow2.asm:asm-commons:jar:7.0:compile
[INFO] | | | +- org.ow2.asm:asm-tree:jar:7.0:compile
[INFO] | | | \- org.ow2.asm:asm-analysis:jar:7.0:compile
[INFO] | | +- org.eclipse.jetty:jetty-jaas:jar:9.4.14.v20181114:compile
[INFO] | | +- org.eclipse.jetty.websocket:websocket-server:jar:9.4.14.v20181114:compile
[INFO] | | | +- org.eclipse.jetty.websocket:websocket-common:jar:9.4.14.v20181114:compile
[INFO] | | | | \- org.eclipse.jetty.websocket:websocket-api:jar:9.4.14.v20181114:compile
[INFO] | | | +- org.eclipse.jetty.websocket:websocket-client:jar:9.4.14.v20181114:compile
[INFO] | | | | \- org.eclipse.jetty:jetty-client:jar:9.4.14.v20181114:compile
[INFO] | | | \- org.eclipse.jetty.websocket:websocket-servlet:jar:9.4.14.v20181114:compile
[INFO] | | +- org.eclipse.jetty:jetty-jndi:jar:9.4.14.v20181114:compile
[INFO] | | +- org.eclipse.jetty:apache-jsp:jar:9.4.14.v20181114:compile
[INFO] | | | \- org.eclipse.jetty.toolchain:jetty-schemas:jar:3.1.2:compile
[INFO] | | \- org.eclipse.jetty:apache-jstl:jar:9.4.14.v20181114:compile
[INFO] | | +- org.apache.taglibs:taglibs-standard-spec:jar:1.2.5:compile
[INFO] | | \- org.apache.taglibs:taglibs-standard-impl:jar:1.2.5:compile
[INFO] | +- org.apache.thrift:libfb303:jar:0.9.3:compile
[INFO] | +- org.apache.curator:curator-recipes:jar:2.12.0:compile
[INFO] | \- org.jamon:jamon-runtime:jar:2.4.1:compile
[INFO] +- org.apache.hive:hive-serde:jar:3.1.0.3.1.0.0-78:compile
[INFO] | +- org.apache.arrow:arrow-vector:jar:0.8.0.3.1.0.0-78:compile
[INFO] | | +- org.apache.arrow:arrow-format:jar:0.8.0.3.1.0.0-78:compile
[INFO] | | +- org.apache.arrow:arrow-memory:jar:0.8.0.3.1.0.0-78:compile
[INFO] | | +- io.netty:netty-buffer:jar:4.1.31.Final:compile
[INFO] | | \- io.netty:netty-common:jar:4.1.31.Final:compile
[INFO] | +- com.carrotsearch:hppc:jar:0.7.2:compile
[INFO] | +- com.vlkan:flatbuffers:jar:1.2.0-3f79e055:compile
[INFO] | +- org.apache.avro:avro:jar:1.7.2:compile
[INFO] | | +- org.codehaus.jackson:jackson-core-asl:jar:1.8.8:compile
[INFO] | | +- com.thoughtworks.paranamer:paranamer:jar:2.3:compile
[INFO] | | \- org.xerial.snappy:snappy-java:jar:1.0.4.1:compile
[INFO] | +- net.sf.opencsv:opencsv:jar:2.3:compile
[INFO] | \- org.apache.parquet:parquet-hadoop-bundle:jar:1.10.0.3.1.0.0-78:compile
[INFO] +- org.apache.hive:hive-metastore:jar:3.1.0.3.1.0.0-78:compile
[INFO] | +- org.apache.hive:hive-standalone-metastore:jar:3.1.0.3.1.0.0-78:compile
[INFO] | | +- org.datanucleus:datanucleus-api-jdo:jar:4.2.4:compile
[INFO] | | +- org.datanucleus:datanucleus-core:jar:4.1.17:compile
[INFO] | | +- org.datanucleus:datanucleus-rdbms:jar:4.1.19:compile
[INFO] | | +- org.datanucleus:javax.jdo:jar:3.2.0-m3:compile
[INFO] | | | \- javax.transaction:transaction-api:jar:1.1:compile
[INFO] | | \- sqlline:sqlline:jar:1.3.0:compile
[INFO] | +- com.google.guava:guava:jar:16.0:compile
[INFO] | +- org.apache.hbase:hbase-client:jar:2.0.2.3.1.0.0-78:compile
[INFO] | | +- org.apache.hbase.thirdparty:hbase-shaded-protobuf:jar:2.1.0:compile
[INFO] | | +- org.apache.hbase:hbase-protocol-shaded:jar:2.0.2.3.1.0.0-78:compile
[INFO] | | +- org.apache.hbase:hbase-protocol:jar:2.0.2.3.1.0.0-78:compile
[INFO] | | | \- junit:junit:jar:4.12:compile
[INFO] | | | \- org.hamcrest:hamcrest-core:jar:1.3:compile
[INFO] | | +- org.apache.hadoop:hadoop-aws:jar:3.1.1.3.1.0.0-78:compile
[INFO] | | | \- com.amazonaws:aws-java-sdk-bundle:jar:1.11.271:compile
[INFO] | | +- commons-io:commons-io:jar:2.5:compile
[INFO] | | +- org.apache.hbase.thirdparty:hbase-shaded-miscellaneous:jar:2.1.0:compile
[INFO] | | +- org.apache.hbase.thirdparty:hbase-shaded-netty:jar:2.1.0:compile
[INFO] | | +- org.apache.htrace:htrace-core4:jar:4.2.0-incubating:compile
[INFO] | | +- org.jruby.jcodings:jcodings:jar:1.0.8:compile
[INFO] | | +- org.jruby.joni:joni:jar:2.1.11:compile
[INFO] | | +- org.apache.commons:commons-crypto:jar:1.0.0:compile
[INFO] | | \- org.apache.yetus:audience-annotations:jar:0.5.0:compile
[INFO] | +- com.jolbox:bonecp:jar:0.8.0.RELEASE:compile
[INFO] | +- com.zaxxer:HikariCP:jar:2.7.9:compile
[INFO] | +- org.apache.derby:derby:jar:10.14.2.0:compile
[INFO] | +- commons-pool:commons-pool:jar:1.6:compile
[INFO] | +- commons-dbcp:commons-dbcp:jar:1.4:compile
[INFO] | +- javax.jdo:jdo-api:jar:3.0.1:compile
[INFO] | | \- javax.transaction:jta:jar:1.1:compile
[INFO] | +- org.antlr:antlr-runtime:jar:3.5.2:compile
[INFO] | +- co.cask.tephra:tephra-api:jar:0.6.0:compile
[INFO] | +- co.cask.tephra:tephra-core:jar:0.6.0:compile
[INFO] | | +- com.google.code.gson:gson:jar:2.8.5:compile
[INFO] | | +- com.google.inject.extensions:guice-assistedinject:jar:3.0:compile
[INFO] | | +- org.apache.twill:twill-common:jar:0.6.0-incubating:compile
[INFO] | | +- org.apache.twill:twill-core:jar:0.6.0-incubating:compile
[INFO] | | | \- org.apache.twill:twill-api:jar:0.6.0-incubating:compile
[INFO] | | +- org.apache.twill:twill-discovery-api:jar:0.6.0-incubating:compile
[INFO] | | +- org.apache.twill:twill-discovery-core:jar:0.6.0-incubating:compile
[INFO] | | \- org.apache.twill:twill-zookeeper:jar:0.6.0-incubating:compile
[INFO] | \- co.cask.tephra:tephra-hbase-compat-1.0:jar:0.6.0:compile
[INFO] +- org.apache.hive:hive-shims:jar:3.1.0.3.1.0.0-78:compile
[INFO] | +- org.apache.hive.shims:hive-shims-common:jar:3.1.0.3.1.0.0-78:compile
[INFO] | +- org.apache.hive.shims:hive-shims-0.23:jar:3.1.0.3.1.0.0-78:runtime
[INFO] | | \- org.apache.hadoop:hadoop-yarn-server-resourcemanager:jar:3.1.1.3.1.0.0-78:runtime
[INFO] | | +- com.google.inject.extensions:guice-servlet:jar:4.0:compile
[INFO] | | +- com.sun.jersey.contribs:jersey-guice:jar:1.19:compile
[INFO] | | | \- javax.inject:javax.inject:jar:1:compile
[INFO] | | +- org.apache.hadoop:hadoop-yarn-common:jar:3.1.1:compile
[INFO] | | | +- com.fasterxml.jackson.module:jackson-module-jaxb-annotations:jar:2.9.8:compile
[INFO] | | | \- com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:jar:2.9.8:compile
[INFO] | | | \- com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:jar:2.9.8:compile
[INFO] | | +- org.apache.hadoop:hadoop-yarn-api:jar:3.1.1.3.1.0.0-78:compile
[INFO] | | +- javax.xml.bind:jaxb-api:jar:2.3.1:compile
[INFO] | | | \- javax.activation:javax.activation-api:jar:1.2.0:compile
[INFO] | | +- com.sun.jersey:jersey-client:jar:1.19:compile
[INFO] | | +- org.apache.hadoop:hadoop-yarn-server-common:jar:3.1.1.3.1.0.0-78:runtime
[INFO] | | | +- org.apache.hadoop:hadoop-yarn-registry:jar:3.1.1.3.1.0.0-78:runtime
[INFO] | | | | +- commons-daemon:commons-daemon:jar:1.0.13:runtime
[INFO] | | | | \- dnsjava:dnsjava:jar:2.1.7:runtime
[INFO] | | | +- org.apache.geronimo.specs:geronimo-jcache_1.0_spec:jar:1.0-alpha-1:runtime
[INFO] | | | +- org.ehcache:ehcache:jar:3.5.3:runtime
[INFO] | | | +- com.zaxxer:HikariCP-java7:jar:2.4.12:runtime
[INFO] | | | \- com.microsoft.sqlserver:mssql-jdbc:jar:6.2.2.jre8:runtime
[INFO] | | +- org.apache.hadoop:hadoop-yarn-server-applicationhistoryservice:jar:3.1.1.3.1.0.0-78:runtime
[INFO] | | | +- org.objenesis:objenesis:jar:1.0:runtime
[INFO] | | | \- de.ruedigermoeller:fst:jar:2.50:runtime
[INFO] | | | \- com.cedarsoftware:java-util:jar:1.9.0:runtime
[INFO] | | | \- com.cedarsoftware:json-io:jar:2.5.1:runtime
[INFO] | | +- org.apache.hadoop:hadoop-yarn-server-web-proxy:jar:3.1.1.3.1.0.0-78:runtime
[INFO] | | \- org.fusesource.leveldbjni:leveldbjni-all:jar:1.8:runtime
[INFO] | \- org.apache.hive.shims:hive-shims-scheduler:jar:3.1.0.3.1.0.0-78:runtime
[INFO] +- org.apache.hive:hive-service-rpc:jar:3.1.0.3.1.0.0-78:compile
[INFO] +- org.apache.httpcomponents:httpclient:jar:4.5.6:compile
[INFO] +- org.apache.httpcomponents:httpcore:jar:4.4.10:compile
[INFO] +- org.apache.thrift:libthrift:jar:0.9.3:compile
[INFO] +- org.apache.zookeeper:zookeeper:jar:3.4.6.3.1.0.0-78:compile
[INFO] | \- io.netty:netty:jar:3.10.5.Final:compile
[INFO] +- org.apache.curator:curator-framework:jar:2.12.0:compile
[INFO] | \- org.apache.curator:curator-client:jar:2.12.0:compile
[INFO] \- org.slf4j:slf4j-api:jar:1.7.25:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
PCF logs :
[ERR] Caused by: java.lang.NoSuchMethodError: org.apache.tomcat.util.ExceptionUtils.preload()V
[ERR] at org.apache.catalina.startup.Tomcat.<init>(Tomcat.java:160)
[ERR] at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:160)
[ERR] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:181)
[ERR] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:154)
[APP/PROC/WEB/0] [ERR] ... 16 more
I have tried diffrent springboot version and fllowing properties with diffrent tomcat version.
<properties>
<java.version>1.8</java.version>
<maven.compiler.target>1.8</maven.compiler.target>
<tomcat.version>8.5.37</tomcat.version>
</properties>
Also tried to exclude tomcat in web and added from external dependency but nothing is working on pcf
It's because your dependencies are missing the following:
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-jasper</artifactId>
<version>8.5.37</version>
</dependency>
Make sure to add it into your pom.xml.
I am use spring-cloud-gateay in my service mesh, when start it I have get a error:
Caused by: java.lang.NoSuchMethodError: org.springframework.web.reactive.socket.client.ReactorNettyWebSocketClient.<init>(Ljava/util/function/Consumer;)V
Dependencies:
[INFO] --- maven-dependency-plugin:3.0.2:tree (default-cli) # gateway ---
[INFO] cn.rctech.egg:gateway:jar:0.0.1-SNAPSHOT
[INFO] +- org.springframework.boot:spring-boot-starter:jar:2.0.3.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot:jar:2.0.3.RELEASE:compile
[INFO] | | \- org.springframework:spring-context:jar:5.1.6.RELEASE:compile
[INFO] | | +- org.springframework:spring-aop:jar:5.1.6.RELEASE:compile
[INFO] | | +- org.springframework:spring-beans:jar:5.1.6.RELEASE:compile
[INFO] | | \- org.springframework:spring-expression:jar:5.1.6.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-autoconfigure:jar:2.0.3.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-logging:jar:2.0.3.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.slf4j:slf4j-api:jar:1.7.25: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.1.6.RELEASE:compile
[INFO] | | \- org.springframework:spring-jcl:jar:5.1.6.RELEASE:compile
[INFO] | \- org.yaml:snakeyaml:jar:1.19:runtime
[INFO] +- org.springframework.cloud:spring-cloud-starter-gateway:jar:2.0.3.RELEASE:compile
[INFO] | +- org.springframework.cloud:spring-cloud-gateway-core:jar:2.0.3.RELEASE:compile
[INFO] | | \- io.projectreactor.addons:reactor-extra:jar:3.1.6.RELEASE:compile
[INFO] | | \- io.projectreactor:reactor-core:jar:3.1.8.RELEASE:compile
[INFO] | | \- org.reactivestreams:reactive-streams:jar:1.0.2:compile
[INFO] | \- org.springframework.boot:spring-boot-starter-webflux:jar:2.0.3.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-json:jar:2.0.3.RELEASE:compile
[INFO] | | +- com.fasterxml.jackson.core:jackson-databind:jar:2.9.7:compile
[INFO] | | | \- com.fasterxml.jackson.core:jackson-annotations: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-reactor-netty:jar:2.0.3.RELEASE:compile
[INFO] | | \- io.projectreactor.ipc:reactor-netty:jar:0.7.8.RELEASE:compile
[INFO] | | +- io.netty:netty-codec-http:jar:4.1.25.Final:compile
[INFO] | | | \- io.netty:netty-codec:jar:4.1.25.Final:compile
[INFO] | | +- io.netty:netty-handler:jar:4.1.25.Final:compile
[INFO] | | | +- io.netty:netty-buffer:jar:4.1.25.Final:compile
[INFO] | | | \- io.netty:netty-transport:jar:4.1.25.Final:compile
[INFO] | | | \- io.netty:netty-resolver:jar:4.1.25.Final:compile
[INFO] | | +- io.netty:netty-handler-proxy:jar:4.1.25.Final:compile
[INFO] | | | \- io.netty:netty-codec-socks:jar:4.1.25.Final:compile
[INFO] | | \- io.netty:netty-transport-native-epoll:jar:linux-x86_64:4.1.25.Final:compile
[INFO] | | +- io.netty:netty-common:jar:4.1.25.Final:compile
[INFO] | | \- io.netty:netty-transport-native-unix-common:jar:4.1.25.Final:compile
[INFO] | +- org.hibernate.validator:hibernate-validator:jar:6.0.10.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] | | \- com.fasterxml:classmate:jar:1.3.4:compile
[INFO] | +- org.springframework:spring-web:jar:5.1.6.RELEASE:compile
[INFO] | +- org.springframework:spring-webflux:jar:5.1.6.RELEASE:compile
[INFO] | \- org.synchronoss.cloud:nio-multipart-parser:jar:1.1.0:compile
[INFO] | \- org.synchronoss.cloud:nio-stream-storage:jar:1.1.3:compile
[INFO] +- com.alibaba.boot:nacos-config-spring-boot-starter:jar:0.2.1:compile
[INFO] | +- com.alibaba.nacos:nacos-spring-context:jar:0.2.3-RC1:compile
[INFO] | | +- com.alibaba.nacos:nacos-client:jar:1.0.0:compile
[INFO] | | | +- com.alibaba.nacos:nacos-common:jar:1.0.0:compile
[INFO] | | | | +- commons-io:commons-io:jar:2.6:compile
[INFO] | | | | \- org.apache.commons:commons-lang3:jar:3.7:compile
[INFO] | | | +- com.alibaba.nacos:nacos-api:jar:1.0.0:compile
[INFO] | | | | \- com.alibaba:fastjson:jar:1.2.47:compile
[INFO] | | | +- com.google.guava:guava:jar:23.0:compile
[INFO] | | | | +- com.google.code.findbugs:jsr305:jar:1.3.9: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] | | | +- commons-codec:commons-codec:jar:1.10:compile
[INFO] | | | +- com.fasterxml.jackson.core:jackson-core:jar:2.9.7:compile
[INFO] | | | \- io.prometheus:simpleclient:jar:0.5.0:compile
[INFO] | | \- com.alibaba.spring:spring-context-support:jar:1.0.1:compile
[INFO] | +- com.alibaba.boot:nacos-config-spring-boot-autoconfigure:jar:0.2.1:compile
[INFO] | \- com.alibaba.boot:nacos-spring-boot-base:jar:0.2.1:compile
[INFO] +- com.alibaba.boot:nacos-discovery-spring-boot-starter:jar:0.2.1:compile
[INFO] | \- com.alibaba.boot:nacos-discovery-spring-boot-autoconfigure:jar:0.2.1:compile
[INFO] \- org.springframework.cloud:spring-cloud-starter:jar:2.0.3.RELEASE:compile
[INFO] +- org.springframework.cloud:spring-cloud-context:jar:2.0.3.RELEASE:compile
[INFO] | \- org.springframework.security:spring-security-crypto:jar:5.0.6.RELEASE:compile
[INFO] +- org.springframework.cloud:spring-cloud-commons:jar:2.0.3.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] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
After read source code I found The org.springframework.web.reactive.socket.client.ReactorNettyWebSocketClient of org.springframework:spring-webflux:5.1.6.RELEASE is :
public class ReactorNettyWebSocketClient implements WebSocketClient {
private static final Log logger = LogFactory.getLog(ReactorNettyWebSocketClient.class);
private final HttpClient httpClient;
/**
* Default constructor.
*/
public ReactorNettyWebSocketClient() {
this(HttpClient.create());
}
/**
* Constructor that accepts an existing {#link HttpClient} builder.
* #since 5.1
*/
public ReactorNettyWebSocketClient(HttpClient httpClient) {
Assert.notNull(httpClient, "HttpClient is required");
this.httpClient = httpClient;
}
.....
}
It's second constructor above need a HttpClient object to instance, that mismatched with org/springframework/cloud/gateway/config/GatewayAutoConfiguration$NettyConfiguration.class.
#Bean
public ReactorNettyWebSocketClient reactorNettyWebSocketClient(#Qualifier("nettyClientOptions") Consumer<? super HttpClientOptions.Builder> options) {
return new ReactorNettyWebSocketClient(options);
}
This bug is documented on Github.
Here is one of the correct combinations of Versions that will work:
Parent:
<parent>
<groupSId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.2.X</version> // I tested on <version>2.2.1.RELEASE</version>
</parent>
Cloud Version:
<spring-cloud.version>Hoxton.RELEASE</spring-cloud.version>
This question has been asked many times but noone of the answers (that I found) seems to help.
So, I have a wildfly-server running locally and then run a maven-command. From the server logs it seems to deploy the war-files and it doesn't complain at all. In maven it seems to run the tests but all tests returns:
<<< ERROR! java.lang.NoClassDefFoundError: org.junit.runner.Runner
So, I look in the deployed war-file and there I find junit- and arquillian-files that contains org/junit/runner/Runner.class. So, that shouldn't cause the problem.
Next I run mvn dependency:tree to verify that the maven-command and the junit and arquallian dependencies are there too. I mess around with for those dependencies but doesn't get any changes.
The only way, that I found, to change the error has been to change the junit-version from 4.12 to 4.8 but I don't know if it is a step forward when it compains about another class (org.junit.rules.RunRules).
Relevant dependencies in pom-file:
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</dependency>
<dependency>
<groupId>org.jboss.arquillian.junit</groupId>
<artifactId>arquillian-junit-core</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.arquillian.junit</groupId>
<artifactId>arquillian-junit-container</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-arquillian-container-remote</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.shrinkwrap.resolver</groupId>
<artifactId>shrinkwrap-resolver-depchain</artifactId>
<type>pom</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.shrinkwrap.resolver</groupId>
<artifactId>shrinkwrap-resolver-impl-maven</artifactId>
<scope>test</scope>
</dependency>
Dump of the relevant files deployed to wildfly:
/WEB-INF/lib/querydsl-jpa-4.1.4.jar
/WEB-INF/lib/querydsl-core-4.1.4.jar
/WEB-INF/lib/guava-21.0.jar
/WEB-INF/lib/jsr305-3.0.1.jar
/WEB-INF/lib/mysema-commons-lang-0.2.4.jar
/WEB-INF/lib/bridge-method-annotation-1.14.jar
/WEB-INF/lib/slf4j-api-1.7.24.jar
/WEB-INF/lib/querydsl-sql-4.1.4.jar
/WEB-INF/lib/joda-time-2.9.7.jar
/WEB-INF/lib/validation-api-1.1.0.Final.jar
/WEB-INF/lib/org.apache.servicemix.bundles.javax-inject-1_2.jar
/WEB-INF/lib/log4j-api-2.8.1.jar
/WEB-INF/lib/log4j-core-2.8.1.jar
/WEB-INF/lib/disruptor-3.3.6.jar
/WEB-INF/lib/commons-collections4-4.1.jar
/WEB-INF/lib/logging-util-3.0.0.11-SNAPSHOT.jar
/WEB-INF/lib/arquillian-junit-container-1.1.13.Final.jar
/WEB-INF/lib/arquillian-junit-core-1.1.13.Final.jar
/WEB-INF/lib/arquillian-test-api-1.1.13.Final.jar
/WEB-INF/lib/arquillian-core-api-1.1.13.Final.jar
/WEB-INF/lib/arquillian-test-spi-1.1.13.Final.jar
/WEB-INF/lib/arquillian-core-spi-1.1.13.Final.jar
/WEB-INF/lib/arquillian-container-test-api-1.1.13.Final.jar
/WEB-INF/lib/shrinkwrap-api-1.2.6.jar
/WEB-INF/lib/arquillian-container-test-spi-1.1.13.Final.jar
/WEB-INF/lib/arquillian-container-spi-1.1.13.Final.jar
/WEB-INF/lib/shrinkwrap-descriptors-api-base-2.0.0-alpha-10.jar
/WEB-INF/lib/arquillian-core-impl-base-1.1.13.Final.jar
/WEB-INF/lib/arquillian-test-impl-base-1.1.13.Final.jar
/WEB-INF/lib/arquillian-container-impl-base-1.1.13.Final.jar
/WEB-INF/lib/arquillian-config-api-1.1.13.Final.jar
/WEB-INF/lib/arquillian-config-impl-base-1.1.13.Final.jar
/WEB-INF/lib/shrinkwrap-descriptors-spi-2.0.0-alpha-10.jar
/WEB-INF/lib/arquillian-container-test-impl-base-1.1.13.Final.jar
/WEB-INF/lib/shrinkwrap-impl-base-1.2.6.jar
/WEB-INF/lib/shrinkwrap-spi-1.2.6.jar
/WEB-INF/lib/junit-4.12.jar
Part of the mvn dependency:tree output
[INFO] +- org.jmockit:jmockit:jar:1.22:test
[INFO] +- junit:junit:jar:4.12:test
[INFO] | \- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] +- org.hamcrest:hamcrest-all:jar:1.3:test
[INFO] +- com.h2database:h2:jar:1.4.193:test
[INFO] +- com.openpojo:openpojo:jar:0.8.4:test
[INFO] +- org.hibernate:hibernate-validator:jar:5.1.3.Final:test
[INFO] | +- org.jboss.logging:jboss-logging:jar:3.3.0.Final:provided
[INFO] | \- com.fasterxml:classmate:jar:1.3.3:provided
[INFO] +- com.sun.el:el-ri:jar:1.0:test
[INFO] +- org.jboss.arquillian.junit:arquillian-junit-core:jar:1.1.13.Final:test
[INFO] | \- org.jboss.arquillian.test:arquillian-test-spi:jar:1.1.13.Final:test
[INFO] | \- org.jboss.arquillian.core:arquillian-core-spi:jar:1.1.13.Final:test
[INFO] +- org.jboss.arquillian.junit:arquillian-junit-container:jar:1.1.13.Final:test
[INFO] | +- org.jboss.arquillian.test:arquillian-test-api:jar:1.1.13.Final:test
[INFO] | +- org.jboss.arquillian.container:arquillian-container-test-api:jar:1.1.13.Final:test
[INFO] | | \- org.jboss.shrinkwrap:shrinkwrap-api:jar:1.2.6:test
[INFO] | +- org.jboss.arquillian.container:arquillian-container-test-spi:jar:1.1.13.Final:test
[INFO] | | \- org.jboss.arquillian.container:arquillian-container-spi:jar:1.1.13.Final:test
[INFO] | | \- org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-api-base:jar:2.0.0-alpha-10:test
[INFO] | +- org.jboss.arquillian.core:arquillian-core-impl-base:jar:1.1.13.Final:test
[INFO] | +- org.jboss.arquillian.test:arquillian-test-impl-base:jar:1.1.13.Final:test
[INFO] | +- org.jboss.arquillian.container:arquillian-container-impl-base:jar:1.1.13.Final:test
[INFO] | | +- org.jboss.arquillian.config:arquillian-config-api:jar:1.1.13.Final:test
[INFO] | | +- org.jboss.arquillian.config:arquillian-config-impl-base:jar:1.1.13.Final:test
[INFO] | | \- org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-spi:jar:2.0.0-alpha-10:test
[INFO] | +- org.jboss.arquillian.container:arquillian-container-test-impl-base:jar:1.1.13.Final:test
[INFO] | \- org.jboss.shrinkwrap:shrinkwrap-impl-base:jar:1.2.6:test
[INFO] | \- org.jboss.shrinkwrap:shrinkwrap-spi:jar:1.2.6:test
[INFO] +- org.wildfly:wildfly-arquillian-container-remote:jar:8.2.1.Final:test
[INFO] | +- org.wildfly:wildfly-arquillian-common:jar:8.2.1.Final:test
[INFO] | | +- org.jboss.arquillian.testenricher:arquillian-testenricher-cdi:jar:1.1.13.Final:test
[INFO] | | +- org.jboss.arquillian.testenricher:arquillian-testenricher-ejb:jar:1.1.13.Final:test
[INFO] | | +- org.jboss.arquillian.testenricher:arquillian-testenricher-initialcontext:jar:1.1.13.Final:test
[INFO] | | +- org.jboss.arquillian.testenricher:arquillian-testenricher-osgi:jar:2.1.0.CR2:test
[INFO] | | +- org.jboss.arquillian.testenricher:arquillian-testenricher-resource:jar:1.1.13.Final:test
[INFO] | | +- org.jboss.arquillian.protocol:arquillian-protocol-servlet:jar:1.1.13.Final:test
[INFO] | | +- org.wildfly:wildfly-arquillian-testenricher-msc:jar:8.2.1.Final:test
[INFO] | | | +- org.wildfly:wildfly-server:jar:8.2.1.Final:test
[INFO] | | | | +- org.wildfly:wildfly-controller:jar:8.2.1.Final:test
[INFO] | | | | | +- org.wildfly:wildfly-core-security:jar:8.2.1.Final:test
[INFO] | | | | | | \- org.wildfly:wildfly-core-security-api:jar:8.2.1.Final:test
[INFO] | | | | | \- org.jboss:staxmapper:jar:1.1.0.Final:test
[INFO] | | | | +- org.wildfly:wildfly-domain-http-interface:jar:8.2.1.Final:test
[INFO] | | | | | \- org.wildfly:wildfly-domain-management:jar:8.2.1.Final:test
[INFO] | | | | +- org.wildfly:wildfly-deployment-repository:jar:8.2.1.Final:test
[INFO] | | | | +- org.wildfly:wildfly-patching:jar:8.2.1.Final:test
[INFO] | | | | | \- org.wildfly:wildfly-cli:jar:8.2.1.Final:test
[INFO] | | | | | +- org.jboss.aesh:aesh:jar:0.33.11:test
[INFO] | | | | | | \- org.fusesource.jansi:jansi:jar:1.9:test
[INFO] | | | | | \- sun.jdk:jconsole:jar:jdk:system
[INFO] | | | | +- org.wildfly:wildfly-platform-mbean:jar:8.2.1.Final:test
[INFO] | | | | +- org.wildfly:wildfly-process-controller:jar:8.2.1.Final:test
[INFO] | | | | +- org.wildfly:wildfly-remoting:jar:8.2.1.Final:test
[INFO] | | | | | \- org.wildfly:wildfly-io:jar:8.2.1.Final:test
[INFO] | | | | +- org.wildfly:wildfly-network:jar:8.2.1.Final:test
[INFO] | | | | +- org.wildfly:wildfly-version:jar:8.2.1.Final:test
[INFO] | | | | +- org.jboss:jandex:jar:1.2.1.Final:test
[INFO] | | | | +- org.jboss.invocation:jboss-invocation:jar:1.2.1.Final:test
[INFO] | | | | +- org.jboss.logmanager:jboss-logmanager:jar:1.5.2.Final:test
[INFO] | | | | +- org.jboss.modules:jboss-modules:jar:1.3.3.Final:test
[INFO] | | | | +- org.jboss.stdio:jboss-stdio:jar:1.0.2.GA:test
[INFO] | | | | +- org.jboss:jboss-vfs:jar:3.2.5.Final:test
[INFO] | | | | \- io.undertow:undertow-core:jar:1.1.8.Final:test
[INFO] | | | +- javax.inject:javax.inject:jar:1:provided
[INFO] | | | \- org.jboss.msc:jboss-msc:jar:1.2.2.Final:test
[INFO] | | +- org.wildfly:wildfly-controller-client:jar:8.2.1.Final:test
[INFO] | | | +- org.wildfly:wildfly-protocol:jar:8.2.1.Final:test
[INFO] | | | +- org.jboss:jboss-dmr:jar:1.2.0.Final:test
[INFO] | | | \- org.jboss.threads:jboss-threads:jar:2.1.1.Final:test
[INFO] | | +- org.wildfly:wildfly-jmx:jar:8.2.1.Final:test
[INFO] | | | \- org.jboss:jboss-common-core:jar:2.2.22.GA:test
[INFO] | | +- org.jboss.remotingjmx:remoting-jmx:jar:2.0.0.Final:test
[INFO] | | | +- org.jboss.remoting:jboss-remoting:jar:4.0.0.Beta3:test
[INFO] | | | +- org.jboss.xnio:xnio-api:jar:3.2.0.Beta4:test
[INFO] | | | \- org.jboss.xnio:xnio-nio:jar:3.2.0.Beta4:test
[INFO] | | +- org.jboss.sasl:jboss-sasl:jar:1.0.4.Final:test
[INFO] | | \- org.osgi:org.osgi.core:jar:5.0.0:test
[INFO] | +- org.wildfly:wildfly-arquillian-protocol-jmx:jar:8.2.1.Final:test
[INFO] | | +- org.wildfly.security:wildfly-security-manager:jar:1.0.0.Final:test
[INFO] | | +- org.jboss.arquillian.protocol:arquillian-protocol-jmx:jar:1.1.13.Final:test
[INFO] | | \- org.jboss.osgi.metadata:jbosgi-metadata:jar:3.0.1.Final:test
[INFO] | +- org.jboss.marshalling:jboss-marshalling-river:jar:1.4.9.Final:test
[INFO] | | \- org.jboss.marshalling:jboss-marshalling:jar:1.4.9.Final:test
[INFO] | +- org.jboss.arquillian.core:arquillian-core-api:jar:1.1.13.Final:test
[INFO] | \- org.wildfly:wildfly-build-config:jar:8.2.1.Final:test
[INFO] +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-depchain:pom:2.2.4:test
[INFO] | +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-api:jar:2.2.4:test
[INFO] | +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-spi:jar:2.2.4:test
[INFO] | +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-api-maven:jar:2.2.4:test
[INFO] | +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-spi-maven:jar:2.2.4:test
[INFO] | +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-api-maven-archive:jar:2.2.4:test
[INFO] | \- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-impl-maven-archive:jar:2.2.4:test
[INFO] | +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-spi-maven-archive:jar:2.2.4:test
[INFO] | +- org.eclipse.sisu:org.eclipse.sisu.plexus:jar:0.3.0.M1:test
[INFO] | | +- javax.enterprise:cdi-api:jar:1.0:test
[INFO] | | | \- javax.annotation:jsr250-api:jar:1.0:test
[INFO] | | \- org.eclipse.sisu:org.eclipse.sisu.inject:jar:0.3.0.M1:test
[INFO] | \- org.codehaus.plexus:plexus-compiler-javac:jar:2.3:test
[INFO] | \- org.codehaus.plexus:plexus-compiler-api:jar:2.3:test
[INFO] +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-impl-maven:jar:2.2.4:test
[INFO] | +- org.eclipse.aether:aether-api:jar:1.0.0.v20140518:test
[INFO] | +- org.eclipse.aether:aether-impl:jar:1.0.0.v20140518:test
[INFO] | +- org.eclipse.aether:aether-spi:jar:1.0.0.v20140518:test
[INFO] | +- org.eclipse.aether:aether-util:jar:1.0.0.v20140518:test
[INFO] | +- org.eclipse.aether:aether-connector-basic:jar:1.0.0.v20140518:test
[INFO] | +- org.eclipse.aether:aether-transport-wagon:jar:1.0.0.v20140518:test
[INFO] | +- org.apache.maven:maven-aether-provider:jar:3.2.5:test
[INFO] | +- org.apache.maven:maven-model:jar:3.2.5:test
[INFO] | +- org.apache.maven:maven-model-builder:jar:3.2.5:test
[INFO] | | \- org.codehaus.plexus:plexus-component-annotations:jar:1.5.5:test
[INFO] | +- org.apache.maven:maven-repository-metadata:jar:3.2.5:test
[INFO] | +- org.apache.maven:maven-settings:jar:3.2.5:test
[INFO] | +- org.apache.maven:maven-settings-builder:jar:3.2.5:test
[INFO] | +- org.codehaus.plexus:plexus-interpolation:jar:1.21:test
[INFO] | +- org.codehaus.plexus:plexus-utils:jar:3.0.20:test
[INFO] | +- org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3:test
[INFO] | | \- org.sonatype.plexus:plexus-cipher:jar:1.4:test
[INFO] | +- org.apache.maven.wagon:wagon-provider-api:jar:2.6:test
[INFO] | +- org.apache.maven.wagon:wagon-file:jar:2.6:test
[INFO] | \- org.apache.maven.wagon:wagon-http-lightweight:jar:2.6:test
[INFO] | \- org.apache.maven.wagon:wagon-http-shared:jar:2.6:test
[INFO] | +- org.jsoup:jsoup:jar:1.7.2:test
[INFO] | \- commons-io:commons-io:jar:2.5:provided
This is somewhat caused by the tomcat-embed-core version 8.5.4 that comes with the spring-boot-starter-jersey. It generates an error shown below on all integration tests. It will only work if I override the pom to use tomcat-embed-core version 8.0.36. What's weird is, that's the only error message I get.
java.lang.NullPointerException: null
at org.apache.catalina.authenticator.AuthenticatorBase.getJaspicProvider(AuthenticatorBase.java:1140)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:431)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:1110)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:785)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1425)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Here's my dependecy tree:
[INFO] --- maven-dependency-plugin:2.10:tree (default-cli) # sample-services ---
[INFO] com.sample:sample-services:jar:1.0.0-SNAPSHOT
[INFO] +- com.sample:sample-customer:jar:1.0.0-SNAPSHOT:compile
[INFO] | +- com.sample:sample-core:jar:1.0.0-SNAPSHOT:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-data-jpa:jar:1.4.0.RELEASE:compile
[INFO] | | | +- org.springframework.boot:spring-boot-starter-aop:jar:1.4.0.RELEASE:compile
[INFO] | | | | \- org.aspectj:aspectjweaver:jar:1.8.9:compile
[INFO] | | | +- org.springframework.boot:spring-boot-starter-jdbc:jar:1.4.0.RELEASE:compile
[INFO] | | | | +- org.apache.tomcat:tomcat-jdbc:jar:8.5.4:compile
[INFO] | | | | | \- org.apache.tomcat:tomcat-juli:jar:8.5.4:compile
[INFO] | | | | \- org.springframework:spring-jdbc:jar:4.3.2.RELEASE:compile
[INFO] | | | +- org.hibernate:hibernate-core:jar:5.0.9.Final:compile
[INFO] | | | | +- org.hibernate.javax.persistence:hibernate-jpa-2.1-api:jar:1.0.0.Final:compile
[INFO] | | | | +- antlr:antlr:jar:2.7.7:compile
[INFO] | | | | +- org.jboss:jandex:jar:2.0.0.Final:compile
[INFO] | | | | +- dom4j:dom4j:jar:1.6.1:compile
[INFO] | | | | | \- xml-apis:xml-apis:jar:1.4.01:compile
[INFO] | | | | \- org.hibernate.common:hibernate-commons-annotations:jar:5.0.1.Final:compile
[INFO] | | | +- org.hibernate:hibernate-entitymanager:jar:5.0.9.Final:compile
[INFO] | | | +- javax.transaction:javax.transaction-api:jar:1.2:compile
[INFO] | | | +- org.springframework.data:spring-data-jpa:jar:1.10.2.RELEASE:compile
[INFO] | | | | \- org.springframework:spring-orm:jar:4.3.2.RELEASE:compile
[INFO] | | | \- org.springframework:spring-aspects:jar:4.3.2.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-logging:jar:1.4.0.RELEASE:compile
[INFO] | | | +- ch.qos.logback:logback-classic:jar:1.1.7:compile
[INFO] | | | | \- ch.qos.logback:logback-core:jar:1.1.7:compile
[INFO] | | | +- org.slf4j:jcl-over-slf4j:jar:1.7.21:compile
[INFO] | | | +- org.slf4j:jul-to-slf4j:jar:1.7.21:compile
[INFO] | | | \- org.slf4j:log4j-over-slf4j:jar:1.7.21:compile
[INFO] | | +- commons-collections:commons-collections:jar:3.2.2:compile
[INFO] | | +- com.h2database:h2:jar:1.4.192:compile
[INFO] | | +- org.postgresql:postgresql:jar:9.4.1209.jre7:compile
[INFO] | | +- javax:javaee-api:jar:7.0:compile
[INFO] | | | \- com.sun.mail:javax.mail:jar:1.5.5:compile
[INFO] | | | \- javax.activation:activation:jar:1.1:compile
[INFO] | | +- org.apache.commons:commons-lang3:jar:3.4:compile
[INFO] | | +- commons-codec:commons-codec:jar:1.10:compile
[INFO] | | +- org.apache.httpcomponents:httpcore:jar:4.4.5:compile
[INFO] | | +- org.joda:joda-money:jar:0.10.0:compile
[INFO] | | \- com.sun.jna:jna:jar:3.0.9:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-data-elasticsearch:jar:1.4.0.RELEASE:compile
[INFO] | | \- org.springframework.data:spring-data-elasticsearch:jar:2.0.2.RELEASE:compile
[INFO] | | +- org.springframework:spring-tx:jar:4.3.2.RELEASE:compile
[INFO] | | +- org.springframework.data:spring-data-commons:jar:1.12.2.RELEASE:compile
[INFO] | | +- commons-lang:commons-lang:jar:2.6:compile
[INFO] | | \- org.elasticsearch:elasticsearch:jar:2.3.4:compile
[INFO] | | +- org.apache.lucene:lucene-core:jar:5.5.0:compile
[INFO] | | +- org.apache.lucene:lucene-backward-codecs:jar:5.5.0:compile
[INFO] | | +- org.apache.lucene:lucene-analyzers-common:jar:5.5.0:compile
[INFO] | | +- org.apache.lucene:lucene-queries:jar:5.5.0:compile
[INFO] | | +- org.apache.lucene:lucene-memory:jar:5.5.0:compile
[INFO] | | +- org.apache.lucene:lucene-highlighter:jar:5.5.0:compile
[INFO] | | +- org.apache.lucene:lucene-queryparser:jar:5.5.0:compile
[INFO] | | | \- org.apache.lucene:lucene-sandbox:jar:5.5.0:compile
[INFO] | | +- org.apache.lucene:lucene-suggest:jar:5.5.0:compile
[INFO] | | | \- org.apache.lucene:lucene-misc:jar:5.5.0:compile
[INFO] | | +- org.apache.lucene:lucene-join:jar:5.5.0:compile
[INFO] | | | \- org.apache.lucene:lucene-grouping:jar:5.5.0:compile
[INFO] | | +- org.apache.lucene:lucene-spatial:jar:5.5.0:compile
[INFO] | | | +- org.apache.lucene:lucene-spatial3d:jar:5.5.0:compile
[INFO] | | | \- com.spatial4j:spatial4j:jar:0.5:compile
[INFO] | | +- org.elasticsearch:securesm:jar:1.0:compile
[INFO] | | +- com.carrotsearch:hppc:jar:0.7.1:compile
[INFO] | | +- org.joda:joda-convert:jar:1.2:compile
[INFO] | | +- com.fasterxml.jackson.dataformat:jackson-dataformat-smile:jar:2.8.1:compile
[INFO] | | +- com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:jar:2.8.1:compile
[INFO] | | +- io.netty:netty:jar:3.10.5.Final:compile
[INFO] | | +- com.ning:compress-lzf:jar:1.0.2:compile
[INFO] | | +- com.tdunning:t-digest:jar:3.0:compile
[INFO] | | +- org.hdrhistogram:HdrHistogram:jar:2.1.6:compile
[INFO] | | +- commons-cli:commons-cli:jar:1.3.1:compile
[INFO] | | \- com.twitter:jsr166e:jar:1.1.0:compile
[INFO] | +- com.google.guava:guava:jar:19.0:compile
[INFO] | +- org.apache.httpcomponents:httpclient:jar:4.5.2:compile
[INFO] | +- commons-httpclient:commons-httpclient:jar:3.1:compile
[INFO] | +- commons-io:commons-io:jar:2.5:compile
[INFO] | +- net.sf.uadetector:uadetector-core:jar:0.9.22:compile
[INFO] | | +- net.sf.qualitycheck:quality-check:jar:1.3:compile
[INFO] | | +- com.google.code.findbugs:jsr305:jar:2.0.3:compile
[INFO] | | \- javax.annotation:jsr250-api:jar:1.0:compile
[INFO] | +- net.sf.uadetector:uadetector-resources:jar:2014.10:compile
[INFO] | \- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.8.1:compile
[INFO] +- com.sample:sample-messaging:jar:1.0.0-SNAPSHOT:compile
[INFO] | +- com.amazonaws:aws-java-sdk-sns:jar:1.11.24:compile
[INFO] | \- com.amazonaws:aws-java-sdk-sqs:jar:1.11.24:compile
[INFO] +- org.springframework.boot:spring-boot-starter-jersey:jar:1.4.0.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter:jar:1.4.0.RELEASE:compile
[INFO] | | \- org.yaml:snakeyaml:jar:1.17:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-tomcat:jar:1.4.0.RELEASE:compile
[INFO] | | +- org.apache.tomcat.embed:tomcat-embed-core:jar:8.5.4:compile
[INFO] | | +- org.apache.tomcat.embed:tomcat-embed-el:jar:8.5.4:compile
[INFO] | | \- org.apache.tomcat.embed:tomcat-embed-websocket:jar:8.5.4:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-validation:jar:1.4.0.RELEASE:compile
[INFO] | +- org.springframework:spring-web:jar:4.3.2.RELEASE:compile
[INFO] | | +- org.springframework:spring-aop:jar:4.3.2.RELEASE:compile
[INFO] | | +- org.springframework:spring-beans:jar:4.3.2.RELEASE:compile
[INFO] | | \- org.springframework:spring-context:jar:4.3.2.RELEASE:compile
[INFO] | +- org.glassfish.jersey.core:jersey-server:jar:2.23.1:compile
[INFO] | | +- org.glassfish.jersey.core:jersey-client:jar:2.23.1:compile
[INFO] | | +- org.glassfish.jersey.media:jersey-media-jaxb:jar:2.23.1:compile
[INFO] | | +- javax.annotation:javax.annotation-api:jar:1.2:compile
[INFO] | | +- org.glassfish.hk2:hk2-api:jar:2.4.0-b34:compile
[INFO] | | | +- org.glassfish.hk2:hk2-utils:jar:2.4.0-b34:compile
[INFO] | | | \- org.glassfish.hk2.external:aopalliance-repackaged:jar:2.4.0-b34:compile
[INFO] | | \- org.glassfish.hk2:hk2-locator:jar:2.4.0-b34:compile
[INFO] | | \- org.javassist:javassist:jar:3.20.0-GA:compile
[INFO] | +- org.glassfish.jersey.containers:jersey-container-servlet-core:jar:2.23.1:compile
[INFO] | +- org.glassfish.jersey.containers:jersey-container-servlet:jar:2.23.1:compile
[INFO] | +- org.glassfish.jersey.ext:jersey-spring3:jar:2.23.1:compile
[INFO] | | +- org.glassfish.hk2:hk2:jar:2.4.0-b34:compile
[INFO] | | | +- org.glassfish.hk2:config-types:jar:2.4.0-b34:compile
[INFO] | | | +- org.glassfish.hk2:hk2-core:jar:2.4.0-b34:compile
[INFO] | | | +- org.glassfish.hk2:hk2-config:jar:2.4.0-b34:compile
[INFO] | | | +- org.glassfish.hk2:hk2-runlevel:jar:2.4.0-b34:compile
[INFO] | | | \- org.glassfish.hk2:class-model:jar:2.4.0-b34:compile
[INFO] | | | \- org.glassfish.hk2.external:asm-all-repackaged:jar:2.4.0-b34:compile
[INFO] | | \- org.glassfish.hk2:spring-bridge:jar:2.4.0-b34:compile
[INFO] | \- org.glassfish.jersey.media:jersey-media-json-jackson:jar:2.23.1:compile
[INFO] | +- org.glassfish.jersey.ext:jersey-entity-filtering:jar:2.23.1:compile
[INFO] | +- com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:jar:2.8.1:compile
[INFO] | \- com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:jar:2.8.1:compile
[INFO] | \- com.fasterxml.jackson.module:jackson-module-jaxb-annotations:jar:2.8.1:compile
[INFO] +- com.fasterxml.jackson.core:jackson-databind:jar:2.8.1:compile
[INFO] | \- com.fasterxml.jackson.core:jackson-core:jar:2.8.1:compile
[INFO] +- com.fasterxml.jackson.core:jackson-annotations:jar:2.8.1:compile
[INFO] +- org.springframework.boot:spring-boot-starter-web:jar:1.4.0.RELEASE:compile
[INFO] | +- org.hibernate:hibernate-validator:jar:5.2.4.Final:compile
[INFO] | | +- org.jboss.logging:jboss-logging:jar:3.3.0.Final:compile
[INFO] | | \- com.fasterxml:classmate:jar:1.3.1:compile
[INFO] | \- org.springframework:spring-webmvc:jar:4.3.2.RELEASE:compile
[INFO] | \- org.springframework:spring-expression:jar:4.3.2.RELEASE:compile
[INFO] +- com.amazonaws:aws-java-sdk-s3:jar:1.11.24:compile
[INFO] | +- com.amazonaws:aws-java-sdk-kms:jar:1.11.24:compile
[INFO] | \- com.amazonaws:aws-java-sdk-core:jar:1.11.24:compile
[INFO] | +- commons-logging:commons-logging:jar:1.1.3:compile
[INFO] | +- com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:jar:2.8.1:compile
[INFO] | \- joda-time:joda-time:jar:2.9.4:compile
[INFO] +- com.wordnik:swagger-jersey2-jaxrs_2.10:jar:1.3.13:compile
[INFO] | +- com.wordnik:swagger-jaxrs_2.10:jar:1.3.13:compile
[INFO] | | +- com.wordnik:swagger-core_2.10:jar:1.3.13:compile
[INFO] | | | +- com.fasterxml.jackson.module:jackson-module-scala_2.10:jar:2.4.1:compile
[INFO] | | | | \- com.thoughtworks.paranamer:paranamer:jar:2.6:compile
[INFO] | | | +- com.fasterxml.jackson.module:jackson-module-jsonSchema:jar:2.4.1:compile
[INFO] | | | +- com.wordnik:swagger-annotations:jar:1.3.13:compile
[INFO] | | | +- org.json4s:json4s-ext_2.10:jar:3.2.11:compile
[INFO] | | | +- org.json4s:json4s-native_2.10:jar:3.2.11:compile
[INFO] | | | | \- org.json4s:json4s-core_2.10:jar:3.2.11:compile
[INFO] | | | | +- org.json4s:json4s-ast_2.10:jar:3.2.11:compile
[INFO] | | | | \- org.scala-lang:scalap:jar:2.10.0:compile
[INFO] | | | | \- org.scala-lang:scala-compiler:jar:2.10.0:compile
[INFO] | | | \- org.json4s:json4s-jackson_2.10:jar:3.2.11:compile
[INFO] | | \- org.reflections:reflections:jar:0.9.9:compile
[INFO] | | \- com.google.code.findbugs:annotations:jar:2.0.1:compile
[INFO] | \- org.glassfish.jersey.media:jersey-media-multipart:jar:2.1:compile
[INFO] | \- org.jvnet.mimepull:mimepull:jar:1.8:compile
[INFO] +- org.glassfish.jersey.ext:jersey-bean-validation:jar:2.23.1:compile
[INFO] | +- org.glassfish.hk2.external:javax.inject:jar:2.4.0-b34:compile
[INFO] | +- org.glassfish.jersey.core:jersey-common:jar:2.23.1:compile
[INFO] | | +- org.glassfish.jersey.bundles.repackaged:jersey-guava:jar:2.23.1:compile
[INFO] | | \- org.glassfish.hk2:osgi-resource-locator:jar:1.0.1:compile
[INFO] | +- javax.validation:validation-api:jar:1.1.0.Final:compile
[INFO] | +- javax.el:javax.el-api:jar:2.2.4:compile
[INFO] | +- org.glassfish.web:javax.el:jar:2.2.4:compile
[INFO] | \- javax.ws.rs:javax.ws.rs-api:jar:2.0.1:compile
[INFO] +- com.jayway.restassured:rest-assured:jar:2.9.0:test
[INFO] | +- org.codehaus.groovy:groovy:jar:2.4.7:test
[INFO] | +- org.codehaus.groovy:groovy-xml:jar:2.4.7:test
[INFO] | +- org.apache.httpcomponents:httpmime:jar:4.5.2:test
[INFO] | +- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] | +- org.hamcrest:hamcrest-library:jar:1.3:test
[INFO] | +- org.ccil.cowan.tagsoup:tagsoup:jar:1.2.1:test
[INFO] | +- com.jayway.restassured:json-path:jar:2.9.0:test
[INFO] | | +- org.codehaus.groovy:groovy-json:jar:2.4.7:test
[INFO] | | \- com.jayway.restassured:rest-assured-common:jar:2.9.0:test
[INFO] | \- com.jayway.restassured:xml-path:jar:2.9.0:test
[INFO] +- com.jayway.jsonpath:json-path:jar:2.2.0:compile
[INFO] | +- net.minidev:json-smart:jar:2.2.1:compile
[INFO] | | \- net.minidev:accessors-smart:jar:1.1:compile
[INFO] | | \- org.ow2.asm:asm:jar:5.0.3:compile
[INFO] | \- org.slf4j:slf4j-api:jar:1.7.21:compile
[INFO] +- org.springframework.boot:spring-boot-starter-test:jar:1.4.0.RELEASE:test
[INFO] | +- org.springframework.boot:spring-boot-test:jar:1.4.0.RELEASE:test
[INFO] | +- org.springframework.boot:spring-boot-test-autoconfigure:jar:1.4.0.RELEASE:test
[INFO] | +- junit:junit:jar:4.12:test
[INFO] | +- org.mockito:mockito-core:jar:1.10.19:test
[INFO] | | \- org.objenesis:objenesis:jar:2.1:test
[INFO] | +- org.skyscreamer:jsonassert:jar:1.3.0:test
[INFO] | +- org.springframework:spring-core:jar:4.3.2.RELEASE:compile
[INFO] | \- org.springframework:spring-test:jar:4.3.2.RELEASE:test
[INFO] +- org.assertj:assertj-core:jar:3.2.0:compile
[INFO] +- org.springframework.boot:spring-boot-configuration-processor:jar:1.4.0.RELEASE:compile
[INFO] | \- org.json:json:jar:20140107:compile
[INFO] +- org.neo4j:neo4j-cypher-compiler-2.2:jar:2.2.5:compile
[INFO] | +- org.scala-lang:scala-library:jar:2.10.5:compile
[INFO] | +- org.scala-lang:scala-reflect:jar:2.10.5:compile
[INFO] | +- org.parboiled:parboiled-scala_2.10:jar:1.1.7:compile
[INFO] | | \- org.parboiled:parboiled-core:jar:1.1.7:compile
[INFO] | \- com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:jar:1.4:compile
[INFO] \- org.springframework.boot:spring-boot-devtools:jar:1.4.0.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot:jar:1.4.0.RELEASE:compile
[INFO] \- org.springframework.boot:spring-boot-autoconfigure:jar:1.4.0.RELEASE:compile
And here's my Application class:
#EntityScan(basePackageClasses = { Application.class, Jsr310JpaConverters.class })
#EnableScheduling
#EnableAsync
#SpringBootApplication(scanBasePackages = "com.sample")
public class Application extends Loggable implements AsyncConfigurer {
/**
* This forces the SNS topics to be created and/or linked.
*/
#Autowired
#SuppressWarnings("all")
private TopicFactory topicFactory;
/**
* It all begins here.
*/
public static void main(String[] args) throws Exception {
SpringApplication application = new SpringApplication(Application.class);
application.setBanner(new SampleBanner());
application.run(args);
}
/**
* Returns the #Async executor.
*/
#Override
public Executor getAsyncExecutor() {
ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
executor.setCorePoolSize(4);
executor.setMaxPoolSize(4);
executor.setQueueCapacity(0);
executor.setThreadNamePrefix("Async-");
executor.initialize();
return executor;
}
/**
* Returns the uncaught exception handler for #Async operations.
*/
#Override
public AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler() {
return (e, method, params) -> log.error("Uncaught async error", e);
}
}
If someone could point me out where to start or what's causing it to fail, it would be of great help.
Possible fixes:
1) Set authConfigFactory to default AuthConfigFactory implementation used by Tomcat 8.5 (example basic implementation):
package com.example;
import org.apache.catalina.authenticator.jaspic.AuthConfigFactoryImpl;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import javax.security.auth.message.config.AuthConfigFactory;
#SpringBootApplication
public class DemoApplication {
public static void main(String[] args) {
if (AuthConfigFactory.getFactory() == null) {
AuthConfigFactory.setFactory(new AuthConfigFactoryImpl());
}
SpringApplication.run(DemoApplication.class, args);
}
}
or
2) Remove duplicated AuthConfigFactory class from your classpath. In my case there were two different implementations of the same class:
org.apache.tomcat.embed/tomcat-embed-core/8.5.4/tomcat-embed-core-8.5.4.jar!/javax/security/auth/message/config/AuthConfigFactory.class
javax/javaee-api/7.0/javaee-api-7.0.jar!/javax/security/auth/message/config/AuthConfigFactory.class
javaee-api-7.0.jar has it's own AuthConfigFactory implementation which is not fully compatible with Tomcat 8.5 and causes that NullPointerException (in Tomcat's version there is constant which defines default jaspic implementation class)
Remove javaee-api dependency (or any other which contains different AuthConfigFactory implementation) from your gradle/mvn project (if you can)
or
3) Downgrade Tomcat to 8.0 or 7.0:
http://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle/#howto-use-tomcat-7
Explanation:
The problem is related with Tomcat upgrade (from 8.0.x to 8.5.x) which has been made during Spring Boot upgrade from 1.3.x to 1.4.
The problem is that Tomcat 8.5 introduces jaspic support (https://tomcat.apache.org/tomcat-8.5-doc/config/jaspic.html) and provides it's own implementation of AuthConfigFactory. This implementation defines default jaspic auth factory implementation:
private static final String DEFAULT_JASPI_AUTHCONFIGFACTORYIMPL =
"org.apache.catalina.authenticator.jaspic.AuthConfigFactoryImpl";
which is not defined in other implementations (e.g. that one from javaee-api-7.0) and causes NullPointerException because no AuthConfigFactory were instantiated.