We are currently using kafka-schema-registry-client version 8.1.1, which depends on Jetty 9.4.58.v20250814.
We would like to know if there are any plans to upgrade Jetty to the 12.0.x series in upcoming releases.
In our setup, we are also using camel-salesforce 4.18.0, which brings in a newer Jetty version. This is causing a version mismatch on the classpath, leading to runtime issues.
Could you please advise:
Whether an upgrade to Jetty 12 is planned, and
If there is a recommended approach to handle this compatibility in the meantime?
I’m not seeing this if I run mvn dependency:tree on the 8.1.1-post branch of schema-registry. It shows Jetty 12.0.25 which comes from here. What do you see that suggests Jetty 9 is coming from kafka-schema-registry-client? What is your app’s output if you run mvn dependency:tree / gradle dependencies?
Yes, I understand that confluentinc/cp-kafka-connect:8.2.0 is currently using Jetty 12.0.x.
However, I am encountering the following error while upgrading the Apache Camel Salesforce Source Connector. I have also consulted the Apache Camel team regarding this issue, and below is their response:———————————————————————————————————–
“Jetty 12.0.x and 12.1.x are not compatible. The Environment.ensure(String) method exists in Jetty 12.1.x but not in 12.0.x.
Confluent’s Kafka Connect runtime loads its Jetty 12.0.x JARs (including jetty-ee10-servlet) onto the classpath.
At startup, jetty-ee10-servlet from Confluent (compiled against 12.0.x) calls Environment.ensure(), but if the jetty-util JAR on the classpath is Camel’s 12.1.6 version (or vice versa), the method signature doesn’t match, causing the NoSuchMethodError.
The solution is:
Wait for Confluent to upgrade to Jetty 12.1.x, or
Carefully manage classloader isolation to prevent JAR conflicts.”
———————————————————————————————————–
Error encountered:
java.lang.NoSuchMethodError: ‘org.eclipse.jetty.util.component.Environment org.eclipse.jetty.util.component.Environment.ensure(java.lang.String)’
at org.eclipse.jetty.ee10.servlet.ServletContextHandler.(ServletContextHandler.java:135)
at org.apache.kafka.connect.runtime.rest.RestServer.initializeResources(RestServer.java:259)
at org.apache.kafka.connect.runtime.rest.ConnectRestServer.initializeResources(ConnectRestServer.java:45)
at org.apache.kafka.connect.runtime.Connect.start(Connect.java:71)
at org.apache.kafka.connect.cli.AbstractConnectCli.startConnect(AbstractConnectCli.java:146)
at org.apache.kafka.connect.cli.AbstractConnectCli.run(AbstractConnectCli.java:95)
at org.apache.kafka.connect.cli.ConnectDistributed.main(ConnectDistributed.java:112)
In this context, could you please let me know if there are any plans to upgrade Jetty to version 12.1.x in the current or upcoming releases of Kafka Connect?