Bug 64805 - JMXProxyServlet dependencies are missing in embedded tomcat
Summary: JMXProxyServlet dependencies are missing in embedded tomcat
Alias: None
Product: Tomcat 9
Classification: Unclassified
Component: Packaging (show other bugs)
Version: 9.0.38
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: -----
Assignee: Tomcat Developers Mailing List
Depends on:
Reported: 2020-10-12 14:05 UTC by Michael Cramer
Modified: 2020-10-12 14:30 UTC (History)
0 users

code to reproduce (1.68 KB, text/x-java)
2020-10-12 14:05 UTC, Michael Cramer

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Cramer 2020-10-12 14:05:52 UTC
Created attachment 37496 [details]
code to reproduce

We are using the embedded-tomcat with a spring-boot application and enabled the JMXProxyServlet to get access to the JMX values.

When we enabled it we got a java.lang.ClassNotFoundException: org.apache.catalina.tribes.util.StringManager

so it looks like not all dependencies are included in the embedded tomcat that are needed for the JMXProxyServlet
Comment 1 Michael Cramer 2020-10-12 14:06:35 UTC
only used dependencies are in pom.xml

Comment 2 Mark Thomas 2020-10-12 14:15:34 UTC
That is a bug in JMXProxyServlet. It is importing from the wrong package. I'll fix that shortly.
Comment 3 Mark Thomas 2020-10-12 14:30:41 UTC
Fixed in:
- 10.0.x for 10.0.0-M10 onwards
- 9.0.x for 9.0.40 onwards
- 8.5.x for 8.5.60 onwards
- 7.0.x for 7.0.107 onwards