Spring Security
  1. Spring Security
  2. SEC-750

Support for JPA PersistenceContext annotation broken

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical 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
        Luke Taylor added a comment -

        I'm not sure why snapshots have stopped there, but thanks for pointing it out. I'll check with the build manager. Building yourself is actuall pretty straightforward and often the easiest option for keeping up with things:

        http://static.springframework.org/spring-security/site/building.html

        Show
        Luke Taylor added a comment - I'm not sure why snapshots have stopped there, but thanks for pointing it out. I'll check with the build manager. Building yourself is actuall pretty straightforward and often the easiest option for keeping up with things: http://static.springframework.org/spring-security/site/building.html
        Hide
        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
        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 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 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
        tran duc trung added a comment -

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

        Show
        tran duc trung added a comment - I always have this bug with spring 2.5.4 and spring-security 2.0.1
        Hide
        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 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.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: