Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-8050

org.apache.cxf.ext Jboss module is missing jettison dependency

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • fuse-7.0
    • fuse-7.0
    • Fuse EAP, WildFly Camel
    • None
    • % %
    • Fuse 7.0 Sprint 28

    Description

      Without the dependency we will see:

      Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jsonProvider' defined in URL [vfs:/content/test.war/WEB-INF/lib/org.jboss.qe.camel.component.cxfrs.test.CamelCxfRsRouteTest.jar/META-INF/spring/camelRsRoute-camel-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.cxf.jaxrs.provider.json.JSONProvider]: No default constructor found; nested exception is java.lang.NoClassDefFoundError: org/codehaus/jettison/mapped/TypeConverter
          Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.cxf.jaxrs.provider.json.JSONProvider]: No default constructor found; nested exception is java.lang.NoClassDefFoundError: org/codehaus/jettison/mapped/TypeConverter
          Caused by: java.lang.NoClassDefFoundError: org/codehaus/jettison/mapped/TypeConverter
          Caused by: java.lang.ClassNotFoundException: org.codehaus.jettison.mapped.TypeConverter from [Module \"org.apache.cxf.ext\" from local module loader @7cdbc5d3 (finder: local module finder @3aa9e816 (roots: /home/jkasztur/repos/jenkins-jobs/eap-server/modules,/home/jkasztur/repos/jenkins-jobs/eap-server/modules/system/layers/fuse,/home/jkasztur/repos/jenkins-jobs/eap-server/modules/system/layers/base))]"}}
      
      

      when trying to use org.apache.cxf.jaxrs.provider.json.JSONProvider.

      After added

      <module name="org.codehaus.jettison"/>

      into dependencies section, it fixed the problem.

      Attachments

        Activity

          People

            jnethert@redhat.com James Netherton
            jkasztur@redhat.com Jan Kasztura (Inactive)
            Jan Kasztura Jan Kasztura (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: