-
1. Re: CAMEL-CXF/Failed to resolve endpoint/apache-servicemix-4.1.0-psc-01-00R
njiang Jan 21, 2010 7:26 PM (in response to jcs_jean-claude.souvignet)I think you specified a wrong bean name in you route builder.
Please change the uri from "cxf://bean:sayHelloCxfEndpoint" to "cxf://bean:soapMessageCxfExposed"
-
2. Re: CAMEL-CXF/Failed to resolve endpoint/apache-servicemix-4.1.0-psc-01-00R
jcs_jean-claude.souvignet Jan 22, 2010 3:26 AM (in response to njiang)Thanks,
you've rigth, this was wrong name of cxfendpoint.
With correct name, the bundle correcly start. By when access service from jetty url expose I have this error :
-
org.apache.camel.FailedToCreateProducerException: Failed to create Producer for endpoint: Endpoint[http://localhost:8090/services/sayHello]. Reason: java.lang.IllegalArgumentException: fr.esb.fuse.test.sayhello.SayHelloEndpointImpl is not an interface
at org.apache.camel.impl.ProducerCache.doGetProducer(ProducerCache.java:200)
at org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:133)
at org.apache.camel.processor.SendProcessor.doProcess(SendProcessor.java:94)
-
It's really difficlt for me to create CXF endpoint in camel accessible from outside FuseESB.
Using jaxws:endpoint work but it seem not simple accessible from camel route builder.
Please Help to expose CXF endpoint under camel...
-
3. Re: CAMEL-CXF/Failed to resolve endpoint/apache-servicemix-4.1.0-psc-01-00R
davsclaus Jan 22, 2010 4:30 AM (in response to jcs_jean-claude.souvignet)Hi
Try this example from Camel
http://camel.apache.org/cxf-async-example.html
The source is at
https://svn.apache.org/repos/asf/camel/trunk/examples/camel-example-cxf-async/
Its a simple CXF example using wsdl contract first and POJO data format.
-
4. Re: CAMEL-CXF/Failed to resolve endpoint/apache-servicemix-4.1.0-psc-01-00R
jcs_jean-claude.souvignet Jan 22, 2010 11:55 AM (in response to davsclaus)Thanks! it's help me.
Now my service run on servicemix and is proxised by camel cxf interface :
Camel Route:
-
-
Camel CXF config:
---
---
My config with one jaxws endpoint proxised by reportIncidentEndpointREAL cxfEndPoint seems to be a little bit conplex.
I haven't be able to make cxf:endpoint reportIncidentEndpointREAL directly without jaxws component.
does it a correct config or does it possible to expose service directly by cxf endpoint définition ?
Thanks in advance.
( My test case based on camel-example-cxf-async is joined)
-
5. Re: CAMEL-CXF/Failed to resolve endpoint/apache-servicemix-4.1.0-psc-01-00R
njiang Jan 22, 2010 7:51 PM (in response to jcs_jean-claude.souvignet)Hi,
As the Exception said , you need to configure the cxfEndpoint's serviceClass with an interface not a Implementation class.