Hi,
ok found it, issue was i have to change
@Path("/SOWRequestWebService")
public class SOWRequestWebService {
to this -
@Path("/")
public class SOWRequestWebService {
That is correct - the jaxrs:server/@address and @Path values on the root class
combine...
but i still have ione issue, it puts the namesspace in generated xml, i dont
want that, any idea ?
Does SOAMessage have some associated JAXB information which requires a namespace ? CXF JAX-RS JAXBElementProvider does not add any
namespaces on ots own...
cheers, Sergey
vaibhavpops wrote:
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-tp24388910p24389170.html
Sent from the cxf-user mailing list archive at Nabble.com.