Hi Torsten,

this is a point for improvement. The JAX-RS extension have to be 
imporved to read "Servlet compatible", but we must not forget to be 
compatible with non Servlet connectors. And the JAX-RS extension should 
have no dependency to the Servlet API.

Could you create a patch for this? Please file a bug on the issue tracker.

best regards
    Stephan

Am 24.11.2010 20:43, schrieb [email protected]:
> Hi,
>
> we are using the Restlet Framework 2.0.3 with a Servlet Adapter in a Tomcat 
> which forwards the requests to a JaxRsApplication.
>
> Using a standalone application the POST method worked fine, parameters have 
> been extracted as expected.
>
> However running it inside the problem the POST parameters of the http servlet 
> request had not been extracted by the JaxRsApplication.
>
> After debugging it we figured that the JaxRsApplication reads the parameters 
> from the input stream. Due to some servlet filters run before actually 
> calling the JaxRsApplication at some point request.getParameterMap() and then 
> the Tomcat reads the input stream into those parameters. Now JaxRs is trying 
> to read the parameters again from the input stream, which is just not 
> possible, because it has been already read.
>
> Is there any way to avoid this behavior, for example let the JaxRs read the 
> parameters from the request.getParameter functions instead of exploring the 
> input stream?
>
> What other options are left to use Restlet with JaxRs extension in a servlet 
> container?
>
> Thank you in advance,
> Torsten

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2685696

Reply via email to