cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jakub Bocheński (Reopened) (JIRA) <j...@apache.org>
Subject [jira] [Reopened] (CXF-4171) Static resource resolution not possible with CXFNonSpringJaxrsServlet
Date Wed, 21 Mar 2012 13:55:41 GMT

     [ https://issues.apache.org/jira/browse/CXF-4171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jakub Bocheński reopened CXF-4171:
----------------------------------


I'm sorry but the fix is useless - the static resolution has to be set *before* bean.setResourceClasses()
call. 
It matters what setting is there when classes are registered!

In this way they still get dynamic resolution regardless of the setting.
                
> Static resource resolution not possible with CXFNonSpringJaxrsServlet
> ---------------------------------------------------------------------
>
>                 Key: CXF-4171
>                 URL: https://issues.apache.org/jira/browse/CXF-4171
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 2.5.2
>            Reporter: Jakub Bocheński
>            Assignee: Sergey Beryozkin
>            Priority: Minor
>              Labels: configuration
>             Fix For: 2.3.10, 2.4.7, 2.5.3, 2.6
>
>
> The title says it all. I wanted this to get a full WADL document, and found it's not
supported.
> I was able to do it only by changing the source code - adding bean.setStaticSubresourceResolution(true);
to ResourceUtils:621 (before bean.setResourceClasses(resourceClasses) ) does the trick.
> Since this requires source code modification or copy-pasting and overriding methods in
both CXFNonSpringJaxrsServlet and ResourceUtils I think that there should be a config option
similiar to jaxrs.application.address.ignore available for this.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message