Hi,
  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.

    @POST
    @GET
    @Produces("application/x-www-form-urlencoded")
    @Consumes("application/x-www-form-urlencoded")
    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,
Nandana

Reply via email to