You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by ponsu <du...@yahoo.com> on 2011/09/19 13:22:01 UTC

CXF REST Service Error - No operation matching request path / is found

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:

-------------------------


**
	
		
	
	
		
		
		
		
	




	
		
	



WEB-INF\web.xml:

-----------------------


	testService
	org.apache.cxf.transport.servlet.CXFServlet
	1


	testService
	/*


--
View this message in context: http://cxf.547215.n5.nabble.com/CXF-REST-Service-Error-No-operation-matching-request-path-is-found-tp4818574p4818574.html
Sent from the cxf-user mailing list archive at Nabble.com.