Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-679

Testcase for RESTEASY-511

    XMLWordPrintable

Details

    • Hide

      Follow the guides for integrating spring with resteasy – however use JavaConfig and no XML files to define beans to spring. Place some debug in the bean classes to watch initialization and notice that the bean that spring instantiates is not being used by resteasy. The bean that resteasy uses does not go through JSR-330 injection and is likely in a bad state. If you apply the patch I posted to the 2.3 branch, revert fixes I made to src/main, and keep the additions I made to src/test – the problem will occur during the maven integration-test.

      Show
      Follow the guides for integrating spring with resteasy – however use JavaConfig and no XML files to define beans to spring. Place some debug in the bean classes to watch initialization and notice that the bean that spring instantiates is not being used by resteasy. The bean that resteasy uses does not go through JSR-330 injection and is likely in a bad state. If you apply the patch I posted to the 2.3 branch, revert fixes I made to src/main, and keep the additions I made to src/test – the problem will occur during the maven integration-test.

    Description

      When using the resteasy-spring integration with spring's JavaConfig feature for defining beans – resteasy does not use the beans instantiated and initialized by spring. RESTEASY-511 seems to describe this issue well but the final resolution stated there was no test case and did not if the latest patch corrected the problem. I ran into the same issue with the previous release and had a chance to test out the 2.3.2.Final release with the fix – but it did not fully fix the problem. I took some time to create a test case and worked through a solution. I described the solution in a comment on RESTEASY-511 but I did not seem to have the permission to attach the patch file there. I have attached it to this new ticket.

      Attachments

        Issue Links

          Activity

            People

              patriot1burke@gmail.com Bill Burke (Inactive)
              jcstaff_jira jim stafford (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: