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=2685445

Reply via email to