mhuebner opened a new issue, #1208:
URL: https://github.com/apache/grails-spring-security/issues/1208
### Expected Behavior
With Jakarta EE 9 (2020), the namespace was changed from javax.* to
jakarta.*. Spring Boot 3 and Grails 7 are based on Jakarta EE 9+, so all
dependencies must be Jakarta-compatible.
**Dependency should be**
`org.ehcache:ehcache:3.x.x:jakarta`
### Actual Behaviour
When migrating to Grails 7 / Spring Boot 3, a conflict with the ehcache
dependency occurs.
**Error Message**
`java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException`
or
`Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException`
**Workaround:**
Exclude `org.ehcache:ehcache`
```
implementation("org.apache.grails:grails-spring-security:${grailsSpringSecurityVersion}")
{
// grails-spring-security declares ehcache without jakarta classifier,
which conflicts
// with Jakarta EE (Grails 7 / Spring Boot 3). We exclude it and add the
jakarta variant explicitly.
exclude group: 'org.ehcache', module: 'ehcache'
}
// Add ehcache with jakarta classifier
implementation "org.ehcache:ehcache:3.10.8:jakarta"
```
### Steps To Reproduce
_No response_
### Environment Information
- JDK 17
- MacOS
- Grails 7.0.7
- Gradle 8.14.3
### Example Application
_No response_
### Version
7.0.7
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]