Mar 2nd, 2012, 11:34 PM
@ManagedBean can only be placed on a class
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!
May 31st, 2012, 09:13 AM
The same problem for me, żnobody?
May 31st, 2012, 09:19 AM
You must to put @ManagedBean into the java file with the Roo console active. Immediately the annotation @ManagedBean will be deleted from the .aj file
Do the same with every annotation that troubles you.
Originally Posted by david24365
Tags for this Thread