Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-2112

Problem using a CamelTransportFactory from a junit 4 unit test or together with <context:annotation-config/>

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4.0, 1.5.0, 1.6.0, 2.0-M1, 1.6.1, 2.0-M2, 2.0-M3, 2.0.0
    • 1.6.2, 2.1.0
    • camel-cxf
    • None

    Description

      I recently tried to convert my unit tests to junit 4 using the new Spring test framework.

      Since then I get the following exception when calling the test.
      Error creating bean with name 'org.apache.camel.component.cxf.transport.CamelTransportFactory#0': Injection of resource methods failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [java.lang.String] found for dependency [collection of java.lang.String]: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}

      The same happens when I activate /<context:annotation-config/>/

      I think it has to do with autowiring. Do you have any idea what goes wrong here and how I can fix it?

      Attachments

        1. stack trace.txt
          14 kB
          Christian Schneider
        2. cxfcamelexample.zip
          17 kB
          Christian Schneider

        Activity

          People

            njiang Willem Jiang
            cschneider Christian Schneider
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: