I have to maintain a spring roo project so I imported it in eclipse, I can build it, if I run roo command "perform eclipse" it works.
The problem is that eclipse show compilation errors like :
The method entityManager() is undefined for the type MyType
or when trying to get model property :
mytype.getName();
The method getName() is undefined for the type MyType
I can see in the file MyType_Roo_JavaBean.aj that the method exits :
privileged aspect MyType_Roo_JavaBean {
...
public String MyType.getName() {
return this.name;
}
...
}
I am using eclipse Juno + roo 1.2.2 + Spring framework 3.1.0 + m2e plugin + STS plugin (nightly build). I installed STS pluging hoping, it would help, but there is the same error with or without it.
Do you have an idea of what can be wrong ?
thanks !
Try to use the complete STS Version 2.9.x instead of a self assembled eclipse, because it looks like your eclipse is missing AspectJ. If you use the complete STS (Not only the spring plugin) you should have everything you need.
Another hint is to run in eclipse: project / maven / “Update project configuration"