Report this

What is the reason for this report?

Error when try to upload new project on Tomcat manager

Posted on October 21, 2020

I have set up a Droplet[OS: linux, Ubuntu] & configured Tomcat manager on it. Now when i try to upload new war file for a new project, i get this error : ** Deploy Upload Failed, Exception: org.apache.tomcat.util.http.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. null**

I tried all solutions with no luck.

Any help?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

By default Tomcat has a max upload size of 50MB. (I.e max size of WAR file)

If you require larger file, try increasing max-file-size and max-request-size within the tomcat web.xml. Note: those values are both stored in bytes.

Edit …/webapps/manager/WEB-INF/web.xml. (Ensure the file sizes are larger than the war file your trying to upload). I.e if you require 80MB WAR,

<max-file-size>82914560</max-file-size> <max-request-size>82914560</max-request-size> Then restart apache tomcat.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.