Closed pSinghDelaplex closed 2 months ago
Spring Boot 3.x requires Jakarta EE 9 or later but javax.ws.rs.ext.RuntimeDelegate
is from Jakarta EE 8 or earlier. I know essentially nothing about OpsGenie and its Java SDK, but, I assume that it uses JAX-RS somehow and that you'll need to upgrade to a Jakarta EE 9 compatible version of it.
Previously Our service is implemented on spring boot 2.7.1 and we are able to send alerts to opsgenie when services are UP/DOWN. Now, we migrated our service it to version 3.2.5 and alerts are not being sent after updating the version.
build.gradle
application.yml
I have used alerts implementation based on opsgenie docs https://docs.opsgenie.com/docs/opsgenie-java-api and its working fine with Spring Boot 2.7.1 but not with Spring boot 3.2.5 version.
Error while sending alert with upgraded spring boot version
Exception: java.lang.LinkageError: ClassCastException: attempting to castjar:file:/xyz/javax.ws.rs-api-2.0.1.jar!/javax/ws/rs/ext/RuntimeDelegate.class to /xyz/javax.ws.rs-api-2.0.1.jar!/javax/ws/rs/ext/RuntimeDelegate.class