I'm developing an application with STS using Spring Roo. When I deploy the app in a JBoss As 7 Server, logs shows me this ERROR:
Caused by: org.jboss.as.server.deployment.DeploymentUnitProce ssingException: @ManagedBean can only be placed on a class
That is because the .aj files with @ManagedBean annotations (e.g. ApplicationBean_Roo_ApplicationBean.aj). I have the same problem with some Convert annotations. I thougth that JBoss should not knowing about this from a .class. If a Refactor -> Push In those files, the problem is gone, but it's not a good way to do it. Then I must to Ctrl-Z the changes. I don't want to do that.
There is a way to fix that? Thanks a lot!