Hi,

Here is debug output.  I tried even without webapp context mkyong_webapp but
it will then fail to even invoke the web service.

INFO: Server startup in 14660 ms
Apr 26, 2012 6:18:12 PM org.apache.cxf.interceptor.LoggingInInterceptor
INFO: Inbound Message
----------------------------
ID: 1
Address:
http://localhost:8080/mkyong_webapp/services/rest/product/product_id
Encoding: ISO-8859-1
Http-Method: POST
Content-Type: application/x-www-form-urlencoded
Headers:
{Accept=[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8],
accept-encoding=[gzip, deflate], accept-language=[en-us,en;q=0.5],
connection=[keep-alive], Content-Length=[13],
content-type=[application/x-www-form-urlencoded],
cookie=[csrftoken=dd2961f73dd7cee250b29c08d8a81827], host=[localhost:8080],
referer=[http://localhost:8080/mkyong_webapp/product_id.html],
user-agent=[Mozilla/5.0 (Windows NT 6.1; rv:12.0) Gecko/20100101
Firefox/12.0]}
Payload: product_id=20
--------------------------------------
Apr 26, 2012 6:18:12 PM org.apache.cxf.jaxrs.utils.JAXRSUtils
findTargetMethod
WARNING: No operation matching request path
"/mkyong_webapp/services/rest/product/product_id" is found, Relative Path:
/product_id, HTTP Method: POST, ContentType:
application/x-www-form-urlencoded, Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,. Please
enable FINE/TRACE log level for more details.
Apr 26, 2012 6:18:12 PM org.apache.cxf.interceptor.LoggingOutInterceptor
INFO: Outbound Message
---------------------------
ID: 1
Response-Code: 415
Content-Type: text/xml
Headers: {Date=[Thu, 26 Apr 2012 12:48:12 GMT], Content-Length=[0]}
--------------------------------------

--
View this message in context: 
http://cxf.547215.n5.nabble.com/form-post-to-restful-service-not-finding-matching-method-tp5667389p5667509.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to