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

reta pushed a commit to branch 4.0.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git


The following commit(s) were added to refs/heads/4.0.x-fixes by this push:
     new 6c2d45ab4c Exclude Jersey from the Glassfish deployment (Jakarta 
RESTful Services TCK run)
6c2d45ab4c is described below

commit 6c2d45ab4c13fce45f1aebd41b0a351ce715d4a6
Author: Andriy Redko <[email protected]>
AuthorDate: Sat Nov 2 10:14:29 2024 -0400

    Exclude Jersey from the Glassfish deployment (Jakarta RESTful Services TCK 
run)
---
 tck/Jenkinsfile | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/tck/Jenkinsfile b/tck/Jenkinsfile
index f5e1c4f107..36a7180b13 100644
--- a/tck/Jenkinsfile
+++ b/tck/Jenkinsfile
@@ -143,6 +143,14 @@ pipeline {
                     sh "cp -r 
jakartaee-tck/release/JAXRS_BUILD/latest/restful-ws-tck ${WORKSPACE}"
                     sh "yes | cp -vr ts.jte.template ${TS_HOME}/bin/ts.jte"
 
+                    // It seems to be impossible to exclude Jersey from the 
Glassfish deployment but it 
+                    // interferes with Apache CXF, as such some tests cases 
are failing. Modifying the Jersey 
+                    // manifest to exclude 'jakarta.ws.rs.ext.RuntimeDelegate' 
from Jersey so the Apache CXF
+                    // implementation will be used reliably all the time.
+                    sh 'zip -d 
${WORKSPACE}/glassfish6/glassfish/modules/jersey-server.jar 
META-INF/services/jakarta.ws.rs.ext.RuntimeDelegate'
+                    sh 'zip -d 
${WORKSPACE}/glassfish6/glassfish/modules/jersey-common.jar 
META-INF/services/jakarta.ws.rs.ext.RuntimeDelegate'
+                    sh 'zip -d 
${WORKSPACE}/glassfish6/glassfish/modules/jersey-client.jar 
META-INF/services/jakarta.ws.rs.client.ClientBuilder'
+
                     dir("${TS_HOME}/bin") {
                         sh "ant config.vi"
                         sh "ant deploy.all"

Reply via email to