在tomcat manager页面上传war包时,刚点下上传按钮,页面就显示断开连接。
去日志里一看:
严重: HTMLManager: FAIL - Deploy Upload Failed, Exception: org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (60497961) exceeds the configured maximum (52428800)
java.lang.IllegalStateException: org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (60497961) exceeds the configured maximum (52428800)
war包的大小超出限制了
解决:
修改${tomcat_root}/webapps/manager/WEB-INF/web.xml中的
<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>
改成100M 就可以啦~~·
<multipart-config> <!-- 100MB max --> <max-file-size>104758600</max-file-size> <max-request-size>104758600</max-request-size> <file-size-threshold>0</file-size-threshold> </multipart-config>
同样的错误发生了两次,记下来,以防后面忘记了~~