]
Brian Stansberry reassigned WFLY-8860:
--------------------------------------
Component/s: Web Services
Assignee: Alessio Soldano (was: Jason Greene)
Add optional module dependency for org.springframework.spring to
org.apache.cxf.impl
------------------------------------------------------------------------------------
Key: WFLY-8860
URL:
https://issues.jboss.org/browse/WFLY-8860
Project: WildFly
Issue Type: Enhancement
Components: Web Services
Reporter: James Netherton
Assignee: Alessio Soldano
Similar to WFLY-5532, for our [Camel
integration|https://github.com/wildfly-extras/wildfly-camel] the camel-cxf component calls
into cxf for Spring namespace handlers. Module {{org.apache.cxf.impl}} exposes a number of
resources which have their own Spring namespace handlers. When accessing them (E.g
{{org/apache/cxf/transport/http/spring/NamespaceHandler}}), I get:
{code}
Caused by: java.lang.NoClassDefFoundError: Failed to link
org/apache/cxf/transport/http/spring/NamespaceHandler (Module
"org.apache.cxf.impl:main" from local module loader @4c75cab9 (finder: local
module finder @1ef7fe8e (roots:
/home/james/Projects/git/fork/wildfly-camel/itests/standalone/basic/target/wildfly-10.1.0.Final/modules,/home/james/Projects/git/fork/wildfly-camel/itests/standalone/basic/target/wildfly-10.1.0.Final/modules/system/layers/fuse,/home/james/Projects/git/fork/wildfly-camel/itests/standalone/basic/target/wildfly-10.1.0.Final/modules/system/layers/base))):
org/springframework/beans/factory/xml/NamespaceHandlerSupport
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:446)
at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:274)
at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:78)
at org.jboss.modules.Module.loadModuleClass(Module.java:606)
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:363)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:351)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:93)
at org.springframework.util.ClassUtils.forName(ClassUtils.java:250)
at
org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.resolve(DefaultNamespaceHandlerResolver.java:125)
... 19 more
{code}
Please can we add an optional dependency for {{org.springframework.spring}} to
{{org.apache.cxf.impl}}.
Cross ref here:
https://github.com/wildfly-extras/wildfly-camel/issues/1897