Hi, I am trying to invoke a REST service deployed in Tomcat Server. /CXF version - 2.3.2 Spring version - 3.0.5 Tomcat Version - 6.0.29/
I am able to deploy the application to Tomcat server with no errors in Tomcat server log. But I got the following error in application log file, when I try to invoke the REST URL as /"http://localhost:8080/testService/"/, where 'testService' is the name of the application. Ideally I need a REST URL like / "http://localhost:8080/testService/record/{id}"/. Can you please help me to resolve this error? Error message: -------------------- /2011-09-19 16:30:17,921|WARN|http-8080-1|.No operation matching request path / is found, HTTP Method : GET, ContentType : */*, Accept : image/gif,image/x-xbitmap,image/jpeg,image/pjpeg,application/x-shockwave-flash,application/vnd.ms-excel,application/vnd.ms-powerpoint,application/msword,*/*,.|org.apache.cxf.jaxrs.utils.JAXRSUtils|/ REST Webservice Implementor class: ----------------------------------------- *@Path("/")* @Service("testRestService") public class TestRestServiceImpl implements TestRestService { @GET @Produces( { MediaType.APPLICATION_ATOM_XML, MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON }) @Path("/record/{id}") public Response getRecord( @PathParam("id") String id, @DefaultValue("asf") @QueryParam("format") String format) { . . . . . . . . } Spring Configuration: ------------------------- *<jaxrs:server id="testRest" address="/">* <jaxrs:serviceBeans> <ref bean="testRestService" /> </jaxrs:serviceBeans> <jaxrs:extensionMappings> <entry key="xml" value="application/xml" /> <entry key="json" value="application/json" /> <entry key="feed" value="application/atom+xml" /> <entry key="form" value="multipart/form-data" /> </jaxrs:extensionMappings> </jaxrs:server> <jaxws:endpoint id="testSOAP" implementorClass="com.ex.service.TestSoapServiceImpl" address="/soap"> <jaxws:properties> <entry key="mtom-enabled" value="true" /> </jaxws:properties> </jaxws:endpoint> WEB-INF\web.xml: ----------------------- <servlet> <servlet-name>testService</servlet-name> <servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>testService</servlet-name> <url-pattern>/*</url-pattern> </servlet-mapping> -- View this message in context: http://cxf.547215.n5.nabble.com/CXF-REST-Service-Error-No-operation-matching-request-path-is-found-tp4818575p4818575.html Sent from the cxf-user mailing list archive at Nabble.com.
