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
com.sun.server.ServletManager.callServletService(ServletManager.java:936) at
com.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
com.sun.server.ServletManager.callServletService(ServletManager.java:936) at
com.sun.server.ProcessingState.invokeTargetServlet(ProcessingState.java:423)
at
com.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
com.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


Reply via email to