From fbbad3c5499f0bdaad13a9ed121feef44f631f71 Mon Sep 17 00:00:00 2001 From: Jim Ma Date: Wed, 12 Jul 2023 12:02:47 +0800 Subject: [PATCH] [JBWS-4387]:Add cxf modules and fix AddressingTestCase --- modules/feature-pack/pom.xml | 125 ++++++++++++++++ .../base/org/apache/cxf/impl/main/module.xml | 138 ++++++++++++++++++ .../base/org/apache/cxf/main/module.xml | 70 +++++++++ .../apache/cxf/services-sts/main/module.xml | 78 ++++++++++ .../apache/cxf/ws-security/main/module.xml | 65 +++++++++ .../jaxws/samples/wsa/AddressingTestCase.java | 2 +- 6 files changed, 477 insertions(+), 1 deletion(-) create mode 100644 modules/feature-pack/src/main/resources/modules/system/layers/base/org/apache/cxf/impl/main/module.xml create mode 100644 modules/feature-pack/src/main/resources/modules/system/layers/base/org/apache/cxf/main/module.xml create mode 100644 modules/feature-pack/src/main/resources/modules/system/layers/base/org/apache/cxf/services-sts/main/module.xml create mode 100644 modules/feature-pack/src/main/resources/modules/system/layers/base/org/apache/cxf/ws-security/main/module.xml diff --git a/modules/feature-pack/pom.xml b/modules/feature-pack/pom.xml index bfc365136..cbb39e106 100644 --- a/modules/feature-pack/pom.xml +++ b/modules/feature-pack/pom.xml @@ -65,6 +65,131 @@ opensaml-xacml-saml-impl provided + + + org.apache.cxf + cxf-core + + + org.apache.cxf + cxf-rt-ws-security + + + org.apache.cxf + cxf-rt-bindings-soap + + + org.apache.cxf + cxf-rt-bindings-coloc + + + org.apache.cxf + cxf-rt-databinding-jaxb + + + org.apache.cxf + cxf-rt-features-clustering + + + org.apache.cxf + cxf-rt-frontend-jaxws + + + org.apache.cxf + cxf-rt-management + + + org.apache.cxf + cxf-rt-transports-http + + + org.apache.cxf + cxf-rt-transports-jms + + + org.apache.cxf + cxf-rt-transports-local + + + org.apache.cxf + cxf-rt-transports-http-hc + + + org.apache.cxf + cxf-rt-bindings-xml + + + org.apache.cxf + cxf-rt-frontend-simple + + + org.apache.cxf + cxf-rt-ws-addr + + + org.apache.cxf + cxf-rt-wsdl + + + org.apache.cxf + cxf-rt-ws-mex + + + org.apache.cxf + cxf-rt-ws-rm + + + org.apache.cxf + cxf-rt-ws-policy + + + org.apache.cxf + cxf-tools-java2ws + + + org.apache.cxf.services.sts + cxf-services-sts-core + + + org.apache.cxf.services.ws-discovery + cxf-services-ws-discovery-api + + + org.apache.cxf + cxf-tools-wsdlto-core + + + org.apache.cxf + cxf-tools-wsdlto-databinding-jaxb + + + org.apache.cxf + cxf-tools-wsdlto-frontend-jaxws + + + org.apache.cxf + cxf-rt-features-logging + + + org.apache.cxf.xjcplugins + cxf-xjc-boolean + + + org.apache.cxf.xjcplugins + cxf-xjc-bug986 + + + org.apache.cxf.xjcplugins + cxf-xjc-dv + + + org.apache.cxf.xjcplugins + cxf-xjc-ts + + + org.apache.cxf.xjc-utils + cxf-xjc-runtime + org.wildfly wildfly-ee-galleon-pack diff --git a/modules/feature-pack/src/main/resources/modules/system/layers/base/org/apache/cxf/impl/main/module.xml b/modules/feature-pack/src/main/resources/modules/system/layers/base/org/apache/cxf/impl/main/module.xml new file mode 100644 index 000000000..7051b3f31 --- /dev/null +++ b/modules/feature-pack/src/main/resources/modules/system/layers/base/org/apache/cxf/impl/main/module.xml @@ -0,0 +1,138 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/modules/feature-pack/src/main/resources/modules/system/layers/base/org/apache/cxf/main/module.xml b/modules/feature-pack/src/main/resources/modules/system/layers/base/org/apache/cxf/main/module.xml new file mode 100644 index 000000000..5d51742c5 --- /dev/null +++ b/modules/feature-pack/src/main/resources/modules/system/layers/base/org/apache/cxf/main/module.xml @@ -0,0 +1,70 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/modules/feature-pack/src/main/resources/modules/system/layers/base/org/apache/cxf/services-sts/main/module.xml b/modules/feature-pack/src/main/resources/modules/system/layers/base/org/apache/cxf/services-sts/main/module.xml new file mode 100644 index 000000000..a00008709 --- /dev/null +++ b/modules/feature-pack/src/main/resources/modules/system/layers/base/org/apache/cxf/services-sts/main/module.xml @@ -0,0 +1,78 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/modules/feature-pack/src/main/resources/modules/system/layers/base/org/apache/cxf/ws-security/main/module.xml b/modules/feature-pack/src/main/resources/modules/system/layers/base/org/apache/cxf/ws-security/main/module.xml new file mode 100644 index 000000000..ed788e4e9 --- /dev/null +++ b/modules/feature-pack/src/main/resources/modules/system/layers/base/org/apache/cxf/ws-security/main/module.xml @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/AddressingTestCase.java b/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/AddressingTestCase.java index e41ac3ce6..5ecd435b0 100644 --- a/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/AddressingTestCase.java +++ b/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/AddressingTestCase.java @@ -143,7 +143,7 @@ public void testDecoupledEndpointForLongLastingProcessingOfInvocations() throws proxy.sayHello("Sleepy"); //this takes at least 30 secs fail("Timeout exception expected"); } catch (WebServiceException e) { - assertTrue(e.getCause() instanceof SocketTimeoutException); + assertTrue(e.getCause().getMessage().contains("Timeout")); } policy.setDecoupledEndpoint("http://" + getServerHost() + ":18181/jaxws-samples-wsa/decoupled-endpoint");