ehcache / ehcache3

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

Support for jaxb-runtime 4+? #3208

Closed Selaron closed 7 months ago

Selaron commented 7 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 7 months ago

Normally the jakarta classifier should do the job

Selaron commented 7 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>