Hi,
I am trying to build a restful cxf webservice, i get this exception
2 Error org/apache/cxf/jaxrs/interceptor/JAXRSInInterceptor .No root
resource matching request path /topic is found.
my beans.xml is
<jaxws:endpoint
id="orderProcess"
implementor="demo.order.OrderProcessImpl"
address="/"
bindingUri="http://apache.org/cxf/binding/http" >
<jaxws:serviceFactory>
<bean
class="org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean">
<property name="wrapped" value="false" />
</bean>
</jaxws:serviceFactory>
</jaxws:endpoint>
<jaxrs:server address="/SOWRequestWebService">
<jaxrs:serviceBeans>
<ref bean="cxf.servlet.SOWRequestWebServiceBean"/>
</jaxrs:serviceBeans>
</jaxrs:server>
<bean id="cxf.servlet.SOWRequestWebServiceBean"
class="com.ms.f16ops.services.SOWRequestWebService">
</bean>
<jaxws:endpoint
id="SOWRequestService"
implementor="com.ms.f16ops.services.SOWRequestServiceImpl"
address="/"
bindingUri="http://apache.org/cxf/binding/http" >
<jaxws:serviceFactory>
<bean
class="org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean">
<property name="wrapped" value="false" />
</bean>
</jaxws:serviceFactory>
</jaxws:endpoint>
</beans>
class is
@Path("/SOWRequestWebService")
public class SOWRequestWebService {
@GET
@Path("/msg/{topic}")
@ProduceMime("application/xml")
public SOWMessage getMessages(@PathParam("topic") final String topic) {
System.out.println("hi");
return new SOWMessage();
}
am running them as -
http://localhost:8080/f16ops_svc/SOWRequestWebService/topic
--
View this message in context:
http://www.nabble.com/.No-root-resource-matching-request-path-tp24388910p24388910.html
Sent from the cxf-user mailing list archive at Nabble.com.