[GLASSFISH-16939] Warning when using @RunAs annotation on a JAX-RS web service Created: 01/Jul/11  Updated: 01/Aug/12

Status: Open
Project: glassfish
Component/s: web_services
Affects Version/s: 3.1
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: mmuller Assignee: Jakub Podlesak
Resolution: Unresolved Votes: 3
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows Server 2008


Attachments: File jaxrs-inheritance_warning.war     GZip Archive jaxrs_inheritance_warning.tar.gz    
Tags: jax-rs, warning

 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.


 Comments   
Comment by arjan tijms [ 27/Nov/11 ]

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
Comment by dmitriy.balakin [ 01/Aug/12 ]

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

Comment by Hong Zhang [ 01/Aug/12 ]

assign to webservices team for initial evaluation

Generated at Wed Aug 24 14:28:45 UTC 2016 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.