Adding both the NetCDF-Out plugin and the Status Monitoring community plugin to GeoServer will cause it to fail to start with a NoSuchMethodError.
The NetCDF-Out plugin is using an older version of the JNA library (4.1.0) while the Status Monitoring plugin need the 4.4.0 version, hence the error.
I can get GeoServer to startup by removing the jna-4.1.0.jar and keeping the jna-4.4.0.jar but I don’t know if this may cause any trouble to the NetCDF-Out plugin.
Here is the error:
20 dic 11:31:03 ERROR [context.ContextLoader] - Context initialization failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'monitorRest': Unsatisfied dependency expressed through field 'systemInfoCollector'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'OSHISystemInfoCollector' defined in URL [jar:file:/G:/geoserver/geoserver-2.13-SNAPSHOT/webapps/geoserver/WEB-INF/lib/gs-status-monitoring-2.13-SNAPSHOT.jar!/org/geoserver/status/monitoring/collector/OSHISystemInfoCollector.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.geoserver.status.monitoring.collector.OSHISystemInfoCollector]: Constructor threw exception;
nested exception is java.lang.NoSuchMethodError: com.sun.jna.platform.win32.WinNT$PSID.createFieldsOrder(Ljava/lang/String;)Ljava/util/List;
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:588)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:366)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1264)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:866)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:443)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:325)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
at org.geoserver.platform.GeoServerContextLoaderListener.contextInitialized(GeoServerContextLoaderListener.java:23)
I’m testing the 2.13 master build but I noticed the same libraries are in the 2.12 zip files as well
|