glassfish
  1. glassfish
  2. GLASSFISH-16939

Warning when using @RunAs annotation on a JAX-RS web service

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.1
    • Fix Version/s: None
    • Component/s: web_services
    • Labels:
      None
    • Environment:

      Windows Server 2008

      Description

      Annotating a JAX-RS web service class with @RunAs triggers a warning at deployment-time:

      [#|2011-07-01T14:11:48.035+0200|WARNING|glassfish3.1|global|_ThreadID=21;_ThreadName=Thread-1;|The annotation symbol inheritance is not supported.
      symbol: TYPE
      location: class test.Service1

      I don't really know if this is the expected behaviour, as this warning does not appear with @DeclareRoles and @RolesAllowed annotations.

      The maven project attached contains:

      • An EJB exposed as JAXRS service.
      • A web.xml descriptor, to load Jersey's ServletContainer on startup.
      • A glassfish-ejb-jar.xml descriptor to map roles and define the run-as principal.

        Activity

        Hide
        Hong Zhang added a comment -

        assign to webservices team for initial evaluation

        Show
        Hong Zhang added a comment - assign to webservices team for initial evaluation
        Hide
        dmitriy.balakin added a comment -

        GF 3.1.2.2, @Runas + @Singleton/@Steteless - WARNING still appears.

        Show
        dmitriy.balakin added a comment - GF 3.1.2.2, @Runas + @Singleton/@Steteless - WARNING still appears.
        Hide
        arjan tijms added a comment -

        I get the same warning in 3.1.1 with @RunAS on a stateless or singleton session bean and on a message driven bean, e.g.:

        WARNING: The annotation symbol inheritance is not supported.
         symbol: TYPE
         location: class com.example.RolesTestMDB
        
        WARNING: The annotation symbol inheritance is not supported.
         symbol: TYPE
         location: class com.example.RolesTestStartupSingleton
        
        WARNING: The annotation symbol inheritance is not supported.
         symbol: TYPE
         location: class com.example.RolesTestEJB
        
        Show
        arjan tijms added a comment - I get the same warning in 3.1.1 with @RunAS on a stateless or singleton session bean and on a message driven bean, e.g.: WARNING: The annotation symbol inheritance is not supported. symbol: TYPE location: class com.example.RolesTestMDB WARNING: The annotation symbol inheritance is not supported. symbol: TYPE location: class com.example.RolesTestStartupSingleton WARNING: The annotation symbol inheritance is not supported. symbol: TYPE location: class com.example.RolesTestEJB

          People

          • Assignee:
            Jakub Podlesak
            Reporter:
            mmuller
          • Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated: