[ https://issues.apache.org/activemq/browse/CAMEL-2112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=55000#action_55000 ]
Christian Schneider commented on CAMEL-2112: -------------------------------------------- Hi Willem, I use the <context:annotation-config/> to check for example for @Required properties. For the short term I could switch to the implementation of CXF. How do I do it? In the long run though I think it would be better if CXF would work with the processor from spring. The case where the problem arises is when using the new spring test framework. This also seems to activate the spring processor. As the older testing style is deprecated I think CXF should support the new style. Greetings Christian > 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: 2.0.0 > Reporter: Christian Schneider > 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.