Fixing Exception — Entity manager has not been injected (is the Spring Aspects JAR configured as an AJC/AJDT aspects library?)
February 13, 2012 1 Comment
If you are working with Spring Roo and suddenly start getting exception “Entity manager has not been injected (is the Spring Aspects JAR configured as an AJC/AJDT aspects library?)” then make sure you have _Configurable.aj ITD in your project. This ITD makes the sure that your entity classes have all the required dependencies like EntityManager injected in them. Configurable ITD looks like as shown below
privileged aspect Movie_Roo_Configurable {
declare @type: Movie: @Configurable;
}
Thank you very much!
Your blog entry did lead me to the problem that I was missing the @Configurable annotation.