cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nandana Mihindukulasooriya <>
Subject JAX-RS HTTP POST missing parameters
Date Thu, 22 Jul 2010 17:52:56 GMT
  I have a JAX-RS service (Apache CXF 2.2.9) and I do a HTTP POST to invoke
the service. I used the jetty-maven-plugin (7.1.5.v20100705) with
"jetty:run-war" option for testing and everything works fine there. But when
I deploy the war in Apache Tomcat 5.5.28 / 6.0.26 and use the same client to
invoke the service, the parameters are not present in the request. Method
signature looks like something this.

    public Response getInfo(@Context HttpServletRequest request) {

  I debugged the service in Tomcat and if I check at CXFServlet
(AbstractHTTPServlet) level and do a request.getParameter(), I can access
the parameter and everything works as expected too. But if I don't do that
and catch the request at the service level inside above mentioned method and
do request.getParameter(), I get a null.

  What can be the possible reason for this ?

Best Regards,

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message