[
https://issues.apache.org/jira/browse/CXF-4704?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sergey Beryozkin resolved CXF-4704.
-----------------------------------
Resolution: Fixed
Fix Version/s: 2.7.2
2.6.5
Assignee: Sergey Beryozkin
> Class loading problem using CXFNonSpringJaxrsServlet in OSGi environment
> ------------------------------------------------------------------------
>
> Key: CXF-4704
> URL: https://issues.apache.org/jira/browse/CXF-4704
> Project: CXF
> Issue Type: Bug
> Components: JAX-RS
> Affects Versions: 2.6.2
> Environment: Apache Felix
> Reporter: Valdas Jasaitis
> Assignee: Sergey Beryozkin
> Fix For: 2.6.5, 2.7.2
>
>
> The JAX-RS proxy classes are not loaded when I try to use
> CXFNonSpringJaxrsServlet in Apache Felix. I get ClassNotFoundException.
> The problem is that currently CXFNonSpringJaxrsServlet.loadClass always uses
> the ClassLoadUtils.loadClass which tries the following class loaders:
> ThreadContextClassloader,
> ClassLoader from CXFNonSpringJaxrsServlet,
> Classloader from ClassLoaderUtils.
> All of them are not compatible with OSGi. It would be good, to set an
> explicit classloader for the servlet.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira