Home » java » spring » Fixing Exception — Entity manager has not been injected (is the Spring Aspects JAR configured as an AJC/AJDT aspects library?)

Fixing Exception — Entity manager has not been injected (is the Spring Aspects JAR configured as an AJC/AJDT aspects library?)

Sign up for OpenShift Account

Blog Stats

  • 238,772 hits

My Tweets


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;

}

About these ads

2 Comments

  1. zorooo says:

    Thank you very much!
    Your blog entry did lead me to the problem that I was missing the @Configurable annotation.

  2. sikamaro says:

    Hi M Shekhar,
    Thanks for all your shared informations, you save lives with it.

    I had the same problem in google app engine, everything works fine locally,
    but when i deploy it on google app engine, i have this exception :

    Entity manager has not been injected (is the Spring Aspects JAR configured as an AJC/AJDT aspects library?)

    I’m using spring roo + jsf, i fixed some serialization problems befor, but i don’t now how to fix it.

    Many thx

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 265 other followers

%d bloggers like this: