Hi all,

I have installed geoserver 2.24.1 as war on tomcat on 2 server linux. I
want implement a cluster using hazelcast. I have already installed
jdbcstore/jdbcconfig and configured them to have configuration on
postgresql db. Now I have downloaded jar
https://build.geoserver.org/geoserver/2.24.x/community-2024-01-04/geoserver-2.24-SNAPSHOT-hz-cluster-plugin.zip
and added its content on WEB-INF/lib dir
When I reboot geoserver, I have this error, and geoserver doesn't start.
Someone has any idea?
Thanks in advance
Giuseppe

13:55:53 ERROR  [context.ContextLoader] - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'hzHomePageContentProvider' defined in URL
[jar:file:/opt/tomcat/webapps/geoserver/WEB-INF/lib/gs-hz-cluster-2.24-
SNAPSHOT.jar!/applicationContext.xml]: Cannot resolve reference to bean
'hzCluster' while setting constructor argument; nested exception is
org.springframework.beans.factory.BeanCreationException: Erro
r creating bean with name 'hzCluster' defined in URL
[jar:file:/opt/tomcat/webapps/geoserver/WEB-INF/lib/gs-hz-cluster-2.24-SNAPSHOT.jar!/applicationContext.xml]:
Instantiation of bean failed; nested e
xception is java.lang.NoSuchMethodError: 'void
org.geotools.xml.XMLUtils.checkSupportForJAXP15Properties()'
 at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:342)
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:113)
        at
org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:707)
        at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:198)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1372)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1222)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
        at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955)
        at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:920)
        at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
        at
org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:399)
        at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:278)
        at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:103)
        at
org.geoserver.platform.GeoServerContextLoaderListener.contextInitialized(GeoServerContextLoaderListener.java:22)
        at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4462)
        at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4914)
        at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:683)
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:658)
        at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:661)
        at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1023)
        at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1910)
        at
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
        at
java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at
org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
        at
java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118)
        at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:824)
        at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
        at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1617)
        at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:318)
        at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:114)
        at
org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
        at
org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:345)
        at
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:893)
        at
org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:794)
        at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
        at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1332)
        at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1322)
        at
java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at
org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
        at
java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
        at
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:866)
        at
org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:248)
        at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
        at
org.apache.catalina.core.StandardService.startInternal(StandardService.java:433)
        at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
        at
org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:921)
        at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:772)
        at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
        at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:347)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:478)
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'hzCluster' defined in URL
[jar:file:/opt/tomcat/webapps/geoserver/WEB-INF/lib/gs-hz-cluster-2.24-SNAPSHOT.jar!/applicationContext.xml]:
Instantiation of bean failed; nested exception is
java.lang.NoSuchMethodError: 'void
org.geotools.xml.XMLUtils.checkSupportForJAXP15Properties()'
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1334)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1232)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:330)
        ... 59 more
Caused by: java.lang.NoSuchMethodError: 'void
org.geotools.xml.XMLUtils.checkSupportForJAXP15Properties()'
        at
org.geoserver.cluster.hazelcast.HzCluster.<clinit>(HzCluster.java:58)
        at
java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
        at
java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at
java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at
java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
        at
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:211)
        at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1326)
        ... 67 more
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to