camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Schneider (JIRA)" <j...@apache.org>
Subject [jira] Closed: (CAMEL-2112) Problem using a CamelTransportFactory from a junit 4 unit test or together with <context:annotation-config/>
Date Tue, 27 Oct 2009 12:41:52 GMT

     [ https://issues.apache.org/activemq/browse/CAMEL-2112?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Christian Schneider closed CAMEL-2112.
--------------------------------------


Thanks for the quick fix. I already thought that @Resource could perhaps be wrong. 
Is there a way for us to work around this issue till Camel 2.1.0 is realeased?


> Problem using a CamelTransportFactory from a junit 4 unit test or together with <context:annotation-config/>
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-2112
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2112
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-cxf
>    Affects Versions: 1.4.0, 1.5.0, 1.6.0, 2.0-M1, 1.6.1, 2.0-M2, 2.0-M3, 2.0.0
>            Reporter: Christian Schneider
>            Assignee: Willem Jiang
>             Fix For: 1.6.2, 2.1.0
>
>         Attachments: cxfcamelexample.zip, stack trace.txt
>
>
> 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? 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message