Hi
On 27/04/12 05:48, imiten wrote:
Hi,
Here is
http://mama.indstate.edu/users/mehta/public_html/mkyong_webapp_sergy.jar
link to maven project created with just one method having @PostParam. In
project you also see the log.txt showing my run output. Apart from this I
want to know why my mvn tomcat:deploy/undeploy/redeploy fails. It complains
like application already exists. I run tomcat 7.0.27 from within eclipse
and maven from command line on win7. I have jdk1.7.
Please excuse my misspelling your name in project artifact.
Not a problem :-).
However, you did misspelled the value of @Consumes, note an extra 'n' in
the 'urlnencoded' subtype.
Took me a bit of time to figure it out, but it was definitely not the
lost time, given I found a bug in the JAXRSInInterceptor code which,
fortunately, gets self-rectified by the code below which does a sanity
check on the calculated accept types...
The other thing which I have not tested is that you return 'int' and
have @Produces("application/xml") - the JAX-RS runtime would not
auto-wrap the primitive types, it would probably work meaning the plain
id value will be returned but the browser will complain...
Cheers, Sergey
Regards,
Miten.
--
View this message in context:
http://cxf.547215.n5.nabble.com/form-post-to-restful-service-not-finding-matching-method-tp5667389p5669246.html
Sent from the cxf-user mailing list archive at Nabble.com.
--
Sergey Beryozkin
Talend Community Coders
http://coders.talend.com/
Blog: http://sberyozkin.blogspot.com