I think Jason Hunter's MultiPart Request servlet has a default max size
of 1 MB. You have to modify the default max size in the source.
Pradeep
sachin zingade wrote:
>
>
>
>
> Hi all,
>
> I am using Apache with JRUN i want to upload the file through servlet,
> when
> i
> send the small file it gets uploaded correctly but when a big file of
> 3 Mb
> is
> tried the following error occurs, this is for java web server,
>
> 500 Internal Server Error
> The servlet named sunexamples.SimpleServlet at the requested URL
>
> http://localhost:8080/servlet/sunexamples.SimpleServlet
> reported this exception: Posted content length of 2349722 exceeds
> limit of
> 1048576. Please report this to the administrator of the web server.
>
> java.io.IOException: Posted content length of 2349722 exceeds limit of
>
> 1048576
> at com.oreilly.servlet.MultipartRequest.readRequest(Compiled Code) at
> com.oreilly.servlet.MultipartRequest.(MultipartRequest.java:148) at
> com.oreilly.servlet.MultipartRequest.(MultipartRequest.java:104) at
> sunexamples.SimpleServlet.doPost(Compiled Code) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:747) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:840) at
> com.sun.server.ServletState.callService(ServletState.java:226) at
>
> om.sun.server.ServletManager.callServletService(ServletManager.java:936)
> at
>
> om.sun.server.http.servlet.InvokerServlet.service(InvokerServlet.java:137)
>
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:840) at
> com.sun.server.ServletState.callService(ServletState.java:226) at
>
> om.sun.server.ServletManager.callServletService(ServletManager.java:936)
> at
>
> om.sun.server.ProcessingState.invokeTargetServlet(ProcessingState.java:423)
>
> at
>
> om.sun.server.http.HttpProcessingState.execute(HttpProcessingState.java:79)
>
> at
> com.sun.server.http.stages.Runner.process(Runner.java:79) at
> com.sun.server.ProcessingSupport.process(Compiled Code) at
> com.sun.server.Service.process(Service.java:204) at
>
> om.sun.server.http.HttpServiceHandler.handleRequest(HttpServiceHandler.java
>
> :374)
>
> at com.sun.server.http.HttpServiceHandler.handleRequest(Compiled Code)
> at
> com.sun.server.HandlerThread.run(Compiled Code)
>
> for apache -JRUN the error is
>
> reported this exception: Posted content length of 2349722 exceeds
> limit of
> 1048576.
>
> can any one please help me .
>
> Regards
>
> Sachin
>
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html