[ https://issues.apache.org/jira/browse/ARIES-2088?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17631085#comment-17631085 ]
Amichai Rothman commented on ARIES-2088: ---------------------------------------- Update: I see it's using an old version of embedded cxf (3.2.14) rather than the one installed in karaf (3.5.2), so it's likely that updated cxf has this covered (I'm using whiteboard 1.1.0 rather than 2.0.x due to the dependency/feature mess... with the next release that fixes things for karaf deployment I'll be able to confirm if this issue is actually resolved). > A @NameBinding annotation does not work on class or Application > --------------------------------------------------------------- > > Key: ARIES-2088 > URL: https://issues.apache.org/jira/browse/ARIES-2088 > Project: Aries > Issue Type: Improvement > Components: jax-rs-whiteboard > Affects Versions: jax-rs-whiteboard-1.1.0 > Reporter: Amichai Rothman > Priority: Major > > In an application using jaxrs via cxf (blueprint), a name-binding annotation > works both on the resource class/interface itself (which applies it to all > methods in the class) and on individual methods (which overrides the class > annotation with the method-specific annotation, e.g. using different > annotation parameters for the method). > However when migrating the application to Aries JAX-RS Whiteboard this does > not work. Only annotations on the methods work, but the class/interface > annotation is ignored. As a workaround, I tried adding it to the entire > application by adding the annotation to the Application subclass itself, > which as I understand from the JAX-RS spec should apply it globally, however > this does not work either. > The jaxrs whiteboard should be fixed to respect name-binding annotations not > only on resource methods, but also on the Application subclass (to make it > global), the resource class (to apply it to all methods in the class, unless > the method itself has an overriding annotation), and resource class interface > (if that's where the JAX-RS annotations are defined). -- This message was sent by Atlassian Jira (v8.20.10#820010)