apache camel - bundle stays in GracePeriod status -


i trying instantiate "cxf:cxfendpoint" in camel route. bundle stays in "graceperiod" status following log:

2016-11-10 11:03:07,598 | info  | rint extender: 1 | blueprintcontainerimpl           | ? ? | 21 - org.apache.aries.blueprint.core - 1.4.2 | bundle com.entreprise.example waiting namespace handlers [http://camel.apache.org/schema/blueprint] 

and camelcontext.xml file :

<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0" xmlns:jaxws="http://cxf.apache.org/blueprint/jaxws" xmlns:cxf="http://cxf.apache.org/blueprint/core" xmlns:camel="http://camel.apache.org/schema/blueprint" xmlns:camelcxf="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://cxf.apache.org/blueprint/jaxws http://cxf.apache.org/schemas/blueprint/jaxws.xsd  http://cxf.apache.org/blueprint/core http://cxf.apache.org/schemas/blueprint/core.xsd">  <camelcxf:cxfendpoint id="fist"     serviceclass="com.entreprise.example.services.firstservice"     address="http://localhost:8181/cxf/example/firstmsg">     <camelcxf:properties>         <entry key="dataformat" value="pojo" />         <entry key="loggingfeatureenabled" value="true" />     </camelcxf:properties> </camelcxf:cxfendpoint> <camelcxf:cxfendpoint id="second"     serviceclass="com.entreprise.example.services.secondservice"     address="http://localhost:8181/cxf/example/secondmessage">     <camelcxf:properties>         <entry key="dataformat" value="pojo" />         <entry key="loggingfeatureenabled" value="true" />     </camelcxf:properties> </camelcxf:cxfendpoint> <camelcontext trace="false" id="example"     xmlns="http://camel.apache.org/schema/blueprint">     <route>         <from uri="cxf:bean:first" />         <to uri="cxf:bean:second" />     </route> </camelcontext> 

seems have messed blueprint schema declartions. replace blueprint declaration below

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

and use "cxf" instead of "camelcxf" prefix endpoint , bean become more clear , redeable (though free use prefix prefer use).

ok, avoid confusion use below, resolve waiting dependencies error:

<?xml version="1.0" encoding="utf-8"?> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"     xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.2.0"     xmlns:cxf="http://camel.apache.org/schema/blueprint/cxf" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"     xsi:schemalocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd      http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint.xsd">      <cxf:cxfendpoint id="fist"         serviceclass="com.entreprise.example.services.firstservice" address="http://localhost:8181/cxf/example/firstmsg">         <cxf:properties>             <entry key="dataformat" value="pojo" />             <entry key="loggingfeatureenabled" value="true" />         </cxf:properties>     </cxf:cxfendpoint>     <cxf:cxfendpoint id="second"         serviceclass="com.entreprise.example.services.secondservice" address="http://localhost:8181/cxf/example/secondmessage">         <cxf:properties>             <entry key="dataformat" value="pojo" />             <entry key="loggingfeatureenabled" value="true" />         </cxf:properties>     </cxf:cxfendpoint>     <camelcontext trace="false" id="example"         xmlns="http://camel.apache.org/schema/blueprint">         <route>             <from uri="cxf:bean:first" />             <to uri="cxf:bean:second" />         </route>  </blueprint> 

Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -