Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 78619 invoked from network); 3 Dec 2009 19:03:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Dec 2009 19:03:47 -0000 Received: (qmail 50746 invoked by uid 500); 3 Dec 2009 19:03:47 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 50649 invoked by uid 500); 3 Dec 2009 19:03:46 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 50634 invoked by uid 99); 3 Dec 2009 19:03:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Dec 2009 19:03:45 +0000 X-ASF-Spam-Status: No, hits=-6.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Dec 2009 19:03:40 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A0CA1234C045 for ; Thu, 3 Dec 2009 11:03:20 -0800 (PST) Message-ID: <1304736567.1259867000644.JavaMail.jira@brutus> Date: Thu, 3 Dec 2009 19:03:20 +0000 (UTC) From: "Daniel Kulp (JIRA)" To: issues@cxf.apache.org Subject: [jira] Commented: (CXF-2570) ServletDestinationFacotry and Tomcat can't locate services In-Reply-To: <1735259365.1259766140704.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-2570?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D127854= 51#action_12785451 ]=20 Daniel Kulp commented on CXF-2570: ---------------------------------- I'm trying to figure out exactly what the problem is. What problem are yo= u seeing that is requiring this? Basically, I'd rather fix the ServletTransportFactory (or the CXFServlet) i= f something is needed there, but I really kind of need to know what the pro= blem is. Do you have a testcase or something that shows the problem? > ServletDestinationFacotry and Tomcat can't locate services > ---------------------------------------------------------- > > Key: CXF-2570 > URL: https://issues.apache.org/jira/browse/CXF-2570 > Project: CXF > Issue Type: Bug > Environment: =09 > =C2=AB Hide > System: > 2.6.28-15-generic #52-Ubuntu SMP Wed Sep 9 10:48:52 UTC 2009 x86_64 GNU/L= inux > Java: > java version "1.6.0_16" > Java(TM) SE Runtime Environment (build 1.6.0_16-b01) > Java HotSpot(TM) 64-Bit Server VM (build 14.2-b01, mixed mode) > Apache CXF 2.2.3 (not in version list) > Reporter: Christian Connert > Attachments: cxf.xml, TomcatDestinationFactory.java > > > The problem is that the service destinations aren't found by the destinat= ion factory. > I think this problem isn't Tomcat specific. It should occur if cxf is dep= loyed as a war inside some application server. > I would suggest the following workaround: > 1.) Implement a ServletTransportFactory (see attachment 1) > 2.) Register this ServletTransportFactory in the default cxf.xml (classpa= th root, see attachment 2) > As a clean fix the ServletTransportFactory should make the static String = getTrimmedPath(String path) method to a protected non static method. Than i= t can be easily overriden by custom subclasses. > Greetings --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.