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

Creating a custom bus in Blueprint does not seem to work

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Invalid
    • None
    • 3.0
    • Bus
    • None
    • Unknown

    Description

      Here is a Blueprint fragment:

      <!-- listing only the core namespace for brevity  -->
      <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
             xmlns:cxfcore="http://cxf.apache.org/blueprint/core">
      
              <!-- This does not work -->
              <cxfcore:bus id="jaxrs" name="jaxrs"/>
              <!-- Directly using BlueprintBus works -->
              <!--
              <bean class="org.apache.cxf.bus.blueprint.BlueprintBus" id="jaxrs">
                  <property name="id" value="jaxrs"/>
              </bean>
              -->
              <cxf:rsServer id="Service1" address="http://localhost:8182"
      		serviceClass="com.mycompany.camel.blueprint.jackson.ServiceOne"
      		loggingFeatureEnabled="true"
                      bus="jaxrs">
      		<cxf:providers>
      		     <ref component-id="jettison" />
      		</cxf:providers>
      	</cxf:rsServer>
      </blueprint>
      

      then I see:

      karaf@trun> log:display-exception
      org.osgi.service.blueprint.container.ComponentDefinitionException: Unresolved ref/idref to component: jaxrs
      	at org.apache.aries.blueprint.container.BlueprintRepository.validate(BlueprintRepository.java:262)[7:org.apache.aries.blueprint.core:1.1.0]
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            sergey_beryozkin Sergey Beryozkin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment