Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-8860

Add optional module dependency for org.springframework.spring to org.apache.cxf.impl

    Details

      Description

      Similar to WFLY-5532, for our Camel integration 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:

      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
      

      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

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  asoldano Alessio Soldano
                  Reporter:
                  jamesnetherton James Netherton
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: