[jbossws/jbossws-cxf] 191ce0: [JBWS-4444] add custom HandlerResolver to JBWS4430...
by Richard Opálka
Branch: refs/heads/main
Home: https://github.com/jbossws/jbossws-cxf
Commit: 191ce0edac7bef57043ce8f4cd30c21c33a654c0
https://github.com/jbossws/jbossws-cxf/commit/191ce0edac7bef57043ce8f4cd3...
Author: bmaxwell <bmaxwell(a)redhat.com>
Date: 2025-04-10 (Thu, 10 Apr 2025)
Changed paths:
A modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws4430/AccessTokenClientHandler.java
A modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/…
[View More]jaxws/cxf/jbws4430/AccessTokenClientHandlerResolver.java
A modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws4430/Client.java
A modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws4430/ClientBean.java
A modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws4430/CredentialsCDIBean.java
M modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws4430/JBWS4430TestCase.java
M modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws4430/LoggingHandler.java
A modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws4430/WEB-INF/beans.xml
A modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws4430/WEB-INF/wsdl/ClientBeanService.wsdl
Log Message:
-----------
[JBWS-4444] add custom HandlerResolver to JBWS4430TestCase client test, added beans.xml, added ClientBean intermediate to test CDI in client custom HandlerResolver
Commit: 9e9701522d34da623fc658011b540c763e763bf2
https://github.com/jbossws/jbossws-cxf/commit/9e9701522d34da623fc658011b5...
Author: Richard Opálka <opalka.richard(a)gmail.com>
Date: 2025-04-10 (Thu, 10 Apr 2025)
Changed paths:
M modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/ProviderImpl.java
A modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/TCCLAwareHandler.java
A modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/TCCLAwareHandlerReplacer.java
A modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/TCCLAwareHandlerResolver.java
M modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/AbstractTCCLAwarePhaseInterceptor.java
M modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/HandlerConfigInterceptor.java
M modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/TCCLAwareSoapPhaseInterceptor.java
Log Message:
-----------
[JBWS-4444] Server throws IllegalStateException when call to SOAPHandler's getHeaders/handleFault/close ethods is peformed and their code include the CDI bean invocation - second round of fixes
The idea of this second round of fixes is the following:
* setHandlerResolver() of provider implementation is overriden to wrap client provided handler resolver with TCCL aware handler resolver
* TCCL aware Handler resolver wraps every handler client provided with TCCL aware handler
* finally there's a minor refactoring included that uses instanceof check against DelegateClassLoader instead of implementation specific JAXPDelegateClassLoader
Commit: 0f3eaf59a0bf84ac491dde636b57bc4101456b5e
https://github.com/jbossws/jbossws-cxf/commit/0f3eaf59a0bf84ac491dde636b5...
Author: Jim Ma <ema(a)redhat.com>
Date: 2025-04-10 (Thu, 10 Apr 2025)
Changed paths:
M modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws4430/JBWS4430TestCase.java
Log Message:
-----------
[Minor Change]:Remove ZipExporter in test
Commit: dfca8db0349b97dc4e83b0165efd669e06538437
https://github.com/jbossws/jbossws-cxf/commit/dfca8db0349b97dc4e83b0165ef...
Author: Richard Opálka <opalka.richard(a)gmail.com>
Date: 2025-04-10 (Thu, 10 Apr 2025)
Changed paths:
M modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/ProviderImpl.java
A modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/TCCLAwareHandler.java
A modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/TCCLAwareHandlerReplacer.java
A modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/TCCLAwareHandlerResolver.java
M modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/AbstractTCCLAwarePhaseInterceptor.java
M modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/HandlerConfigInterceptor.java
M modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/TCCLAwareSoapPhaseInterceptor.java
A modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws4430/AccessTokenClientHandler.java
A modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws4430/AccessTokenClientHandlerResolver.java
A modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws4430/Client.java
A modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws4430/ClientBean.java
A modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws4430/CredentialsCDIBean.java
M modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws4430/JBWS4430TestCase.java
M modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws4430/LoggingHandler.java
A modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws4430/WEB-INF/beans.xml
A modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws4430/WEB-INF/wsdl/ClientBeanService.wsdl
Log Message:
-----------
Merge pull request #592 from jimma/JBWS-4444-main
[JBWS-4444] Server throws IllegalStateException when call to SOAPHandler's getHeaders/handleFault/close methods is performed and their code include the CDI bean invocation
Compare: https://github.com/jbossws/jbossws-cxf/compare/34a9216c0bfe...dfca8db0349b
To unsubscribe from these emails, change your notification settings at https://github.com/jbossws/jbossws-cxf/settings/notifications
[View Less]
5 days, 7 hours
[jbossws/jbossws-cxf] d84bb2: [JBWS-4444] Server throws IllegalStateException wh...
by Richard Opálka
Branch: refs/heads/main
Home: https://github.com/jbossws/jbossws-cxf
Commit: d84bb27186509c7d35f52a3ee247f84e54189891
https://github.com/jbossws/jbossws-cxf/commit/d84bb27186509c7d35f52a3ee24...
Author: Richard Opálka <opalka.richard(a)gmail.com>
Date: 2025-03-25 (Tue, 25 Mar 2025)
Changed paths:
M docbook/src/main/doc/adoc/content/chapter-5-Advanced_User_Guide.adoc
M modules/server/src/main/java/org/jboss/wsf/stack/cxf/configuration/ServerBeanCustomizer.java
…
[View More] A modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/AbstractTCCLAwarePhaseInterceptor.java
M modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/AbstractTCCLPhaseInterceptor.java
M modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/HandlerConfigInterceptor.java
A modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/TCCLAwareInterceptorReplacer.java
A modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/TCCLAwarePhaseInterceptor.java
A modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/TCCLAwareSoapPhaseInterceptor.java
M modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws4430/CDIOutInterceptor.java
M modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws4430/HelloBean.java
M modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws4430/JBWS4430TestCase.java
M modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws4430/LoggingHandler.java
Log Message:
-----------
[JBWS-4444] Server throws IllegalStateException when call to SOAPHandler's getHeaders/handleFault/close methods is performed and their code include the CDI bean invocation
The idea of the fix is the following:
* Every non Apache CXF interceptor is considered either JBossWS provided or user provided interceptor
* Each such non Apache CXF interceptor is wrapped with TCCL aware interceptor
- this wrapping is necessary for all Endpoint, Service, Bus & Binding interceptors
- every TCCL aware interceptor delegates its calls (with proper TCCL in place where necessary) to wrapped delegate interceptor
* The only exception from Apaches's CXF interceptors is: org.apache.cxf.jaxws.handler.soap.SOAPHandlerInterceptor
- that one needs special treatment and must be wrapped too
(luckily there was no cast in Apache CXF code base involving this one - otherwise it wouldn't work)
* Special treatment is needed also for org.apache.cxf.binding.soap.interceptor.SoapInterceptor instances
- to delegate properly TCCL aware calls to getUnderstoodHeaders() method
* org.jboss.wsf.stack.cxf.interceptor.AbstractTCCLPhaseInterceptor was marked as deprecated,
its usages inside code base have been removed and documentation referencing it was eliminated
Commit: 34a9216c0bfe0518849cb8e8879201e5f6bbbf77
https://github.com/jbossws/jbossws-cxf/commit/34a9216c0bfe0518849cb8e8879...
Author: Richard Opálka <opalka.richard(a)gmail.com>
Date: 2025-04-03 (Thu, 03 Apr 2025)
Changed paths:
M docbook/src/main/doc/adoc/content/chapter-5-Advanced_User_Guide.adoc
M modules/server/src/main/java/org/jboss/wsf/stack/cxf/configuration/ServerBeanCustomizer.java
A modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/AbstractTCCLAwarePhaseInterceptor.java
M modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/AbstractTCCLPhaseInterceptor.java
M modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/HandlerConfigInterceptor.java
A modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/TCCLAwareInterceptorReplacer.java
A modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/TCCLAwarePhaseInterceptor.java
A modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/TCCLAwareSoapPhaseInterceptor.java
M modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws4430/CDIOutInterceptor.java
M modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws4430/HelloBean.java
M modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws4430/JBWS4430TestCase.java
M modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws4430/LoggingHandler.java
Log Message:
-----------
Merge pull request #588 from ropalka/JBWS-4444
[JBWS-4444] Server throws IllegalStateException when call to SOAPHandler's getHeaders/handleFault/close methods is performed and their code include the CDI bean invocation
Compare: https://github.com/jbossws/jbossws-cxf/compare/551938ca14b2...34a9216c0bfe
To unsubscribe from these emails, change your notification settings at https://github.com/jbossws/jbossws-cxf/settings/notifications
[View Less]
1 week, 5 days