Discussion:
[Geoserver-users] Cannot start GeoFence (3.1.0) Probe for GeoServer (2.8.2)
Jon Sleep
2017-06-02 21:00:58 UTC
Permalink
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]
Nuno Oliveira
2017-06-05 08:29:17 UTC
Permalink
Hi,

The stack-trace is suggesting some kind of classpath clash, probably JPA 1.0 is present when only JPA 2.0 should be present.
I investigated the libs contained in the GeoFence 3.1.0 WAR and indeed this two JARs are probably the ones causing the issue:

* hibernate-jpa-2.0-api-1.0.0.Final.jar
* persistence-api-1.0.jar

I think that the last JAR (persistence-api-1.0.jar) should not be present, removing it from the WEB-INF/lib should fix you issue.

If you are wondering why this was not happening in the AWS installation is because this issue depends on which classes are loaded first which may differ in different systems or situations.

I open a ticket in GeoFence for this https://github.com/geoserver/geofence/issues/92.

Hope it helps,

Nuno Oliveira
Post by Jon Sleep
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
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
...]
[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]
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
==
GeoServer Professional Services from the experts!
Visit http://goo.gl/it488V for more information.
==
Nuno Miguel Carvalho Oliveira
@nmcoliveira
Software Engineer

GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
Italy

phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono
da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate
nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e
-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo
anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for the attention and use of
the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree
June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying,
distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender does not give any warranty or accept liability as the content,
accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which
arise as a result of e-mail transmission, viruses, etc.
Jon Sleep
2017-06-07 00:04:57 UTC
Permalink
Hello GeoServer Community,

I am in the process of migrating servers for my school 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 on the old server 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.internalPersistenceAnnotationP
rocessor,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.BusWiringBeanFactoryPostProces
sor,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.ServiceContractResolverRegistr
y,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.AnnotationTransactionAttribute
Source#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]

Jon Sleep
Computer Science Student
California Polytechnic State University - San Luis Obispo
Nuno Oliveira
2017-06-07 09:33:10 UTC
Permalink
I already answer this question no:
http://osgeo-org.1560.x6.nabble.com/Cannot-start-GeoFence-3-1-0-Probe-for-GeoServer-2-8-2-td5322882.html

My suggestion didn't fix your issue ?
Post by Jon Sleep
Hello GeoServer Community,
I am in the process of migrating servers for my school 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 on the old server 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
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
...]
[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]
Jon Sleep
Computer Science Student
California Polytechnic State University - San Luis Obispo
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
==
GeoServer Professional Services from the experts!
Visit http://goo.gl/it488V for more information.
==
Nuno Miguel Carvalho Oliveira
@nmcoliveira
Software Engineer

GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
Italy

phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono
da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate
nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e
-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo
anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for the attention and use of
the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree
June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying,
distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender does not give any warranty or accept liability as the content,
accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which
arise as a result of e-mail transmission, viruses, etc.
Jon Sleep
2017-06-07 18:26:26 UTC
Permalink
Nuno,

I tried your suggestion again by exploding the geofence.war file with "jar
-xvf geofence.war" and then the WEB-INF folder appeared. I deleted the
persistence-api jar you said to, repackaged the .war, and now GeoFence
starts!!!

Thank you so much for the help, I really appreciate it.

Jonathan Sleep
California Polytechnic State University
Computer Engineering Class of 2017
Hello Nuno,
Thank you so much for the response. I apologize for the duplicate question
- the first time I sent it, I wasn't a part of the user's list and got some
notification about how the message had to be approved unless I was a member.
I've just tried your advice but can't seem to find any .jar files inside
of the GeoFence .war .
I tried to do it by using first unjarring with the command "jar -xvf
geofence.war geofence" and then searching for .jar files inside of the
geofence directory with "find geofence -name *.jar". Nothing came up that I
could see...
I also looked in the normal GeoServer lib/WEB-INF and could not find the
jars you had mentioned...
Any advice as to how to access the jars you're talking about?
Jonathan Sleep
California Polytechnic State University
Computer Engineering / Computer Science BS/MSc Class of 2017
On Wed, Jun 7, 2017 at 2:33 AM, Nuno Oliveira <
Post by Nuno Oliveira
http://osgeo-org.1560.x6.nabble.com/Cannot-start-GeoFence-3-
1-0-Probe-for-GeoServer-2-8-2-td5322882.html
My suggestion didn't fix your issue ?
Hello GeoServer Community,
I am in the process of migrating servers for my school 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 on the old server 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
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 org.springframework.beans.factory.support.DefaultListableBea
nnotation.internalConfigurationAnnotationProcessor,org.sprin
gframework.context.annotation.internalAutowiredAnnotationPro
cessor,org.springframework.context.annotation.internalRequir
edAnnotationProcessor,org.springframework.context.annotation
.internalCommonAnnotationProcessor,org.springframework.
context.annotation.internalPersistenceAnnotationP
rocessor,org.springframework.beans.factory.config.
PropertyOverrideConfigurer#0,geofenceGlobalConfiguration,
gsUsersManagerServiceGWT,instancesManagerServiceGWT,loginSer
vice,workspacesManagerServiceGWT,rulesManagerServiceGWT,prof
ilesManagerServiceGWT,userBeanManager,geometryUtility,startupService,cxf,
org.apache.cxf.bus.spring.BusApplicationListe
ner,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProces
sor,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.ServerLifeCycleManage
r,org.apache.cxf.endpoint.ClientLifeCycleManager,org.
apache.cxf.transports.http.QueryHandlerRegistry,org.apach
e.cxf.endpoint.EndpointResolverRegistry,org.apache.cxf.heade
rs.HeaderManager,org.apache.cxf.catalog.OASISCatalogManage
r,org.apache.cxf.service.factory.FactoryBeanListenerMan
ager,org.apache.cxf.endpoint.ServiceContractResolverRegistr
y,org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder,
org.apache.cxf.transport.http.policy.HTTPServerAssertionBuil
der,org.apache.cxf.transport.http.policy.NoOpPolicyIntercep
torProvider,org.apache.cxf.transport.http.ClientOnlyHTTPT
ransportFactory,org.apache.cxf.transport.servlet.
ServletTransportFactory,geofence-global-configurer,org.sprin
gframework.beans.factory.config.PropertyOverrideConfigurer#
1,remoteRuleReaderProxy,cxf.config0,org.springframework.
beans.factory.config.PropertyPlaceholderConfigurer#
0,geofenceLdapSource,geofenceLdapTemplate,org.springframewor
k.aop.config.internalAutoProxyCreator,org.springframework.
transaction.annotation.AnnotationTransactionAttributeSource#
0,org.springframework.transaction.interceptor.TransactionInt
erceptor#0,org.springframework.transaction.config.internalTr
ansactionAdvisor,geofenceLdapUserAttributesMapper,geofenceLd
apUserGroupAttributesMapper,gsLdapUserDAO,ldapUserGroupDAO
,ldapRuleDAO,geofenceRemoteService,restUserService,restUserG
roupService,restInstanceService,restRuleService,restAdminRul
eService,restBatchService,restConfigService,instanceCleaner,
geofenceRESTUser,geofenceRESTUserGroup,geofenceRESTInstances
,geofenceRESTRules,geofenceRESTAdminRules,geofenceRESTConfig
,geofenceRESTBatch,jaxbXmlProvider,jsonProvider,defaultUserR
esolver,authorizationService,userAdminService,gfUserAdminSe
rvice,userGroupAdminService,instanceAdminService,ruleAdminSe
rvice,adminRuleAdminService,ruleReaderService,sessionManager
,mainLoginService,workspaceConfigOpts,org.springframework.be
ans.factory.config.PropertyPlaceholderConfigurer#1,org.sprin
gframework.beans.factory.config.PropertyOverrideConfigurer#
2,geofenceDataSource,geofenceEntityManagerFactory,geofenceVe
ndorAdapter,geofenceTransactionManager,org.springframework.
orm.jpa.support.PersistenceAnnotationBeanPostP
rocessor#0,geofenceSearchProcessor,geofenceMetadataUtil,gsUs
erDAO,gfUserDAO,userGroupDAO,instanceDAO,ruleDAO,adminRuleD
AO,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
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
Could not autowire field: private org.geoserver.geofence.gui.service.GeofenceRemoteService
org.geoserver.geofence.gui.server.service.impl.GsUsersManage
rServiceImpl.geofenceRemoteService; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
file:/tmp/Jetty_0_0_0_0_8080_geofence.war__geofence__4w
Cannot resolve reference to bean 'userAdminService' while setting bean
property 'userAdminService'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
file:/tmp/Jetty_0_0_0_0_8080_geofence.war__geofence__4w
Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'gsUserDAO': Injection of persistence dependencies failed;
Error creating bean with name 'geofenceEntityManagerFactory' defined in URL
[jar:file:/tmp/Jetty_0_0_0_0_8080_geofence.war__geofence__4w
xkpf/webapp/WEB-INF/lib/geofence-persistence-3.1.0.jar!/appl
icationContext-geofenceDatasource.xml]: Invocation of init method
javax.persistence.spi.PersistenceUnitInfo.getSharedCacheMode
()Ljavax/persistence/SharedCacheMode;
at org.springframework.beans.factory.annotation.AutowiredAnnota
tionBeanPostProcessor.postProcessPropertyValues(AutowiredAnn
otationBeanPostProcessor.java:287) ~[spring-beans-3.1.1.RELEASE.j
ar:3.1.1.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCa
pableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1106)
~[spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCa
pableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
~[spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCa
pableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
~[spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactor
y$1.getObject(AbstractBeanFactory.java:294)
~[spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBe
anRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
~[spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactor
y.doGetBean(AbstractBeanFactory.java:291) ~[spring-beans-3.1.1.RELEASE.j
ar:3.1.1.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactor
y.getBean(AbstractBeanFactory.java:193) ~[spring-beans-3.1.1.RELEASE.j
ar:3.1.1.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBea
nFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
~[spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]
at org.springframework.context.support.AbstractApplicationConte
xt.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)
~[spring-context-3.1.1.RELEASE.jar:3.1.1.RELEASE]
at org.springframework.context.support.AbstractApplicationConte
xt.refresh(AbstractApplicationContext.java:464)
~[spring-context-3.1.1.RELEASE.jar:3.1.1.RELEASE]
at org.springframework.web.context.ContextLoader.configureAndRe
freshWebApplicationContext(ContextLoader.java:385)
~[spring-web-3.1.1.RELEASE.jar:3.1.1.RELEASE]
at org.springframework.web.context.ContextLoader.initWebApplica
3.1.1.RELEASE]
Jon Sleep
Computer Science Student
California Polytechnic State University - San Luis Obispo
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
--
==
GeoServer Professional Services from the experts!
Visit http://goo.gl/it488V for more information.
==
Nuno Miguel Carvalho Oliveira
@nmcoliveira
Software Engineer
GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
Italy
phone: +39 0584 962313 <+39%200584%20962313>
fax: +39 0584 1660272 <+39%200584%20166%200272>
mob: +39 333 8128928 <+39%20333%20812%208928>
http://www.geo-solutions.ithttp://twitter.com/geosolutions_it
-------------------------------------------------------
AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono
da considerarsi strettamente riservate. Il loro utilizzo Ú consentito esclusivamente al destinatario del messaggio, per le finalità indicate
nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e
-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo
anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.
The information in this message and/or attachments, is intended solely for the attention and use of
the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree
June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying,
distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender does not give any warranty or accept liability as the content,
accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which
arise as a result of e-mail transmission, viruses, etc.
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Nuno Oliveira
2017-06-07 21:54:34 UTC
Permalink
Thanks for the feedback, you are welcome :)
Nuno,
I tried your suggestion again by exploding the geofence.war file with "jar -xvf geofence.war" and then the WEB-INF folder appeared. I deleted the persistence-api jar you said to, repackaged the .war, and now GeoFence starts!!!
Thank you so much for the help, I really appreciate it.
Jonathan Sleep
California Polytechnic State University
Computer Engineering Class of 2017
Hello Nuno,
Thank you so much for the response. I apologize for the duplicate question - the first time I sent it, I wasn't a part of the user's list and got some notification about how the message had to be approved unless I was a member.
I've just tried your advice but can't seem to find any .jar files inside of the GeoFence .war .
I tried to do it by using first unjarring with the command "jar -xvf geofence.war geofence" and then searching for .jar files inside of the geofence directory with "find geofence -name *.jar". Nothing came up that I could see...
I also looked in the normal GeoServer lib/WEB-INF and could not find the jars you had mentioned...
Any advice as to how to access the jars you're talking about?
Jonathan Sleep
California Polytechnic State University
Computer Engineering / Computer Science BS/MSc Class of 2017
http://osgeo-org.1560.x6.nabble.com/Cannot-start-GeoFence-3-1-0-Probe-for-GeoServer-2-8-2-td5322882.html <http://osgeo-org.1560.x6.nabble.com/Cannot-start-GeoFence-3-1-0-Probe-for-GeoServer-2-8-2-td5322882.html>
My suggestion didn't fix your issue ?
Post by Jon Sleep
Hello GeoServer Community,
I am in the process of migrating servers for my school 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 on the old server 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
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
...]
<http://org.apache.cx>f.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.An
<http://work.transaction.annotation.An>notationTransactionAttributeSource#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.be
<http://org.springframework.be>ans.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.su <http://org.springframework.context.su>pport.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913) ~[spring-context-3.1.1.RELEASE.jar:3.1.1.RELEASE]
at org.springframework.context.su <http://org.springframework.context.su>pport.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]
Jon Sleep
Computer Science Student
California Polytechnic State University - San Luis Obispo
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org!http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
https://lists.sourceforge.net/lists/listinfo/geoserver-users <https://lists.sourceforge.net/lists/listinfo/geoserver-users>
--
==
GeoServer Professional Services from the experts!
Visithttp://goo.gl/it488V for more information.
==
Nuno Miguel Carvalho Oliveira
@nmcoliveira
Software Engineer
GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
Italy
phone:+39 0584 962313 <tel:+39%200584%20962313>
fax:+39 0584 1660272 <tel:+39%200584%20166%200272>
mob:+39 333 8128928 <tel:+39%20333%20812%208928>
http://www.geo-solutions.it
http://twitter.com/geosolutions_it <http://twitter.com/geosolutions_it>
-------------------------------------------------------
AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono
da considerarsi strettamente riservate. Il loro utilizzo Ú consentito esclusivamente al destinatario del messaggio, per le finalità indicate
nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e
-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo
anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.
The information in this message and/or attachments, is intended solely for the attention and use of
the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree
June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying,
distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender does not give any warranty or accept liability as the content,
accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which
arise as a result of e-mail transmission, viruses, etc.
--
==
GeoServer Professional Services from the experts!
Visit http://goo.gl/it488V for more information.
==
Nuno Miguel Carvalho Oliveira
@nmcoliveira
Software Engineer

GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
Italy

phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono
da considerarsi strettamente riservate. Il loro utilizzo Ú consentito esclusivamente al destinatario del messaggio, per le finalità indicate
nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e
-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo
anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for the attention and use of
the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree
June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying,
distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender does not give any warranty or accept liability as the content,
accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which
arise as a result of e-mail transmission, viruses, etc.
Loading...