oscerd commented on issue #1722: URL: https://github.com/apache/camel-kafka-connector/issues/1722#issuecomment-4213335509
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.
1. Confluent's Kafka Connect runtime loads its Jetty 12.0.x JARs (including
jetty-ee10-servlet) onto the classpath.
2. Camel's Salesforce connector bundles Jetty 12.1.6 JARs (jetty-client,
jetty-util, etc.).
3. 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:
1. Wait for Confluent to upgrade to Jetty 12.1.x, or
2. Carefully manage classloader isolation to prevent JAR conflicts.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
