-
Bug
-
Resolution: Not A Defect
-
Major
-
None
-
Jenkins 2.462.2, OpenJDK 21, Tomcat 10.1
Metrics Plugin v4.2.21-451.vd51df8df52ec
The metrics plugin fails to load when running under Java 21 on Tomcat 10.1. It appears to be an iCaused by:
java.lang.NoSuchMethodError: 'void hudson.util.PluginServletFilter.addFilter(javax.servlet.Filter)'
Which has been changed along with support of recent Java versions that no longer reference javax.servlet.Filter
10-Sep-2024 14:01:58.618 WARNING [Loading plugin Metrics Plugin v4.2.21-451.vd51df8df52ec (metrics)] jenkins.model.Jenkins$5.runTask Loading plugin Metrics Plugin v4.2.21-451.vd51df8df52ec (metrics) failed perhaps due to plugin dependency issues java.io.IOException: Failed to initialize at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:403) at hudson.PluginManager$2$1$1.run(PluginManager.java:556) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:177) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:305) at jenkins.model.Jenkins$5.runTask(Jenkins.java:1175) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:221) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:120) at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) at java.base/java.lang.Thread.run(Thread.java:1583) Caused by: java.lang.NoSuchMethodError: 'void hudson.util.PluginServletFilter.addFilter(javax.servlet.Filter)' at PluginClassLoader for metrics//jenkins.metrics.api.Metrics.start(Metrics.java:280) at hudson.ClassicPluginStrategy.startPlugin(ClassicPluginStrategy.java:411) at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:400) ... 10 more