陈科肇
==============
查看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,部署成功!
时间: 2024-10-21 15:55:31