[
https://issues.apache.org/jira/browse/CXF-4331?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Kulp resolved CXF-4331.
------------------------------
Resolution: Fixed
> When using SpringBusFactory within OSGi, namespace handlers cannot be found
> ---------------------------------------------------------------------------
>
> Key: CXF-4331
> URL: https://issues.apache.org/jira/browse/CXF-4331
> Project: CXF
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.6
> Reporter: Daniel Kulp
> Assignee: Daniel Kulp
> Fix For: 2.6.1
>
>
> When using something like:
> {code}
> new SpringBusFactory().createBus(configUrl);
> {code}
> to programatically create a Bus with a config file within OSGi bundle,
> namespace handlers cannot be found.
> Honestly, I'm not sure what CAN be done about this, although I have a few
> things that can help. I'm going to add a param to the SpringBusFactory that
> can be used to set the NamespaceHandlerResolver that we'll then use.
> Spring-DM maintains a NamespaceHandlerResolver as an OSGi service. Thus, a
> user can grab that service from the OSGi service registry and pass that into
> the SpringBusFactory and we can use it. Requires some user interaction to
> wire that in, but minimal. Ideally, the user should just use spring-dm or
> blueprint and not do something like this, but at least this should provide a
> workaround.
--
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