标签:tomcat deploy upload failed fileuploadbase maximum 部署war
陈科肇
==============
查看tomcat安装目录下的logs目录下的manager.2015-02-09.log文件可发现:
严重: HTMLManager: FAIL - Deploy Upload Failed, Exception: org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (53891399) exceeds the configured maximum (52428800) java.lang.IllegalStateException: org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (53891399) exceeds the configured maximum (52428800) at org.apache.catalina.connector.Request.parseParts(Request.java:2804) at org.apache.catalina.connector.Request.parseParameters(Request.java:3096) at org.apache.catalina.connector.Request.getParameter(Request.java:1145)
....
这说明了上传的部署文件超过了设定的大小,因此部署失败!
解决方案:们只须要修改一个配置文件即可,配置文件位置:$tomcat_home\webapps\manager\WEB-INF\web.xml
看到没,这里限制了最大都50MB而已,然后根据自己的需要修改即可
这时就修改为100MB,即104857600
修改后,重启tomcat服务器,再执行之前的部署操作OK,部署成功!
Tomcat 部署war包大小超出限制的大小(严重: HTMLManager: FAIL - Deploy Upload Failed, Exception)
标签:tomcat deploy upload failed fileuploadbase maximum 部署war
原文地址:http://blog.csdn.net/u013474104/article/details/43670755