Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 59469 invoked from network); 19 Mar 2010 00:32:51 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Mar 2010 00:32:51 -0000 Received: (qmail 69156 invoked by uid 500); 19 Mar 2010 00:32:51 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 69137 invoked by uid 500); 19 Mar 2010 00:32:51 -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 69129 invoked by uid 99); 19 Mar 2010 00:32:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Mar 2010 00:32:51 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED 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; Fri, 19 Mar 2010 00:32:48 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6C4E4234C4AB for ; Fri, 19 Mar 2010 00:32:27 +0000 (UTC) Message-ID: <312367618.354551268958747442.JavaMail.jira@brutus.apache.org> Date: Fri, 19 Mar 2010 00:32:27 +0000 (UTC) From: "george.goodrich (JIRA)" To: issues@cxf.apache.org Subject: [jira] Commented: (CXF-2718) JAX-RS OSGi doesn't support relative path from annotation In-Reply-To: <1854900408.302431268779767787.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CXF-2718?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12847171#action_12847171 ] george.goodrich commented on CXF-2718: -------------------------------------- FYI I installed the cxf-jaxrs example by installing the feature from web console, it works. Then I osgi:stop the bundle, and osgi:start the bundle, the symptom came back. If I osgi:install the example bundle, and osgi:start it, it didn't work. I rebuilt the example in my eclipse, and it has the same issue. Below are the context and POM xml for the bundle. Thanks a lot for the help. POM: features org.apache.servicemix.features 4.0.0 4.0.0 com.test svc bundle 0.0.1-SNAPSHOT svcbundle http://maven.apache.org 1.4.0 2.1 3.1_4 junit junit 3.8.1 test org.apache.servicemix.specs org.apache.servicemix.specs.jsr311-api-1.0 1.3.0 org.apache.servicemix.specs org.apache.servicemix.specs.jaxb-api-${jaxb.api.version} ${servicemix.specs.version} org.apache.servicemix.bundles org.apache.servicemix.bundles.commons-httpclient ${commons-httpclient.version} org.apache.felix maven-bundle-plugin ${pom.artifactId} javax.wsdl, javax.xml.bind, javax.xml.bind.annotation, javax.ws.rs, META-INF.cxf, META-INF.cxf.osgi, org.apache.cxf.bus, org.apache.cxf.bus.spring, org.apache.cxf.bus.resource, org.apache.cxf.resource, org.apache.cxf.configuration.spring, org.apache.cxf.binding, org.apache.cxf.jaxrs.utils, org.apache.cxf.transport.http_osgi, org.springframework.beans.factory.config, com.test.SvcBeanImpl, org.apache.commons.httpclient, org.apache.commons.httpclient.methods org.apache.cxf.bundle com.test javax.ws.rs.* > JAX-RS OSGi doesn't support relative path from annotation > --------------------------------------------------------- > > Key: CXF-2718 > URL: https://issues.apache.org/jira/browse/CXF-2718 > Project: CXF > Issue Type: Bug > Components: JAX-RS > Affects Versions: 2.2.6 > Environment: Ubuntu 9 > servicemix-4.2.0-fuse-01-00 > Reporter: george.goodrich > Attachments: configuration-status-20100318-1258-0700.txt > > > I tried to use CXF JAX-RS in ServiceMix 4.2/Fuse ESB. > Somehow I had to prefix /cfx/server-address in the @Path of the resource class. > For example: > I used the following Spring bean xml > > > > > > > > > > > Then I had to use /cxf/hello EXACTLY in resource class like below: > @Path("/cxf/hello") > public class EquipmentRegistryService { > > @GET > @Produces("text/html") > public String getXml() { > return "

Hello World!

"; > } > } > If I changed the path to anything else(such as @Path("/greeting")), I got http 404. > In the non-OSGi environment, I am able to use relative path in the path annotation. > For example: if the @Path("/greeting") is used, I can use /cxf/rest/hello/greeting to reach the resource in non-OSGi environment. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.