java.lang.VerifyError : AbstractEpollUnsafe exception on Vertx, Dse application - maven

I am trying to run an application which uses Datastax library for DSE-graph
Project pom.xml
<dependency>
<groupId>com.datastax.cassandra</groupId>
<artifactId>dse-driver</artifactId>
<version>1.1.1-beta1</version>
</dependency>
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-core</artifactId>
<version>2.1.5</version>
</dependency>
<!-- https://mvnrepository.com/artifact/io.vertx/vertx-hazelcast -->
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-hazelcast</artifactId>
<version>2.1.5</version>
</dependency>
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-platform</artifactId>
<version>2.1.5</version>
<scope>provided</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/redis.clients/jedis -->
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<version>2.9.0</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/org.json/json -->
<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<version>20160810</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.5.0</version>
<configuration>
<mainClass>my.app.Server</mainClass>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<compilerArgument>-Xlint:all</compilerArgument>
<showWarnings>true</showWarnings>
<showDeprecation>true</showDeprecation>
</configuration>
</plugin>
</plugins>
</build>
When I am running this application on windows using mvn exec:java its running fine. But When I am running this application on Ubantu I am getting this below error.
java.lang.VerifyError: class io.netty.channel.epoll.AbstractEpollChannel$AbstractEpollUnsafe overrides final method beginRead.()V
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at com.datastax.driver.core.NettyUtil.<clinit>(NettyUtil.java:96)
at com.datastax.driver.core.NettyOptions.eventLoopGroup(NettyOptions.java:99)
at com.datastax.driver.core.Connection$Factory.<init>(Connection.java:769)
at com.datastax.driver.core.Cluster$Manager.init(Cluster.java:1400)
at com.datastax.driver.core.Cluster.init(Cluster.java:159)
at com.datastax.driver.core.Cluster.connectAsync(Cluster.java:330)
at com.datastax.driver.core.Cluster.connectAsync(Cluster.java:305)
at com.datastax.driver.core.Cluster.connect(Cluster.java:247)
at com.datastax.driver.core.DelegatingCluster.connect(DelegatingCluster.java:71)
at com.datastax.driver.dse.DseCluster.connect(DseCluster.java:351)
at my.app.datasource.db.DataSource.getSessionInstance(DataSource.java:73)
at my.app.services.VertexService.getVertexByName(VertexService.java:59)
at my.app.services.VertexService.getVertexIdByName(VertexService.java:77)
at my.app.api.eventdetails.EventDetailsRequestHandler$2.handle(EventDetailsRequestHandler.java:52)
at org.vertx.java.core.VoidHandler.handle(VoidHandler.java:27)
at org.vertx.java.core.VoidHandler.handle(VoidHandler.java:24)
at org.vertx.java.core.http.impl.DefaultHttpServerRequest.handleEnd(DefaultHttpServerRequest.java:314)
at org.vertx.java.core.http.impl.ServerConnection.handleEnd(ServerConnection.java:209)
at org.vertx.java.core.http.impl.ServerConnection.processMessage(ServerConnection.java:313)
at org.vertx.java.core.http.impl.ServerConnection.handleMessage(ServerConnection.java:94)
at org.vertx.java.core.http.impl.DefaultHttpServer$ServerHandler.doMessageReceived(DefaultHttpServer.java:710)
at org.vertx.java.core.http.impl.DefaultHttpServer$ServerHandler.doMessageReceived(DefaultHttpServer.java:600)
at org.vertx.java.core.http.impl.VertxHttpHandler.channelRead(VertxHttpHandler.java:72)
at org.vertx.java.core.net.impl.VertxHandler.channelRead(VertxHandler.java:155)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:342)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:328)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:321)
at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:267)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:342)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:328)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:321)
at org.vertx.java.core.http.impl.cgbystrom.FlashPolicyHandler.channelRead(FlashPolicyHandler.java:53)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:342)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:328)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:321)
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1280)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:342)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:328)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:890)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:564)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:505)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:419)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:391)
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)
at java.lang.Thread.run(Thread.java:745)
EDIT 1 : added mvn dependency:tree
[dependency:tree {execution: default-cli}]
[INFO] my.app:app1:jar:0.0.1-SNAPSHOT
[INFO] +- com.datastax.cassandra:java-dse-graph:jar:1.0.0-beta1:compile
[INFO] | +- com.datastax.cassandra:dse-driver:jar:1.1.1-beta1:compile
[INFO] | | +- com.datastax.cassandra:cassandra-driver-core:jar:3.1.2:compile
[INFO] | | | +- io.netty:netty-handler:jar:4.0.37.Final:compile
[INFO] | | | | +- io.netty:netty-buffer:jar:4.0.37.Final:compile
[INFO] | | | | | \- io.netty:netty-common:jar:4.0.37.Final:compile
[INFO] | | | | +- io.netty:netty-transport:jar:4.0.37.Final:compile
[INFO] | | | | \- io.netty:netty-codec:jar:4.0.37.Final:compile
[INFO] | | | +- io.dropwizard.metrics:metrics-core:jar:3.1.2:compile
[INFO] | | | +- com.github.jnr:jnr-ffi:jar:2.0.7:compile
[INFO] | | | | +- com.github.jnr:jffi:jar:1.2.10:compile
[INFO] | | | | +- com.github.jnr:jffi:jar:native:1.2.10:runtime
[INFO] | | | | +- org.ow2.asm:asm:jar:5.0.3:compile
[INFO] | | | | +- org.ow2.asm:asm-commons:jar:5.0.3:compile
[INFO] | | | | +- org.ow2.asm:asm-analysis:jar:5.0.3:compile
[INFO] | | | | +- org.ow2.asm:asm-tree:jar:5.0.3:compile
[INFO] | | | | +- org.ow2.asm:asm-util:jar:5.0.3:compile
[INFO] | | | | \- com.github.jnr:jnr-x86asm:jar:1.0.2:compile
[INFO] | | | \- com.github.jnr:jnr-posix:jar:3.0.27:compile
[INFO] | | | \- com.github.jnr:jnr-constants:jar:0.9.0:compile
[INFO] | | \- com.google.guava:guava:jar:16.0.1:compile
[INFO] | +- org.apache.tinkerpop:gremlin-groovy:jar:3.2.3:compile
[INFO] | | +- org.apache.tinkerpop:gremlin-core:jar:3.2.3:compile
[INFO] | | | +- org.apache.tinkerpop:gremlin-shaded:jar:3.2.3:compile
[INFO] | | | +- commons-configuration:commons-configuration:jar:1.10:compile
[INFO] | | | | \- commons-lang:commons-lang:jar:2.6:compile
[INFO] | | | +- org.yaml:snakeyaml:jar:1.15:compile
[INFO] | | | +- org.javatuples:javatuples:jar:1.2:compile
[INFO] | | | +- com.carrotsearch:hppc:jar:0.7.1:compile
[INFO] | | | +- com.jcabi:jcabi-manifests:jar:1.1:compile
[INFO] | | | | \- com.jcabi:jcabi-log:jar:0.14:compile
[INFO] | | | \- org.slf4j:jcl-over-slf4j:jar:1.7.21:compile
[INFO] | | +- org.apache.ivy:ivy:jar:2.3.0:compile
[INFO] | | +- org.codehaus.groovy:groovy:jar:indy:2.4.7:compile
[INFO] | | +- org.codehaus.groovy:groovy-groovysh:jar:indy:2.4.7:compile
[INFO] | | | +- org.codehaus.groovy:groovy:jar:2.4.7:compile
[INFO] | | | +- jline:jline:jar:2.12:compile
[INFO] | | | \- org.codehaus.groovy:groovy-console:jar:2.4.7:compile
[INFO] | | | +- org.codehaus.groovy:groovy-swing:jar:2.4.7:compile
[INFO] | | | \- org.codehaus.groovy:groovy-templates:jar:2.4.7:compile
[INFO] | | | \- org.codehaus.groovy:groovy-xml:jar:2.4.7:compile
[INFO] | | +- org.codehaus.groovy:groovy-json:jar:indy:2.4.7:compile
[INFO] | | +- org.codehaus.groovy:groovy-jsr223:jar:indy:2.4.7:compile
[INFO] | | +- org.apache.commons:commons-lang3:jar:3.3.1:compile
[INFO] | | \- com.github.jeremyh:jBCrypt:jar:jbcrypt-0.4:compile
[INFO] | \- org.apache.tinkerpop:tinkergraph-gremlin:jar:3.2.3:compile
[INFO] +- io.vertx:vertx-core:jar:2.1.5:compile
[INFO] | +- org.slf4j:slf4j-api:jar:1.6.2:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-databind:jar:2.2.2:compile
[INFO] | | \- com.fasterxml.jackson.core:jackson-annotations:jar:2.2.2:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-core:jar:2.2.2:compile
[INFO] | +- io.netty:netty-all:jar:4.0.21.Final:compile
[INFO] | \- log4j:log4j:jar:1.2.16:compile
[INFO] +- io.vertx:vertx-hazelcast:jar:2.1.5:compile
[INFO] | \- com.hazelcast:hazelcast:jar:3.2.3:compile
[INFO] | \- net.sourceforge.findbugs:annotations:jar:1.3.2:compile
[INFO] +- io.vertx:vertx-platform:jar:2.1.5:provided
[INFO] +- redis.clients:jedis:jar:2.9.0:compile
[INFO] | \- org.apache.commons:commons-pool2:jar:2.4.2:compile
[INFO] +- junit:junit:jar:3.8.1:test
[INFO] \- org.json:json:jar:20160810:compile

Execute the below command from project home folder,
mvn dependency:tree
And find the version of below dependency
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-transport-native-epoll</artifactId>
</dependency>
May be multiple versions are available of this dependency.
You can exclude any specific version from any dependency if required as below
<dependency>
<groupId>parent-dependency-group</groupId>
<artifactId>parent-dependency</artifactId>
<version>${parent.dependency.version}</version>
<exclusions>
<exclusion>
<groupId>parent-dependency-group</groupId>
<artifactId>parent-dependency</artifactId>
</exclusion>
</exclusions>
</dependency>
As per dependency tree, replace
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-core</artifactId>
<version>2.1.5</version>
</dependency>
with
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-core</artifactId>
<version>2.1.5</version>
<exclusions>
<exclusion>
<groupId>io.netty</groupId>
<artifactId>netty-all</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-all</artifactId>
<version>4.0.37.Final</version>
</dependency>
In your POM

Related

Unable to run spring boot tests using maven: No tests were executed

I am unable to run tests for a spring boot app using maven. I have seen multiple posts about this, most of their solutions are to:
align a junit version with maven-surefire-plugin or
ensure a junit version is not predefined by a parent element
My project does not use a parent nor maven-surefire-plugin. Otherwise, based on the pom file, I don't see any glaring conflicts. I do see the junit:jar:4.13.2, but that is part of the junit-vintage dependency for backwards compatability.
What could be causing this?
Spring-Boot: (v2.4.3)
Camunda Platform: (v7.15.0)
Camunda Platform Spring Boot Starter: (v7.15.0)
Apache Maven 3.6.3
Java version: 11.0.8, vendor: Azul Systems, Inc., runtime: C:\Program Files (x86)\Zulu\zulu-11
OS name: "windows 10", version: "10.0", arch: "x86", family: "windows"
pom
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.myapp</groupId>
<artifactId>myappdemo</artifactId>
<version>1.0.0-SNAPSHOT</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>2.4.3</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.camunda.bpm</groupId>
<artifactId>camunda-bom</artifactId>
<version>7.15.0</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.camunda.bpm.springboot</groupId>
<artifactId>camunda-bpm-spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>org.camunda.bpm.springboot</groupId>
<artifactId>camunda-bpm-spring-boot-starter-rest</artifactId>
</dependency>
<dependency>
<groupId>org.camunda.bpm.springboot</groupId>
<artifactId>camunda-bpm-spring-boot-starter-webapp</artifactId>
</dependency>
<dependency>
<groupId>org.camunda.bpm</groupId>
<artifactId>camunda-engine-plugin-spin</artifactId>
</dependency>
<dependency>
<groupId>org.camunda.spin</groupId>
<artifactId>camunda-spin-dataformat-all</artifactId>
</dependency>
<dependency>
<groupId>org.camunda.bpm.springboot</groupId>
<artifactId>camunda-bpm-spring-boot-starter-test</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
</dependency>
<dependency>
<groupId>com.oracle.database.jdbc</groupId>
<artifactId>ojdbc11</artifactId>
<version>21.4.0.0.1</version>
</dependency>
<dependency>
<groupId>com.oracle.database.jdbc</groupId>
<artifactId>ucp11</artifactId>
<version>21.4.0.0.1</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-mail</artifactId>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.6.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
<version>3.2.4</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox</artifactId>
<version>2.0.24</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.4.3</version>
<configuration>
<layout>ZIP</layout>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
mvn dependency:tree
[INFO] +- org.camunda.bpm.springboot:camunda-bpm-spring-boot-starter:jar:7.15.0:compile
[INFO] | +- org.camunda.bpm:camunda-engine-spring:jar:7.15.0:compile
[INFO] | | +- org.camunda.bpm:camunda-engine:jar:7.15.0:compile
[INFO] | | | +- org.camunda.bpm.model:camunda-bpmn-model:jar:7.15.0:compile
[INFO] | | | | \- org.camunda.bpm.model:camunda-xml-model:jar:7.15.0:compile
[INFO] | | | +- org.camunda.bpm.model:camunda-cmmn-model:jar:7.15.0:compile
[INFO] | | | +- org.camunda.bpm.dmn:camunda-engine-dmn:jar:7.15.0:compile
[INFO] | | | | +- org.camunda.bpm.model:camunda-dmn-model:jar:7.15.0:compile
[INFO] | | | | +- org.camunda.bpm.dmn:camunda-engine-feel-api:jar:7.15.0:compile
[INFO] | | | | +- org.camunda.bpm.dmn:camunda-engine-feel-juel:jar:7.15.0:compile
[INFO] | | | | +- org.camunda.bpm.dmn:camunda-engine-feel-scala:jar:7.15.0:compile
[INFO] | | | | \- org.camunda.feel:feel-engine:jar:scala-shaded:1.13.1:compile
[INFO] | | | +- org.camunda.commons:camunda-commons-typed-values:jar:7.15.0:compile
[INFO] | | | +- org.mybatis:mybatis:jar:3.5.6:compile
[INFO] | | | +- joda-time:joda-time:jar:2.1:compile
[INFO] | | | +- org.camunda.connect:camunda-connect-core:jar:1.5.2:compile
[INFO] | | | \- org.camunda.connect:camunda-connect-connectors-all:jar:1.5.2:runtime
[INFO] | | \- commons-dbcp:commons-dbcp:jar:1.4:compile
[INFO] | | \- commons-pool:commons-pool:jar:1.6:compile
[INFO] | +- org.springframework:spring-context:jar:5.3.4:compile
[INFO] | | +- org.springframework:spring-beans:jar:5.3.4:compile
[INFO] | | +- org.springframework:spring-core:jar:5.3.4:compile
[INFO] | | | \- org.springframework:spring-jcl:jar:5.3.4:compile
[INFO] | | \- org.springframework:spring-expression:jar:5.3.4:compile
[INFO] | +- org.springframework:spring-jdbc:jar:5.3.4:compile
[INFO] | +- org.springframework:spring-tx:jar:5.3.4:compile
[INFO] | +- org.springframework:spring-orm:jar:5.3.4:compile
[INFO] | +- org.springframework.boot:spring-boot-loader-tools:jar:2.4.3:compile
[INFO] | | \- org.apache.commons:commons-compress:jar:1.20:compile
[INFO] | +- org.springframework.boot:spring-boot-autoconfigure:jar:2.4.3:compile
[INFO] | | \- org.springframework.boot:spring-boot:jar:2.4.3:compile
[INFO] | +- org.springframework.boot:spring-boot-starter:jar:2.4.3:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-logging:jar:2.4.3:compile
[INFO] | | | +- ch.qos.logback:logback-classic:jar:1.2.3:compile
[INFO] | | | | \- ch.qos.logback:logback-core:jar:1.2.3:compile
[INFO] | | | +- org.apache.logging.log4j:log4j-to-slf4j:jar:2.13.3:compile
[INFO] | | | | \- org.apache.logging.log4j:log4j-api:jar:2.13.3:compile
[INFO] | | | \- org.slf4j:jul-to-slf4j:jar:1.7.30:compile
[INFO] | | +- jakarta.annotation:jakarta.annotation-api:jar:1.3.5:compile
[INFO] | | \- org.yaml:snakeyaml:jar:1.27:compile
[INFO] | +- org.apache.commons:commons-lang3:jar:3.11:compile
[INFO] | \- com.fasterxml.uuid:java-uuid-generator:jar:3.2.0:compile
[INFO] +- org.camunda.bpm.springboot:camunda-bpm-spring-boot-starter-rest:jar:7.15.0:compile
[INFO] | +- org.camunda.bpm:camunda-engine-rest-jaxrs2:jar:7.15.0:compile
[INFO] | | +- commons-fileupload:commons-fileupload:jar:1.4:compile
[INFO] | | +- commons-io:commons-io:jar:2.8.0:compile
[INFO] | | +- com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:jar:2.11.4:compile
[INFO] | | +- com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:jar:2.11.4:compile
[INFO] | | +- com.fasterxml.jackson.module:jackson-module-jaxb-annotations:jar:2.11.4:compile
[INFO] | | +- com.fasterxml.jackson.core:jackson-databind:jar:2.11.4:compile
[INFO] | | +- com.fasterxml.jackson.core:jackson-annotations:jar:2.11.4:compile
[INFO] | | \- com.fasterxml.jackson.core:jackson-core:jar:2.11.4:compile
[INFO] | \- org.springframework.boot:spring-boot-starter-jersey:jar:2.4.3:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-validation:jar:2.4.3:compile
[INFO] | | \- org.hibernate.validator:hibernate-validator:jar:6.1.7.Final:compile
[INFO] | +- org.glassfish.jersey.core:jersey-server:jar:2.32:compile
[INFO] | | +- org.glassfish.jersey.core:jersey-common:jar:2.32:compile
[INFO] | | | \- org.glassfish.hk2:osgi-resource-locator:jar:1.0.3:compile
[INFO] | | +- org.glassfish.jersey.core:jersey-client:jar:2.32:compile
[INFO] | | +- jakarta.ws.rs:jakarta.ws.rs-api:jar:2.1.6:compile
[INFO] | | +- org.glassfish.jersey.media:jersey-media-jaxb:jar:2.32:compile
[INFO] | | +- org.glassfish.hk2.external:jakarta.inject:jar:2.6.1:compile
[INFO] | | \- jakarta.validation:jakarta.validation-api:jar:2.0.2:compile
[INFO] | +- org.glassfish.jersey.containers:jersey-container-servlet-core:jar:2.32:compile
[INFO] | +- org.glassfish.jersey.containers:jersey-container-servlet:jar:2.32:compile
[INFO] | +- org.glassfish.jersey.ext:jersey-bean-validation:jar:2.32:compile
[INFO] | +- org.glassfish.jersey.ext:jersey-spring5:jar:2.32:compile
[INFO] | | +- org.glassfish.jersey.inject:jersey-hk2:jar:2.32:compile
[INFO] | | | \- org.glassfish.hk2:hk2-locator:jar:2.6.1:compile
[INFO] | | | \- org.glassfish.hk2.external:aopalliance-repackaged:jar:2.6.1:compile
[INFO] | | +- org.glassfish.hk2:hk2:jar:2.6.1:compile
[INFO] | | | +- org.glassfish.hk2:hk2-utils:jar:2.6.1:compile
[INFO] | | | +- org.glassfish.hk2:hk2-api:jar:2.6.1:compile
[INFO] | | | +- org.glassfish.hk2:hk2-core:jar:2.6.1:compile
[INFO] | | | +- org.glassfish.hk2:hk2-runlevel:jar:2.6.1:compile
[INFO] | | | \- org.glassfish.hk2:class-model:jar:2.6.1:compile
[INFO] | | | +- org.ow2.asm:asm:jar:7.1:compile
[INFO] | | | +- org.ow2.asm:asm-analysis:jar:7.1:compile
[INFO] | | | +- org.ow2.asm:asm-commons:jar:7.1:compile
[INFO] | | | +- org.ow2.asm:asm-tree:jar:7.1:compile
[INFO] | | | \- org.ow2.asm:asm-util:jar:7.1:compile
[INFO] | | \- org.glassfish.hk2:spring-bridge:jar:2.6.1:compile
[INFO] | \- org.glassfish.jersey.media:jersey-media-json-jackson:jar:2.32:compile
[INFO] | \- org.glassfish.jersey.ext:jersey-entity-filtering:jar:2.32:compile
[INFO] +- org.camunda.bpm.springboot:camunda-bpm-spring-boot-starter-webapp:jar:7.15.0:compile
[INFO] | +- org.camunda.bpm.springboot:camunda-bpm-spring-boot-starter-webapp-core:jar:7.15.0:compile
[INFO] | | \- org.camunda.bpm.webapp:camunda-webapp:jar:classes:7.15.0:compile
[INFO] | \- org.camunda.bpm.webapp:camunda-webapp-webjar:jar:7.15.0:compile
[INFO] +- org.camunda.bpm:camunda-engine-plugin-spin:jar:7.15.0:compile
[INFO] | \- org.camunda.spin:camunda-spin-core:jar:1.10.1:compile
[INFO] +- org.camunda.spin:camunda-spin-dataformat-all:jar:1.10.1:compile
[INFO] | +- org.camunda.commons:camunda-commons-logging:jar:1.10.0:compile
[INFO] | +- org.slf4j:slf4j-api:jar:1.7.30:compile
[INFO] | \- org.camunda.commons:camunda-commons-utils:jar:1.10.0:compile
[INFO] +- org.camunda.bpm.springboot:camunda-bpm-spring-boot-starter-test:jar:7.15.0:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-test:jar:2.4.3:compile
[INFO] | | +- org.springframework.boot:spring-boot-test:jar:2.4.3:compile
[INFO] | | +- org.springframework.boot:spring-boot-test-autoconfigure:jar:2.4.3:compile
[INFO] | | +- com.jayway.jsonpath:json-path:jar:2.4.0:compile
[INFO] | | | \- net.minidev:json-smart:jar:2.3:compile
[INFO] | | | \- net.minidev:accessors-smart:jar:1.2:compile
[INFO] | | +- jakarta.xml.bind:jakarta.xml.bind-api:jar:2.3.3:compile
[INFO] | | | \- jakarta.activation:jakarta.activation-api:jar:1.2.2:compile
[INFO] | | +- org.assertj:assertj-core:jar:3.18.1:compile
[INFO] | | +- org.hamcrest:hamcrest:jar:2.2:compile
[INFO] | | +- org.skyscreamer:jsonassert:jar:1.5.0:compile
[INFO] | | | \- com.vaadin.external.google:android-json:jar:0.0.20131108.vaadin1:compile
[INFO] | | +- org.springframework:spring-test:jar:5.3.4:compile
[INFO] | | \- org.xmlunit:xmlunit-core:jar:2.7.0:compile
[INFO] | +- org.junit.vintage:junit-vintage-engine:jar:5.7.1:compile
[INFO] | | +- org.apiguardian:apiguardian-api:jar:1.1.0:compile
[INFO] | | +- org.junit.platform:junit-platform-engine:jar:1.7.1:compile
[INFO] | | \- junit:junit:jar:4.13.2:compile
[INFO] | \- org.camunda.bpm.assert:camunda-bpm-assert-assertj3-11-1:jar:4.0.0:compile
[INFO] +- org.springframework.boot:spring-boot-starter-security:jar:2.4.3:compile
[INFO] | +- org.springframework:spring-aop:jar:5.3.4:compile
[INFO] | +- org.springframework.security:spring-security-config:jar:5.4.5:compile
[INFO] | | \- org.springframework.security:spring-security-core:jar:5.4.5:compile
[INFO] | \- org.springframework.security:spring-security-web:jar:5.4.5:compile
[INFO] +- org.springframework.boot:spring-boot-starter-web:jar:2.4.3:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-json:jar:2.4.3:compile
[INFO] | | +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.11.4:compile
[INFO] | | +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.11.4:compile
[INFO] | | \- com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.11.4:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-tomcat:jar:2.4.3:compile
[INFO] | | +- org.apache.tomcat.embed:tomcat-embed-core:jar:9.0.43:compile
[INFO] | | +- org.glassfish:jakarta.el:jar:3.0.3:compile
[INFO] | | \- org.apache.tomcat.embed:tomcat-embed-websocket:jar:9.0.43:compile
[INFO] | +- org.springframework:spring-web:jar:5.3.4:compile
[INFO] | \- org.springframework:spring-webmvc:jar:5.3.4:compile
[INFO] +- mysql:mysql-connector-java:jar:8.0.23:runtime
[INFO] +- com.h2database:h2:jar:1.4.200:compile
[INFO] +- com.oracle.database.jdbc:ojdbc11:jar:21.4.0.0.1:compile
[INFO] +- com.oracle.database.jdbc:ucp11:jar:21.4.0.0.1:compile
[INFO] +- org.springframework.boot:spring-boot-starter-jdbc:jar:2.4.3:compile
[INFO] | \- com.zaxxer:HikariCP:jar:3.4.5:compile
[INFO] +- org.springframework.boot:spring-boot-starter-data-jpa:jar:2.4.3:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-aop:jar:2.4.3:compile
[INFO] | | \- org.aspectj:aspectjweaver:jar:1.9.6:compile
[INFO] | +- jakarta.transaction:jakarta.transaction-api:jar:1.3.3:compile
[INFO] | +- jakarta.persistence:jakarta.persistence-api:jar:2.2.3:compile
[INFO] | +- org.hibernate:hibernate-core:jar:5.4.28.Final:compile
[INFO] | | +- org.jboss.logging:jboss-logging:jar:3.4.1.Final:compile
[INFO] | | +- org.javassist:javassist:jar:3.27.0-GA:compile
[INFO] | | +- net.bytebuddy:byte-buddy:jar:1.10.20:compile
[INFO] | | +- antlr:antlr:jar:2.7.7:compile
[INFO] | | +- org.jboss:jandex:jar:2.2.3.Final:compile
[INFO] | | +- com.fasterxml:classmate:jar:1.5.1:compile
[INFO] | | +- org.dom4j:dom4j:jar:2.1.3:compile
[INFO] | | +- org.hibernate.common:hibernate-commons-annotations:jar:5.1.2.Final:compile
[INFO] | | \- org.glassfish.jaxb:jaxb-runtime:jar:2.3.3:compile
[INFO] | | +- org.glassfish.jaxb:txw2:jar:2.3.3:compile
[INFO] | | \- com.sun.istack:istack-commons-runtime:jar:3.0.11:compile
[INFO] | +- org.springframework.data:spring-data-jpa:jar:2.4.5:compile
[INFO] | | \- org.springframework.data:spring-data-commons:jar:2.4.5:compile
[INFO] | \- org.springframework:spring-aspects:jar:5.3.4:compile
[INFO] +- org.springframework.boot:spring-boot-starter-mail:jar:2.4.3:compile
[INFO] | +- org.springframework:spring-context-support:jar:5.3.4:compile
[INFO] | \- com.sun.mail:jakarta.mail:jar:1.6.5:compile
[INFO] | \- com.sun.activation:jakarta.activation:jar:1.2.2:compile
[INFO] +- org.junit.jupiter:junit-jupiter:jar:5.6.0:test
[INFO] | +- org.junit.jupiter:junit-jupiter-api:jar:5.7.1:test
[INFO] | | +- org.opentest4j:opentest4j:jar:1.2.0:compile
[INFO] | | \- org.junit.platform:junit-platform-commons:jar:1.7.1:compile
[INFO] | +- org.junit.jupiter:junit-jupiter-params:jar:5.7.1:test
[INFO] | \- org.junit.jupiter:junit-jupiter-engine:jar:5.7.1:test
[INFO] +- org.mockito:mockito-junit-jupiter:jar:3.2.4:test
[INFO] | \- org.mockito:mockito-core:jar:3.6.28:compile
[INFO] | +- net.bytebuddy:byte-buddy-agent:jar:1.10.20:compile
[INFO] | \- org.objenesis:objenesis:jar:3.1:compile
[INFO] \- org.apache.pdfbox:pdfbox:jar:2.0.24:compile
[INFO] +- org.apache.pdfbox:fontbox:jar:2.0.24:compile
[INFO] \- commons-logging:commons-logging:jar:1.2:compile
[INFO] ------------------------------------------------------------------------
First upgrade your Spring Boot version (because a bit out of date or more accurate out of support) and second upgrade your Maven version (also out dated) ...also define the junit-bom to define the correct junit jupiter version like this:
<dependency>
<groupId>org.junit</groupId>
<artifactId>junit-bom</artifactId>
<version>5.8.2</version>
<scope>import</scope>
<type>pom</type>
</dependency>
This has to be done before the import of the spring boot dependencies to overwrite correctly the version which is provided by spring-boot-dependencies.
Also you are not using spring boot as a parent which means you have to define all needed maven plugins. Based on that you are using the default bindings which are defined via the packaging binding.
I strongly recommend to define all needed plugins in your plugin with the appropriate versions which makes it sure to use defined versions of plugins which will never change in the future. This makes your build repeatable.
The first versions which correctly support JUnit Jupiter is maven-surefire-plugin (2.22.2) ... I strongly recommend to use the most recent version.
More details explained in two videos one and the second one
My project does not use a parent nor maven-surefire-plugin
How are you going to run junit test without maven-surefire-plugin? :)
Actually, maven has a concept of default bindings when for particular packaging it predefines plugins and versions. In case of Apache Maven 3.6.3 the default version of maven-surefire-plugin is 2.12, basic support of junit-jupiter was introduced in 2.22 - you either need to setup maven-surefire-plugin or switch to recent version of maven.

java.lang.NoSuchMethodError: org.apache.logging.log4j.Logger.atDebug() with poi-ooxml

I have:
<dependencies>
<!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.dataformat/jackson-dataformat-xml -->
<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-xml</artifactId>
<version>2.13.2</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.module/jackson-module-jaxb-annotations -->
<dependency>
<groupId>com.fasterxml.jackson.module</groupId>
<artifactId>jackson-module-jaxb-annotations</artifactId>
<version>2.13.2</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.poi/poi-ooxml -->
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>5.2.2</version>
</dependency>
<dependency>
<groupId>com.company.commons</groupId>
<artifactId>commons-batch</artifactId>
<version>${company.commons.version}</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-csv</artifactId>
<version>1.8</version>
</dependency>
<dependency>
<groupId>com.company.project</groupId>
<artifactId>project-domain</artifactId>
<version>0.1.0-SNAPSHOT</version>
</dependency>
</dependencies>
in company-commons I have:
<dependencies>
<dependency>
<groupId>com.company.commons</groupId>
<artifactId>company-domain</artifactId>
<version>2.9.0-SNAPSHOT</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-quartz -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-quartz</artifactId>
<version>${spring.boot.version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-batch -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-batch</artifactId>
<version>${spring.boot.version}</version>
</dependency>
</dependencies>
and in company-domain I have:
<dependencies>
<!-- https://mvnrepository.com/artifact/org.zalando/problem-spring-web-starter -->
<dependency>
<groupId>org.zalando</groupId>
<artifactId>problem-spring-web</artifactId>
<version>0.27.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.google.guava/guava -->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>31.0.1-jre</version>
</dependency>
<!-- https://mvnrepository.com/artifact/commons-beanutils/commons-beanutils -->
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
<version>1.9.3</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-jdbc -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
<version>${spring.boot.version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-integration -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-integration</artifactId>
<version>${spring.boot.version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-actuator -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
<version>${spring.boot.version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.springframework.security/spring-security-crypto -->
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-crypto</artifactId>
<version>4.2.2.RELEASE</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-data-jpa -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
<version>${spring.boot.version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/commons-net/commons-net -->
<dependency>
<groupId>commons-net</groupId>
<artifactId>commons-net</artifactId>
<version>3.6</version>
</dependency>
</dependencies>
${spring.boot.version} is 2.2.0.RELEASE
In a Spring Boot application and the following piece:
final InputStream stream = new URL(url).openStream();
final Workbook workbook = new HSSFWorkbook(stream);
fails with:
java.lang.NoSuchMethodError: org.apache.logging.log4j.Logger.atDebug()Lorg/apache/logging/log4j/LogBuilder;
at org.apache.poi.openxml4j.opc.PackageRelationshipCollection.parseRelationshipsPart(PackageRelationshipCollection.java:309)
at org.apache.poi.openxml4j.opc.PackageRelationshipCollection.<init>(PackageRelationshipCollection.java:160)
at org.apache.poi.openxml4j.opc.PackageRelationshipCollection.<init>(PackageRelationshipCollection.java:130)
at org.apache.poi.openxml4j.opc.PackagePart.loadRelationships(PackagePart.java:565)
at org.apache.poi.openxml4j.opc.OPCPackage.getParts(OPCPackage.java:745)
at org.apache.poi.openxml4j.opc.OPCPackage.open(OPCPackage.java:315)
at org.apache.poi.ooxml.util.PackageHelper.open(PackageHelper.java:59)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:289)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:285)
at com.company.project.MyParser.parse(MyParser.java:35)
at com.company.project.MyReader.process(MyReader.java:44)
at com.company.project.MySlaveStepReader.open(MySlaveStepReader.java:60)
at com.company.project.MySlaveStepReader$$FastClassBySpringCGLIB$$d02f818a.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:769)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:747)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:136)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:124)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:747)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:689)
at com.company.project.MySlaveStepReader$$EnhancerBySpringCGLIB$$e46cbc57.open(<generated>)
at org.springframework.batch.item.support.CompositeItemStream.open(CompositeItemStream.java:103)
at org.springframework.batch.core.step.item.ChunkMonitor.open(ChunkMonitor.java:114)
at org.springframework.batch.item.support.CompositeItemStream.open(CompositeItemStream.java:103)
at org.springframework.batch.core.step.tasklet.TaskletStep.open(TaskletStep.java:311)
at org.springframework.batch.core.step.AbstractStep.execute(AbstractStep.java:205)
at jdk.internal.reflect.GeneratedMethodAccessor223.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:136)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:124)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
at com.sun.proxy.$Proxy121.execute(Unknown Source)
at org.springframework.batch.core.partition.support.TaskExecutorPartitionHandler$1.call(TaskExecutorPartitionHandler.java:138)
at org.springframework.batch.core.partition.support.TaskExecutorPartitionHandler$1.call(TaskExecutorPartitionHandler.java:135)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:50)
at org.springframework.batch.core.partition.support.TaskExecutorPartitionHandler.doHandle(TaskExecutorPartitionHandler.java:103)
at org.springframework.batch.core.partition.support.AbstractPartitionHandler.handle(AbstractPartitionHandler.java:61)
at org.springframework.batch.core.partition.support.PartitionStep.doExecute(PartitionStep.java:106)
at org.springframework.batch.core.step.AbstractStep.execute(AbstractStep.java:208)
at org.springframework.batch.core.job.SimpleStepHandler.handleStep(SimpleStepHandler.java:148)
at org.springframework.batch.core.job.flow.JobFlowExecutor.executeStep(JobFlowExecutor.java:68)
at org.springframework.batch.core.job.flow.support.state.StepState.handle(StepState.java:68)
at org.springframework.batch.core.job.flow.support.SimpleFlow.resume(SimpleFlow.java:169)
at org.springframework.batch.core.job.flow.support.SimpleFlow.start(SimpleFlow.java:144)
at org.springframework.batch.core.job.flow.FlowJob.doExecute(FlowJob.java:137)
at org.springframework.batch.core.job.AbstractJob.execute(AbstractJob.java:319)
at org.springframework.batch.core.launch.support.SimpleJobLauncher$1.run(SimpleJobLauncher.java:147)
at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:50)
at org.springframework.batch.core.launch.support.SimpleJobLauncher.run(SimpleJobLauncher.java:140)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.batch.core.configuration.annotation.SimpleBatchConfiguration$PassthruAdvice.invoke(SimpleBatchConfiguration.java:127)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
at com.sun.proxy.$Proxy114.run(Unknown Source)
at com.company.project.MyTaskLauncher$MyTaskLauncherBean.executeInternal(MyTaskLauncher.java:71)
at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:75)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
The output for mvn dependency:tree is:
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) # project-batch ---
[INFO] com.company.project:project-batch:jar:0.1.0-SNAPSHOT
[INFO] +- com.fasterxml.jackson.dataformat:jackson-dataformat-xml:jar:2.13.2:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-core:jar:2.13.2:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-annotations:jar:2.13.2:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-databind:jar:2.13.2:compile
[INFO] | +- org.codehaus.woodstox:stax2-api:jar:4.2.1:compile
[INFO] | \- com.fasterxml.woodstox:woodstox-core:jar:6.2.7:compile
[INFO] +- com.fasterxml.jackson.module:jackson-module-jaxb-annotations:jar:2.13.2:compile
[INFO] | +- jakarta.xml.bind:jakarta.xml.bind-api:jar:2.3.3:compile
[INFO] | \- jakarta.activation:jakarta.activation-api:jar:1.2.1:compile
[INFO] +- org.apache.poi:poi:jar:5.2.2:compile
[INFO] | +- commons-codec:commons-codec:jar:1.15:compile
[INFO] | +- org.apache.commons:commons-collections4:jar:4.4:compile
[INFO] | +- org.apache.commons:commons-math3:jar:3.6.1:compile
[INFO] | +- commons-io:commons-io:jar:2.11.0:compile
[INFO] | +- com.zaxxer:SparseBitSet:jar:1.2:compile
[INFO] | \- org.apache.logging.log4j:log4j-api:jar:2.17.2:compile
[INFO] +- com.company.commons:commons-batch:jar:2.9.0-SNAPSHOT:compile
[INFO] | +- com.company.commons:commons-domain:jar:2.9.0-SNAPSHOT:compile
[INFO] | | +- org.zalando:problem-spring-web:jar:0.27.0:compile
[INFO] | | | +- org.zalando:problem-violations:jar:0.27.0:compile
[INFO] | | | +- org.zalando:problem-spring-common:jar:0.27.0:compile
[INFO] | | | +- org.apiguardian:apiguardian-api:jar:1.1.2:compile
[INFO] | | | +- com.google.code.findbugs:jsr305:jar:3.0.2:compile
[INFO] | | | +- org.slf4j:slf4j-api:jar:1.7.32:compile
[INFO] | | | +- org.zalando:problem:jar:0.26.0:compile
[INFO] | | | +- org.zalando:jackson-datatype-problem:jar:0.26.0:compile
[INFO] | | | +- org.zalando:faux-pas:jar:0.9.0:compile
[INFO] | | | \- javax.validation:validation-api:jar:2.0.1.Final:compile
[INFO] | | +- com.google.guava:guava:jar:31.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] | | | +- org.checkerframework:checker-qual:jar:3.12.0:compile
[INFO] | | | +- com.google.errorprone:error_prone_annotations:jar:2.7.1:compile
[INFO] | | | \- com.google.j2objc:j2objc-annotations:jar:1.3:compile
[INFO] | | +- commons-beanutils:commons-beanutils:jar:1.9.3:compile
[INFO] | | | +- commons-logging:commons-logging:jar:1.2:compile
[INFO] | | | \- commons-collections:commons-collections:jar:3.2.2:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-jdbc:jar:2.2.0.RELEASE:compile
[INFO] | | | +- com.zaxxer:HikariCP:jar:3.4.1:compile
[INFO] | | | \- org.springframework:spring-jdbc:jar:5.2.0.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-integration:jar:2.2.0.RELEASE:compile
[INFO] | | | \- org.springframework.integration:spring-integration-core:jar:5.2.0.RELEASE:compile
[INFO] | | | +- io.projectreactor:reactor-core:jar:3.3.0.RELEASE:compile
[INFO] | | | | \- org.reactivestreams:reactive-streams:jar:1.0.3:compile
[INFO] | | | +- org.springframework.retry:spring-retry:jar:1.2.4.RELEASE:compile
[INFO] | | | \- org.springframework:spring-messaging:jar:5.2.0.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-actuator:jar:2.2.0.RELEASE:compile
[INFO] | | | +- org.springframework.boot:spring-boot-actuator-autoconfigure:jar:2.2.0.RELEASE:compile
[INFO] | | | | \- org.springframework.boot:spring-boot-actuator:jar:2.2.0.RELEASE:compile
[INFO] | | | \- io.micrometer:micrometer-core:jar:1.3.0:compile
[INFO] | | | +- org.hdrhistogram:HdrHistogram:jar:2.1.11:compile
[INFO] | | | \- org.latencyutils:LatencyUtils:jar:2.0.3:compile
[INFO] | | +- org.springframework.security:spring-security-crypto:jar:4.2.2.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-data-jpa:jar:2.2.0.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.hibernate:hibernate-core:jar:5.4.6.Final:compile
[INFO] | | | | +- org.jboss.logging:jboss-logging:jar:3.3.2.Final:compile
[INFO] | | | | +- org.javassist:javassist:jar:3.24.0-GA:compile
[INFO] | | | | +- antlr:antlr:jar:2.7.7:compile
[INFO] | | | | +- org.jboss:jandex:jar:2.0.5.Final:compile
[INFO] | | | | +- com.fasterxml:classmate:jar:1.3.4:compile
[INFO] | | | | +- org.dom4j:dom4j:jar:2.1.1:compile
[INFO] | | | | +- org.hibernate.common:hibernate-commons-annotations:jar:5.1.0.Final:compile
[INFO] | | | | \- org.glassfish.jaxb:jaxb-runtime:jar:2.3.1:compile
[INFO] | | | | +- org.glassfish.jaxb:txw2:jar:2.3.1:compile
[INFO] | | | | +- com.sun.istack:istack-commons-runtime:jar:3.0.7:compile
[INFO] | | | | +- org.jvnet.staxex:stax-ex:jar:1.8:compile
[INFO] | | | | \- com.sun.xml.fastinfoset:FastInfoset:jar:1.2.15:compile
[INFO] | | | +- org.springframework.data:spring-data-jpa:jar:2.2.0.RELEASE:compile
[INFO] | | | | +- org.springframework.data:spring-data-commons:jar:2.2.0.RELEASE:compile
[INFO] | | | | \- org.springframework:spring-orm:jar:5.2.0.RELEASE:compile
[INFO] | | | \- org.springframework:spring-aspects:jar:5.2.0.RELEASE:compile
[INFO] | | \- commons-net:commons-net:jar:3.6:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-quartz:jar:2.2.0.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter:jar:2.2.0.RELEASE:compile
[INFO] | | | +- org.springframework.boot:spring-boot:jar:2.2.0.RELEASE:compile
[INFO] | | | +- org.springframework.boot:spring-boot-autoconfigure:jar:2.2.0.RELEASE:compile
[INFO] | | | +- org.springframework.boot:spring-boot-starter-logging:jar:2.2.0.RELEASE:compile
[INFO] | | | | +- ch.qos.logback:logback-classic:jar:1.2.3:compile
[INFO] | | | | | \- ch.qos.logback:logback-core:jar:1.2.3:compile
[INFO] | | | | +- org.apache.logging.log4j:log4j-to-slf4j:jar:2.12.1:compile
[INFO] | | | | \- org.slf4j:jul-to-slf4j:jar:1.7.28:compile
[INFO] | | | +- jakarta.annotation:jakarta.annotation-api:jar:1.3.5:compile
[INFO] | | | \- org.yaml:snakeyaml:jar:1.25:runtime
[INFO] | | +- org.springframework:spring-context-support:jar:5.2.0.RELEASE:compile
[INFO] | | | +- org.springframework:spring-beans:jar:5.2.0.RELEASE:compile
[INFO] | | | \- org.springframework:spring-context:jar:5.2.0.RELEASE:compile
[INFO] | | +- org.springframework:spring-tx:jar:5.2.0.RELEASE:compile
[INFO] | | \- org.quartz-scheduler:quartz:jar:2.3.1:compile
[INFO] | | \- com.mchange:mchange-commons-java:jar:0.2.15:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-batch:jar:2.2.0.RELEASE:compile
[INFO] | | \- org.springframework.batch:spring-batch-core:jar:4.2.0.RELEASE:compile
[INFO] | | +- javax.batch:javax.batch-api:jar:1.0:compile
[INFO] | | +- org.codehaus.jettison:jettison:jar:1.2:compile
[INFO] | | \- org.springframework.batch:spring-batch-infrastructure:jar:4.2.0.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-web:jar:2.2.0.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-json:jar:2.2.0.RELEASE:compile
[INFO] | | | +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.10.0:compile
[INFO] | | | +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.10.0:compile
[INFO] | | | \- com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.10.0:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-tomcat:jar:2.2.0.RELEASE:compile
[INFO] | | | +- org.apache.tomcat.embed:tomcat-embed-core:jar:9.0.27:compile
[INFO] | | | +- org.apache.tomcat.embed:tomcat-embed-el:jar:9.0.27:compile
[INFO] | | | \- org.apache.tomcat.embed:tomcat-embed-websocket:jar:9.0.27:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-validation:jar:2.2.0.RELEASE:compile
[INFO] | | | +- jakarta.validation:jakarta.validation-api:jar:2.0.1:compile
[INFO] | | | \- org.hibernate.validator:hibernate-validator:jar:6.0.17.Final:compile
[INFO] | | +- org.springframework:spring-web:jar:5.2.0.RELEASE:compile
[INFO] | | \- org.springframework:spring-webmvc:jar:5.2.0.RELEASE:compile
[INFO] | | \- org.springframework:spring-expression:jar:5.2.0.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-test:jar:2.2.0.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-test:jar:2.2.0.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-test-autoconfigure:jar:2.2.0.RELEASE:compile
[INFO] | | +- com.jayway.jsonpath:json-path:jar:2.4.0:compile
[INFO] | | | \- net.minidev:json-smart:jar:2.3:compile
[INFO] | | | \- net.minidev:accessors-smart:jar:1.2:compile
[INFO] | | | \- org.ow2.asm:asm:jar:5.0.4:compile
[INFO] | | +- org.junit.jupiter:junit-jupiter:jar:5.5.2:compile
[INFO] | | | +- org.junit.jupiter:junit-jupiter-api:jar:5.5.2:compile
[INFO] | | | | +- org.opentest4j:opentest4j:jar:1.2.0:compile
[INFO] | | | | \- org.junit.platform:junit-platform-commons:jar:1.5.2:compile
[INFO] | | | +- org.junit.jupiter:junit-jupiter-params:jar:5.5.2:compile
[INFO] | | | \- org.junit.jupiter:junit-jupiter-engine:jar:5.5.2:runtime
[INFO] | | +- org.junit.vintage:junit-vintage-engine:jar:5.5.2:compile
[INFO] | | | +- org.junit.platform:junit-platform-engine:jar:1.5.2:compile
[INFO] | | | \- junit:junit:jar:4.12:compile
[INFO] | | +- org.mockito:mockito-junit-jupiter:jar:3.1.0:compile
[INFO] | | +- org.assertj:assertj-core:jar:3.13.2:compile
[INFO] | | +- org.hamcrest:hamcrest:jar:2.1:compile
[INFO] | | +- org.mockito:mockito-core:jar:3.1.0:compile
[INFO] | | | +- net.bytebuddy:byte-buddy:jar:1.9.10:compile
[INFO] | | | +- net.bytebuddy:byte-buddy-agent:jar:1.9.10:compile
[INFO] | | | \- org.objenesis:objenesis:jar:2.6:compile
[INFO] | | +- org.skyscreamer:jsonassert:jar:1.5.0:compile
[INFO] | | | \- com.vaadin.external.google:android-json:jar:0.0.20131108.vaadin1:compile
[INFO] | | +- org.springframework:spring-core:jar:5.2.0.RELEASE:compile
[INFO] | | | \- org.springframework:spring-jcl:jar:5.2.0.RELEASE:compile
[INFO] | | +- org.springframework:spring-test:jar:5.2.0.RELEASE:compile
[INFO] | | \- org.xmlunit:xmlunit-core:jar:2.6.3:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-cache:jar:2.2.0.RELEASE:compile
[INFO] | \- org.springframework.boot:spring-boot-starter-aop:jar:2.2.0.RELEASE:compile
[INFO] | +- org.springframework:spring-aop:jar:5.2.0.RELEASE:compile
[INFO] | \- org.aspectj:aspectjweaver:jar:1.9.4:compile
[INFO] +- org.apache.commons:commons-csv:jar:1.8:compile
[INFO] +- com.company.project:project-domain:jar:0.1.0-SNAPSHOT:compile
[INFO] \- org.projectlombok:lombok:jar:1.18.22:provided
The solution as described here and playing with versions yields to no result.
What am I missing?
The spring-boot-starter version 2.2.0 dependency was bringing log4j related dependencies with 2.12.1 version, which, did not have atDebug() method. So:
<dependencyManagement>
<dependencies>
<!-- https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-to-slf4j -->
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-to-slf4j</artifactId>
<version>2.17.2</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-api -->
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>2.17.2</version>
</dependency>
</dependencies>
</dependencyManagement>
resolved the issue.

Issues with Upgrading Spring boot from 2.2.2.Release to 2.4.2 Rlease

We have an existing application which is working fine with the SpringBoot 2.2.2.RELEASE. Now we tried to upgrade it to the SpringBoot 2.4.2 version and application is not getting started and throws the following error. In the classpath I could see only one spring-webmvc-5.3.2.jar file.
Below is the pom.xml for the referance:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.4.2</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.test</groupId>
<artifactId>test-api</artifactId>
<version>1.0</version>
<name>Microservice</name>
<description>Microservice</description>
<packaging>jar</packaging>
<properties>
<java.version>13</java.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-sleuth</artifactId>
<version>3.0.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-log4j2</artifactId>
</dependency>
<!-- Needed to produce both an Executable and Importable JAR. Two jars
will now be produced -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<!-- https://mvnrepository.com/artifact/org.mariadb.jdbc/mariadb-java-client -->
<dependency>
<groupId>org.mariadb.jdbc</groupId>
<artifactId>mariadb-java-client</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.kafka</groupId>
<artifactId>spring-kafka</artifactId>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-netty</artifactId>
<version>1.25.0</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-protobuf</artifactId>
<version>1.25.0</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-stub</artifactId>
<version>1.25.0</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-jpamodelgen</artifactId>
</dependency>
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-ui</artifactId>
<version>1.5.2</version>
</dependency>
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-data-rest</artifactId>
<version>1.5.2</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.datadoghq/dd-trace-api -->
<dependency>
<groupId>com.datadoghq</groupId>
<artifactId>dd-trace-api</artifactId>
<version>0.66.0</version>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-sleuth</artifactId>
</dependency>
<dependency>
<groupId>org.redisson</groupId>
<artifactId>redisson</artifactId>
<version>3.13.2</version>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.15</version>
</dependency>
</dependencies>
<build>
<finalName>test-api</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<!-- Needed to produce both an Executable and Importable JAR. Two jars
will now be produced -->
<executions>
<execution>
<id>repackage</id>
<configuration>
<classifier>exec</classifier>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
***************************
APPLICATION FAILED TO START
***************************
Description:
An attempt was made to call a method that does not exist. The attempt was made from the following location:
org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration$EnableWebMvcConfiguration.lambda$addResourceHandlers$0(WebMvcAutoConfiguration.java:411)
The following method did not exist:
'org.springframework.web.servlet.config.annotation.ResourceHandlerRegistration org.springframework.web.servlet.config.annotation.ResourceHandlerRegistration.addResourceLocations(org.springframework.core.io.Resource[])'
The method's class, org.springframework.web.servlet.config.annotation.ResourceHandlerRegistration, is available from the following locations:
jar:file:/C:/Users/test/.m2/repository/org/springframework/spring-webmvc/5.3.2/spring-webmvc-5.3.2.jar!/org/springframework/web/servlet/config/annotation/ResourceHandlerRegistration.class
The class hierarchy was loaded from the following locations:
org.springframework.web.servlet.config.annotation.ResourceHandlerRegistration: file:/C:/Users/test/.m2/repository/org/springframework/spring-webmvc/5.3.2/spring-webmvc-5.3.2.jar
Action:
Correct the classpath of your application so that it contains a single, compatible version of org.springframework.web.servlet.config.annotation.ResourceHandlerRegistration
Dependency Tree:
C:\Users\test-api>mvn dependency:tree
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< com.test:test-api >------------------
[INFO] Microservice 1.0
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:3.1.2:tree (default-cli) # test-api ---
[WARNING] The POM for org.apache.maven:maven-artifact:jar:3.0 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[INFO] com.fmr.AP135913:test-api:jar:1.0
[INFO] +- org.springframework.boot:spring-boot-starter-validation:jar:2.4.2:compile
[INFO] | +- org.springframework.boot:spring-boot-starter:jar:2.4.2:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-logging:jar:2.4.2:compile
[INFO] | | | +- ch.qos.logback:logback-classic:jar:1.2.3:compile
[INFO] | | | | \- ch.qos.logback:logback-core:jar:1.2.3:compile
[INFO] | | | \- org.apache.logging.log4j:log4j-to-slf4j:jar:2.13.3:compile
[INFO] | | \- jakarta.annotation:jakarta.annotation-api:jar:1.3.5:compile
[INFO] | +- org.glassfish:jakarta.el:jar:3.0.3:compile
[INFO] | \- org.hibernate.validator:hibernate-validator:jar:6.1.7.Final:compile
[INFO] | +- jakarta.validation:jakarta.validation-api:jar:2.0.2:compile
[INFO] | \- com.fasterxml:classmate:jar:1.5.1:compile
[INFO] +- org.springframework.boot:spring-boot-starter-web:jar:2.4.2:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-json:jar:2.4.2:compile
[INFO] | | +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.11.3:compile
[INFO] | | \- com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.11.3:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-tomcat:jar:2.4.2:compile
[INFO] | | +- org.apache.tomcat.embed:tomcat-embed-core:jar:9.0.41:compile
[INFO] | | \- org.apache.tomcat.embed:tomcat-embed-websocket:jar:9.0.41:compile
[INFO] | +- org.springframework:spring-web:jar:5.3.2:compile
[INFO] | | \- org.springframework:spring-beans:jar:5.3.2:compile
[INFO] | \- org.springframework:spring-webmvc:jar:5.3.2:compile
[INFO] | +- org.springframework:spring-aop:jar:5.3.2:compile
[INFO] | \- org.springframework:spring-expression:jar:5.3.2:compile
[INFO] +- org.springframework.boot:spring-boot-starter-log4j2:jar:2.4.2:compile
[INFO] | +- org.apache.logging.log4j:log4j-slf4j-impl:jar:2.13.3:compile
[INFO] | | \- org.apache.logging.log4j:log4j-api:jar:2.13.3:compile
[INFO] | +- org.apache.logging.log4j:log4j-core:jar:2.13.3:compile
[INFO] | +- org.apache.logging.log4j:log4j-jul:jar:2.13.3:compile
[INFO] | \- org.slf4j:jul-to-slf4j:jar:1.7.30:compile
[INFO] +- org.springframework.boot:spring-boot-configuration-processor:jar:2.4.2:compile
[INFO] +- org.springframework.boot:spring-boot-starter-data-jpa:jar:2.4.2:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-aop:jar:2.4.2:compile
[INFO] | | \- org.aspectj:aspectjweaver:jar:1.9.6:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-jdbc:jar:2.4.2:compile
[INFO] | | +- com.zaxxer:HikariCP:jar:3.4.5:compile
[INFO] | | \- org.springframework:spring-jdbc:jar:5.3.2:compile
[INFO] | +- jakarta.transaction:jakarta.transaction-api:jar:1.3.3:compile
[INFO] | +- jakarta.persistence:jakarta.persistence-api:jar:2.2.3:compile
[INFO] | +- org.hibernate:hibernate-core:jar:5.4.27.Final:compile
[INFO] | | +- org.javassist:javassist:jar:3.27.0-GA:compile
[INFO] | | +- antlr:antlr:jar:2.7.7:compile
[INFO] | | +- org.jboss:jandex:jar:2.1.3.Final:compile
[INFO] | | +- org.dom4j:dom4j:jar:2.1.3:compile
[INFO] | | \- org.hibernate.common:hibernate-commons-annotations:jar:5.1.2.Final:compile
[INFO] | +- org.springframework.data:spring-data-jpa:jar:2.4.2:compile
[INFO] | | +- org.springframework.data:spring-data-commons:jar:2.4.2:compile
[INFO] | | \- org.springframework:spring-orm:jar:5.3.2:compile
[INFO] | \- org.springframework:spring-aspects:jar:5.3.2:compile
[INFO] +- org.mariadb.jdbc:mariadb-java-client:jar:2.7.1:compile
[INFO] +- com.fasterxml.jackson.core:jackson-databind:jar:2.11.3:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-annotations:jar:2.11.3:compile
[INFO] | \- com.fasterxml.jackson.core:jackson-core:jar:2.11.3:compile
[INFO] +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.11.3:compile
[INFO] +- org.springframework.boot:spring-boot-starter-test:jar:2.4.2:test
[INFO] | +- org.springframework.boot:spring-boot-test:jar:2.4.2:test
[INFO] | +- org.springframework.boot:spring-boot-test-autoconfigure:jar:2.4.2:test
[INFO] | +- com.jayway.jsonpath:json-path:jar:2.4.0:compile
[INFO] | | \- net.minidev:json-smart:jar:2.3:compile
[INFO] | | \- net.minidev:accessors-smart:jar:1.2:compile
[INFO] | | \- org.ow2.asm:asm:jar:5.0.4:compile
[INFO] | +- jakarta.xml.bind:jakarta.xml.bind-api:jar:2.3.3:compile
[INFO] | | \- jakarta.activation:jakarta.activation-api:jar:1.2.2:compile
[INFO] | +- org.assertj:assertj-core:jar:3.18.1:test
[INFO] | +- org.hamcrest:hamcrest:jar:2.2:test
[INFO] | +- org.junit.jupiter:junit-jupiter:jar:5.7.0:test
[INFO] | | +- org.junit.jupiter:junit-jupiter-api:jar:5.7.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.7.0:test
[INFO] | | +- org.junit.jupiter:junit-jupiter-params:jar:5.7.0:test
[INFO] | | \- org.junit.jupiter:junit-jupiter-engine:jar:5.7.0:test
[INFO] | | \- org.junit.platform:junit-platform-engine:jar:1.7.0:test
[INFO] | +- org.mockito:mockito-core:jar:3.6.28:test
[INFO] | | +- net.bytebuddy:byte-buddy-agent:jar:1.10.19:test
[INFO] | | \- org.objenesis:objenesis:jar:3.0.1:test
[INFO] | +- org.mockito:mockito-junit-jupiter:jar:3.6.28:test
[INFO] | +- org.skyscreamer:jsonassert:jar:1.5.0:test
[INFO] | | \- com.vaadin.external.google:android-json:jar:0.0.20131108.vaadin1:test
[INFO] | +- org.springframework:spring-core:jar:5.3.2:compile
[INFO] | | \- org.springframework:spring-jcl:jar:5.3.2:compile
[INFO] | +- org.springframework:spring-test:jar:5.3.2:test
[INFO] | \- org.xmlunit:xmlunit-core:jar:2.7.0:test
[INFO] +- org.springframework.kafka:spring-kafka:jar:2.6.5:compile
[INFO] | +- org.springframework:spring-context:jar:5.3.2:compile
[INFO] | +- org.springframework:spring-messaging:jar:5.3.2:compile
[INFO] | +- org.springframework:spring-tx:jar:5.3.2:compile
[INFO] | +- org.springframework.retry:spring-retry:jar:1.3.1:compile
[INFO] | \- org.apache.kafka:kafka-clients:jar:2.6.0:compile
[INFO] | +- com.github.luben:zstd-jni:jar:1.4.4-7:compile
[INFO] | +- org.lz4:lz4-java:jar:1.7.1:compile
[INFO] | \- org.xerial.snappy:snappy-java:jar:1.1.7.3:compile
[INFO] +- io.grpc:grpc-netty:jar:1.25.0:compile
[INFO] | +- io.grpc:grpc-core:jar:1.25.0:compile (version selected from constraint [1.25.0,1.25.0])
[INFO] | | +- com.google.code.gson:gson:jar:2.8.6:compile
[INFO] | | +- com.google.android:annotations:jar:4.1.1.4:compile
[INFO] | | +- io.perfmark:perfmark-api:jar:0.19.0:compile
[INFO] | | +- io.opencensus:opencensus-api:jar:0.21.0:compile
[INFO] | | \- io.opencensus:opencensus-contrib-grpc-metrics:jar:0.21.0:compile
[INFO] | +- io.netty:netty-codec-http2:jar:4.1.55.Final:compile
[INFO] | | \- io.netty:netty-codec-http:jar:4.1.55.Final:compile
[INFO] | \- io.netty:netty-handler-proxy:jar:4.1.55.Final:compile
[INFO] | \- io.netty:netty-codec-socks:jar:4.1.55.Final:compile
[INFO] +- io.grpc:grpc-protobuf:jar:1.25.0:compile
[INFO] | +- io.grpc:grpc-api:jar:1.25.0:compile
[INFO] | | +- io.grpc:grpc-context:jar:1.25.0:compile
[INFO] | | +- com.google.errorprone:error_prone_annotations:jar:2.3.3:compile
[INFO] | | +- com.google.code.findbugs:jsr305:jar:3.0.2:compile
[INFO] | | \- org.codehaus.mojo:animal-sniffer-annotations:jar:1.17:compile
[INFO] | +- com.google.protobuf:protobuf-java:jar:3.10.0:compile
[INFO] | +- com.google.guava:guava:jar:28.1-android:compile
[INFO] | | +- com.google.guava:failureaccess:jar:1.0.1:compile
[INFO] | | +- com.google.guava:listenablefuture:jar:9999.0-empty-to-avoid-conflict-with-guava:compile
[INFO] | | +- org.checkerframework:checker-compat-qual:jar:2.5.5:compile
[INFO] | | \- com.google.j2objc:j2objc-annotations:jar:1.3:compile
[INFO] | +- com.google.api.grpc:proto-google-common-protos:jar:1.12.0:compile
[INFO] | \- io.grpc:grpc-protobuf-lite:jar:1.25.0:compile
[INFO] +- io.grpc:grpc-stub:jar:1.25.0:compile
[INFO] +- org.springframework.boot:spring-boot-starter-actuator:jar:2.4.2:compile
[INFO] | +- org.springframework.boot:spring-boot-actuator-autoconfigure:jar:2.4.2:compile
[INFO] | | \- org.springframework.boot:spring-boot-actuator:jar:2.4.2:compile
[INFO] | \- io.micrometer:micrometer-core:jar:1.6.2:compile
[INFO] | +- org.hdrhistogram:HdrHistogram:jar:2.1.12:compile
[INFO] | \- org.latencyutils:LatencyUtils:jar:2.0.3:runtime
[INFO] +- org.springframework.boot:spring-boot-devtools:jar:2.4.2:compile
[INFO] | +- org.springframework.boot:spring-boot:jar:2.4.2:compile
[INFO] | \- org.springframework.boot:spring-boot-autoconfigure:jar:2.4.2:compile
[INFO] +- org.hibernate:hibernate-jpamodelgen:jar:5.4.27.Final:compile
[INFO] | +- org.jboss.logging:jboss-logging:jar:3.4.1.Final:compile
[INFO] | +- javax.xml.bind:jaxb-api:jar:2.3.1:compile
[INFO] | | \- javax.activation:javax.activation-api:jar:1.2.0:compile
[INFO] | \- org.glassfish.jaxb:jaxb-runtime:jar:2.3.3:compile
[INFO] | +- org.glassfish.jaxb:txw2:jar:2.3.3:compile
[INFO] | +- com.sun.istack:istack-commons-runtime:jar:3.0.11:compile
[INFO] | \- com.sun.activation:jakarta.activation:jar:1.2.2:runtime
[INFO] +- org.springdoc:springdoc-openapi-ui:jar:1.5.2:compile
[INFO] | +- org.springdoc:springdoc-openapi-webmvc-core:jar:1.5.2:compile
[INFO] | | \- org.springdoc:springdoc-openapi-common:jar:1.5.2:compile
[INFO] | | +- io.swagger.core.v3:swagger-models:jar:2.1.6:compile
[INFO] | | +- io.swagger.core.v3:swagger-annotations:jar:2.1.6:compile
[INFO] | | +- io.swagger.core.v3:swagger-integration:jar:2.1.6:compile
[INFO] | | | \- io.swagger.core.v3:swagger-core:jar:2.1.6:compile
[INFO] | | +- io.github.classgraph:classgraph:jar:4.8.69:compile
[INFO] | | \- org.apache.commons:commons-lang3:jar:3.11:compile
[INFO] | +- org.webjars:swagger-ui:jar:3.38.0:compile
[INFO] | \- org.webjars:webjars-locator-core:jar:0.46:compile
[INFO] +- org.springdoc:springdoc-openapi-data-rest:jar:1.5.2:compile
[INFO] | +- org.springdoc:springdoc-openapi-hateoas:jar:1.5.2:compile
[INFO] | | \- org.springframework.hateoas:spring-hateoas:jar:1.2.3:compile
[INFO] | \- org.springframework.data:spring-data-rest-core:jar:3.4.2:compile
[INFO] | +- org.springframework.plugin:spring-plugin-core:jar:2.0.0.RELEASE:compile
[INFO] | \- org.atteo:evo-inflector:jar:1.2.2:compile
[INFO] +- com.datadoghq:dd-trace-api:jar:0.66.0:compile
[INFO] | \- org.slf4j:slf4j-api:jar:1.7.30:compile
[INFO] +- org.springframework.cloud:spring-cloud-starter-sleuth:jar:3.0.0:compile
[INFO] | +- org.springframework.cloud:spring-cloud-starter:jar:3.0.0:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-context:jar:3.0.0:compile
[INFO] | | | \- org.springframework.security:spring-security-crypto:jar:5.4.2:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-commons:jar:3.0.0:compile
[INFO] | | \- org.springframework.security:spring-security-rsa:jar:1.0.9.RELEASE:compile
[INFO] | | \- org.bouncycastle:bcpkix-jdk15on:jar:1.64:compile
[INFO] | | \- org.bouncycastle:bcprov-jdk15on:jar:1.64:compile
[INFO] | +- org.springframework.cloud:spring-cloud-sleuth-autoconfigure:jar:3.0.0:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-sleuth-instrumentation:jar:3.0.0:compile
[INFO] | | | \- org.springframework.cloud:spring-cloud-sleuth-api:jar:3.0.0:compile
[INFO] | | \- org.aspectj:aspectjrt:jar:1.9.6:compile
[INFO] | \- org.springframework.cloud:spring-cloud-sleuth-brave:jar:3.0.0:compile
[INFO] | +- io.zipkin.brave:brave:jar:5.13.2:compile
[INFO] | +- io.zipkin.brave:brave-context-slf4j:jar:5.13.2:compile
[INFO] | +- io.zipkin.brave:brave-instrumentation-messaging:jar:5.13.2:compile
[INFO] | +- io.zipkin.brave:brave-instrumentation-rpc:jar:5.13.2:compile
[INFO] | +- io.zipkin.brave:brave-instrumentation-spring-rabbit:jar:5.13.2:compile
[INFO] | +- io.zipkin.brave:brave-instrumentation-kafka-clients:jar:5.13.2:compile
[INFO] | +- io.zipkin.brave:brave-instrumentation-kafka-streams:jar:5.13.2:compile
[INFO] | +- io.zipkin.brave:brave-instrumentation-httpclient:jar:5.13.2:compile
[INFO] | | \- io.zipkin.brave:brave-instrumentation-http:jar:5.13.2:compile
[INFO] | +- io.zipkin.brave:brave-instrumentation-httpasyncclient:jar:5.13.2:compile
[INFO] | +- io.zipkin.brave:brave-instrumentation-jms:jar:5.13.2:compile
[INFO] | +- io.zipkin.brave:brave-instrumentation-mongodb:jar:5.13.2:compile
[INFO] | +- io.zipkin.aws:brave-propagation-aws:jar:0.21.3:compile
[INFO] | \- io.zipkin.reporter2:zipkin-reporter-metrics-micrometer:jar:2.16.1:compile
[INFO] | \- io.zipkin.reporter2:zipkin-reporter:jar:2.16.1:compile
[INFO] | \- io.zipkin.zipkin2:zipkin:jar:2.23.0:compile
[INFO] +- org.redisson:redisson:jar:3.13.2:compile
[INFO] | +- io.netty:netty-common:jar:4.1.55.Final:compile
[INFO] | +- io.netty:netty-codec:jar:4.1.55.Final:compile
[INFO] | +- io.netty:netty-buffer:jar:4.1.55.Final:compile
[INFO] | +- io.netty:netty-transport:jar:4.1.55.Final:compile
[INFO] | | \- io.netty:netty-resolver:jar:4.1.55.Final:compile
[INFO] | +- io.netty:netty-resolver-dns:jar:4.1.55.Final:compile
[INFO] | | \- io.netty:netty-codec-dns:jar:4.1.55.Final:compile
[INFO] | +- io.netty:netty-handler:jar:4.1.55.Final:compile
[INFO] | +- javax.cache:cache-api:jar:1.1.1:compile
[INFO] | +- io.projectreactor:reactor-core:jar:3.4.1:compile
[INFO] | | \- org.reactivestreams:reactive-streams:jar:1.0.3:compile
[INFO] | +- io.reactivex.rxjava2:rxjava:jar:2.2.20:compile
[INFO] | +- org.jboss.marshalling:jboss-marshalling-river:jar:2.0.9.Final:compile
[INFO] | | \- org.jboss.marshalling:jboss-marshalling:jar:2.0.9.Final:compile
[INFO] | +- org.yaml:snakeyaml:jar:1.27:compile
[INFO] | +- com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:jar:2.11.3:compile
[INFO] | +- net.bytebuddy:byte-buddy:jar:1.10.19:compile
[INFO] | \- org.jodd:jodd-bean:jar:5.0.13:compile
[INFO] | \- org.jodd:jodd-core:jar:5.0.13:compile
[INFO] \- commons-codec:commons-codec:jar:1.15:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.008 s
[INFO] Finished at: 2021-01-25T11:32:30-05:00
[INFO] ------------------------------------------------------------------------
C:\Users\test-api>
As mentioned here https://github.com/spring-projects/spring-boot/issues/25049#event-4265028906
Importing spring-cloud-sleuth as a BOM for dependency management is very suspect.
After replacing this
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-sleuth</artifactId>
<version>3.0.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
with this one it is working fine.
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>${spring-cloud.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
I also got issue while upgrading spring-boot-starter-parent to 2.4.5 i had upgraded below dependency and added below property and the spring boot application works fine now.
Pom.xml changes:
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-config</artifactId>
<version>3.0.3</version>
</dependency>
in application.yml add below property
spring.cloud.config.enabled: false

java.lang.NoSuchMethodError: org.apache.xml.security.transforms.Transform.register(Ljava/lang/String;Ljava/lang/Class;)V

I have checked my project dependency and found the required class exists in xmlsec-1.5.8.jar and that is already included. Also from the dependency structure,i see it is not being overridden by any lower version. Still i am una ble to find the reason behing this exception. I am running spring boot 2.0.5
Can you please help me resolve the below issue -
Handler dispatch failed; nested exception is java.lang.NoSuchMethodError: org.apache.xml.security.transforms.Transform.register(Ljava/lang/String;Ljava/lang/Class;)V
Dependency Tree
INFO] com.myproject.microservice:UserIDPasswordUpdate:jar:0.0.1-SNAPSHOT
[INFO] +- org.springframework.boot:spring-boot-starter-web:jar:2.0.5.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-json:jar:2.0.5.RELEASE:compile
[INFO] | | +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.9.6:compile
[INFO] | | +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.9.6:compile
[INFO] | | \- com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.9.6:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-tomcat:jar:2.0.5.RELEASE:compile
[INFO] | | +- org.apache.tomcat.embed:tomcat-embed-core:jar:8.5.34:compile
[INFO] | | +- org.apache.tomcat.embed:tomcat-embed-el:jar:8.5.34:compile
[INFO] | | \- org.apache.tomcat.embed:tomcat-embed-websocket:jar:8.5.34:compile
[INFO] | +- org.hibernate.validator:hibernate-validator:jar:6.0.12.Final:compile
[INFO] | | +- javax.validation:validation-api:jar:2.0.1.Final:compile
[INFO] | | +- org.jboss.logging:jboss-logging:jar:3.3.2.Final:compile
[INFO] | | \- com.fasterxml:classmate:jar:1.3.4:compile
[INFO] | +- org.springframework:spring-web:jar:5.0.9.RELEASE:compile
[INFO] | \- org.springframework:spring-webmvc:jar:5.0.9.RELEASE:compile
[INFO] | +- org.springframework:spring-context:jar:5.0.9.RELEASE:compile
[INFO] | \- org.springframework:spring-expression:jar:5.0.9.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-test:jar:2.0.5.RELEASE:test
[INFO] | +- org.springframework.boot:spring-boot-test:jar:2.0.5.RELEASE:test
[INFO] | +- org.springframework.boot:spring-boot-test-autoconfigure:jar:2.0.5.RELEASE:test
[INFO] | +- com.jayway.jsonpath:json-path:jar:2.4.0:test
[INFO] | | +- net.minidev:json-smart:jar:2.3:test
[INFO] | | | \- net.minidev:accessors-smart:jar:1.2:test
[INFO] | | | \- org.ow2.asm:asm:jar:5.0.4:test
[INFO] | | \- org.slf4j:slf4j-api:jar:1.7.25:compile
[INFO] | +- junit:junit:jar:4.12:test
[INFO] | +- org.assertj:assertj-core:jar:3.9.1:test
[INFO] | +- org.mockito:mockito-core:jar:2.15.0:test
[INFO] | | +- net.bytebuddy:byte-buddy:jar:1.7.11:test
[INFO] | | +- net.bytebuddy:byte-buddy-agent:jar:1.7.11:test
[INFO] | | \- org.objenesis:objenesis:jar:2.6:test
[INFO] | +- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] | +- org.hamcrest:hamcrest-library:jar:1.3:test
[INFO] | +- org.skyscreamer:jsonassert:jar:1.5.0:test
[INFO] | | \- com.vaadin.external.google:android-json:jar:0.0.20131108.vaadin1:test
[INFO] | +- org.springframework:spring-core:jar:5.0.9.RELEASE:compile
[INFO] | | \- org.springframework:spring-jcl:jar:5.0.9.RELEASE:compile
[INFO] | +- org.springframework:spring-test:jar:5.0.9.RELEASE:test
[INFO] | \- org.xmlunit:xmlunit-core:jar:2.5.1:test
[INFO] +- org.springframework.ws:spring-ws-core:jar:3.0.3.RELEASE:compile
[INFO] | +- org.springframework.ws:spring-xml:jar:3.0.3.RELEASE:compile
[INFO] | +- org.springframework:spring-aop:jar:5.0.9.RELEASE:compile
[INFO] | +- org.springframework:spring-beans:jar:5.0.9.RELEASE:compile
[INFO] | +- org.springframework:spring-oxm:jar:5.0.9.RELEASE:compile
[INFO] | \- commons-io:commons-io:jar:2.5:compile
[INFO] +- org.springframework.boot:spring-boot-starter:jar:2.0.5.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot:jar:2.0.5.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-autoconfigure:jar:2.0.5.RELEASE:compile
[INFO] | +- javax.annotation:javax.annotation-api:jar:1.3.2:compile
[INFO] | \- org.yaml:snakeyaml:jar:1.19:compile
[INFO] +- org.springframework.boot:spring-boot-starter-log4j2:jar:2.0.5.RELEASE:compile
[INFO] | +- org.apache.logging.log4j:log4j-slf4j-impl:jar:2.10.0:compile
[INFO] | | \- org.apache.logging.log4j:log4j-api:jar:2.10.0:compile
[INFO] | +- org.apache.logging.log4j:log4j-core:jar:2.10.0:compile
[INFO] | +- org.apache.logging.log4j:log4j-jul:jar:2.10.0:compile
[INFO] | \- org.slf4j:jul-to-slf4j:jar:1.7.25:compile
[INFO] +- com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:jar:2.7.3:compile
[INFO] | \- com.fasterxml.jackson.core:jackson-core:jar:2.9.6:compile
[INFO] +- com.fasterxml.jackson.core:jackson-databind:jar:2.9.4:compile
[INFO] | \- com.fasterxml.jackson.core:jackson-annotations:jar:2.9.0:compile
[INFO] +- com.google.code.gson:gson:jar:2.8.5:compile
[INFO] +- org.springframework.boot:spring-boot-starter-jdbc:jar:2.0.5.RELEASE:compile
[INFO] | +- com.zaxxer:HikariCP:jar:2.7.9:compile
[INFO] | \- org.springframework:spring-jdbc:jar:5.0.9.RELEASE:compile
[INFO] | \- org.springframework:spring-tx:jar:5.0.9.RELEASE:compile
[INFO] +- com.h2database:h2:jar:1.4.197:compile
[INFO] +- com.oracle:ojdbc6:jar:11.2.0.3:compile
[INFO] +- org.springframework.boot:spring-boot-starter-data-jpa:jar:2.0.5.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-aop:jar:2.0.5.RELEASE:compile
[INFO] | | \- org.aspectj:aspectjweaver:jar:1.8.13:compile
[INFO] | +- javax.transaction:javax.transaction-api:jar:1.2:compile
[INFO] | +- org.hibernate:hibernate-core:jar:5.2.17.Final:compile
[INFO] | | +- org.hibernate.javax.persistence:hibernate-jpa-2.1-api:jar:1.0.2.Final:compile
[INFO] | | +- org.javassist:javassist:jar:3.22.0-GA:compile
[INFO] | | +- antlr:antlr:jar:2.7.7:compile
[INFO] | | +- org.jboss:jandex:jar:2.0.3.Final:compile
[INFO] | | +- dom4j:dom4j:jar:1.6.1:compile
[INFO] | | \- org.hibernate.common:hibernate-commons-annotations:jar:5.0.1.Final:compile
[INFO] | +- org.springframework.data:spring-data-jpa:jar:2.0.10.RELEASE:compile
[INFO] | | +- org.springframework.data:spring-data-commons:jar:2.0.10.RELEASE:compile
[INFO] | | \- org.springframework:spring-orm:jar:5.0.9.RELEASE:compile
[INFO] | \- org.springframework:spring-aspects:jar:5.0.9.RELEASE:compile
[INFO] +- com.billdesk:billdesk:jar:1.0:system
[INFO] +- com.sun.xml.wss:xws-security:jar:3.0:compile
[INFO] | +- javax.xml.soap:saaj-api:jar:1.3:compile
[INFO] | +- javax.mail:mail:jar:1.4:compile
[INFO] | +- javax.xml.bind:jaxb-api:jar:2.3.0:compile
[INFO] | +- javax.xml.crypto:xmldsig:jar:1.0:compile
[INFO] | \- javax.xml.ws:jaxws-api:jar:2.1:compile
[INFO] +- javax.xml:jaxrpc-api:jar:1.1:compile
[INFO] +- org.apache.axis:axis-jaxrpc:jar:1.4:compile
[INFO] +- org.apache.cxf:cxf-rt-frontend-jaxws:jar:3.0.1:compile
[INFO] | +- xml-resolver:xml-resolver:jar:1.2:compile
[INFO] | +- asm:asm:jar:3.3.1:compile
[INFO] | +- org.apache.cxf:cxf-core:jar:3.0.1:compile
[INFO] | | +- org.codehaus.woodstox:woodstox-core-asl:jar:4.4.0:compile
[INFO] | | | \- org.codehaus.woodstox:stax2-api:jar:3.1.4:compile
[INFO] | | \- org.apache.ws.xmlschema:xmlschema-core:jar:2.1.0:compile
[INFO] | +- org.apache.cxf:cxf-rt-bindings-xml:jar:3.0.1:compile
[INFO] | +- org.apache.cxf:cxf-rt-frontend-simple:jar:3.0.1:compile
[INFO] | +- org.apache.cxf:cxf-rt-transports-http:jar:3.0.1:compile
[INFO] | \- org.apache.cxf:cxf-rt-ws-addr:jar:3.0.1:compile
[INFO] | \- org.apache.cxf:cxf-rt-ws-policy:jar:3.0.1:compile
[INFO] +- org.apache.cxf:cxf-rt-ws-security:jar:3.2.5:compile
[INFO] | +- org.apache.cxf:cxf-rt-security-saml:jar:3.2.5:compile
[INFO] | | \- org.apache.cxf:cxf-rt-security:jar:3.2.5:compile
[INFO] | +- net.sf.ehcache:ehcache:jar:2.10.5:compile
[INFO] | +- org.apache.wss4j:wss4j-ws-security-dom:jar:2.2.2:compile
[INFO] | | \- org.apache.wss4j:wss4j-ws-security-common:jar:2.2.2:compile
[INFO] | | +- org.opensaml:opensaml-saml-impl:jar:3.3.0:compile
[INFO] | | | +- org.opensaml:opensaml-profile-api:jar:3.3.0:compile
[INFO] | | | | \- org.opensaml:opensaml-core:jar:3.3.0:compile
[INFO] | | | | \- io.dropwizard.metrics:metrics-core:jar:3.2.6:compile
[INFO] | | | +- org.opensaml:opensaml-saml-api:jar:3.3.0:compile
[INFO] | | | | +- org.opensaml:opensaml-xmlsec-api:jar:3.3.0:compile
[INFO] | | | | \- org.opensaml:opensaml-soap-api:jar:3.3.0:compile
[INFO] | | | +- org.opensaml:opensaml-security-impl:jar:3.3.0:compile
[INFO] | | | | \- org.opensaml:opensaml-security-api:jar:3.3.0:compile
[INFO] | | | | +- org.cryptacular:cryptacular:jar:1.1.1:compile
[INFO] | | | | \- org.bouncycastle:bcprov-jdk15on:jar:1.54:compile
[INFO] | | | +- org.opensaml:opensaml-xmlsec-impl:jar:3.3.0:compile
[INFO] | | | +- net.shibboleth.utilities:java-support:jar:7.3.0:compile
[INFO] | | | | \- com.google.guava:guava:jar:19.0:compile
[INFO] | | | \- commons-codec:commons-codec:jar:1.11:compile
[INFO] | | +- org.opensaml:opensaml-xacml-impl:jar:3.3.0:compile
[INFO] | | | \- org.opensaml:opensaml-xacml-api:jar:3.3.0:compile
[INFO] | | +- org.opensaml:opensaml-xacml-saml-impl:jar:3.3.0:compile
[INFO] | | | \- org.opensaml:opensaml-xacml-saml-api:jar:3.3.0:compile
[INFO] | | +- org.jasypt:jasypt:jar:1.9.2:compile
[INFO] | | \- org.apache.geronimo.javamail:geronimo-javamail_1.4_mail:jar:1.8.4:compile
[INFO] | +- org.apache.wss4j:wss4j-policy:jar:2.2.2:compile
[INFO] | | \- org.apache.neethi:neethi:jar:3.1.1:compile
[INFO] | +- org.apache.wss4j:wss4j-ws-security-stax:jar:2.2.2:compile
[INFO] | | \- org.apache.wss4j:wss4j-bindings:jar:2.2.2:compile
[INFO] | \- org.apache.wss4j:wss4j-ws-security-policy-stax:jar:2.2.2:compile
[INFO] +- org.apache.ws.security:wss4j:jar:1.6.19:compile
[INFO] | +- commons-logging:commons-logging:jar:1.1.1:compile
[INFO] | +- org.apache.santuario:xmlsec:jar:1.5.8:compile
[INFO] | \- org.opensaml:opensaml:jar:2.5.1-1:compile
[INFO] | \- org.opensaml:openws:jar:1.4.2-1:compile
[INFO] | \- org.opensaml:xmltooling:jar:1.3.2-1:compile
[INFO] | \- joda-time:joda-time:jar:2.9.9:compile
[INFO] +- javax.activation:activation:jar:1.1.1:compile
[INFO] \- org.apache.cxf:cxf-rt-bindings-soap:jar:3.0.1:compile
[INFO] +- org.apache.cxf:cxf-rt-wsdl:jar:3.0.1:compile
[INFO] | \- wsdl4j:wsdl4j:jar:1.6.3:compile
[INFO] \- org.apache.cxf:cxf-rt-databinding-jaxb:jar:3.0.1:compile
[INFO] +- com.sun.xml.bind:jaxb-impl:jar:2.2.10-b140310.1920:compile
[INFO] \- com.sun.xml.bind:jaxb-core:jar:2.2.10-b140310.1920:compile
POM.xml
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.ws</groupId>
<artifactId>spring-ws-core</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-log4j2</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-yaml</artifactId>
<version>2.7.3</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.9.4</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.google.code.gson/gson -->
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.5</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
</dependency>
<!-- https://mvnrepository.com/artifact/oracle/ojdbc6 -->
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc6</artifactId>
<version>11.2.0.3</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>com.billdesk</groupId>
<artifactId>billdesk</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/src/main/resources/lib/billdeskenc-1.0.jar</systemPath>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.wss4j/wss4j-ws-security-common -->
<!-- <dependency> <groupId>org.apache.wss4j</groupId> <artifactId>wss4j-ws-security-common</artifactId>
<version>2.0.3</version> </dependency> -->
<!-- -->
<dependency>
<groupId>com.sun.xml.wss</groupId>
<artifactId>xws-security</artifactId>
<version>3.0</version>
<exclusions>
<exclusion>
<groupId>javax.xml.stream</groupId>
<artifactId>stax-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>javax.xml</groupId>
<artifactId>jaxrpc-api</artifactId>
<version>1.1</version>
</dependency>
<!-- https://mvnrepository.com/artifact/axis/axis-jaxrpc -->
<dependency>
<groupId>axis</groupId>
<artifactId>axis-jaxrpc</artifactId>
<version>1.4</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.cxf/cxf-rt-frontend-jaxws -->
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxws</artifactId>
<version>3.0.1</version>
<exclusions>
<exclusion>
<artifactId>cxf-rt-transports-http</artifactId>
<groupId>org.apache.cxf</groupId>
</exclusion>
</exclusions>
</dependency>
<!-- excluding -->
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-ws-security</artifactId>
<version>3.2.5</version>
</dependency>
<dependency>
<groupId>org.apache.ws.security</groupId>
<artifactId>wss4j</artifactId>
<version>1.6.19</version>
</dependency>
<!-- https://mvnrepository.com/artifact/javax.activation/activation -->
<dependency>
<groupId>javax.activation</groupId>
<artifactId>activation</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-bindings-soap</artifactId>
<version>3.0.1</version>
<scope>compile</scope>
</dependency>
<!-- excluding -->
<!-- <dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-rs-extension-providers</artifactId>
<version>3.0.1</version>
<scope>compile</scope>
</dependency> -->
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxws</artifactId>
<version>3.0.1</version>
<scope>compile</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/xml-security/xmlsec -->
</dependencies>
<build>
<pluginManagement>
<plugins>
<!--This plugin's configuration is used to store Eclipse m2e settings
only. It has no influence on the Maven build itself. -->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>
org.apache.cxf
</groupId>
<artifactId>
cxf-codegen-plugin
</artifactId>
<versionRange>
[${org.apache.cxf.version},)
</versionRange>
<goals>
<goal>wsdl2java</goal>
</goals>
</pluginExecutionFilter>
<action>
<execute />
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId>
<version>3.0.4</version>
<executions>
<execution>
<id>generate-sources</id>
<phase>generate-sources</phase>
<goals>
<goal>wsdl2java</goal>
</goals>
<configuration>
<sources>
<source>${project.build.directory}/generated-sources/cxf</source>
</sources>
</configuration>
</execution>
</executions>
<configuration>
<source>1.8</source>
<target>1.8</target>
<wsdlOptions>
<wsdlOption>
<wsdl>${basedir}/src/main/resources/wsdls/AccountInquiry.wsdl</wsdl>
</wsdlOption>
</wsdlOptions>
</configuration>
</plugin>
I have found the solution for the above mentioned issue and it was due to conflicting dependency issue. Incorporating several maven dependency for several issues or development was the reason behind is. What i finally did is declaring the cxf version on top of all other related dependency and referring that cxf version for all the related dependencies and finally worked!
<properties>
<cxf.version>2.7.14</cxf.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
</properties>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxws</artifactId>
<version>${cxf.version}</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-ws-security</artifactId>
<version>${cxf.version}</version>
</dependency>

can not launch cucumber simple test

I have Spring project. Now I try to launch simple cucumber test and got an error((( I thought this is because of Spring so I created separate project with next structure:
src/
|
| --main/
| --java/
| --cucumber/
| --CucumberRunner
| --features
| --MyFeatures.feature
| --StepDefinitions.java
And still I get the same error((
Caused by: java.lang.ClassNotFoundException: org.xmlpull.v1.XmlPullParserException
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 28 more
My Runner:
#RunWith(Cucumber.class)
#CucumberOptions(
format ={"pretty", "json:target/cucumber.json"},
features = {"src/main/java"}
)
public class CucumberRunner {
}
I know that path is incorrect here but I tried all possible combinations - the result is the same(((
My feature:
Feature: Testing my simple kickstarter project
Scenario: My first test
Given I navigate to Categories page
When When I enter 'f'
Then Error is displayed
My steps:
public class StepDefinitions {
#Given("^I navigate to Categories page$")
public void i_navigate_to_Categories_page() throws Throwable {
// Write code here that turns the phrase above into concrete actions
throw new PendingException();
}
#When("^When I enter 'f'$")
public void when_I_enter_f() throws Throwable {
// Write code here that turns the phrase above into concrete actions
throw new PendingException();
}
#Then("^Error is displayed$")
public void error_is_displayed() throws Throwable {
// Write code here that turns the phrase above into concrete actions
throw new PendingException();
}
}
My pom.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 ht
tp://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>cucumber</groupId>
<artifactId>cucumber</artifactId>
<version>1.0-SNAPSHOT</version>
<dependencies>
<!--Cucumber jars-->
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-java</artifactId>
<version>1.1.5</version>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-testng</artifactId>
<version>1.1.5</version>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-junit</artifactId>
<version>1.1.5</version>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-testng</artifactId>
<version>1.1.5</version>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-core</artifactId>
<version>1.1.5</version>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-jvm-deps</artifactId>
<version>1.0.3</version>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-html</artifactId>
<version>0.2.3</version>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>gherkin</artifactId>
<version>2.12.1</version>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-all</artifactId>
<version>1.3</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-server</artifactId>
<version>2.42.0</version>
</dependency>
</dependencies>
PLease help. I checked google - no result on error((
Edit:
Result of mvn dependency:tree:
[INFO] cucumber:cucumber:jar:1.0-SNAPSHOT
[INFO] +- info.cukes:cucumber-java:jar:1.1.5:compile
[INFO] +- info.cukes:cucumber-testng:jar:1.1.5:compile
[INFO] | \- org.testng:testng:jar:6.8.7:compile
[INFO] | +- org.beanshell:bsh:jar:2.0b4:compile
[INFO] | \- com.beust:jcommander:jar:1.27:compile
[INFO] +- info.cukes:cucumber-junit:jar:1.1.5:compile
[INFO] | \- junit:junit:jar:4.11:compile
[INFO] | \- org.hamcrest:hamcrest-core:jar:1.3:compile
[INFO] +- info.cukes:cucumber-core:jar:1.1.5:compile
[INFO] +- info.cukes:cucumber-jvm-deps:jar:1.0.3:compile
[INFO] +- info.cukes:cucumber-html:jar:0.2.3:compile
[INFO] +- info.cukes:gherkin:jar:2.12.1:compile
[INFO] +- org.hamcrest:hamcrest-all:jar:1.3:compile
[INFO] \- org.seleniumhq.selenium:selenium-server:jar:2.42.0:compile
[INFO] +- org.bouncycastle:bcprov-jdk15on:jar:1.48:compile
[INFO] +- org.bouncycastle:bcpkix-jdk15on:jar:1.48:compile
[INFO] +- mx4j:mx4j-tools:jar:3.0.1:compile
[INFO] +- org.mortbay.jetty:servlet-api-2.5:jar:6.1.9:compile
[INFO] +- org.seleniumhq.selenium:jetty-repacked:jar:7.6.1:compile
[INFO] +- net.jcip:jcip-annotations:jar:1.0:compile
[INFO] +- org.seleniumhq.selenium:selenium-java:jar:2.42.0:compile
[INFO] | +- org.seleniumhq.selenium:selenium-chrome-driver:jar:2.42.0:compile
[INFO] | | \- org.seleniumhq.selenium:selenium-remote-driver:jar:2.42.0:compile
[INFO] | | +- cglib:cglib-nodep:jar:2.1_3:compile
[INFO] | | +- org.json:json:jar:20080701:compile
[INFO] | | \- com.google.guava:guava:jar:15.0:compile
[INFO] | +- org.seleniumhq.selenium:selenium-htmlunit-driver:jar:2.42.0:compile
[INFO] | | +- net.sourceforge.htmlunit:htmlunit:jar:2.14:compile
[INFO] | | | +- xalan:xalan:jar:2.7.1:compile
[INFO] | | | | \- xalan:serializer:jar:2.7.1:compile
[INFO] | | | +- commons-collections:commons-collections:jar:3.2.1:compile
[INFO] | | | +- org.apache.commons:commons-lang3:jar:3.2.1:compile
[INFO] | | | +- org.apache.httpcomponents:httpmime:jar:4.3.2:compile
[INFO] | | | +- net.sourceforge.htmlunit:htmlunit-core-js:jar:2.14:compile
[INFO] | | | +- xerces:xercesImpl:jar:2.11.0:compile
[INFO] | | | | \- xml-apis:xml-apis:jar:1.4.01:compile
[INFO] | | | +- net.sourceforge.nekohtml:nekohtml:jar:1.9.20:compile
[INFO] | | | +- net.sourceforge.cssparser:cssparser:jar:0.9.13:compile
[INFO] | | | | \- org.w3c.css:sac:jar:1.3:compile
[INFO] | | | +- commons-logging:commons-logging:jar:1.1.3:compile
[INFO] | | | \- org.eclipse.jetty:jetty-websocket:jar:8.1.14.v20131031:compile
[INFO] | | | +- org.eclipse.jetty:jetty-util:jar:8.1.14.v20131031:compile
[INFO] | | | +- org.eclipse.jetty:jetty-io:jar:8.1.14.v20131031:compile
[INFO] | | | \- org.eclipse.jetty:jetty-http:jar:8.1.14.v20131031:compile
[INFO] | | \- org.apache.httpcomponents:httpclient:jar:4.3.2:compile
[INFO] | | \- org.apache.httpcomponents:httpcore:jar:4.3.1:compile
[INFO] | +- org.seleniumhq.selenium:selenium-firefox-driver:jar:2.42.0:compile
[INFO] | | +- commons-io:commons-io:jar:2.4:compile
[INFO] | | \- org.apache.commons:commons-exec:jar:1.1:compile
[INFO] | +- org.seleniumhq.selenium:selenium-ie-driver:jar:2.42.0:compile
[INFO] | | +- net.java.dev.jna:jna:jar:3.4.0:compile
[INFO] | | \- net.java.dev.jna:platform:jar:3.4.0:compile
[INFO] | +- org.seleniumhq.selenium:selenium-safari-driver:jar:2.42.0:compile
[INFO] | +- org.seleniumhq.selenium:selenium-support:jar:2.42.0:compile
[INFO] | | \- org.seleniumhq.selenium:selenium-api:jar:2.42.0:compile
[INFO] | \- org.webbitserver:webbit:jar:0.4.14:compile
[INFO] | \- io.netty:netty:jar:3.5.2.Final:compile
[INFO] +- org.yaml:snakeyaml:jar:1.8:compile
[INFO] \- commons-codec:commons-codec:jar:1.9:compile
EDIT: After Adding the next libraries:
<dependency>
<groupId>org.ogce</groupId>
<artifactId>xpp3</artifactId>
<version>1.1.5</version>
</dependency>
<dependency>
<groupId>org.jdom</groupId>
<artifactId>jdom</artifactId>
<version>1.1</version>
</dependency>
<dependency>
<groupId>dom4j</groupId>
<artifactId>dom4j</artifactId>
<version>1.6.1</version>
</dependency>
<dependency>
<groupId>xom</groupId>
<artifactId>xom</artifactId>
<version>1.2.5</version>
</dependency>
<dependency>
<groupId>org.codehaus.woodstox</groupId>
<artifactId>wstx-lgpl</artifactId>
<version>3.2.6</version>
</dependency>
<dependency>
<groupId>stax</groupId>
<artifactId>stax</artifactId>
<version>1.2.0</version>
</dependency>
Finally I can compile it but still my feature file can not see steps((
Test ignored.
Test ignored.
Test ignored.
Test ignored.
Test ignored.
Test ignored.Feature: Testing my simple kickstarter project
Scenario: My first test # features/myFeatures.feature:3
Given I navigate to Categories page
When When I enter 'f'
Then Error is displayed
1 Scenarios (1 undefined)
3 Steps (3 undefined)
0m0.000s
You can implement missing steps with the snippets below:
....
You are getting this error because you are missing a XML Pull parser library. You can add one with the following dependency in your POM. You will also need to add the Jdom library
<dependency>
<groupId>org.ogce</groupId>
<artifactId>xpp3</artifactId>
<version>1.1.5</version>
</dependency>
<dependency>
<groupId>org.jdom</groupId>
<artifactId>jdom</artifactId>
<version>2.0.2</version>
</dependency>

Resources