unnic
2017-05-03 07:13:13 UTC
Hello,
i ran into the following issues when trying to set up GeoServer for
production environment.
Basically I want to implement the control flow module and edit heap space.
I installed GeoServer using the windows installer with the "run manually"
option. This way I can install the control flow module but I can't edit heap
space because \wrapper\wrapper.conf is missing (the file where -Xmx and -Xms
settings are supposed to be set).
I then tried installing GeoServer "as a Service" (Windows Installer). Then
the \wrapper\wrapper.conf file is there but GeoServer won't start with the
control flow module in place.
An excerpt from the logfile:
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
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Control-flow-with-GeoServer-as-a-windows-service-tp5319165.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
i ran into the following issues when trying to set up GeoServer for
production environment.
Basically I want to implement the control flow module and edit heap space.
I installed GeoServer using the windows installer with the "run manually"
option. This way I can install the control flow module but I can't edit heap
space because \wrapper\wrapper.conf is missing (the file where -Xmx and -Xms
settings are supposed to be set).
I then tried installing GeoServer "as a Service" (Windows Installer). Then
the \wrapper\wrapper.conf file is there but GeoServer won't start with the
control flow module in place.
An excerpt from the logfile:
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
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Control-flow-with-GeoServer-as-a-windows-service-tp5319165.html
Sent from the GeoServer - User mailing list archive at Nabble.com.