Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-3089

@ManagedBean can only be placed on a class

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 1.2.0.RELEASE
    • None
    • JSF
    • JBoss AS 7.0.2.Final

    Description

      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!

      Regards,

      Sebastian.

      Attachments

        Activity

          People

            stewarta Alan Stewart
            elecay Sebastian Rajo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: