You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by jcamus <jc...@parkeon.com> on 2009/09/16 18:06:29 UTC

org.apache.cxf.BusException: No conduit initiator was found for the namespace http://cxf.apache.org/transports/jbi.

Hi!
I am trying to create dynamically a CXF-SE proxy into a given pojo class
(definied into a Servicemix BEAN-SU).

I want to call a method of the service FileRepository with IFileRepository
defining all the methods.

Here is the code :

private void testProxy(ExternalReferencialExportBo referencialExportBo)
throws Exception {
	String namespace = "http://filerepository.esb.transfolio.parkeon.com";
	String portName = "IFileRepository";
	String serviceName = "FileRepositoryService";
	
	//QName port = new QName(namespace, portName);	
        QName service = new QName(namespace, serviceName);
        JaxWsProxyFactoryBean cf = new JaxWsProxyFactoryBean();
        cf.setServiceName(service);
        cf.setServiceClass(IFileRepository.class);
        cf.setAddress("jbi://" + new IdGenerator().generateSanitizedId());
       
cf.setBindingId(org.apache.cxf.binding.jbi.JBIConstants.NS_JBI_BINDING);
        Bus bus = BusFactory.getDefaultBus();
        JBITransportFactory jbiTransportFactory = (JBITransportFactory) bus
          .getExtension(ConduitInitiatorManager.class)
          .getConduitInitiator(CxfSeComponent.JBI_TRANSPORT_ID);
        jbiTransportFactory.setDeliveryChannel(m_channel);

        m_fileRepository = (IFileRepository) cf.create(); 
        
        m_fileRepository.setExportConfig(1, 
        	referencialExportBo.getExportId(), 
        	referencialExportBo.getConfigTypeName(), 
        	referencialExportBo.getConfigTypeCode(), 
        	referencialExportBo.getVersionLabel());
    }

When a message is received by my pojo class and I call this method I have
the following error reported into SMX console :


DEBUG - DeliveryChannelImpl            - Notified:
ID:192.168.79.203-123c31d621d-5:2(6144f) in DeliveryChannel{servicemix-jms}
from sendSync
org.apache.cxf.BusException: No conduit initiator was found for the
namespace http://cxf.apache.org/transports/jbi.
        at
org.apache.cxf.transport.ConduitInitiatorManagerImpl.getConduitInitiator(ConduitInitiatorManagerImpl.java:102)
        at
com.parkeon.transfolio.esb.exportation.AbstractReferencialExporter.testProxy(AbstractReferencialExporter.java:90)
        at
com.parkeon.transfolio.esb.exportation.AbstractReferencialExporter.onMessageExchange(AbstractReferencialExporter.java:69)
        at
org.apache.servicemix.bean.BeanEndpoint.onProviderExchange(BeanEndpoint.java:230)
        at
org.apache.servicemix.bean.BeanEndpoint.process(BeanEndpoint.java:217)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:627)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:581)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.onMessageExchange(AsyncBaseLifeCycle.java:535)
        at
org.apache.servicemix.common.SyncLifeCycleWrapper.onMessageExchange(SyncLifeCycleWrapper.java:60)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:623)
        at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:172)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:168)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
        at java.lang.Thread.run(Thread.java:619)

Where am I wrong?

Regards.
-- 
View this message in context: http://www.nabble.com/org.apache.cxf.BusException%3A-No-conduit-initiator-was-found-for-the-namespace-http%3A--cxf.apache.org-transports-jbi.-tp25475591p25475591.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: org.apache.cxf.BusException: No conduit initiator was found for the namespace http://cxf.apache.org/transports/jbi.

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Be careful,

once again, you have defined two components in your SU dependencies.

In your case, I think it's better to have only servicemix-bean component 
and CXF dependencies (not servicemix-cxf-se).

Regards
JB

jcamus wrote:
> Ok, but where I can find this jar? I don't understand why it's not into
> cxf-se libs?
> 
> 
> 
> Jean-Baptiste Onofré wrote:
>> Hi,
>>
>> I think that you need the cxf-integration-jbi-x.x.x.jar and the 
>> corresponding extension XML.
>>
>> Regards
>> JB
>>
>> jcamus wrote:
>>> Here is my pom.xml of servicemix bean :
>>>
>>> <dependencies>
>>> 	
>>> 		<dependency>
>>> 			<groupId>org.apache.servicemix</groupId>
>>> 			<artifactId>servicemix-bean</artifactId>
>>> 			<version>${servicemix-version}</version>
>>> 		</dependency>
>>> 		
>>> 		<dependency>
>>> 			<groupId>org.apache.servicemix</groupId>
>>> 			<artifactId>servicemix-cxf-se</artifactId>
>>> 			<version>${servicemix-version}</version>
>>> 		</dependency>
>>> 		
>>> 		<dependency>
>>> 			<groupId>org.apache.servicemix</groupId>
>>> 			<artifactId>servicemix-core</artifactId>
>>> 			<version>${servicemix-version}</version>
>>> 		</dependency>
>>>
>>> 		<dependency>
>>> 			<groupId>org.apache.cxf</groupId>
>>> 			<artifactId>cxf-rt-frontend-jaxws</artifactId>
>>> 			<version>2.0.9</version>
>>> 		</dependency>
>>> 		
>>> 		<dependency>
>>> 			<groupId>org.springframework</groupId>
>>> 			<artifactId>spring-context</artifactId>
>>> 			<version>2.5.6</version>
>>> 			<type>jar</type>
>>> 		</dependency>
>>> 		<dependency>
>>> </dependencies>
>>
> 

Re: org.apache.cxf.BusException: No conduit initiator was found for the namespace http://cxf.apache.org/transports/jbi.

Posted by jcamus <jc...@parkeon.com>.
It works fine now !
The bean now can call my cxf-se as a proxy.
This dependency was missing as well :

<dependency>
			<groupId>org.apache.cxf</groupId>
			<artifactId>cxf-rt-bindings-jbi</artifactId>
			<version>2.0.9</version>
		</dependency>


here is the java code creating the proxy :

String namespace = "http://filerepository.esb.transfolio.parkeon.com";
	String portName = "IFileRepository";
	String serviceName = "FileRepositoryService";
	
	//QName port = new QName(namespace, portName);	
        QName service = new QName(namespace, serviceName);
        JaxWsProxyFactoryBean cf = new JaxWsProxyFactoryBean();
        cf.setServiceName(service);
        cf.setServiceClass(IFileRepository.class);
        cf.setAddress("jbi://" + new IdGenerator().generateSanitizedId());
       
cf.setBindingId(org.apache.cxf.binding.jbi.JBIConstants.NS_JBI_BINDING);
        Bus bus = BusFactory.getDefaultBus();
        JBITransportFactory jbiTransportFactory = (JBITransportFactory) bus
          .getExtension(ConduitInitiatorManager.class)
          .getConduitInitiator(CxfSeComponent.JBI_TRANSPORT_ID);
        jbiTransportFactory.setDeliveryChannel(m_channel);

        m_fileRepository = (IFileRepository) cf.create(); 



Thanks a lot!

But I still don't understand why a cxf-se proxy can't be build an easier
way?
It is a feature that will exist into SMX 4?
I mean define quickly a proxy only into the xbean.xml of the bean-su like
this :


<bean:endpoint service="parkeon:myBean"
		endpoint="endpoint">
		<bean:bean>
			<bean id="myBean" class="com.myBean>
                           <property name="myProxy">
<cxfse:proxy service="test:myService" context="#context"
type="com.IMyService" />
			</bean>
		</bean:bean>
	</bean:endpoint>



Jean-Baptiste Onofré wrote:
> 
> Yes, it's the file that I was thinking (the file name in my previous 
> mail is for CXF 2.2.x).
> 
> Keep us posted about the result.
> 
> Regards
> JB
> 
> jcamus wrote:
>> hi,
>> I found what is missing this dependency must be added (found that in the
>> pom
>> of the project servicemix-se).
>> <dependency>
>> 			<groupId>org.apache.cxf</groupId>
>> 		    <artifactId>cxf-rt-transports-jbi</artifactId>
>> 		    <version>2.0.9</version>
>> 		</dependency>
>> 
>> Hope now it works. I let you know.
>> 
>> 
>> 
>> 
>> Jean-Baptiste Onofré wrote:
>>> You have right, let me check.
>>>
>>> jcamus wrote:
>>>> Ok, but where I can find this jar? I don't understand why it's not into
>>>> cxf-se libs?
>>>>
>>>>
>>>>
>>>> Jean-Baptiste Onofré wrote:
>>>>> Hi,
>>>>>
>>>>> I think that you need the cxf-integration-jbi-x.x.x.jar and the 
>>>>> corresponding extension XML.
>>>>>
>>>>> Regards
>>>>> JB
>>>>>
>>>>> jcamus wrote:
>>>>>> Here is my pom.xml of servicemix bean :
>>>>>>
>>>>>> <dependencies>
>>>>>> 	
>>>>>> 		<dependency>
>>>>>> 			<groupId>org.apache.servicemix</groupId>
>>>>>> 			<artifactId>servicemix-bean</artifactId>
>>>>>> 			<version>${servicemix-version}</version>
>>>>>> 		</dependency>
>>>>>> 		
>>>>>> 		<dependency>
>>>>>> 			<groupId>org.apache.servicemix</groupId>
>>>>>> 			<artifactId>servicemix-cxf-se</artifactId>
>>>>>> 			<version>${servicemix-version}</version>
>>>>>> 		</dependency>
>>>>>> 		
>>>>>> 		<dependency>
>>>>>> 			<groupId>org.apache.servicemix</groupId>
>>>>>> 			<artifactId>servicemix-core</artifactId>
>>>>>> 			<version>${servicemix-version}</version>
>>>>>> 		</dependency>
>>>>>>
>>>>>> 		<dependency>
>>>>>> 			<groupId>org.apache.cxf</groupId>
>>>>>> 			<artifactId>cxf-rt-frontend-jaxws</artifactId>
>>>>>> 			<version>2.0.9</version>
>>>>>> 		</dependency>
>>>>>> 		
>>>>>> 		<dependency>
>>>>>> 			<groupId>org.springframework</groupId>
>>>>>> 			<artifactId>spring-context</artifactId>
>>>>>> 			<version>2.5.6</version>
>>>>>> 			<type>jar</type>
>>>>>> 		</dependency>
>>>>>> 		<dependency>
>>>>>> </dependencies>
>>>
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/org.apache.cxf.BusException%3A-No-conduit-initiator-was-found-for-the-namespace-http%3A--cxf.apache.org-transports-jbi.-tp25475591p25487200.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: org.apache.cxf.BusException: No conduit initiator was found for the namespace http://cxf.apache.org/transports/jbi.

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Yes, it's the file that I was thinking (the file name in my previous 
mail is for CXF 2.2.x).

Keep us posted about the result.

Regards
JB

jcamus wrote:
> hi,
> I found what is missing this dependency must be added (found that in the pom
> of the project servicemix-se).
> <dependency>
> 			<groupId>org.apache.cxf</groupId>
> 		    <artifactId>cxf-rt-transports-jbi</artifactId>
> 		    <version>2.0.9</version>
> 		</dependency>
> 
> Hope now it works. I let you know.
> 
> 
> 
> 
> Jean-Baptiste Onofré wrote:
>> You have right, let me check.
>>
>> jcamus wrote:
>>> Ok, but where I can find this jar? I don't understand why it's not into
>>> cxf-se libs?
>>>
>>>
>>>
>>> Jean-Baptiste Onofré wrote:
>>>> Hi,
>>>>
>>>> I think that you need the cxf-integration-jbi-x.x.x.jar and the 
>>>> corresponding extension XML.
>>>>
>>>> Regards
>>>> JB
>>>>
>>>> jcamus wrote:
>>>>> Here is my pom.xml of servicemix bean :
>>>>>
>>>>> <dependencies>
>>>>> 	
>>>>> 		<dependency>
>>>>> 			<groupId>org.apache.servicemix</groupId>
>>>>> 			<artifactId>servicemix-bean</artifactId>
>>>>> 			<version>${servicemix-version}</version>
>>>>> 		</dependency>
>>>>> 		
>>>>> 		<dependency>
>>>>> 			<groupId>org.apache.servicemix</groupId>
>>>>> 			<artifactId>servicemix-cxf-se</artifactId>
>>>>> 			<version>${servicemix-version}</version>
>>>>> 		</dependency>
>>>>> 		
>>>>> 		<dependency>
>>>>> 			<groupId>org.apache.servicemix</groupId>
>>>>> 			<artifactId>servicemix-core</artifactId>
>>>>> 			<version>${servicemix-version}</version>
>>>>> 		</dependency>
>>>>>
>>>>> 		<dependency>
>>>>> 			<groupId>org.apache.cxf</groupId>
>>>>> 			<artifactId>cxf-rt-frontend-jaxws</artifactId>
>>>>> 			<version>2.0.9</version>
>>>>> 		</dependency>
>>>>> 		
>>>>> 		<dependency>
>>>>> 			<groupId>org.springframework</groupId>
>>>>> 			<artifactId>spring-context</artifactId>
>>>>> 			<version>2.5.6</version>
>>>>> 			<type>jar</type>
>>>>> 		</dependency>
>>>>> 		<dependency>
>>>>> </dependencies>
>>
> 

Re: org.apache.cxf.BusException: No conduit initiator was found for the namespace http://cxf.apache.org/transports/jbi.

Posted by jcamus <jc...@parkeon.com>.
hi,
I found what is missing this dependency must be added (found that in the pom
of the project servicemix-se).
<dependency>
			<groupId>org.apache.cxf</groupId>
		    <artifactId>cxf-rt-transports-jbi</artifactId>
		    <version>2.0.9</version>
		</dependency>

Hope now it works. I let you know.




Jean-Baptiste Onofré wrote:
> 
> You have right, let me check.
> 
> jcamus wrote:
>> Ok, but where I can find this jar? I don't understand why it's not into
>> cxf-se libs?
>> 
>> 
>> 
>> Jean-Baptiste Onofré wrote:
>>> Hi,
>>>
>>> I think that you need the cxf-integration-jbi-x.x.x.jar and the 
>>> corresponding extension XML.
>>>
>>> Regards
>>> JB
>>>
>>> jcamus wrote:
>>>> Here is my pom.xml of servicemix bean :
>>>>
>>>> <dependencies>
>>>> 	
>>>> 		<dependency>
>>>> 			<groupId>org.apache.servicemix</groupId>
>>>> 			<artifactId>servicemix-bean</artifactId>
>>>> 			<version>${servicemix-version}</version>
>>>> 		</dependency>
>>>> 		
>>>> 		<dependency>
>>>> 			<groupId>org.apache.servicemix</groupId>
>>>> 			<artifactId>servicemix-cxf-se</artifactId>
>>>> 			<version>${servicemix-version}</version>
>>>> 		</dependency>
>>>> 		
>>>> 		<dependency>
>>>> 			<groupId>org.apache.servicemix</groupId>
>>>> 			<artifactId>servicemix-core</artifactId>
>>>> 			<version>${servicemix-version}</version>
>>>> 		</dependency>
>>>>
>>>> 		<dependency>
>>>> 			<groupId>org.apache.cxf</groupId>
>>>> 			<artifactId>cxf-rt-frontend-jaxws</artifactId>
>>>> 			<version>2.0.9</version>
>>>> 		</dependency>
>>>> 		
>>>> 		<dependency>
>>>> 			<groupId>org.springframework</groupId>
>>>> 			<artifactId>spring-context</artifactId>
>>>> 			<version>2.5.6</version>
>>>> 			<type>jar</type>
>>>> 		</dependency>
>>>> 		<dependency>
>>>> </dependencies>
>>>
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/org.apache.cxf.BusException%3A-No-conduit-initiator-was-found-for-the-namespace-http%3A--cxf.apache.org-transports-jbi.-tp25475591p25486908.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: org.apache.cxf.BusException: No conduit initiator was found for the namespace http://cxf.apache.org/transports/jbi.

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
You have right, let me check.

jcamus wrote:
> Ok, but where I can find this jar? I don't understand why it's not into
> cxf-se libs?
> 
> 
> 
> Jean-Baptiste Onofré wrote:
>> Hi,
>>
>> I think that you need the cxf-integration-jbi-x.x.x.jar and the 
>> corresponding extension XML.
>>
>> Regards
>> JB
>>
>> jcamus wrote:
>>> Here is my pom.xml of servicemix bean :
>>>
>>> <dependencies>
>>> 	
>>> 		<dependency>
>>> 			<groupId>org.apache.servicemix</groupId>
>>> 			<artifactId>servicemix-bean</artifactId>
>>> 			<version>${servicemix-version}</version>
>>> 		</dependency>
>>> 		
>>> 		<dependency>
>>> 			<groupId>org.apache.servicemix</groupId>
>>> 			<artifactId>servicemix-cxf-se</artifactId>
>>> 			<version>${servicemix-version}</version>
>>> 		</dependency>
>>> 		
>>> 		<dependency>
>>> 			<groupId>org.apache.servicemix</groupId>
>>> 			<artifactId>servicemix-core</artifactId>
>>> 			<version>${servicemix-version}</version>
>>> 		</dependency>
>>>
>>> 		<dependency>
>>> 			<groupId>org.apache.cxf</groupId>
>>> 			<artifactId>cxf-rt-frontend-jaxws</artifactId>
>>> 			<version>2.0.9</version>
>>> 		</dependency>
>>> 		
>>> 		<dependency>
>>> 			<groupId>org.springframework</groupId>
>>> 			<artifactId>spring-context</artifactId>
>>> 			<version>2.5.6</version>
>>> 			<type>jar</type>
>>> 		</dependency>
>>> 		<dependency>
>>> </dependencies>
>>
> 

Re: org.apache.cxf.BusException: No conduit initiator was found for the namespace http://cxf.apache.org/transports/jbi.

Posted by Willem Jiang <wi...@gmail.com>.
Hi,

Which version of Servicemix are you using ?
I just checked the Fuse ESB 3.4.0.3, and latest 2.4 snapshot of 
servicemix-cxf-se component, there are cxf-rt-transports-jbi-***.jar in 
the lib directory.

Willem

jcamus wrote:
> Ok, but where I can find this jar? I don't understand why it's not into
> cxf-se libs?
> 
> 
> 
> Jean-Baptiste Onofré wrote:
>> Hi,
>>
>> I think that you need the cxf-integration-jbi-x.x.x.jar and the 
>> corresponding extension XML.
>>
>> Regards
>> JB
>>
>> jcamus wrote:
>>> Here is my pom.xml of servicemix bean :
>>>
>>> <dependencies>
>>> 	
>>> 		<dependency>
>>> 			<groupId>org.apache.servicemix</groupId>
>>> 			<artifactId>servicemix-bean</artifactId>
>>> 			<version>${servicemix-version}</version>
>>> 		</dependency>
>>> 		
>>> 		<dependency>
>>> 			<groupId>org.apache.servicemix</groupId>
>>> 			<artifactId>servicemix-cxf-se</artifactId>
>>> 			<version>${servicemix-version}</version>
>>> 		</dependency>
>>> 		
>>> 		<dependency>
>>> 			<groupId>org.apache.servicemix</groupId>
>>> 			<artifactId>servicemix-core</artifactId>
>>> 			<version>${servicemix-version}</version>
>>> 		</dependency>
>>>
>>> 		<dependency>
>>> 			<groupId>org.apache.cxf</groupId>
>>> 			<artifactId>cxf-rt-frontend-jaxws</artifactId>
>>> 			<version>2.0.9</version>
>>> 		</dependency>
>>> 		
>>> 		<dependency>
>>> 			<groupId>org.springframework</groupId>
>>> 			<artifactId>spring-context</artifactId>
>>> 			<version>2.5.6</version>
>>> 			<type>jar</type>
>>> 		</dependency>
>>> 		<dependency>
>>> </dependencies>
>>
> 


Re: org.apache.cxf.BusException: No conduit initiator was found for the namespace http://cxf.apache.org/transports/jbi.

Posted by jcamus <jc...@parkeon.com>.
Ok, but where I can find this jar? I don't understand why it's not into
cxf-se libs?



Jean-Baptiste Onofré wrote:
> 
> Hi,
> 
> I think that you need the cxf-integration-jbi-x.x.x.jar and the 
> corresponding extension XML.
> 
> Regards
> JB
> 
> jcamus wrote:
>> Here is my pom.xml of servicemix bean :
>> 
>> <dependencies>
>> 	
>> 		<dependency>
>> 			<groupId>org.apache.servicemix</groupId>
>> 			<artifactId>servicemix-bean</artifactId>
>> 			<version>${servicemix-version}</version>
>> 		</dependency>
>> 		
>> 		<dependency>
>> 			<groupId>org.apache.servicemix</groupId>
>> 			<artifactId>servicemix-cxf-se</artifactId>
>> 			<version>${servicemix-version}</version>
>> 		</dependency>
>> 		
>> 		<dependency>
>> 			<groupId>org.apache.servicemix</groupId>
>> 			<artifactId>servicemix-core</artifactId>
>> 			<version>${servicemix-version}</version>
>> 		</dependency>
>> 
>> 		<dependency>
>> 			<groupId>org.apache.cxf</groupId>
>> 			<artifactId>cxf-rt-frontend-jaxws</artifactId>
>> 			<version>2.0.9</version>
>> 		</dependency>
>> 		
>> 		<dependency>
>> 			<groupId>org.springframework</groupId>
>> 			<artifactId>spring-context</artifactId>
>> 			<version>2.5.6</version>
>> 			<type>jar</type>
>> 		</dependency>
>> 		<dependency>
>> </dependencies>
> 
> 

-- 
View this message in context: http://www.nabble.com/org.apache.cxf.BusException%3A-No-conduit-initiator-was-found-for-the-namespace-http%3A--cxf.apache.org-transports-jbi.-tp25475591p25486563.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: org.apache.cxf.BusException: No conduit initiator was found for the namespace http://cxf.apache.org/transports/jbi.

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,

I think that you need the cxf-integration-jbi-x.x.x.jar and the 
corresponding extension XML.

Regards
JB

jcamus wrote:
> Here is my pom.xml of servicemix bean :
> 
> <dependencies>
> 	
> 		<dependency>
> 			<groupId>org.apache.servicemix</groupId>
> 			<artifactId>servicemix-bean</artifactId>
> 			<version>${servicemix-version}</version>
> 		</dependency>
> 		
> 		<dependency>
> 			<groupId>org.apache.servicemix</groupId>
> 			<artifactId>servicemix-cxf-se</artifactId>
> 			<version>${servicemix-version}</version>
> 		</dependency>
> 		
> 		<dependency>
> 			<groupId>org.apache.servicemix</groupId>
> 			<artifactId>servicemix-core</artifactId>
> 			<version>${servicemix-version}</version>
> 		</dependency>
> 
> 		<dependency>
> 			<groupId>org.apache.cxf</groupId>
> 			<artifactId>cxf-rt-frontend-jaxws</artifactId>
> 			<version>2.0.9</version>
> 		</dependency>
> 		
> 		<dependency>
> 			<groupId>org.springframework</groupId>
> 			<artifactId>spring-context</artifactId>
> 			<version>2.5.6</version>
> 			<type>jar</type>
> 		</dependency>
> 		<dependency>
> </dependencies>

Re: org.apache.cxf.BusException: No conduit initiator was found for the namespace http://cxf.apache.org/transports/jbi.

Posted by jcamus <jc...@parkeon.com>.
Here is my pom.xml of servicemix bean :

<dependencies>
	
		<dependency>
			<groupId>org.apache.servicemix</groupId>
			<artifactId>servicemix-bean</artifactId>
			<version>${servicemix-version}</version>
		</dependency>
		
		<dependency>
			<groupId>org.apache.servicemix</groupId>
			<artifactId>servicemix-cxf-se</artifactId>
			<version>${servicemix-version}</version>
		</dependency>
		
		<dependency>
			<groupId>org.apache.servicemix</groupId>
			<artifactId>servicemix-core</artifactId>
			<version>${servicemix-version}</version>
		</dependency>

		<dependency>
			<groupId>org.apache.cxf</groupId>
			<artifactId>cxf-rt-frontend-jaxws</artifactId>
			<version>2.0.9</version>
		</dependency>
		
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-context</artifactId>
			<version>2.5.6</version>
			<type>jar</type>
		</dependency>
		<dependency>
</dependencies>
-- 
View this message in context: http://www.nabble.com/org.apache.cxf.BusException%3A-No-conduit-initiator-was-found-for-the-namespace-http%3A--cxf.apache.org-transports-jbi.-tp25475591p25486312.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: org.apache.cxf.BusException: No conduit initiator was found for the namespace http://cxf.apache.org/transports/jbi.

Posted by jcamus <jc...@parkeon.com>.
Where can I find this file?
cxf-extension-jbi.xml
I have the following error :

<loc-message>IOException parsing XML document from class path resource
[META-INF/cxf/cxf-extension-jbi.xml]; n
ested exception is java.io.FileNotFoundException: class path resource
[META-INF/cxf/cxf-extension-jbi.xml] cannot be opened because it does not
exist<



willem.jiang wrote:
> 
> Can I see your xbeans.xml ?
> You can try to add this line into your xbeans.xml, to let CXF bus load 
> the jbi transport factory.
> 
> <import resource="classpath:META-INF/cxf/cxf-extension-jbi.xml"/>
> 
> Willem
> 
> Jean-Baptiste Onofré wrote:
>> Hi,
>> 
>> CXF is not able to find the conduit corresponding to the jbi namespace.
>> 
>> Could you provide your pom.xml to check dependencies ?
>> 
>> Regards
>> JB
>> 
>> jcamus wrote:
>>> Hi!
>>> I am trying to create dynamically a CXF-SE proxy into a given pojo class
>>> (definied into a Servicemix BEAN-SU).
>>>
>>> I want to call a method of the service FileRepository with 
>>> IFileRepository
>>> defining all the methods.
>>>
>>> Here is the code :
>>>
>>> private void testProxy(ExternalReferencialExportBo referencialExportBo)
>>> throws Exception {
>>>     String namespace = 
>>> "http://filerepository.esb.transfolio.parkeon.com";
>>>     String portName = "IFileRepository";
>>>     String serviceName = "FileRepositoryService";
>>>     
>>>     //QName port = new QName(namespace, portName);   
>>>         QName service = new QName(namespace, serviceName);
>>>         JaxWsProxyFactoryBean cf = new JaxWsProxyFactoryBean();
>>>         cf.setServiceName(service);
>>>         cf.setServiceClass(IFileRepository.class);
>>>         cf.setAddress("jbi://" + new 
>>> IdGenerator().generateSanitizedId());
>>>        
>>> cf.setBindingId(org.apache.cxf.binding.jbi.JBIConstants.NS_JBI_BINDING);
>>>         Bus bus = BusFactory.getDefaultBus();
>>>         JBITransportFactory jbiTransportFactory = 
>>> (JBITransportFactory) bus
>>>           .getExtension(ConduitInitiatorManager.class)
>>>           .getConduitInitiator(CxfSeComponent.JBI_TRANSPORT_ID);
>>>         jbiTransportFactory.setDeliveryChannel(m_channel);
>>>
>>>         m_fileRepository = (IFileRepository) cf.create();         
>>>         m_fileRepository.setExportConfig(1,             
>>> referencialExportBo.getExportId(),             
>>> referencialExportBo.getConfigTypeName(),             
>>> referencialExportBo.getConfigTypeCode(),             
>>> referencialExportBo.getVersionLabel());
>>>     }
>>>
>>> When a message is received by my pojo class and I call this method I
>>> have
>>> the following error reported into SMX console :
>>>
>>>
>>> DEBUG - DeliveryChannelImpl            - Notified:
>>> ID:192.168.79.203-123c31d621d-5:2(6144f) in 
>>> DeliveryChannel{servicemix-jms}
>>> from sendSync
>>> org.apache.cxf.BusException: No conduit initiator was found for the
>>> namespace http://cxf.apache.org/transports/jbi.
>>>         at
>>> org.apache.cxf.transport.ConduitInitiatorManagerImpl.getConduitInitiator(ConduitInitiatorManagerImpl.java:102) 
>>>
>>>         at
>>> com.parkeon.transfolio.esb.exportation.AbstractReferencialExporter.testProxy(AbstractReferencialExporter.java:90) 
>>>
>>>         at
>>> com.parkeon.transfolio.esb.exportation.AbstractReferencialExporter.onMessageExchange(AbstractReferencialExporter.java:69) 
>>>
>>>         at
>>> org.apache.servicemix.bean.BeanEndpoint.onProviderExchange(BeanEndpoint.java:230) 
>>>
>>>         at
>>> org.apache.servicemix.bean.BeanEndpoint.process(BeanEndpoint.java:217)
>>>         at
>>> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:627) 
>>>
>>>         at
>>> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:581) 
>>>
>>>         at
>>> org.apache.servicemix.common.AsyncBaseLifeCycle.onMessageExchange(AsyncBaseLifeCycle.java:535) 
>>>
>>>         at
>>> org.apache.servicemix.common.SyncLifeCycleWrapper.onMessageExchange(SyncLifeCycleWrapper.java:60) 
>>>
>>>         at
>>> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:623) 
>>>
>>>         at
>>> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:172) 
>>>
>>>         at
>>> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:168) 
>>>
>>>         at
>>> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134) 
>>>
>>>         at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) 
>>>
>>>         at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) 
>>>
>>>         at java.lang.Thread.run(Thread.java:619)
>>>
>>> Where am I wrong?
>>>
>>> Regards.
>> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/org.apache.cxf.BusException%3A-No-conduit-initiator-was-found-for-the-namespace-http%3A--cxf.apache.org-transports-jbi.-tp25475591p25486239.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: org.apache.cxf.BusException: No conduit initiator was found for the namespace http://cxf.apache.org/transports/jbi.

Posted by Willem Jiang <wi...@gmail.com>.
Can I see your xbeans.xml ?
You can try to add this line into your xbeans.xml, to let CXF bus load 
the jbi transport factory.

<import resource="classpath:META-INF/cxf/cxf-extension-jbi.xml"/>

Willem

Jean-Baptiste Onofré wrote:
> Hi,
> 
> CXF is not able to find the conduit corresponding to the jbi namespace.
> 
> Could you provide your pom.xml to check dependencies ?
> 
> Regards
> JB
> 
> jcamus wrote:
>> Hi!
>> I am trying to create dynamically a CXF-SE proxy into a given pojo class
>> (definied into a Servicemix BEAN-SU).
>>
>> I want to call a method of the service FileRepository with 
>> IFileRepository
>> defining all the methods.
>>
>> Here is the code :
>>
>> private void testProxy(ExternalReferencialExportBo referencialExportBo)
>> throws Exception {
>>     String namespace = 
>> "http://filerepository.esb.transfolio.parkeon.com";
>>     String portName = "IFileRepository";
>>     String serviceName = "FileRepositoryService";
>>     
>>     //QName port = new QName(namespace, portName);   
>>         QName service = new QName(namespace, serviceName);
>>         JaxWsProxyFactoryBean cf = new JaxWsProxyFactoryBean();
>>         cf.setServiceName(service);
>>         cf.setServiceClass(IFileRepository.class);
>>         cf.setAddress("jbi://" + new 
>> IdGenerator().generateSanitizedId());
>>        
>> cf.setBindingId(org.apache.cxf.binding.jbi.JBIConstants.NS_JBI_BINDING);
>>         Bus bus = BusFactory.getDefaultBus();
>>         JBITransportFactory jbiTransportFactory = 
>> (JBITransportFactory) bus
>>           .getExtension(ConduitInitiatorManager.class)
>>           .getConduitInitiator(CxfSeComponent.JBI_TRANSPORT_ID);
>>         jbiTransportFactory.setDeliveryChannel(m_channel);
>>
>>         m_fileRepository = (IFileRepository) cf.create();         
>>         m_fileRepository.setExportConfig(1,             
>> referencialExportBo.getExportId(),             
>> referencialExportBo.getConfigTypeName(),             
>> referencialExportBo.getConfigTypeCode(),             
>> referencialExportBo.getVersionLabel());
>>     }
>>
>> When a message is received by my pojo class and I call this method I have
>> the following error reported into SMX console :
>>
>>
>> DEBUG - DeliveryChannelImpl            - Notified:
>> ID:192.168.79.203-123c31d621d-5:2(6144f) in 
>> DeliveryChannel{servicemix-jms}
>> from sendSync
>> org.apache.cxf.BusException: No conduit initiator was found for the
>> namespace http://cxf.apache.org/transports/jbi.
>>         at
>> org.apache.cxf.transport.ConduitInitiatorManagerImpl.getConduitInitiator(ConduitInitiatorManagerImpl.java:102) 
>>
>>         at
>> com.parkeon.transfolio.esb.exportation.AbstractReferencialExporter.testProxy(AbstractReferencialExporter.java:90) 
>>
>>         at
>> com.parkeon.transfolio.esb.exportation.AbstractReferencialExporter.onMessageExchange(AbstractReferencialExporter.java:69) 
>>
>>         at
>> org.apache.servicemix.bean.BeanEndpoint.onProviderExchange(BeanEndpoint.java:230) 
>>
>>         at
>> org.apache.servicemix.bean.BeanEndpoint.process(BeanEndpoint.java:217)
>>         at
>> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:627) 
>>
>>         at
>> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:581) 
>>
>>         at
>> org.apache.servicemix.common.AsyncBaseLifeCycle.onMessageExchange(AsyncBaseLifeCycle.java:535) 
>>
>>         at
>> org.apache.servicemix.common.SyncLifeCycleWrapper.onMessageExchange(SyncLifeCycleWrapper.java:60) 
>>
>>         at
>> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:623) 
>>
>>         at
>> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:172) 
>>
>>         at
>> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:168) 
>>
>>         at
>> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134) 
>>
>>         at
>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) 
>>
>>         at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) 
>>
>>         at java.lang.Thread.run(Thread.java:619)
>>
>> Where am I wrong?
>>
>> Regards.
> 


Re: org.apache.cxf.BusException: No conduit initiator was found for the namespace http://cxf.apache.org/transports/jbi.

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,

CXF is not able to find the conduit corresponding to the jbi namespace.

Could you provide your pom.xml to check dependencies ?

Regards
JB

jcamus wrote:
> Hi!
> I am trying to create dynamically a CXF-SE proxy into a given pojo class
> (definied into a Servicemix BEAN-SU).
> 
> I want to call a method of the service FileRepository with IFileRepository
> defining all the methods.
> 
> Here is the code :
> 
> private void testProxy(ExternalReferencialExportBo referencialExportBo)
> throws Exception {
> 	String namespace = "http://filerepository.esb.transfolio.parkeon.com";
> 	String portName = "IFileRepository";
> 	String serviceName = "FileRepositoryService";
> 	
> 	//QName port = new QName(namespace, portName);	
>         QName service = new QName(namespace, serviceName);
>         JaxWsProxyFactoryBean cf = new JaxWsProxyFactoryBean();
>         cf.setServiceName(service);
>         cf.setServiceClass(IFileRepository.class);
>         cf.setAddress("jbi://" + new IdGenerator().generateSanitizedId());
>        
> cf.setBindingId(org.apache.cxf.binding.jbi.JBIConstants.NS_JBI_BINDING);
>         Bus bus = BusFactory.getDefaultBus();
>         JBITransportFactory jbiTransportFactory = (JBITransportFactory) bus
>           .getExtension(ConduitInitiatorManager.class)
>           .getConduitInitiator(CxfSeComponent.JBI_TRANSPORT_ID);
>         jbiTransportFactory.setDeliveryChannel(m_channel);
> 
>         m_fileRepository = (IFileRepository) cf.create(); 
>         
>         m_fileRepository.setExportConfig(1, 
>         	referencialExportBo.getExportId(), 
>         	referencialExportBo.getConfigTypeName(), 
>         	referencialExportBo.getConfigTypeCode(), 
>         	referencialExportBo.getVersionLabel());
>     }
> 
> When a message is received by my pojo class and I call this method I have
> the following error reported into SMX console :
> 
> 
> DEBUG - DeliveryChannelImpl            - Notified:
> ID:192.168.79.203-123c31d621d-5:2(6144f) in DeliveryChannel{servicemix-jms}
> from sendSync
> org.apache.cxf.BusException: No conduit initiator was found for the
> namespace http://cxf.apache.org/transports/jbi.
>         at
> org.apache.cxf.transport.ConduitInitiatorManagerImpl.getConduitInitiator(ConduitInitiatorManagerImpl.java:102)
>         at
> com.parkeon.transfolio.esb.exportation.AbstractReferencialExporter.testProxy(AbstractReferencialExporter.java:90)
>         at
> com.parkeon.transfolio.esb.exportation.AbstractReferencialExporter.onMessageExchange(AbstractReferencialExporter.java:69)
>         at
> org.apache.servicemix.bean.BeanEndpoint.onProviderExchange(BeanEndpoint.java:230)
>         at
> org.apache.servicemix.bean.BeanEndpoint.process(BeanEndpoint.java:217)
>         at
> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:627)
>         at
> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:581)
>         at
> org.apache.servicemix.common.AsyncBaseLifeCycle.onMessageExchange(AsyncBaseLifeCycle.java:535)
>         at
> org.apache.servicemix.common.SyncLifeCycleWrapper.onMessageExchange(SyncLifeCycleWrapper.java:60)
>         at
> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:623)
>         at
> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:172)
>         at
> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:168)
>         at
> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
>         at java.lang.Thread.run(Thread.java:619)
> 
> Where am I wrong?
> 
> Regards.

-- 
Jean-Baptiste Onofré (Nanthrax)
BuildProcess/AutoDeploy Project Leader
http://buildprocess.sourceforge.net
jb@nanthrax.net
PGP : 17D4F086