發佈一個hudson的時候tomcat報錯,查看日誌以下java
- 嚴重: Servlet.service() for servlet [HTMLManager] in context with path [/manager] threw exception
- java.lang.IllegalStateException: org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (61021239) exceeds the configured maximum (52428800)
看到是發佈的war包超過了tomcat設置的值,web
修改下最大文件大小,重啓便可apache
tomcat/webapps/manager/WEB-INF/web.xmltomcat
找到app
- <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>
- </servlet>
- <servlet>
修改成webapp
- <!-- 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>