You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by bgoetzmann <bg...@sophia.symag.com> on 2009/08/26 22:10:03 UTC

What's wrong with my xbean.xml for servicemix-cxf-se?

Hello,

I'm using servicemix's (3.3) cxf-se component, and deploy a SU with this
xbean.xml:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:cxfse="http://servicemix.apache.org/cxfse/1.0"
xmlns:mp="http://odelia-technologies.com/metaphora">
	<cxfse:endpoint service="mp:serviceMtom" endpoint="serviceMtomEP"
mtomEnabled="true">		
		<cxfse:pojo>	
			<bean class="com.odelia.metaphora.ServiceMtom">
				<property name="repertoire" value="Metaphora/in"/>
			</bean>
		</cxfse:pojo>	
	</cxfse:endpoint>
</beans>

When I start ServiceMix, I get this trace when my SA is deployed:

INFO  - ServiceUnitLifeCycle           - Starting service unit: ServiceMtom
26 ao¹t 2009 22:03:06
org.apache.cxf.service.factory.ReflectionServiceFactoryBea
n buildServiceFromClass
INFO: Creating Service {http://metaphora.odelia.com/}ServiceMtomService from
class com.odelia.metaphora.ServiceMtom
26 ao¹t 2009 22:03:06 org.apache.cxf.configuration.spring.ConfigurerImpl
getBeanName
INFO: Could not determine bean name for instance of class
org.apache.cxf.transport.jbi.JBIDestination.
26 ao¹t 2009 22:03:06 org.apache.cxf.endpoint.ServerImpl initDestination
INFO: Setting the server's publish address to be
jbi://ID-192-168-0-10-123584dae
6b-26-0
INFO  - JBIContainer                   - ServiceMix JBI Container
(ServiceMix) s
tarted 
...

It seems something is wrong in my xbean.xml!

Please, any idea?


Thank you a lot.
-- 
View this message in context: http://www.nabble.com/What%27s-wrong-with-my-xbean.xml-for-servicemix-cxf-se--tp25156904p25156904.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: What's wrong with my xbean.xml for servicemix-cxf-se?

Posted by Freeman Fang <fr...@gmail.com>.
Hi,
Specify service and endpoint for cxf se doesn't work, this get fixed  
by SMXCOMP-509[1], and will released with servicemix-cxf-se 2009.02,  
which means your version (smx 3.3) not include this fix.
The work around is,
1. copy servicemix-cxf-se 2009.02-snapshot.zip(you can build it  
yourself or try download it from apache snapshot repository) to your  
SMX_HOME/hotdeploy folder to override the servicemix-cxf-se....zip

or
2. actually the default service and endpoint name build from your  
cxfse:pojo class, you can use tool java2wsdl(or if your pojo is  
generated from a wsdl, then check your wsdl directly) to generate a  
wsdl to see what the service and port name in the generated wsdl and  
change the targetService/endpoint in your http endpoint xbean.xml  
accordingly

Freeman

[1]https://issues.apache.org/activemq/browse/SMXCOMP-509
On 2009-8-27, at 下午2:10, bgoetzmann wrote:

>
> Thank for your help!
> Yes, in fact, I get a problem with this endpoint when I try to send  
> it a
> exchange (from ):
>
> WARN  - HttpComponent                  - Target service
> ({http://odelia-technologies.com/metaphora}serviceMtom) and endpoint  
> previous
> (serviceMtomEP) specified, but no matching endpoint found.  Only the  
> service
> will be used for routing.
> WARN  - DefaultBroker                  - ServiceName
> ({http://odelia-technologies.com/metaphora}serviceMtom) specified for
> routing, but can't find it registered
>
> WARN  - DefaultBroker                  - ServiceName
> ({http://odelia-technologies.com/metaphora}serviceMtom) specified for
> routing, but can't find it registered
> ...
>
> Any idea?
>
> Thank you again,
>
> Bertrand.
>
>
> Freeman Fang wrote:
>>
>> Hi,
>>
>> The start log is ok for me, also your xbean.xml is ok for me.
>> Does the cxf se endpoint work for you? Or you get any problem with
>> this endpoint?
>> Freeman
>>
>>
>> On 2009-8-27, at 上午4:10, bgoetzmann wrote:
>>
>>>
>>> Hello,
>>>
>>> I'm using servicemix's (3.3) cxf-se component, and deploy a SU with
>>> this
>>> xbean.xml:
>>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <beans xmlns:cxfse="http://servicemix.apache.org/cxfse/1.0"
>>> xmlns:mp="http://odelia-technologies.com/metaphora">
>>> 	<cxfse:endpoint service="mp:serviceMtom" endpoint="serviceMtomEP"
>>> mtomEnabled="true">		
>>> 		<cxfse:pojo>	
>>> 			<bean class="com.odelia.metaphora.ServiceMtom">
>>> 				<property name="repertoire" value="Metaphora/in"/>
>>> 			</bean>
>>> 		</cxfse:pojo>	
>>> 	</cxfse:endpoint>
>>> </beans>
>>>
>>> When I start ServiceMix, I get this trace when my SA is deployed:
>>>
>>> INFO  - ServiceUnitLifeCycle           - Starting service unit:
>>> ServiceMtom
>>> 26 ao¹t 2009 22:03:06
>>> org.apache.cxf.service.factory.ReflectionServiceFactoryBea
>>> n buildServiceFromClass
>>> INFO: Creating Service {http://
>>> metaphora.odelia.com/}ServiceMtomService from
>>> class com.odelia.metaphora.ServiceMtom
>>> 26 ao¹t 2009 22:03:06
>>> org.apache.cxf.configuration.spring.ConfigurerImpl
>>> getBeanName
>>> INFO: Could not determine bean name for instance of class
>>> org.apache.cxf.transport.jbi.JBIDestination.
>>> 26 ao¹t 2009 22:03:06 org.apache.cxf.endpoint.ServerImpl
>>> initDestination
>>> INFO: Setting the server's publish address to be
>>> jbi://ID-192-168-0-10-123584dae
>>> 6b-26-0
>>> INFO  - JBIContainer                   - ServiceMix JBI Container
>>> (ServiceMix) s
>>> tarted
>>> ...
>>>
>>> It seems something is wrong in my xbean.xml!
>>>
>>> Please, any idea?
>>>
>>>
>>> Thank you a lot.
>>> -- 
>>> View this message in context:
>>> http://www.nabble.com/What%27s-wrong-with-my-xbean.xml-for-servicemix-cxf-se--tp25156904p25156904.html
>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>>
>>
>>
>> -- 
>> Freeman Fang
>> ------------------------
>> Open Source SOA: http://fusesource.com
>>
>>
>>
>
> -- 
> View this message in context: http://www.nabble.com/What%27s-wrong-with-my-xbean.xml-for-servicemix-cxf-se--tp25156904p25166776.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>


-- 
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com


Re: What's wrong with my xbean.xml for servicemix-cxf-se?

Posted by bgoetzmann <bg...@sophia.symag.com>.
Thank for your help!
Yes, in fact, I get a problem with this endpoint when I try to send it a
exchange (from ):

WARN  - HttpComponent                  - Target service
({http://odelia-technologies.com/metaphora}serviceMtom) and endpoint
(serviceMtomEP) specified, but no matching endpoint found.  Only the service
will be used for routing.
WARN  - DefaultBroker                  - ServiceName
({http://odelia-technologies.com/metaphora}serviceMtom) specified for
routing, but can't find it registered

WARN  - DefaultBroker                  - ServiceName
({http://odelia-technologies.com/metaphora}serviceMtom) specified for
routing, but can't find it registered
...

Any idea?

Thank you again,

Bertrand.


Freeman Fang wrote:
> 
> Hi,
> 
> The start log is ok for me, also your xbean.xml is ok for me.
> Does the cxf se endpoint work for you? Or you get any problem with  
> this endpoint?
> Freeman
> 
> 
> On 2009-8-27, at 上午4:10, bgoetzmann wrote:
> 
>>
>> Hello,
>>
>> I'm using servicemix's (3.3) cxf-se component, and deploy a SU with  
>> this
>> xbean.xml:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <beans xmlns:cxfse="http://servicemix.apache.org/cxfse/1.0"
>> xmlns:mp="http://odelia-technologies.com/metaphora">
>> 	<cxfse:endpoint service="mp:serviceMtom" endpoint="serviceMtomEP"
>> mtomEnabled="true">		
>> 		<cxfse:pojo>	
>> 			<bean class="com.odelia.metaphora.ServiceMtom">
>> 				<property name="repertoire" value="Metaphora/in"/>
>> 			</bean>
>> 		</cxfse:pojo>	
>> 	</cxfse:endpoint>
>> </beans>
>>
>> When I start ServiceMix, I get this trace when my SA is deployed:
>>
>> INFO  - ServiceUnitLifeCycle           - Starting service unit:  
>> ServiceMtom
>> 26 ao¹t 2009 22:03:06
>> org.apache.cxf.service.factory.ReflectionServiceFactoryBea
>> n buildServiceFromClass
>> INFO: Creating Service {http:// 
>> metaphora.odelia.com/}ServiceMtomService from
>> class com.odelia.metaphora.ServiceMtom
>> 26 ao¹t 2009 22:03:06  
>> org.apache.cxf.configuration.spring.ConfigurerImpl
>> getBeanName
>> INFO: Could not determine bean name for instance of class
>> org.apache.cxf.transport.jbi.JBIDestination.
>> 26 ao¹t 2009 22:03:06 org.apache.cxf.endpoint.ServerImpl  
>> initDestination
>> INFO: Setting the server's publish address to be
>> jbi://ID-192-168-0-10-123584dae
>> 6b-26-0
>> INFO  - JBIContainer                   - ServiceMix JBI Container
>> (ServiceMix) s
>> tarted
>> ...
>>
>> It seems something is wrong in my xbean.xml!
>>
>> Please, any idea?
>>
>>
>> Thank you a lot.
>> -- 
>> View this message in context:
>> http://www.nabble.com/What%27s-wrong-with-my-xbean.xml-for-servicemix-cxf-se--tp25156904p25156904.html
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
> 
> 
> -- 
> Freeman Fang
> ------------------------
> Open Source SOA: http://fusesource.com
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/What%27s-wrong-with-my-xbean.xml-for-servicemix-cxf-se--tp25156904p25166776.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: What's wrong with my xbean.xml for servicemix-cxf-se?

Posted by Freeman Fang <fr...@gmail.com>.
Hi,

The start log is ok for me, also your xbean.xml is ok for me.
Does the cxf se endpoint work for you? Or you get any problem with  
this endpoint?
Freeman


On 2009-8-27, at 上午4:10, bgoetzmann wrote:

>
> Hello,
>
> I'm using servicemix's (3.3) cxf-se component, and deploy a SU with  
> this
> xbean.xml:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns:cxfse="http://servicemix.apache.org/cxfse/1.0"
> xmlns:mp="http://odelia-technologies.com/metaphora">
> 	<cxfse:endpoint service="mp:serviceMtom" endpoint="serviceMtomEP"
> mtomEnabled="true">		
> 		<cxfse:pojo>	
> 			<bean class="com.odelia.metaphora.ServiceMtom">
> 				<property name="repertoire" value="Metaphora/in"/>
> 			</bean>
> 		</cxfse:pojo>	
> 	</cxfse:endpoint>
> </beans>
>
> When I start ServiceMix, I get this trace when my SA is deployed:
>
> INFO  - ServiceUnitLifeCycle           - Starting service unit:  
> ServiceMtom
> 26 ao¹t 2009 22:03:06
> org.apache.cxf.service.factory.ReflectionServiceFactoryBea
> n buildServiceFromClass
> INFO: Creating Service {http:// 
> metaphora.odelia.com/}ServiceMtomService from
> class com.odelia.metaphora.ServiceMtom
> 26 ao¹t 2009 22:03:06  
> org.apache.cxf.configuration.spring.ConfigurerImpl
> getBeanName
> INFO: Could not determine bean name for instance of class
> org.apache.cxf.transport.jbi.JBIDestination.
> 26 ao¹t 2009 22:03:06 org.apache.cxf.endpoint.ServerImpl  
> initDestination
> INFO: Setting the server's publish address to be
> jbi://ID-192-168-0-10-123584dae
> 6b-26-0
> INFO  - JBIContainer                   - ServiceMix JBI Container
> (ServiceMix) s
> tarted
> ...
>
> It seems something is wrong in my xbean.xml!
>
> Please, any idea?
>
>
> Thank you a lot.
> -- 
> View this message in context: http://www.nabble.com/What%27s-wrong-with-my-xbean.xml-for-servicemix-cxf-se--tp25156904p25156904.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>


-- 
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com