码迷,mamicode.com
首页 > Web开发 > 详细

Tomcat 部署war包大小超出限制的大小(严重: HTMLManager: FAIL - Deploy Upload Failed, Exception)

时间:2015-02-09 16:06:22      阅读:277      评论:0      收藏:0      [点我收藏+]

标签: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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!