geoserver 2.11 as windows service with controlflow extension

こ雲淡風輕ζ 提交于 2019-12-25 09:47:46

问题


I'm trying to set up GeoServer for a production environment. I have installed GeoServer using the Windows Installer as a Service in Windows Services.

I tried to add the Control Flow Module but then GeoServer won't start up anymore. A sample of the log file below.

If I remove the Control Flow Module GeoServer starts up normally again. The control flow plugin works if I install GeoServer with the "run manually" option.

Any ideas on how to get the Control Flow Module to work under a service installation?

2017-05-02 18:39:34,859 WARN [support.XmlWebApplicationContext] - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'GWCGeoServerRESTConfigurationProvider' defined in URL [jar:file:/C:/Program%20Files%20(x86)/GeoServer%202.11.0/webapps/geoserver/WEB-INF/lib/gs-gwc-2.11.0.jar!/geowebcache-geoserver-context.xml]: Cannot resolve reference to bean 'catalog' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'localWorkspaceCatalog' defined in URL [jar:file:/C:/Program%20Files%20(x86)/GeoServer%202.11.0/webapps/geoserver/WEB-INF/lib/gs-main-2.11.0.jar!/applicationContext.xml]: Cannot resolve reference to bean 'advertisedCatalog' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'advertisedCatalog' defined in URL [jar:file:/C:/Program%20Files%20(x86)/GeoServer%202.11.0/webapps/geoserver/WEB-INF/lib/gs-main-2.11.0.jar!/applicationContext.xml]: Cannot resolve reference to bean 'secureCatalog' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'secureCatalog' defined in URL [jar:file:/C:/Program%20Files%20(x86)/GeoServer%202.11.0/webapps/geoserver/WEB-INF/lib/gs-main-2.11.0.jar!/applicationContext.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.geoserver.security.SecureCatalogImpl]: Constructor threw exception; nested exception is java.lang.NullPointerException 2017-05-02 18:39:34,859 WARN [support.DisposableBeanAdapter] - Invocation of destroy method failed on bean with name 'geoServerLoader': java.lang.NullPointerException 2017-05-02 18:39:34,859 ERROR [context.ContextLoader] - Context initialization failed

来源:https://stackoverflow.com/questions/43743687/geoserver-2-11-as-windows-service-with-controlflow-extension

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