jolokia / jolokia

JMX on Capsaicin
https://www.jolokia.org
Apache License 2.0
808 stars 218 forks source link

Tomcat 10 / JakartaEE not supported #544

Closed KoushikMaity closed 10 months ago

KoushikMaity commented 1 year ago

class org.jolokia.http.AgentServlet cannot be cast to class jakarta.servlet.Servlet (org.jolokia.http.AgentServlet and jakarta.servlet.Servlet are in unnamed module of loader 'app')

Latest version of Jolokia still using javax so it is not compatible with tomcat 10.

Exception thrown in StandardWrapper.java of org.apache.catalina.core.

Please release compatible version for tomcat10.

RustyDust commented 1 year ago

While waiting for pr #540 to get applied, you can try to add to your Tomcat's context.xml:

...
<Context>
   ...
   <Loader  jakartaConverter="TOMCAT" />
</Context>

wfm,ymmv

rui-zhou-phx commented 11 months ago

does it mean jolokia doesn't support spring boot 3.x?

tadayosi commented 11 months ago

@rui-zhou-phx Right now, Spring Boot 3.x has dropped its Jolokia endpoint because Jolokia 1.x isn't compatible with Jakarta EE yet. We are working on Jolokia 2.0 which is based on Jakarta EE 9/10 https://github.com/jolokia/jolokia/discussions/555. Once it's released we can restore support for Spring Boot 3.x.

grgrzybek commented 10 months ago

I'm closing this one in favor of #451, which has several external mentions (e.g., from Spring Boot)