Description
I was using the scanning through spring XML config:
<beans xmlns:jaxrs="http://cxf.apache.org/jaxrs"> <!-- snipped --> <jaxrs:server address="/rest" basePackages="org.example.rest"> </jaxrs:server> <!-- snipped --> </beans>
and my autowiring was failing and I was ending up with a un-autowired bean instead. Debugging this was tricky and it was because org.apache.cxf.jaxrs.spring.JAXRSServerFactoryBeanDefinitionParser#createBeansFromDiscoveredClasses doesn't log anything when autowiring fails, it would be helpful if it either threw the exception showing where the problem was or logged it and said it was creating an non-autowired bean.
Attachments
Attachments
Issue Links
- relates to
-
CXF-7486 JAXRSServerFactoryBeanDefinitionParser should throw exception when autowiring fails.
- Open