How deploy geoserver web archive with apache tomcat 8?

白昼怎懂夜的黑 提交于 2019-12-07 05:41:01

问题


I want to run geoserver web archive in my tomcat web server. I'm using tomcat 8.
I download GeoServer 2.7.1.1 web archive from geoserver. When I want to deploy the war file, Error occurs as follow:

But when I deploy another war application, it deployed correctly.

Where is problem?


回答1:


The reason for this is because, Tomcat WebServer has a size limit of 50 mb max which is smaller than Geoserver war file. All you need to do is to modify

DIR\webapps\manager\WEB-INF\web.xml

and modify the following lines:

<multipart-config>
  <!-- 52MB max -->
  <max-file-size>52428800</max-file-size>
  <max-request-size>52428800</max-request-size>
  <file-size-threshold>0</file-size-threshold>
</multipart-config>

Just set the size as follow (520 mb in my case or whatever value you want.)

<max-file-size>524288000</max-file-size>
<max-request-size>524288000</max-request-size>

Hope it solves your problem.



来源:https://stackoverflow.com/questions/31309634/how-deploy-geoserver-web-archive-with-apache-tomcat-8

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!