Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-4331

When using SpringBusFactory within OSGi, namespace handlers cannot be found

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.6
    • 2.6.1
    • Core
    • None
    • Unknown

    Description

      When using something like:

      new SpringBusFactory().createBus(configUrl);
      

      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.

      Attachments

        Activity

          People

            dkulp Daniel Kulp
            dkulp Daniel Kulp
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: