Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-9168

Log error org.jboss.security.annotation.SecurityDomain annotation is used in EJB

    Details

      Description

      The annotation org.jboss.security.annotation.SecurityDomain is present in the legacy security packages and documented in 7.1 Javadoc:

      Annotation for specifying the JBoss security domain for EJBs.

      Nevertheless this annotation doesn't work and the one from another package has to be used instead - org.jboss.ejb3.annotation.SecurityDomain.
      Server doesn't log an error or warning when the legacy one is used.

      Suggested fix:
      Add a deployment processor which will log error when the legacy annotation is used in the deployment.

      Another possibility how to fix this would be to add support for the legacy annotation too.

      I'll create a separate JIRA for JavaDoc update in the legacy annotation class.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  gaol Lin Gao
                  Reporter:
                  gaol Lin Gao
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - 2 days
                    2d
                    Remaining:
                    Remaining Estimate - 2 days
                    2d
                    Logged:
                    Time Spent - Not Specified
                    Not Specified