如何使用Tomcat 8部署Geoserver Web存档? [英] How deploy geoserver web archive with apache tomcat 8?

查看:131
本文介绍了如何使用Tomcat 8部署Geoserver Web存档?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的tomcat Web服务器中运行geoserver web archive.我正在使用tomcat8.
我从 geoserver 下载了GeoServer 2.7.1.1 web archive.当我要部署war文件时,发生以下错误:

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:

但是当我部署另一个war应用程序时,它正确部署了.

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

哪里有问题?

推荐答案

其原因是因为 Tomcat WebServer 的大小限制为 50 mb max ,小于文件.您需要做的就是修改

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

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

并修改以下几行:

<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>

只需将大小设置为以下(在我的情况下为520 mb或您想要的任何值.)

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.

这篇关于如何使用Tomcat 8部署Geoserver Web存档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆