Uploaded image for project: 'Spring Security'
  1. Spring Security
  2. SEC-750

Support for JPA PersistenceContext annotation broken

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0.0 RC1
    • Fix Version/s: 2.0.0
    • Component/s: Core
    • Labels:
      None
    • Environment:
      With Spring 2.5.2

      Description

      When Spring Security is used, JPA annotations auto-wiring is not supported : the @PersistenceContext EntityManager is not injected in the DAO layer, which results in NullPointerExceptions

        Activity

        Hide
        cherro Chris Herron added a comment -

        Thanks Luke - I was able to checkout and build the trunk. With this fresh snapshot, Xavier's test passes, and my issue is resolved.
        Sorry for the noise!

        Show
        cherro Chris Herron added a comment - Thanks Luke - I was able to checkout and build the trunk. With this fresh snapshot, Xavier's test passes, and my issue is resolved. Sorry for the noise!
        Hide
        luke Luke Taylor added a comment -

        No Problem. Nice to have extra confirmation that the problem is fixed. The snapshot builds should be back online now too.

        Show
        luke Luke Taylor added a comment - No Problem. Nice to have extra confirmation that the problem is fixed. The snapshot builds should be back online now too.
        Hide
        trungsi tran duc trung added a comment -

        I always have this bug with spring 2.5.4 and spring-security 2.0.1

        Show
        trungsi tran duc trung added a comment - I always have this bug with spring 2.5.4 and spring-security 2.0.1
        Hide
        luke Luke Taylor added a comment -

        Maybe you are thinking of this SEC-826? Both are fixed against the latest release (2.0.2) so we will need a test case which reproduces the problem if you think there is still an issue.

        Show
        luke Luke Taylor added a comment - Maybe you are thinking of this SEC-826 ? Both are fixed against the latest release (2.0.2) so we will need a test case which reproduces the problem if you think there is still an issue.
        Hide
        issuemaster Spring Issuemaster added a comment -
        Show
        issuemaster Spring Issuemaster added a comment - This issue has been migrated to https://github.com/spring-projects/spring-security/issues/994

          People

          • Assignee:
            luke Luke Taylor
            Reporter:
            xcoulon Xavier
          • Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development