You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Sergey Beryozkin (JIRA)" <ji...@apache.org> on 2014/02/07 17:28:19 UTC

[jira] [Updated] (CXF-5551) Creating a custom bus in Blueprint does not seem to work

     [ https://issues.apache.org/jira/browse/CXF-5551?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sergey Beryozkin updated CXF-5551:
----------------------------------

    Description: 
Here is a Blueprint fragment:

{code:xml}
<!-- 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>
{code}

then I see:

{noformat}
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]
{noformat}


  was:
Here is a Blueprint fragment:

{code:xml}
<!-- 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"/>
        <!-- This 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>
{code}

then I see:

{noformat}
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]
{noformat}



> Creating a custom bus in Blueprint does not seem to work
> --------------------------------------------------------
>
>                 Key: CXF-5551
>                 URL: https://issues.apache.org/jira/browse/CXF-5551
>             Project: CXF
>          Issue Type: Bug
>          Components: Bus
>            Reporter: Sergey Beryozkin
>            Priority: Minor
>             Fix For: 3.0.0
>
>
> Here is a Blueprint fragment:
> {code:xml}
> <!-- 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>
> {code}
> then I see:
> {noformat}
> 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]
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)