Uploaded image for project: 'GeoServer'
  1. GeoServer
  2. GEOS-7950

GeoFence: compatibility issue with controlflow

    Details

      Description

      At boot time there are problems with a PropertyPlaceholderConfigurer.
      Once control-flow jar file is removed, everything's fine.

      Here the stacktrace:

      AVVERTENZA: bean lookup error
      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rememberMeServices' defined in URL [jar:file:/var/lib/tomcat/geoserver/webapps/geoserver_test/WEB-INF/lib/gs-main-2.10-SNAPSHOT.jar!/applicationSecurityContext.xml]: Cannot resolve reference to bean 'geoServerSecurityManager' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationManager' defined in URL [jar:file:/var/lib/tomcat/geoserver/webapps/geoserver_test/WEB-INF/lib/gs-main-2.10-SNAPSHOT.jar!/applicationSecurityContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'geofenceFilter' defined in URL [jar:file:/var/lib/tomcat/geoserver/webapps/geoserver_test/WEB-INF/lib/gs-geofence-2.10-SNAPSHOT.jar!/applicationContext.xml]: Cannot resolve reference to bean '${ruleReaderFrontend}' while setting bean property 'ruleReaderService'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named '${ruleReaderFrontend}' is defined
      Related cause: org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'rememberMeServices': Requested bean is currently in creation: Is there an unresolvable circular reference?
              at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)
              at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
              at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:648)
              at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:140)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1143)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1046)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getSingletonFactoryBeanForTypeCheck(AbstractAutowireCapableBeanFactory.java:865)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:796)
              at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:544)
              at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:447)
              at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:415)
              at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:409)
              at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1150)
              at org.geoserver.platform.GeoServerExtensions.extensionNames(GeoServerExtensions.java:211)
              at org.geoserver.platform.GeoServerExtensions.extensions(GeoServerExtensions.java:126)
              at org.geoserver.platform.GeoServerExtensions.bean(GeoServerExtensions.java:332)
              at org.geoserver.flow.ControlFlowCallback.postProcessBeanDefinitionRegistry(ControlFlowCallback.java:210)
              at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:123)
              at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:678)
              at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:520)
              at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:444)
              at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:326)
              at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
              at org.geoserver.platform.GeoServerContextLoaderListener.contextInitialized(GeoServerContextLoaderListener.java:23)
              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5118)
              at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5634)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
              at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1092)
              at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1984)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
              at java.lang.Thread.run(Thread.java:745)
      Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationManager' defined in URL [jar:file:/var/lib/tomcat/geoserver/webapps/geoserver_test/WEB-INF/lib/gs-main-2.10-SNAPSHOT.jar!/applicationSecurityContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'geofenceFilter' defined in URL [jar:file:/var/lib/tomcat/geoserver/webapps/geoserver_test/WEB-INF/lib/gs-geofence-2.10-SNAPSHOT.jar!/applicationContext.xml]: Cannot resolve reference to bean '${ruleReaderFrontend}' while setting bean property 'ruleReaderService'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named '${ruleReaderFrontend}' is defined
      Related cause: org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'rememberMeServices': Requested bean is currently in creation: Is there an unresolvable circular reference?
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
              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.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)
              ... 36 more
      Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'geofenceFilter' defined in URL [jar:file:/var/lib/tomcat/geoserver/webapps/geoserver_test/WEB-INF/lib/gs-geofence-2.10-SNAPSHOT.jar!/applicationContext.xml]: Cannot resolve reference to bean '${ruleReaderFrontend}' while setting bean property 'ruleReaderService'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named '${ruleReaderFrontend}' is defined
              at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)
              at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1481)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1226)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
              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.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1054)
              at org.geoserver.platform.GeoServerExtensions.getBean(GeoServerExtensions.java:238)
              at org.geoserver.platform.GeoServerExtensions.extensions(GeoServerExtensions.java:139)
              at org.geoserver.security.GeoServerSecurityManager.lookupSecurityProviders(GeoServerSecurityManager.java:2754)
              at org.geoserver.security.GeoServerSecurityManager.buildPersister(GeoServerSecurityManager.java:2811)
              at org.geoserver.security.GeoServerSecurityManager.setApplicationContext(GeoServerSecurityManager.java:363)
              at org.springframework.context.support.ApplicationContextAwareProcessor.invokeAwareInterfaces(ApplicationContextAwareProcessor.java:119)
              at org.springframework.context.support.ApplicationContextAwareProcessor.postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:94)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:408)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1570)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)
              ... 42 more
      Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named '${ruleReaderFrontend}' is defined
              at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:698)
              at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1175)
              at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:284)
              at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
              at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)
              ... 62 more
      

        Attachments

          Activity

            People

            • Assignee:
              nmco Nuno Oliveira
              Reporter:
              etj Emanuele Tajariol
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: