Return-Path: X-Original-To: apmail-cxf-users-archive@www.apache.org Delivered-To: apmail-cxf-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3048A75ED for ; Fri, 22 Jul 2011 12:09:06 +0000 (UTC) Received: (qmail 74116 invoked by uid 500); 22 Jul 2011 12:09:05 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 73874 invoked by uid 500); 22 Jul 2011 12:09:03 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 73864 invoked by uid 99); 22 Jul 2011 12:09:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jul 2011 12:09:02 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sberyozkin@gmail.com designates 209.85.161.52 as permitted sender) Received: from [209.85.161.52] (HELO mail-fx0-f52.google.com) (209.85.161.52) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jul 2011 12:08:58 +0000 Received: by fxd18 with SMTP id 18so4180809fxd.39 for ; Fri, 22 Jul 2011 05:08:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=sm8WxqS6QAn+0pmuC8DBI+m+tUlHgFRXGPb14btuJlk=; b=IwKAIsJ6SL3oASuYLhyp8q5Qy7zMvYgjC2rnvEEl+k44RTE8W2BRrFwE4AX4/vLQVV jywNhF/Dmwtb/jzP1BAixu3pUGJ/MGhhP+gYI/TjAdg/Hd1JF8Ya9ZWr4koB4lnmFJ6S 5px6WamML8SZzNfyDDg/W8J8llnNsivgnO1AE= MIME-Version: 1.0 Received: by 10.204.142.14 with SMTP id o14mr477815bku.15.1311336516639; Fri, 22 Jul 2011 05:08:36 -0700 (PDT) Received: by 10.204.77.12 with HTTP; Fri, 22 Jul 2011 05:08:36 -0700 (PDT) In-Reply-To: <4E296678.5000005@telemc.nl> References: <4E292E3C.1080403@telemc.nl> <4E296678.5000005@telemc.nl> Date: Fri, 22 Jul 2011 13:08:36 +0100 Message-ID: Subject: Re: "Can't find the the request for ...'s Observer" after update to 2.4.1 From: Sergey Beryozkin To: users@cxf.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable So context is effectively "" ? Thanks for providing the info below, but I'm afraid I can't test that - so many variables are there... If you could give me a favor and create a simple maven war project, then it can help Cheers, Sergey On Fri, Jul 22, 2011 at 1:00 PM, Gijsbert van den Brink wrote: > On 7/22/11 1:25 PM, Sergey Beryozkin wrote: >> >> Hi >> >> On Fri, Jul 22, 2011 at 9:01 AM, Gijsbert van den Brink >> =A0wrote: >>> >>> Hello, >>> >>> After an update from 2.4.0 to 2.4.1 I get this error on incoming JAX-RS >>> calls: "Can't find the the request for's Observer". >>> >>> When I call the service like this: >>> https://example.com/cxf_services/REST/status/myservice/value1/value2 it >>> returns "No service was found." and a warning message is printed in the >>> server logs. >>> >>> If I look at the status page (/cxf_services/REST/?_wadl&_type=3Dxml) >>> everything looks ok: >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> Where does the "'s Observer" suffix come from? I've never seen it befor= e. >>> >> May be that message needs to be changed, I believe the idea was to >> indicate no handler/endpoint was >> found which could deal with a given URI. >> Can you give more info please, which container you use, what is the >> context name, is it "cxf_services" ? >> What is the jaxrs endpoint address value, '/REST' ? > > I'm using Tomcat 6.0.29, Spring 2.5 and CXF 2.4.1. > /cxf_services is the CXFServlet mapping, /REST is the jaxrs endpoint and > /status/myservice is the service itself. > > Here's the relevant configuration from web.xml, the spring > application-context and the service class: > > =3D=3D=3D=3D web.xml =3D=3D=3D=3D > > contextConfigLocation > > =A0 =A0 =A0 =A0 =A0 =A0/WEB-INF/applicationContext.xml > =A0 =A0 =A0 =A0 =A0 =A0/WEB-INF/jndiDataSource.xml > =A0 =A0 =A0 =A0 =A0 =A0/WEB-INF/applicationContext-spring-security.xml > =A0 =A0 =A0 =A0 =A0 =A0/WEB-INF/cxf-beans.xml > > > > > org.springframework.web.context.ContextLoaderListener > > > > CXFServlet > org.apache.cxf.transport.servlet.CXFServlet > 3 > > > > SpringDispatcher > org.springframework.web.servlet.DispatcherServlet > 2 > > contextConfigLocation > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0/WEB-INF/SpringDispatcher-servlet.xml > > > > > > CXFServlet > /cxf_services/* > > > > SpringDispatcher > *.action > > > > =3D=3D=3D=3D cxf-beans.xml =3D=3D=3D=3D > > =A0 =A0xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" > =A0 =A0xmlns:jaxws=3D"http://cxf.apache.org/jaxws" > =A0 =A0xmlns:jaxrs=3D"http://cxf.apache.org/jaxrs" > =A0 =A0xmlns:context=3D"http://www.springframework.org/schema/context" > =A0 =A0xsi:schemaLocation=3D" > http://www.springframework.org/schema/beans > http://www.springframework.org/schema/beans/spring-beans.xsd > http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd > http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd > http://www.springframework.org/schema/context > http://www.springframework.org/schema/context/spring-context-2.5.xsd"> > > > > > > > > > > > > > > =3D=3D=3D=3D StatusService.java =3D=3D=3D=3D > > @Service("statusService") > @Path("status") > public class StatusService { > > =A0 =A0@GET > =A0 =A0@Path("myservice/{param1}/{param2}") > =A0 =A0@Produces("text/plain") > =A0 =A0public int getCount(@PathParam("param1") String param1, > @PathParam("param2") String param2) { > =A0 =A0 =A0 =A0// do stuff > =A0 =A0} > } > >> I can try later on to reproduce it >> Cheers, Sergey >> >>> -- >>> Regards, >>> >>> Gijsbert >>> >>> >>> >> >> > > --=20 Sergey Beryozkin http://sberyozkin.blogspot.com Talend - http://www.talend.com