You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Jakub Bocheński (Created JIRA)" <ji...@apache.org> on 2012/03/09 11:52:58 UTC
[jira] [Created] (CXF-4171) Static resource resolution not possible
with CXFNonSpringJaxrsServlet
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
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
[jira] [Commented] (CXF-4171) Static resource resolution not
possible with CXFNonSpringJaxrsServlet
Posted by "Jakub Bocheński (Commented JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-4171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13238294#comment-13238294 ]
Jakub Bocheński commented on CXF-4171:
--------------------------------------
Ok - so apparently this is not yet available, on the snapshot page there are files from 2012-03-21 06:45:10, whereas it seems your fix was commited around 22:19:21
> 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
[jira] [Updated] (CXF-4171) Static resource resolution not possible
with CXFNonSpringJaxrsServlet
Posted by "Jakub Bocheński (Updated JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-4171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jakub Bocheński updated CXF-4171:
---------------------------------
Estimated Complexity: Novice (was: Unknown)
> 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
> Priority: Minor
> Labels: configuration
>
> 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
[jira] [Resolved] (CXF-4171) Static resource resolution not
possible with CXFNonSpringJaxrsServlet
Posted by "Sergey Beryozkin (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-4171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sergey Beryozkin resolved CXF-4171.
-----------------------------------
Resolution: Fixed
thanks for the confirmation; at some point we will refactor the server bean to eliminate the ordering issue
> 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
[jira] [Commented] (CXF-4171) Static resource resolution not
possible with CXFNonSpringJaxrsServlet
Posted by "Sergey Beryozkin (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-4171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13235089#comment-13235089 ]
Sergey Beryozkin commented on CXF-4171:
---------------------------------------
No problems, thanks for trying it early; I've committed another update - can you please confirm it works as expected ?
> 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
[jira] [Commented] (CXF-4171) Static resource resolution not
possible with CXFNonSpringJaxrsServlet
Posted by "Jakub Bocheński (Commented JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-4171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13238276#comment-13238276 ]
Jakub Bocheński commented on CXF-4171:
--------------------------------------
This one seems to be working OK - thanks
> 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
[jira] [Updated] (CXF-4171) Static resource resolution not possible
with CXFNonSpringJaxrsServlet
Posted by "Jakub Bocheński (Updated JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-4171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jakub Bocheński updated CXF-4171:
---------------------------------
Priority: Minor (was: Major)
> 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
> Priority: Minor
> Labels: configuration
>
> 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
[jira] [Commented] (CXF-4171) Static resource resolution not
possible with CXFNonSpringJaxrsServlet
Posted by "Jakub Bocheński (Commented JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-4171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13238308#comment-13238308 ]
Jakub Bocheński commented on CXF-4171:
--------------------------------------
Yes, this seems to be the right thing. I will wait until the snapshot build from this is available for download and test again.
BTW: I can't find any info on when 2.5.3 will be released as a stable version, is there any planned date?
> 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
[jira] [Resolved] (CXF-4171) Static resource resolution not
possible with CXFNonSpringJaxrsServlet
Posted by "Sergey Beryozkin (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-4171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sergey Beryozkin resolved CXF-4171.
-----------------------------------
Resolution: Fixed
> 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
[jira] [Resolved] (CXF-4171) Static resource resolution not
possible with CXFNonSpringJaxrsServlet
Posted by "Sergey Beryozkin (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-4171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sergey Beryozkin resolved CXF-4171.
-----------------------------------
Resolution: Fixed
Fix Version/s: 2.6
2.5.3
2.4.7
2.3.10
Assignee: Sergey Beryozkin
> 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
[jira] [Reopened] (CXF-4171) Static resource resolution not
possible with CXFNonSpringJaxrsServlet
Posted by "Jakub Bocheński (Reopened JIRA)" <ji...@apache.org>.
[ 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
[jira] [Reopened] (CXF-4171) Static resource resolution not
possible with CXFNonSpringJaxrsServlet
Posted by "Jakub Bocheński (Reopened JIRA)" <ji...@apache.org>.
[ 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 I actually forgot to switch off my custom implementation when trying this.
It still doesn't seem to work :(
When looking at the code I don't see any relevant changes - the static resolution is still set after bean.setResourceClasses() call.
I will double check if I hadn't mixed up the snapshots and let you know.
> 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
[jira] [Commented] (CXF-4171) Static resource resolution not
possible with CXFNonSpringJaxrsServlet
Posted by "Sergey Beryozkin (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-4171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13238300#comment-13238300 ]
Sergey Beryozkin commented on CXF-4171:
---------------------------------------
probably... This is now done immediately after setAddress: http://svn.apache.org/repos/asf/cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/servlet/CXFNonSpringJaxrsServlet.java
> 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