ehcache / ehcache3

Ehcache 3.x line
http://www.ehcache.org
Apache License 2.0
2.02k stars 580 forks source link

Support for jaxb-runtime 4+? #3208

Closed Selaron closed 10 months ago

Selaron commented 11 months ago

Hello,

when loading a ehcache.xml using ehcache 3.10 I get an exception:

Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/ValidationEventHandler

This is because ehcache3 requires jaxb-runtime < 3 while hibernate-core 6 requires jaxb-runtime >= 4.

Is ehache going to upgrade this dependency and migrate to jakarta.* namespace?

laurentschoelens commented 10 months ago

Normally the jakarta classifier should do the job

Selaron commented 10 months ago

Indeed, the jakarta classifier does the job. Thanks. This can be closed.

  <dependency>
    <groupId>org.ehcache</groupId>
    <artifactId>ehcache</artifactId>
    <version>${ehcache.version}</version>
    <classifier>jakarta</classifier>
  </dependency>