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 C65EDD2E7 for ; Fri, 29 Jun 2012 05:55:15 +0000 (UTC) Received: (qmail 8244 invoked by uid 500); 29 Jun 2012 05:55:13 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 8121 invoked by uid 500); 29 Jun 2012 05:55:11 -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 8005 invoked by uid 99); 29 Jun 2012 05:55:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jun 2012 05:55:11 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [62.116.13.171] (HELO remote.xion.at) (62.116.13.171) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jun 2012 05:55:04 +0000 Received: from XIONMASTER.xion.local ([fe80::2423:317e:53ab:b2ad]) by XIONMASTER.xion.local ([fe80::2423:317e:53ab:b2ad%10]) with mapi; Fri, 29 Jun 2012 07:54:32 +0200 From: Christian Lipp To: "users@cxf.apache.org" Date: Fri, 29 Jun 2012 07:54:35 +0200 Subject: URL structure Thread-Topic: URL structure Thread-Index: Ac1Vudzx61Hzc791S9qBk1C+K1i3UQ== Message-ID: <137DAF7D830AE749BDDCDEC3F2FE5E8E9460F58F91@XIONMASTER.xion.local> Accept-Language: de-DE, de-AT Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: de-DE, de-AT Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Hello! I am implementing a REST service with CXF and I want to have the following = URL structure: - dog/34 - dog/current/34 - cat/34 - index.html So I registered CXFServlet with url-pattern /*, but provided a static-resou= rces-list: CXFServlet org.apache.cxf.transport.servlet.CXFServlet static-resources-list /(\w)+.html 1 CXFServlet /* My service is a single class with @Path("/") public class AnimalService { @GET @Path("/dog/current/{idnr}") public Response getCurrentBoneForDog( ... The service works fine, I can reach index.html by http://server/app/index.h= tml, but I would also like to get it with http://server/app I tried to provide index.html but this doesn't work either. In the logs I find o.apache.cxf.jaxrs.utils.JAXRSUtils - No operation matching request path "/= app/" is found, Relative Path: /, HTTP Method: GET, ContentType: */* Is it able to set a "default handler", so when no operation matching reques= t path is set then it delegates to standard mechanism? Is it possible to solve my requirement with CXF mechanism? The only thing I= can think of is to provide two servlet mappings with "/dog/*" and /cat/*" = which would mean that I also had to split my service class into two parts. Kind regards, Christian