|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Configuring CXF connectorHi,
Iam getting the following error when i am trying to have inbound and outbound points as cxf .Please help config file: <mule> <model name="Sample-WSDL"> <!-- This component can proxy external web service calls over Jms, tcp, ssl or any other transport. For this example we use Vm. responseTransformer-refs="XmlDecoder Xslt XmlToObject" --> <service name="sample"> <inbound> <cxf:inbound-endpoint frontend="jaxws" address="http://localhost:9788/greetings"/> </inbound> <component class="com.muleinaction.cxf.jaxws.GreetingServiceImpl"/> <outbound> <chaining-router> <outbound-endpoint address="wsdl-cxf:http://localhost:9781/greeting?wsdl&method=sayGreeting"/> <stdio:outbound-endpoint system="OUT"/> </chaining-router> </outbound> </service> </model> </mule> Error: Exception stack is: 1. There are at least 2 connectors matching protocol "cxf:http", so the connector to use must be specified on the endpoint using the 'connector' property/attribute (java.lang.IllegalStateException) org.mule.transport.service.TransportFactory:168 (null) 2. There are at least 2 connectors matching protocol "cxf:http", so the connector to use must be specified on the endpoint using the 'connector' property/attribute (java.lang.IllegalStateException) (org.mule.transport.service.TransportFactoryException) org.mule.endpoint.AbstractEndpointBuilder:526 (http://www.mulesource.org/docs/site/current2/apidocs/org/mule/transport/service/TransportFactoryException.html) ******************************************************************************** Root Exception stack trace: java.lang.IllegalStateException: There are at least 2 connectors matching protocol "cxf:http", so the connector to use must be specified on the endpoint using the 'connector' property/attribute at org.mule.transport.service.TransportFactory.getConnectorByProtocol(TransportFactory.java:168) at org.mule.endpoint.AbstractEndpointBuilder.getConnector(AbstractEndpointBuilder.java:516) at org.mule.endpoint.AbstractEndpointBuilder.getDefaultConnector(AbstractEndpointBuilder.java:249) at org.mule.endpoint.AbstractEndpointBuilder.getConnector(AbstractEndpointBuilder.java:244) at org.mule.endpoint.AbstractEndpointBuilder.doBuildInboundEndpoint(AbstractEndpointBuilder.java:141) at org.mule.endpoint.AbstractEndpointBuilder.buildInboundEndpoint(AbstractEndpointBuilder.java:88) at org.mule.endpoint.DefaultEndpointFactory.getInboundEndpoint(DefaultEndpointFactory.java:80) at org.mule.config.spring.factories.InboundEndpointFactoryBean.doGetObject(InboundEndpointFactoryBean.java:46) at org.mule.config.spring.factories.AbstractEndpointFactoryBean.getObject(AbstractEndpointFactoryBean.java:43) at org.springframework.beans.factory.support.FactoryBeanRegistrySupport$1.run(FactoryBeanRegistrySupport.java:121) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:116) at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:98) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:223) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:287) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:126) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:283) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:308) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:297) at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:941) at org.mule.config.spring.SpringRegistry.lookupObjects(SpringRegistry.java:142) at org.mule.registry.AbstractRegistryBroker.lookupObjects(AbstractRegistryBroker.java:101) at org.mule.registry.MuleRegistryHelper.lookupObjects(MuleRegistryHelper.java:580) at org.mule.lifecycle.GenericLifecycleManager.firePhase(GenericLifecycleManager.java:84) at org.mule.DefaultMuleContext.start(DefaultMuleContext.java:170) at org.mule.MuleServer.run(MuleServer.java:259) at org.mule.MuleServer.start(MuleServer.java:244) at org.mule.MuleServer.main(MuleServer.java:121) |
|
|
Re: Configuring CXF connectorThe error message tells you to explicitly configure a cxf connector and configure your endpoints to use this connector. Check the mule docs on how to do this.
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Configuring CXF connectorAs Richard mentions, there must be two connectors declared in your
config file but unfortunately, you do not include the connectors in your mail. For an explanation about multiple connectors and what the problem is, you can take a look at my blog post on the subject: http://ricston.com/blog/?p=347 HTH A Richard Swart wrote: > The error message tells you to explicitly configure a cxf connector and configure your endpoints to use this connector. Check the mule docs on how to do this. > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > > Antoine Borg, Director of Services | Tel: +32 28 504 696 ricston Ltd., BP 2, 1180 Uccle, Brussels, BELGIUM See our full schedule of Mule and Android courses: http://www.ricston.com/courses/schedules/ email: _antoine.borg_@... <mailto:antoine.borg@...> | blog: blog.ricston.com <http://blog.ricston.com> | web: ricston.com <http://www.ricston.com/> --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
| Free embeddable forum powered by Nabble | Forum Help |