Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-24928

[GSS](7.4.z) Annotations not working on class that extends abstract class

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a Bug
    • Major
    • None
    • 7.4.11.GA
    • EJB
    • None
    • False
    • None
    • False
    • Hide

      mvn clean install
      ./bin/add-user.sh -a -u ‘ejbuser’ -p ‘redhat1’!
      ./bin/standalone.sh -c standalone-full.xml
      cd standalone-java-client
      mvn exec:exec

      Show
      mvn clean install ./bin/add-user.sh -a -u ‘ejbuser’ -p ‘redhat1’! ./bin/standalone.sh -c standalone-full.xml cd standalone-java-client mvn exec:exec

    Description

      This works:

      @Stateless
      @RemoteHome(HelloRemoteHome.class)
      @SecurityDomain("other")
      @PermitAll
      public class HelloPermitAll {
      ...
      } 

      But then this below fails with this error when it extends an abstract class.

      javax.ejb.EJBAccessException: WFLYEJB0364: Invocation on method: public abstract com.redhat.middleware.eap.examples.iiop.Response com.redhat.middleware.eap.examples.iiop.HelloRemote.invoke(com.redhat.middleware.eap.examples.iiop.Request) throws java.rmi.RemoteException of bean: HelloPermitAllExtendsAbstract is not allowed
      ... 
      @Stateless
      @RemoteHome(HelloRemoteHome.class)
      @SecurityDomain("other")
      @PermitAll
      public class HelloPermitAllExtendsAbstract extends AbstractEJB {
      ...
      } 
      public abstract class AbstractEJB {
      ...
      } 

      Attachments

        Issue Links

          Activity

            People

              chaowan@redhat.com Chao Wang
              rhn-support-bmaxwell Brad Maxwell
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: