Spring Roo and web scaffolding issue

1.6k Views Asked by At

I am using Spring Roo. I removed the Spring Roo web scaffolding annotation from my controller and deleted all the related JSPX files. Now I am the following error:

Method 'org.springframework.roo.classpath.details.MethodMetadataBuilder@d9c877' failed to provide a body, despite being identified for ITD inclusion

Can someone help me to troubleshoot it? Thanks!

1

There are 1 best solutions below

1
On

We're running into the same problem, and have found this:

http://forum.springsource.org/showthread.php?p=346913

But we haven't found the source of the issue.

UPDATE:

As edit mentions, re-run

controller all --package ~.web

and roo seems to fix itself.

LAST UPDATE:

So the reason this fixed itself was in the ApplicationConversionServiceFactoryBean, roo is expecting to find at least one @RooWebScaffold annotation in the Controllers, and if they are all gone, it isn't happy. To fix our problem, we moved all of the methods from the AspectJ file into the java file and eliminated the roo management of this bean too. Things seem to be happy again, at least for now.