Sergey Beryozkin-5 wrote: > > It is exactly the same way greeter_rest demo is done, can you please > check the way interface and impl bundle export and import packages ? >
Sorry Sergey, maybe I was not very explicit. But that actually was greeter_rest demo. I checked it out (from http://svn.apache.org/repos/asf/cxf/dosgi/trunk/samples/greeter_rest/), built with maven. I have started Felix with CFX DOSGi distribution and started interface and impl bundles. For webservice with annotations I see the following error in the log: <code> INFO: Creating a org.apache.cxf.dosgi.samples.greeter.rest.GreeterService endpoint via JaxRSPojoConfigurationTypeHa ndler, address is http://localhost:9090/greeter Jun 23, 2011 8:01:26 PM org.apache.cxf.jaxrs.utils.ResourceUtils checkMethodDispatcher WARNING: No resource methods have been found for resource class org.apache.cxf.dosgi.samples.greeter.rest.GreeterSe rvice Jun 23, 2011 8:01:26 PM org.apache.cxf.jaxrs.AbstractJAXRSFactoryBean checkResources SEVERE: No resource classes found Exception in thread "pool-1-thread-1" org.apache.cxf.service.factory.ServiceConstructionException at org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBean.java:122) at org.apache.cxf.dosgi.dsw.handlers.JaxRSPojoConfigurationTypeHandler.createServer(JaxRSPojoConfigurationT ypeHandler.java:135) at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminCore.exportService(RemoteServiceAdminCore.java:244) at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:78) at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:71) at java.security.AccessController.doPrivileged(Native Method) at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance.exportService(RemoteServiceAdminInstance.jav a:71) at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance.exportService(RemoteServiceAdminInstance.jav a:40) at org.apache.cxf.dosgi.topologymanager.TopologyManager$2.run(TopologyManager.java:254) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: javax.ws.rs.WebApplicationException at org.apache.cxf.jaxrs.AbstractJAXRSFactoryBean.checkResources(AbstractJAXRSFactoryBean.java:238) at org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBean.java:85) ... 11 more Jun 23, 2011 8:01:27 PM org.apache.cxf.dosgi.topologymanager.TopologyManager$2 run </code> -- View this message in context: http://cxf.547215.n5.nabble.com/CXF-DOSGi-is-ignoring-JAX-RS-annotations-tp4495048p4518386.html Sent from the cxf-user mailing list archive at Nabble.com.
