Deploying the ECC .war file from the Tomcat Manager Application returns error

Document ID : KB000090165
Last Modified Date : 14/04/2018
Show Technical Document Details
Issue:
Deploying the ECC .war file from the Tomcat Manager Application returns error
Resolution:

Symptoms

When attempting a deployment of the ECC .war file via the Tomcat Manager Application the installation fails with the following error: 

org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException:  the request was rejected because its size (XXX) exceeds the configured maximum (52428800)


Cause

The default limitation on file uploads via the Tomcat Manager Application is 50MB; the newer ECC file at 60MB will not allow for deployment without reconfiguration.


Resolution

Open the web.xml for your Tomcat Manager Application (default Tomcat\webapps\manager\WEB-INF\)

Edit the following section:

    <multipart-config>
      <!-- 50MB max -->
      <max-file-size>52428800</max-file-size>
      <max-request-size>52428800</max-request-size>
      <file-size-threshold>0</file-size-threshold>
    </multipart-config>

Increase the value to larger than 60 MB (this example is 100 MB):

    <multipart-config>
      <!-- 50MB max -->
      <max-file-size>102428800</max-file-size>
      <max-request-size>102428800</max-request-size>
      <file-size-threshold>0</file-size-threshold>
    </multipart-config>

Restart the Tomcat instance and redeploy the .war file.