-
Aug 31st, 2010, 05:10 AM
#1
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules