-
Task
-
Resolution: Won't Do
-
Major
-
None
-
jbossws-cxf-6.0.0.Final
-
None
CXF code is giving a NoClassDefFoundError for javax.xml.bind.ValidationEventHandler.
I have not been successful in finding the source of this error.
javax.xml.bind.ValidationEventHandler is an interface class.
You will see from the stacktrace below cxf.ws.security is using org.ehcache:ehcache.
I checked the most current released ehcache version, 3.10.0 (see https://github.com/ehcache/ehcache3.git).
ehcache3 project does contain a jakarta migrated code but an archive of it is not yet released.
Version 3.10.0 is still using javax code.
Stack trace.
javax.xml.bind.ValidationEventHandler at java.lang.NoClassDefFoundError.<init>(NoClassDefFoundError.java:59) at org.ehcache.xml.XmlConfiguration.<init>(XmlConfiguration.java:116) at org.apache.cxf.ws.security.tokenstore.EHCacheTokenStore.<init>(EHCacheTokenStore.java:69) at org.apache.cxf.ws.security.tokenstore.EHCacheTokenStoreFactory.newTokenStore(EHCacheTokenStoreFactory.java:45) at org.apache.cxf.ws.security.tokenstore.TokenStoreUtils.getTokenStore(TokenStoreUtils.java:58) - locked <0x214f> (a org.apache.cxf.binding.soap.SoapTransportFactory$SoapEndpointInfo) at org.apache.cxf.ws.security.wss4j.WSS4JStaxInInterceptor.handleMessage(WSS4JStaxInInterceptor.java:136) at org.apache.cxf.ws.security.wss4j.PolicyBasedWSS4JStaxInInterceptor.handleMessage(PolicyBasedWSS4JStaxInInterceptor.java:78) at org.apache.cxf.ws.security.wss4j.PolicyBasedWSS4JStaxInInterceptor.handleMessage(PolicyBasedWSS4JStaxInInterceptor.java:70)
In an attempt to resolve this, I updated my wfly preview version to transform org.ehcache:ehcache:3.10.0
(i.e. ehcache-3.10.0-ee9.jar). I created a new module definition for ehcache (i.e.
ee-9/dist/target/wildfly-preview-27.0.0.Beta1-SNAPSHOT/modules/system/layers/base/org/ehcache).
A reference to ehcache module was added to the cxf.ws.security module (i.e.
ee-9/dist/target/wildfly-preview-27.0.0.Beta1-SNAPSHOT/modules/system/layers/base/org/apache/cxf/ws-security)
But this did not resolve the error.
I have no more ideas as to how to find the source code that is using this ValidationEventHandler reference.
The following jbossws-cxf tests have been excluded do to this issue. (see jbossws-cxf/modules/testsuite/pom.xml)
<exclude>org/jboss/test/ws/jaxws/samples/wsse/policy/basic/SignTestCase*</exclude> <exclude>org/jboss/test/ws/jaxws/samples/wsse/policy/basic/UsernameOverTransportTestCase*</exclude> <exclude>org/jboss/test/ws/jaxws/samples/wsse/policy/oasis/WSSecurityPolicyExamples21xTestCase*</exclude> <exclude>org/jboss/test/ws/jaxws/samples/wsse/policy/basic/AnnotatedSignEncryptTestCase*</exclude> <exclude>org/jboss/test/ws/jaxws/samples/wsse/policy/basic/MultipleClientsSignEncryptTestCase*</exclude> <exclude>org/jboss/test/ws/jaxws/samples/wsse/policy/oasis/WSSecurityPolicyExamples22xTestCase*</exclude> <exclude>org/jboss/test/ws/jaxws/samples/wsse/policy/secconv/SecureConversationTestCase*</exclude>
- is related to
-
JBWS-4266 Tracking failing tests in move to Wildfly preview / native jakarta
- Closed
- relates to
-
WFLY-16239 Add to WildFly Preview a native jakarta namespace variant of org.ehcache:ehcache
- Closed