Hi,

How about you change from endpoint in
./ReportEncounterServiceRouter/src/main/resources/camel-context.xml
to
<from uri="jbi:endpoint:http://it.ojp.gov/GlobalJRA/TSCEncounter/router/RouterService "/>


If it doesn't work, could you please turn on DEBUG level bug, which will print the MessageExchange into log with dispatch necessary properties, this may give you more idea what happened.

Freeman
On 2011-1-9, at 上午2:45, Scott Came wrote:

I have spent upwards of 8 hours on this now and figure it’s time to ask the experts…

I am trying to get a simple application working in Servicemix 4.3.0 – FUSE – 03 – 00. I am running on Mac OS X, JDK 1.6.0_22, and using the Maven tooling (fuse archetypes) within Eclipse Galileo to setup and build my projects.

The project uses cxfbc to receive a web service message (I’m using the person.wsdl from one of the examples in the distro). It passes the web service message to a Camel route, which simply logs the message using the log component in Camel core. I’ve attached the three Eclipse projects that I’m using: one is a JBI service assembly, one is a service unit with the cxfbc consumer, and one is a service unit with the camel route. The SA has a pom dependency on the other two.

Everything builds and deploys fine; I can see all the endpoints in nmr:list. However, when I send a message to the web service from SoapUI, I get exceptions in the servicemix log: “org.apache.servicemix.nmr.api.ServiceMixException: Could not dispatch exchange. No matching endpoints.” Just before that in the log, I see:

10:16:40,606 | WARN | qtp-1588661337-0 | CxfBcComponent | ommon.endpoints.ConsumerEndpoint 184 | 94 - servicemix-common - 2010.02.0.fuse-02-00 | Target service (RouterService) and endpoint (RouterServiceEndpoint) specified, but no matching endpoint found. Only the service will be used for routing.

Yet the appropriate line from nmr:list says: {http://it.ojp.gov/GlobalJRA/TSCEncounter/router }RouterService:RouterServiceEndpoint. That to me looks like service=RouterService, and endpoint=RouterServiceEndpoint. Why is cxfbc:consumer not finding it??

I have checked the JBI URI and the targetService and targetEndpoint parameters many, many times…I have also tried as many different variations on them as I can think of. Nothing works; I always get these same exceptions/messages. I also note that there are several posts in the forum about people having similar problems, but the ones I saw did not offer any definitive resolution to what I’m seeing.

Any idea what’s going wrong, and what I need to do to fix this? I’m sure it’s some little configuration thing…perhaps missing maven dependencies or references in my xbean or camel-context files??

Thanks for any help you can offer.
--Scott

<ReportEncounterService_SA-0.0.1- SNAPSHOT .zip > < ReportEncounterService_Router .zip><ReportEncounterService_WS.zip><ReportEncounterService_SA.zip>


--
Freeman Fang

------------------------

FuseSource: http://fusesource.com
blog: http://freemanfang.blogspot.com
twitter: http://twitter.com/freemanfang
Apache Servicemix:http://servicemix.apache.org
Apache Cxf: http://cxf.apache.org
Apache Karaf: http://karaf.apache.org
Apache Felix: http://felix.apache.org

Reply via email to