Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-7483

JAXRSServerFactoryBeanDefinitionParser doesn't log autowire failures

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.7
    • 3.0.15, 3.1.13, 3.2.0
    • JAX-RS
    • None
    • Unknown

    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

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            sergey_beryozkin Sergey Beryozkin
            buckett Matthew Buckett
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment