Hi all,
I'm trying to register two REST service into Jetty using CXF multi bundle 
distro, but it seems that only the last service is correctly register and 
deploy.

I try to explain my configuration:

my OSGI Activator is:

    public void start(BundleContext bc) throws Exception {

        Dictionary props = getProperties("/greeter");
        registration = bc.registerService(CategoryServiceRest.class.getName(), 
                                          new CategoryServiceRestImpl(), props);
        
        props = getProperties("/greeter2");
        registration = bc.registerService(SessionServiceRest.class.getName(), 
                                          new SessionServiceRestImpl(), props);

      }

      private Dictionary getProperties(String address) { 
        Dictionary props = new Hashtable();

        props.put("service.exported.interfaces", "*");
        props.put("service.exported.configs", "org.apache.cxf.rs");
        props.put("service.exported.intents", "HTTP");
        props.put("org.apache.cxf.rs.httpservice.context", address);
        props.put("org.apache.cxf.rs.provider", 
"org.codehaus.jackson.jaxrs.JacksonJaxbJsonProvider");

        return props;
    }


when I invoke the Session REST WS all work fine but when  I try to invoke 
greeter/category web service I experienced this error:

2012-10-24 23:05:31,116 | WARN  | qtp1188024874-85 | JAXRSInInterceptor         
      | 92 - org.apache.cxf.bundle-minimal - 2.5.2 | No root resource matching 
request path /greeter/category/getRoots has been found, Relative Path: 
/greeter/category/getRoots. Please enable FINE/TRACE log level for more details.
2012-10-24 23:05:31,123 | WARN  | qtp1188024874-85 | 
WebApplicationExceptionMapper    | 92 - org.apache.cxf.bundle-minimal - 2.5.2 | 
WebApplicationException has been caught : no cause is available


Can anyone help me?

thanks in advance

--
Marco Speranza <[email protected]>
Google Code: http://code.google.com/u/marco.speranza79/

Reply via email to