Hi,
What are you doing in the handleMessage() method?
Martin
On 14.2.2011 7:23, sohit224 wrote:
> Hi,
>
> I am using tomcat 6.0.
> While uploading small sized files (around 8-9 Kb) the upload is processing
> fine.
> But with a larger upload i am getting Bad Request (HTTP 400) error.
>
> I have used the client specified and a simple HTML form as well. Both are
> giving the same error.
>
> Instead of using jersey-server, I tried the same using HttpServlet which
> worked.
> I have to you jersey-server only because my existing services are build
> using it.
> Can anybody please help me debug the issue.
>
> -- Web.xml entry
>
> <servlet>
> <servlet-name>jersey</servlet-name>
> <servlet-class> com.sun.jersey.spi.container.servlet.ServletContainer
> </servlet-class>
> <init-param>
> <param-name>com.sun.jersey.config.property.packages</param-name>
> <param-value>com.cisco.ca.ast.mpc.handler</param-value>
> </init-param>
> <load-on-startup>2</load-on-startup>
> </servlet>
>
> <servlet-mapping>
> <servlet-name>jersey</servlet-name>
> <url-pattern>/macd/*</url-pattern>
> </servlet-mapping>
>
>
> -- Server Code
> @Path("uploadFileRequest")
> public class WebServiceHandler {
>
> @POST
> @Consumes("multipart/form-data")
> public String handleMessage( FormDataMultiPart formData) {
> -- code
> }
> }