You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Sergey Beryozkin (JIRA)" <ji...@apache.org> on 2016/02/26 14:26:18 UTC

[jira] [Commented] (CXF-6803) CXF Features depends on old javax.annotation.Priority

    [ https://issues.apache.org/jira/browse/CXF-6803?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15169006#comment-15169006 ] 

Sergey Beryozkin commented on CXF-6803:
---------------------------------------

JAX-RS 2.0 does depend on javax.annotation.Priority so the javaz.annotation bundle which contains it has to be used.
For example, 
https://jax-rs-spec.java.net/nonav/2.0-rev-a/apidocs/javax/ws/rs/Priorities.html

But there are also likely a reference to it in the spec, etc

> CXF Features depends on old javax.annotation.Priority
> -----------------------------------------------------
>
>                 Key: CXF-6803
>                 URL: https://issues.apache.org/jira/browse/CXF-6803
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 3.1.4
>            Reporter: Matthias Steiner
>
> Tried to use the SwaggerFeature but got a 'Caused by: java.lang.NoClassDefFoundError: javax/annotation/Priority' error.
> After looking into the issue I came to the conclusion that the Priority annotation is no longer used in newer versions of the javax.annotation bundle. 
> It used to be there in 1.2, but it's no longer in there in 3.1...
> See: 
> 1.2 - http://www.java2s.com/Code/Jar/j/Downloadjavaxannotationapi12jar.htm
> 3.1 - http://www.java2s.com/Code/Jar/j/Downloadjavaxannotation31jar.htm
> Any thoughts/ideas ?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)