0

i have done an update to java 17 and spring boot. after updating spring boot to 2.7.4 i got the following error:

Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/codehaus/stax2/ri/Stax2EventFactoryImpl

every test works with spring boot 2.6.7 and getting failed after update to spring boot 2.7.4.

used dependencies and versions:

<jacoco-plugin.version>0.8.8</jacoco-plugin.version>
<spring-boot-admin-starter-client.version>2.7.5</spring-boot-admin-starter-client.version>
<spring-boot-solr.version>2.4.13</spring-boot-solr.version>
<oracle.version>21.7.0.0</oracle.version>
<springdoc.version>1.6.11</springdoc.version>
<jwt.version>0.11.5</jwt.version>
<keycloak.version>16.1.0</keycloak.version>
<jsoup.version>1.14.3</jsoup.version>
<spotbugs-maven-plugin.version>4.7.2.0</spotbugs-maven-plugin.version>
<findsecbugs-plugin.version>1.12.0</findsecbugs-plugin.version>
<dependency-check-maven.version>7.2.1</dependency-check-maven.version>

i cannot find whats wrong here. thanks in advance

Heiko

gorecode
  • 1
  • 1

0 Answers0