Geoserver 无法启动 - 断电后 - 是啥原因?
Posted
技术标签:
【中文标题】Geoserver 无法启动 - 断电后 - 是啥原因?【英文标题】:Geoserver not starting - after power failure - what is the cause?Geoserver 无法启动 - 断电后 - 是什么原因? 【发布时间】:2017-01-03 11:00:08 【问题描述】:下面是日志的错误部分,请帮忙重启一下。
01 Jan 10:30:26 WARN [support.DisposableBeanAdapter] - Invocation of destroy method failed on bean with name 'geoServerLoader': java.lang.NullPointerException
01 Jan 10:30:26 ERROR [context.ContextLoader] - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gwcFacade' defined in URL [jar:file:/usr/share/apache-tomcat-7.0.69/webapps/geoserver/WEB-INF/lib/gs-gwc-2.8.3.jar!/applicationContext.xml]: Cannot resolve reference to bean 'DiskQuotaMonitor' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'DiskQuotaMonitor' defined in URL [jar:file:/usr/share/apache-tomcat-7.0.69/webapps/geoserver/WEB-INF/lib/gs-gwc-2.8.3.jar!/geowebcache-diskquota-context.xml]: Cannot resolve reference to bean 'DiskQuotaStoreProvider' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'DiskQuotaStoreProvider' defined in URL [jar:file:/usr/share/apache-tomcat-7.0.69/webapps/geoserver/WEB-INF/lib/gs-gwc-2.8.3.jar!/geowebcache-diskquota-context.xml]: Invocation of init method failed; nested exception is java.lang.OutOfMemoryError: Java heap space
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:329)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:107)
【问题讨论】:
【参考方案1】:该错误是由java.lang.OutOfMemoryError: Java heap space
异常引起的。通常的解决方法是在启动脚本中使用像-Xmx756M
这样的参数来增加分配给JVM 的堆数量。有关更多详细信息,请参阅this page,具体取决于您的系统。
【讨论】:
以上是关于Geoserver 无法启动 - 断电后 - 是啥原因?的主要内容,如果未能解决你的问题,请参考以下文章
安装 GeoServer 时出错 - HTTP 状态 404 - /geoserver 和上下文路径 /geoserver 中的应用程序无法启动