You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Thibault <th...@gmail.com> on 2012/06/19 16:11:30 UTC

camel-cxf: Path [myService] does not match any context

Hi all,

I expose a CXF web service endpoint using this kind configuration:
<cxf:cxfEndpoint id="myServiceId" address="http://localhost:8181/myService
" serviceClass="my.ServiceImpl"/>

When I test it with SoapUI, and it works well.
When I use the real client of my service (a custom one, on which I don't
have), i get the following error:
org.ops4j.pax.web.pax-web-spi - Path [myService] does not match any context

I traced both calls with Wireshark, and the only difference I saw  is that
the real client sends a "Expect: 100-continue" before trying to send the
whole soap body.

Do you think this may be the cause of the previous error message ?

Thx in advance,
Thibault


--
View this message in context: http://camel.465427.n5.nabble.com/camel-cxf-Path-myService-does-not-match-any-context-tp5714680.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel-cxf: Path [myService] does not match any context

Posted by Thibault <th...@gmail.com>.
Indeed, the client is written in C#, but it is not mine, I do not have the
possibility to modify this code.

Do you know where I can find some doc on the way to implement a filter or a
handler for a cxf:endpoint ? I only saw information about interceptors like
described in http://camel.apache.org/cxf.html


2012/6/20 Willem.Jiang [via Camel] <ml-node+s465427n5714705h90@n5.nabble.com
>

> Hi,
>
> After google the "Expect: 100-continue", I found some interesting
> things.
> First if the client is wrote by C#, you can disable the header thing by
> setting
> HttpWebRequest.ServicePoint.Expect100Continue   =   false;
>
> If you want to handle it on your sever side, you may need to add your
> customer filter or handler[1] in jetty to skip the header part.
> I don't think current CXF rt-http-jetty module support it out of box
> I'm not sure if the Pax-Web support it out of box, but you can give the
> servlet transport a try.
>
> [1]http://wiki.eclipse.org/Jetty/Feature/1xx_Responses
>
>
> On Tue Jun 19 22:11:30 2012, Thibault wrote:
>
> > Hi all,
> >
> > I expose a CXF web service endpoint using this kind configuration:
> > <cxf:cxfEndpoint id="myServiceId" address="
> http://localhost:8181/myService
> > " serviceClass="my.ServiceImpl"/>
> >
> > When I test it with SoapUI, and it works well.
> > When I use the real client of my service (a custom one, on which I don't
> > have), i get the following error:
> > org.ops4j.pax.web.pax-web-spi - Path [myService] does not match any
> context
> >
> > I traced both calls with Wireshark, and the only difference I saw  is
> that
> > the real client sends a "Expect: 100-continue" before trying to send the
> > whole soap body.
> >
> > Do you think this may be the cause of the previous error message ?
> >
> > Thx in advance,
> > Thibault
> >
> >
> > --
> > View this message in context:
> http://camel.465427.n5.nabble.com/camel-cxf-Path-myService-does-not-match-any-context-tp5714680.html
> > Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
>
> --
> Willem
> ----------------------------------
> FuseSource
> Web: http://www.fusesource.com
> Blog:    http://willemjiang.blogspot.com (English)
>          http://jnn.javaeye.com (Chinese)
> Twitter: willemjiang
> Weibo: willemjiang
>
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://camel.465427.n5.nabble.com/camel-cxf-Path-myService-does-not-match-any-context-tp5714680p5714705.html
> To start a new topic under Camel - Users, email
> ml-node+s465427n465428h3@n5.nabble.com
> To unsubscribe from Camel - Users, click here<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=465428&code=dGhpYmF1bHQuY2Fzc2FuQGdtYWlsLmNvbXw0NjU0Mjh8MTIxODkxMDI2Nw==>
> .
> NAML<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>


--
View this message in context: http://camel.465427.n5.nabble.com/camel-cxf-Path-myService-does-not-match-any-context-tp5714680p5714714.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel-cxf: Path [myService] does not match any context

Posted by Thibault <th...@gmail.com>.
I tested to send an "Expect: 100-continue" with SoapUI, and my service runs
well. The error must then not come from this.
Actually, I am not able to find what induce this behavior. Sometimes it
works, sometimes not. I have 2 different wireshark traces that are similar
and the behavior of my service is different.
Thank you anyway for your answer, I will continue searching what can
produce this weird behavior.
Thibault

2012/6/20 Thibault Cassan <th...@gmail.com>

> Indeed, the client is written in C#, but it is not mine, I do not have the
> possibility to modify this code.
>
> Do you know where I can find some doc on the way to implement a filter or
> a handler for a cxf:endpoint ? I only saw information about interceptors
> like described in http://camel.apache.org/cxf.html
>
>
> 2012/6/20 Willem.Jiang [via Camel] <
> ml-node+s465427n5714705h90@n5.nabble.com>
>
> Hi,
>>
>> After google the "Expect: 100-continue", I found some interesting
>> things.
>> First if the client is wrote by C#, you can disable the header thing by
>> setting
>> HttpWebRequest.ServicePoint.Expect100Continue   =   false;
>>
>> If you want to handle it on your sever side, you may need to add your
>> customer filter or handler[1] in jetty to skip the header part.
>> I don't think current CXF rt-http-jetty module support it out of box
>> I'm not sure if the Pax-Web support it out of box, but you can give the
>> servlet transport a try.
>>
>> [1]http://wiki.eclipse.org/Jetty/Feature/1xx_Responses
>>
>>
>> On Tue Jun 19 22:11:30 2012, Thibault wrote:
>>
>> > Hi all,
>> >
>> > I expose a CXF web service endpoint using this kind configuration:
>> > <cxf:cxfEndpoint id="myServiceId" address="
>> http://localhost:8181/myService
>> > " serviceClass="my.ServiceImpl"/>
>> >
>> > When I test it with SoapUI, and it works well.
>> > When I use the real client of my service (a custom one, on which I
>> don't
>> > have), i get the following error:
>> > org.ops4j.pax.web.pax-web-spi - Path [myService] does not match any
>> context
>> >
>> > I traced both calls with Wireshark, and the only difference I saw  is
>> that
>> > the real client sends a "Expect: 100-continue" before trying to send
>> the
>> > whole soap body.
>> >
>> > Do you think this may be the cause of the previous error message ?
>> >
>> > Thx in advance,
>> > Thibault
>> >
>> >
>> > --
>> > View this message in context:
>> http://camel.465427.n5.nabble.com/camel-cxf-Path-myService-does-not-match-any-context-tp5714680.html
>> > Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>>
>>
>> --
>> Willem
>> ----------------------------------
>> FuseSource
>> Web: http://www.fusesource.com
>> Blog:    http://willemjiang.blogspot.com (English)
>>          http://jnn.javaeye.com (Chinese)
>> Twitter: willemjiang
>> Weibo: willemjiang
>>
>>
>>
>> ------------------------------
>>  If you reply to this email, your message will be added to the
>> discussion below:
>>
>> http://camel.465427.n5.nabble.com/camel-cxf-Path-myService-does-not-match-any-context-tp5714680p5714705.html
>> To start a new topic under Camel - Users, email
>> ml-node+s465427n465428h3@n5.nabble.com
>> To unsubscribe from Camel - Users, click here<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=465428&code=dGhpYmF1bHQuY2Fzc2FuQGdtYWlsLmNvbXw0NjU0Mjh8MTIxODkxMDI2Nw==>
>> .
>> NAML<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>
>


--
View this message in context: http://camel.465427.n5.nabble.com/camel-cxf-Path-myService-does-not-match-any-context-tp5714680p5714755.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel-cxf: Path [myService] does not match any context

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

After google the "Expect: 100-continue", I found some interesting 
things.
First if the client is wrote by C#, you can disable the header thing by 
setting
HttpWebRequest.ServicePoint.Expect100Continue   =   false;

If you want to handle it on your sever side, you may need to add your 
customer filter or handler[1] in jetty to skip the header part.
I don't think current CXF rt-http-jetty module support it out of box
I'm not sure if the Pax-Web support it out of box, but you can give the 
servlet transport a try.

[1]http://wiki.eclipse.org/Jetty/Feature/1xx_Responses

On Tue Jun 19 22:11:30 2012, Thibault wrote:
> Hi all,
>
> I expose a CXF web service endpoint using this kind configuration:
> <cxf:cxfEndpoint id="myServiceId" address="http://localhost:8181/myService
> " serviceClass="my.ServiceImpl"/>
>
> When I test it with SoapUI, and it works well.
> When I use the real client of my service (a custom one, on which I don't
> have), i get the following error:
> org.ops4j.pax.web.pax-web-spi - Path [myService] does not match any context
>
> I traced both calls with Wireshark, and the only difference I saw  is that
> the real client sends a "Expect: 100-continue" before trying to send the
> whole soap body.
>
> Do you think this may be the cause of the previous error message ?
>
> Thx in advance,
> Thibault
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/camel-cxf-Path-myService-does-not-match-any-context-tp5714680.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
         http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang