Announcement Announcement Module
Collapse
No announcement yet.
PersistenceContext not injected with @Configurable Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • PersistenceContext not injected with @Configurable

    Hi all,

    I have developed a common library that contains domain objects that are reused in multiple applications.

    To inject the PersistenceContext I used the @Configurable and @PersistenceContext annotations.
    In my Spring context I have set <context:spring-configured/> and an org.springframework.orm.jpa.LocalContainerEntityMa nagerFactoryBean.

    When I try to work with the entity, I get the horrifying java.lang.IllegalStateException: Entity manager has not been injected (is the Spring Aspects JAR configured as an AJC/AJDT aspects library?)

    In my lib folder, I do have aspectjrt-1.6.5.jar and aspectjrt-1.6.5.jar.

    I need to note that I did a pushin -refactoring.

    What am I missing here?
    Thanks.

    regards,
    Bram.

  • #2
    Did you manage to get this working, I have the same issue

    Comment

    Working...
    X