Jon Sleep
2017-06-02 21:00:58 UTC
Hello GeoServer Community,
I am in the process of migrating servers and am stuck trying to get the
GeoFence probe to start. I'm migrating over from AWS and trying to keep all
the versions the same as to not break any other parts of the system. To do
the migration, I just tar'd up the directory of GeoServer/Geofence and
untar'd it on the new server (as this seemed OK following the installation
instructions), as well as setting the $JAVA_HOME, $GEOSERVER_HOME,
$GEOSERVER_DATA_DIR environment variables in the same place as they were.
This setup works fine when started on the AWS instance. TIA
GeoServer version: 2.8.2
GeoFence version: 3.1.0
Java Version: 1.8.0_73 64 bit
OS: CentOS 6.9 Release
Web Container: Bin Package
Stack Trace:
20:50:18,898 INFO LoginServiceImpl:43 - Creating LoginServiceImpl instance
20:50:18,908 DEBUG LoginServiceImpl:61 - postConstruct()
20:50:18,909 DEBUG LoginServiceImpl:49 - afterPropertiesSet()
20:50:19,059 INFO LocalContainerEntityManagerFactoryBean:264 - Building
JPA con
tainer EntityManagerFactory for persistence unit 'geofence'
20:50:19,222 INFO Version:37 - Hibernate Commons Annotations 3.2.0.Final
20:50:19,232 INFO Environment:593 - Hibernate 3.6.0.Final
20:50:19,235 INFO Environment:626 - hibernate.properties not found
20:50:19,240 INFO Environment:804 - Bytecode provider name : javassist
20:50:19,244 INFO Environment:685 - using JDK 1.4 java.sql.Timestamp
handling
20:50:19,334 INFO Version:42 - Hibernate EntityManager 3.6.0.Final
20:50:19,355 INFO Ejb3Configuration:519 - Processing PersistenceUnitInfo [
name: geofence
...]
20:50:19,432 INFO DefaultListableBeanFactory:433 - Destroying singletons
in
***@7a14d8a4:
defining beans
[org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.beans.factory.config.PropertyOverrideConfigurer#0,geofenceGlobalConfiguration,gsUsersManagerServiceGWT,instancesManagerServiceGWT,loginService,workspacesManagerServiceGWT,rulesManagerServiceGWT,profilesManagerServiceGWT,userBeanManager,geometryUtility,startupService,cxf,org.apache.cxf.bus.spring.BusApplicationListener,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.resource.ResourceManager,org.apache.cxf.configuration.Configurer,org.apache.cxf.binding.BindingFactoryManager,org.apache.cxf.transport.DestinationFactoryManager,org.apache.cxf.transport.ConduitInitiatorManager,org.apache.cxf.wsdl.WSDLManager,org.apache.cxf.phase.PhaseManager,org.apache.cxf.workqueue.WorkQueueManager,org.apache.cxf.buslifecycle.BusLifeCycleManager,org.apache.cxf.endpoint.ServerRegistry,org.apache.cxf.endpoint.ServerLifeCycleManager,org.apache.cxf.endpoint.ClientLifeCycleManager,org.apache.cxf.transports.http.QueryHandlerRegistry,org.apache.cxf.endpoint.EndpointResolverRegistry,org.apache.cxf.headers.HeaderManager,org.apache.cxf.catalog.OASISCatalogManager,org.apache.cxf.service.factory.FactoryBeanListenerManager,org.apache.cxf.endpoint.ServiceContractResolverRegistry,org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder,org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder,org.apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider,org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory,org.apache.cxf.transport.servlet.ServletTransportFactory,geofence-global-configurer,org.springframework.beans.factory.config.PropertyOverrideConfigurer#1,remoteRuleReaderProxy,cxf.config0,org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,geofenceLdapSource,geofenceLdapTemplate,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,geofenceLdapUserAttributesMapper,geofenceLdapUserGroupAttributesMapper,gsLdapUserDAO,ldapUserGroupDAO,ldapRuleDAO,geofenceRemoteService,restUserService,restUserGroupService,restInstanceService,restRuleService,restAdminRuleService,restBatchService,restConfigService,instanceCleaner,geofenceRESTUser,geofenceRESTUserGroup,geofenceRESTInstances,geofenceRESTRules,geofenceRESTAdminRules,geofenceRESTConfig,geofenceRESTBatch,jaxbXmlProvider,jsonProvider,defaultUserResolver,authorizationService,userAdminService,gfUserAdminService,userGroupAdminService,instanceAdminService,ruleAdminService,adminRuleAdminService,ruleReaderService,sessionManager,mainLoginService,workspaceConfigOpts,org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#1,org.springframework.beans.factory.config.PropertyOverrideConfigurer#2,geofenceDataSource,geofenceEntityManagerFactory,geofenceVendorAdapter,geofenceTransactionManager,org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor#0,geofenceSearchProcessor,geofenceMetadataUtil,gsUserDAO,gfUserDAO,userGroupDAO,instanceDAO,ruleDAO,adminRuleDAO,ruleLimitsDAO,layerDetailsDAO,org.springframework.context.annotation.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0];
root of factory hierarchy
20:50:19,433 DEBUG LoginServiceImpl:67 - preDestroy()
20:50:19,433 DEBUG LoginServiceImpl:55 - destroy()
20:50:19,434 WARN DisposableBeanAdapter:310 - Invocation of destroy method
'shutdown' failed on bean with name 'cxf':
org.springframework.beans.factory.BeanCreationNotAllowedException: Error
creating bean with name 'remoteRuleReaderProxy': Singleton bean creation
not allowed while the singletons of this factory are in destruction (Do not
request a bean from a BeanFactory in a destroy method implementation!)
20:50:19,435 ERROR ContextLoader:308 - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'gsUsersManagerServiceGWT': Injection of autowired
dependencies failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Could not autowire
field: private org.geoserver.geofence.gui.service.GeofenceRemoteService
org.geoserver.geofence.gui.server.service.impl.GsUsersManagerServiceImpl.geofenceRemoteService;
nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'geofenceRemoteService' defined in URL
[jar:file:/tmp/Jetty_0_0_0_0_8080_geofence.war__geofence__4wxkpf/webapp/WEB-INF/lib/geofence-gui-resources-3.1.0.jar!/applicationContext.xml]:
Cannot resolve reference to bean 'userAdminService' while setting bean
property 'userAdminService'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'userAdminService' defined in URL
[jar:file:/tmp/Jetty_0_0_0_0_8080_geofence.war__geofence__4wxkpf/webapp/WEB-INF/lib/geofence-services-impl-3.1.0.jar!/applicationContext.xml]:
Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'gsUserDAO': Injection of persistence dependencies failed;
nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'geofenceEntityManagerFactory' defined in URL
[jar:file:/tmp/Jetty_0_0_0_0_8080_geofence.war__geofence__4wxkpf/webapp/WEB-INF/lib/geofence-persistence-3.1.0.jar!/applicationContext-geofenceDatasource.xml]:
Invocation of init method failed; nested exception is
java.lang.NoSuchMethodError:
javax.persistence.spi.PersistenceUnitInfo.getSharedCacheMode()Ljavax/persistence/SharedCacheMode;
at
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:287)
~[spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1106)
~[spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
~[spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
~[spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
~[spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
~[spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
~[spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
~[spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
~[spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)
~[spring-context-3.1.1.RELEASE.jar:3.1.1.RELEASE]
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
~[spring-context-3.1.1.RELEASE.jar:3.1.1.RELEASE]
at
org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:385)
~[spring-web-3.1.1.RELEASE.jar:3.1.1.RELEASE]
at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:284)
[spring-web-3.1.1.RELEASE.jar:3.1.1.RELEASE]
I am in the process of migrating servers and am stuck trying to get the
GeoFence probe to start. I'm migrating over from AWS and trying to keep all
the versions the same as to not break any other parts of the system. To do
the migration, I just tar'd up the directory of GeoServer/Geofence and
untar'd it on the new server (as this seemed OK following the installation
instructions), as well as setting the $JAVA_HOME, $GEOSERVER_HOME,
$GEOSERVER_DATA_DIR environment variables in the same place as they were.
This setup works fine when started on the AWS instance. TIA
GeoServer version: 2.8.2
GeoFence version: 3.1.0
Java Version: 1.8.0_73 64 bit
OS: CentOS 6.9 Release
Web Container: Bin Package
Stack Trace:
20:50:18,898 INFO LoginServiceImpl:43 - Creating LoginServiceImpl instance
20:50:18,908 DEBUG LoginServiceImpl:61 - postConstruct()
20:50:18,909 DEBUG LoginServiceImpl:49 - afterPropertiesSet()
20:50:19,059 INFO LocalContainerEntityManagerFactoryBean:264 - Building
JPA con
tainer EntityManagerFactory for persistence unit 'geofence'
20:50:19,222 INFO Version:37 - Hibernate Commons Annotations 3.2.0.Final
20:50:19,232 INFO Environment:593 - Hibernate 3.6.0.Final
20:50:19,235 INFO Environment:626 - hibernate.properties not found
20:50:19,240 INFO Environment:804 - Bytecode provider name : javassist
20:50:19,244 INFO Environment:685 - using JDK 1.4 java.sql.Timestamp
handling
20:50:19,334 INFO Version:42 - Hibernate EntityManager 3.6.0.Final
20:50:19,355 INFO Ejb3Configuration:519 - Processing PersistenceUnitInfo [
name: geofence
...]
20:50:19,432 INFO DefaultListableBeanFactory:433 - Destroying singletons
in
***@7a14d8a4:
defining beans
[org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.beans.factory.config.PropertyOverrideConfigurer#0,geofenceGlobalConfiguration,gsUsersManagerServiceGWT,instancesManagerServiceGWT,loginService,workspacesManagerServiceGWT,rulesManagerServiceGWT,profilesManagerServiceGWT,userBeanManager,geometryUtility,startupService,cxf,org.apache.cxf.bus.spring.BusApplicationListener,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.resource.ResourceManager,org.apache.cxf.configuration.Configurer,org.apache.cxf.binding.BindingFactoryManager,org.apache.cxf.transport.DestinationFactoryManager,org.apache.cxf.transport.ConduitInitiatorManager,org.apache.cxf.wsdl.WSDLManager,org.apache.cxf.phase.PhaseManager,org.apache.cxf.workqueue.WorkQueueManager,org.apache.cxf.buslifecycle.BusLifeCycleManager,org.apache.cxf.endpoint.ServerRegistry,org.apache.cxf.endpoint.ServerLifeCycleManager,org.apache.cxf.endpoint.ClientLifeCycleManager,org.apache.cxf.transports.http.QueryHandlerRegistry,org.apache.cxf.endpoint.EndpointResolverRegistry,org.apache.cxf.headers.HeaderManager,org.apache.cxf.catalog.OASISCatalogManager,org.apache.cxf.service.factory.FactoryBeanListenerManager,org.apache.cxf.endpoint.ServiceContractResolverRegistry,org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder,org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder,org.apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider,org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory,org.apache.cxf.transport.servlet.ServletTransportFactory,geofence-global-configurer,org.springframework.beans.factory.config.PropertyOverrideConfigurer#1,remoteRuleReaderProxy,cxf.config0,org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,geofenceLdapSource,geofenceLdapTemplate,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,geofenceLdapUserAttributesMapper,geofenceLdapUserGroupAttributesMapper,gsLdapUserDAO,ldapUserGroupDAO,ldapRuleDAO,geofenceRemoteService,restUserService,restUserGroupService,restInstanceService,restRuleService,restAdminRuleService,restBatchService,restConfigService,instanceCleaner,geofenceRESTUser,geofenceRESTUserGroup,geofenceRESTInstances,geofenceRESTRules,geofenceRESTAdminRules,geofenceRESTConfig,geofenceRESTBatch,jaxbXmlProvider,jsonProvider,defaultUserResolver,authorizationService,userAdminService,gfUserAdminService,userGroupAdminService,instanceAdminService,ruleAdminService,adminRuleAdminService,ruleReaderService,sessionManager,mainLoginService,workspaceConfigOpts,org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#1,org.springframework.beans.factory.config.PropertyOverrideConfigurer#2,geofenceDataSource,geofenceEntityManagerFactory,geofenceVendorAdapter,geofenceTransactionManager,org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor#0,geofenceSearchProcessor,geofenceMetadataUtil,gsUserDAO,gfUserDAO,userGroupDAO,instanceDAO,ruleDAO,adminRuleDAO,ruleLimitsDAO,layerDetailsDAO,org.springframework.context.annotation.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0];
root of factory hierarchy
20:50:19,433 DEBUG LoginServiceImpl:67 - preDestroy()
20:50:19,433 DEBUG LoginServiceImpl:55 - destroy()
20:50:19,434 WARN DisposableBeanAdapter:310 - Invocation of destroy method
'shutdown' failed on bean with name 'cxf':
org.springframework.beans.factory.BeanCreationNotAllowedException: Error
creating bean with name 'remoteRuleReaderProxy': Singleton bean creation
not allowed while the singletons of this factory are in destruction (Do not
request a bean from a BeanFactory in a destroy method implementation!)
20:50:19,435 ERROR ContextLoader:308 - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'gsUsersManagerServiceGWT': Injection of autowired
dependencies failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Could not autowire
field: private org.geoserver.geofence.gui.service.GeofenceRemoteService
org.geoserver.geofence.gui.server.service.impl.GsUsersManagerServiceImpl.geofenceRemoteService;
nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'geofenceRemoteService' defined in URL
[jar:file:/tmp/Jetty_0_0_0_0_8080_geofence.war__geofence__4wxkpf/webapp/WEB-INF/lib/geofence-gui-resources-3.1.0.jar!/applicationContext.xml]:
Cannot resolve reference to bean 'userAdminService' while setting bean
property 'userAdminService'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'userAdminService' defined in URL
[jar:file:/tmp/Jetty_0_0_0_0_8080_geofence.war__geofence__4wxkpf/webapp/WEB-INF/lib/geofence-services-impl-3.1.0.jar!/applicationContext.xml]:
Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'gsUserDAO': Injection of persistence dependencies failed;
nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'geofenceEntityManagerFactory' defined in URL
[jar:file:/tmp/Jetty_0_0_0_0_8080_geofence.war__geofence__4wxkpf/webapp/WEB-INF/lib/geofence-persistence-3.1.0.jar!/applicationContext-geofenceDatasource.xml]:
Invocation of init method failed; nested exception is
java.lang.NoSuchMethodError:
javax.persistence.spi.PersistenceUnitInfo.getSharedCacheMode()Ljavax/persistence/SharedCacheMode;
at
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:287)
~[spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1106)
~[spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
~[spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
~[spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
~[spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
~[spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
~[spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
~[spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
~[spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)
~[spring-context-3.1.1.RELEASE.jar:3.1.1.RELEASE]
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
~[spring-context-3.1.1.RELEASE.jar:3.1.1.RELEASE]
at
org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:385)
~[spring-web-3.1.1.RELEASE.jar:3.1.1.RELEASE]
at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:284)
[spring-web-3.1.1.RELEASE.jar:3.1.1.RELEASE]