Question

I tried to add bean into blueprint.

Added CXF namespace. But, JBOSS FUSE shows

13:10:28,339 | INFO  | NAPSHOT-thread-1 | BlueprintContainerImpl           | 14 - org.apache.aries.blueprint.core - 1.0.1.redhat-60024 | Bundle camel-basic is waiting for namespace handlers [http://camel.apache.org/schema/cxf]

So, I remove the cxf and added blueprint namespace

http://camel.apache.org/schema/blueprint/cxf http://camel.apache.org/schema/blueprint/cxf/camel-cxf.xsd

But, still no use, It shows same error for this namespace also.

Do I need to change anything in pom, blueprint.xml r need install anything in jboss fuse?

I have no clue about this.

blueprint.xml

<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:camel="http://camel.apache.org/schema/blueprint" xmlns:cxf="http://camel.apache.org/schema/blueprint/cxf"
       xsi:schemaLocation="
       http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd  
       http://camel.apache.org/schema/blueprint/cxf http://camel.apache.org/schema/blueprint/cxf/camel-cxf.xsd
       http://camel.apache.org/schema/blueprint  http://camel.apache.org/schema/blueprint/camel-blueprint.xsd">


<camelContext id="blueprintContext"
                trace="false"
                xmlns="http://camel.apache.org/schema/blueprint">
        <route id="httpBridge">
        <from uri="jetty:http://localhost:8282/service_sample_proxy/services_proxy/WebserviceClassPort?matchOnUriPrefix=true"/>
        <process ref="downloadLogger"/>
        <to uri="jetty:http://localhost:8080/service_sample/services/WebserviceClassPort?bridgeEndpoint=true&amp;throwExceptionOnFailure=false"/>
        <process ref="downloadLogger"/>
        <to uri="bean:helloBean"/>
    </route>
</camelContext>  

  <cxf:cxfEndpoint id="webserviceProxy"
                     address="http://localhost:8383/service_sample_proxy/services_proxy/WebserviceClassPort"
                     endpointName="tns:WebserviceClassPort"
                     serviceName="tns:WebserviceClassService"
                     wsdlURL="wsdl/webserviceclass.wsdl"
                   xmlns:tns="http://webservice/" />

  <bean id="helloBean" class="org.fusesource.example.HelloBean" />

<bean id="downloadLogger" class="org.fusesource.example.DownloadLogger"/>  

</blueprint>

I haven't used this bean in any place. First I need to resolve this problem then I need to use it in route.

I check the

Please help me.

Was it helpful?

Solution

Install all needed features into your Fuse container (see here for more information):

features:addUrl mvn:org.apache.camel.karaf/apache-camel/2.9.0/xml/features
features:install war
features:install cxf
features:install camel-jaxb
features:install camel-blueprint
features:install camel-cxf

OTHER TIPS

Well, I went through all the steps stated above to find out it still does not work in blueprint.

Strangely as soon as the route was dropped in the spring xml and taken out of blueprint everything started working like a magic.

Tried camel-cxf instead cxf and worked with blueprint

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top