#3018·wiremock

Jetty 12 reports deprecation warnings with CrossOriginFilter

Author: ascopesCreated Apr 8, 2025Updated Sep 16, 2026
Labelsbug

Proposal

It appears that running the support for Jetty 11 with a Jetty 12 server behind the scenes is utilising a now-deprecated class.

2025-04-08T09:50:20.757+01:00  WARN 46943 --- [my-wiremock-service] [           main] o.eclipse.jetty.util.DeprecationWarning  : Using @Deprecated Class org.eclipse.jetty.ee10.servlets.CrossOriginFilter

The JavaDoc for this deprecated class suggests...

Deprecated Use org.eclipse.jetty.server.handler.CrossOriginHandler instead

...however this is not deprecated in Jetty 11 itself.

When Jetty 12 support is provided officially, this class reference will probably want to be swapped out.


Outside this warning, I can confirm that the Jetty 12 support works perfectly fine under significant load.

Reproduction steps

Run the WireMock server with Jetty 12 on the classpath.

References

No response