Sergey: Sorry to drop the ball on this one. I was using Apache Amber (OAuth 
implementation in Java + CXF) and I could not get the examples from that 
project's integration tests to work in CXF 2.4.0. I had to resort to using the 
MultiValuedMap instead of the HttpServletRequest.

I will post a war with just the bare minimum to illustrate this problem.
On Sunday, May 29, 2011 at 10:43 AM, Sergey Beryozkin wrote: 
> HI
> 
> Did you make it work ?
> 
> Cheers, Sergey
> 
> On Thu, May 12, 2011 at 9:14 PM, Sergey Beryozkin <[email protected]> 
> wrote:
> > Hi
> > 
> > On Thu, May 12, 2011 at 7:33 PM, Chandra Siva <[email protected]> wrote:
> > > I have a rather simple service that uses HTTPServletRequest to get at 
> > > POST data from the client. When this is deployed inside a servlet 
> > > container (tomcat) with a CXFServlet it consumers the POST data and 
> > > request.getParameter returns null inside the service. When I use a 
> > > MultiValuedMap instead of HTTPServletRequest, it works fine. This is very 
> > > similar to the bug that was reported earlier but it was closed as 
> > > invalid: https://issues.apache.org/jira/browse/CXF-2993
> > > 
> > > What am I missing?
> > > 
> > > PS: I looked at the integration test that Sergey mentioned. The only 
> > > difference I can see between that test and my situation is the fact that 
> > > I am using a servlet destination for all requests.
> > > 
> > > @Path("/oauth2/token")
> > > public class TokenEndpoint {
> > > 
> > > @POST
> > > @Consumes("application/x-www-form-urlencoded")
> > > @Produces("application/json")
> > > public Response authorize(@Context HttpServletRequest request) throws 
> > > OAuthSystemException {
> > > 
> > > String grantType = request.getParameter("grant_type");
> > 
> > Well, it looks like something is interfering, it's difficult to figure
> > out what without seeing a test or sample war. Is there any chance you
> > can provide it ? I can try deploying it into Tomcat and reproduce...
> > 
> > Cheers, Sergey
> 
> 
> 
> -- 
> Sergey Beryozkin
> 
> Application Integration Division of Talend
> http://sberyozkin.blogspot.com
> 

Reply via email to