This is an automated email from the ASF dual-hosted git repository.

rzo1 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomee.git


The following commit(s) were added to refs/heads/main by this push:
     new 73aff4d92b tck/rest-client: align WireMock/SSE Jetty stack to Jetty 11
73aff4d92b is described below

commit 73aff4d92b9dac603025b5a5294018434a23881d
Author: Richard Zowalla <[email protected]>
AuthorDate: Sun May 24 19:48:31 2026 +0200

    tck/rest-client: align WireMock/SSE Jetty stack to Jetty 11
    
    The reactor manages jetty-server/http/io/security/util to Jetty 12, but
    WireMock 3.x and the MP Rest Client TCK's SSE HttpSseServer run on Jetty 11.
    The version split left jetty-servlet:11 (ServletHandler) resolving against
    jetty-server:12, where org.eclipse.jetty.server.handler.ScopedHandler was
    removed, so the SSE mock server failed to start with NoClassDefFoundError.
    Override the affected test-scope artifacts back to Jetty 11.0.24 in this
    module only so the WireMock/SSE Jetty stack is coherent again.
---
 tck/microprofile-tck/rest-client/pom.xml | 42 ++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

diff --git a/tck/microprofile-tck/rest-client/pom.xml 
b/tck/microprofile-tck/rest-client/pom.xml
index 4437ba0cd2..672ef51478 100644
--- a/tck/microprofile-tck/rest-client/pom.xml
+++ b/tck/microprofile-tck/rest-client/pom.xml
@@ -30,6 +30,8 @@
 
   <properties>
     <wiremock.version>3.13.1</wiremock.version>
+    <!-- WireMock 3.x and the MP Rest Client TCK's SSE HttpSseServer run on 
Jetty 11. -->
+    <version.jetty11>11.0.24</version.jetty11>
   </properties>
 
   <build>
@@ -145,6 +147,46 @@
     </profile>
   </profiles>
 
+  <!--
+    The TomEE reactor manages jetty-server/http/io/security/util to Jetty 12
+    (${version.jetty}). WireMock 3.x pulls the rest of its Jetty stack
+    (jetty-servlet, jetty-servlets, jetty-webapp, ...) at Jetty 11, so the 
reactor's
+    management splits WireMock into a mixed 11/12 Jetty. The TCK's SSE 
HttpSseServer
+    then loads jetty-servlet:11's org.eclipse.jetty.servlet.ServletHandler, 
whose
+    superclass org.eclipse.jetty.server.handler.ScopedHandler was removed in 
Jetty 12,
+    and the SSE server dies with NoClassDefFoundError. Override these 
test-scope
+    artifacts back to the Jetty 11 line WireMock uses so the whole stack is 
coherent.
+  -->
+  <dependencyManagement>
+    <dependencies>
+      <dependency>
+        <groupId>org.eclipse.jetty</groupId>
+        <artifactId>jetty-server</artifactId>
+        <version>${version.jetty11}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.eclipse.jetty</groupId>
+        <artifactId>jetty-http</artifactId>
+        <version>${version.jetty11}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.eclipse.jetty</groupId>
+        <artifactId>jetty-io</artifactId>
+        <version>${version.jetty11}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.eclipse.jetty</groupId>
+        <artifactId>jetty-security</artifactId>
+        <version>${version.jetty11}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.eclipse.jetty</groupId>
+        <artifactId>jetty-util</artifactId>
+        <version>${version.jetty11}</version>
+      </dependency>
+    </dependencies>
+  </dependencyManagement>
+
   <dependencies>
     <dependency>
       <groupId>org.eclipse.microprofile.rest.client</groupId>

Reply via email to