[GeoNode-devel] GeoNode 2.4 status
Francesco Bartoli
xbartolone at gmail.com
Thu Jun 25 16:12:04 PDT 2015
I’ve got a build success but still have errors in tests.
———————————————————————————————
giu 26, 2015 12:30:55 AM org.geoserver.platform.GeoServerExtensions extensions
Avvertenza: bean lookup error
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rememberMeServices' defined in URL [jar:file:/Users/geobart/.m2/repository/org/geoserver/gs-main/2.7.1/gs-main-2.7.1.jar!/applicationSecurityContext.xml]: Cannot resolve reference to bean 'geoServerSecurityManager' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'extensions': 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!)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:329)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:107)
at org.springframework.beans.factory.support.ConstructorResolver.resolvePreparedArguments(ConstructorResolver.java:768)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:131)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1035)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:927)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getSingletonFactoryBeanForTypeCheck(AbstractAutowireCapableBeanFactory.java:767)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:698)
at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:519)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:339)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:316)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:303)
at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1162)
at org.geoserver.platform.GeoServerExtensions.extensions(GeoServerExtensions.java:135)
at org.geoserver.platform.GeoServerExtensions.extensions(GeoServerExtensions.java:264)
at org.geoserver.config.impl.GeoServerImpl.dispose(GeoServerImpl.java:416)
at org.geoserver.config.GeoServerLoader.destroy(GeoServerLoader.java:777)
at org.geoserver.config.GeoServerLoaderProxy.destroy(GeoServerLoaderProxy.java:71)
at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:211)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:500)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:476)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:445)
at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1078)
at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1052)
at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:1000)
at org.springframework.context.support.AbstractApplicationContext.destroy(AbstractApplicationContext.java:988)
at org.geoserver.test.GeoServerAbstractTestSupport.oneTimeTearDown(GeoServerAbstractTestSupport.java:296)
at org.geoserver.test.OneTimeSetupTest$OneTimeTestSetup.tearDown(OneTimeSetupTest.java:64)
at junit.extensions.TestSetup$1.protect(TestSetup.java:24)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.extensions.TestSetup.run(TestSetup.java:27)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
Caused by: org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'extensions': 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!)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:212)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:284)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:323)
... 43 more
—————————————————————————————————————————————————
Pushed the changes to this branch https://github.com/geoavalanche/geoserver-geonode-ext/tree/2.7.x if somebody with a stronger knowledge of spring can take a look.
Thanks
Francesco
Il giorno 25/giu/2015, alle ore 16:16, Paolo Corti <pcorti at gmail.com> ha scritto:
> Thanks Francesco
> keep us informed with your progress
> cheers
> p
>
> On Thu, Jun 25, 2015 at 3:59 PM, Francesco Bartoli <xbartolone at gmail.com> wrote:
>> Hi,
>>
>> just a quick update. I find out the reason of failure:
>>
>> Class GeoserverDataDirectory [1] is no longer present in the package
>> org.vfny.geoserver.global [2] and should be replaced by
>> GeoServerResourceLoader [3]
>>
>> I’ll try to rebuild as soon as I can with this modifications
>>
>> Francesco
>>
>> [1]
>> https://github.com/GeoNode/geoserver-geonode-ext/blob/master/src/main/java/org/geonode/security/GeoNodeSecurityProvider.java#L85
>>
>> [2]
>> https://github.com/geoserver/geoserver/tree/2.7.x/src/main/src/main/java/org/vfny/geoserver/global
>>
>> [3]
>> https://github.com/geoserver/geoserver/blob/master/src/main/src/main/java/org/geoserver/config/GeoServerDataDirectory.java#L64
>>
>>
>> Il giorno 25/giu/2015, alle ore 02:42, Francesco Bartoli
>> <xbartolone at gmail.com> ha scritto:
>>
>> Hi Paolo,
>>
>> I have tried to upgrade geoserver-geonode-ext with alignment to the latest
>> stable 2.7.1. After minor issues in dependencies the build fails at this
>> point:
>>
>> [ERROR] Failed to execute goal
>> org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile)
>> on project geonode-geoserver-ext: Compilation failure: Compilation failure:
>> [ERROR]
>> /Users/geobart/Development/geoserver-geonode-ext/src/main/java/org/geonode/security/GeoNodeSecurityProvider.java:[18,33]
>> cannot find symbol
>> [ERROR] symbol: class GeoserverDataDirectory
>> [ERROR] location: package org.vfny.geoserver.global
>> [ERROR]
>> /Users/geobart/Development/geoserver-geonode-ext/src/main/java/org/geonode/security/GeoNodeSecurityProvider.java:[85,44]
>> cannot find symbol
>> [ERROR] symbol: variable GeoserverDataDirectory
>> [ERROR] location: class org.geonode.security.GeoNodeSecurityProvider
>> [ERROR] -> [Help 1]
>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
>> goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile
>> (default-compile) on project geonode-geoserver-ext: Compilation failure
>> at
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
>> at
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>> at
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>> at
>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
>> at
>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
>> at
>> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
>> at
>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
>> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
>> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:606)
>> at
>> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
>> at
>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
>> at
>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
>> at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
>> Caused by: org.apache.maven.plugin.compiler.CompilationFailureException:
>> Compilation failure
>> at
>> org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:858)
>> at
>> org.apache.maven.plugin.compiler.CompilerMojo.execute(CompilerMojo.java:129)
>> at
>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
>> at
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
>> ... 20 more
>> [ERROR]
>> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>> [ERROR]
>> [ERROR] For more information about the errors and possible solutions, please
>> read the following articles:
>> [ERROR] [Help 1]
>> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
>>
>> Tomorrow I don’t have time to investigating more but if somebody can take a
>> look then I can retry the build. Anyway attached there is the POM used to
>> build
>>
>> Cheers,
>> Francesco
>> <pom.xml>
>>
>> Il giorno 24/giu/2015, alle ore 15:47, Paolo Corti <pcorti at gmail.com> ha
>> scritto:
>>
>> Hi Simone
>>
>> There are also a couple of other things that can be addressed before the
>> release if they are fixed in time otherwise will go to 2.4.1:
>> - notifications rework
>> - better cache management and invalidation for thumbnails and tiles
>> - Geoserver upgrade to 2.7
>>
>>
>> We should upgrade asap GeoServer as this recently discovered important
>> security vulnerability has been fixed only for 2.6.4 and 2.7.2 (we
>> should consider to repackage GeoServer for stable 2.0 imho):
>> https://osgeo-org.atlassian.net/browse/GEOS-7032
>>
>> For the rest, migrations script [1] worked well for us (WFP), we are
>> extensively testing it and will go in production with 2.4 by the end
>> of the month.
>>
>> Another think I would love to see in 2.4 is the gxp classify tool,
>> almost done by Matt I believe [2]
>>
>> cheers
>> p
>>
>> [1] https://github.com/capooti/geonode/tree/migration_from20_to_24
>> [2] https://github.com/boundlessgeo/gxp/pull/231/files#r31339623
>>
>> --
>> Paolo Corti
>> Geospatial software developer
>> web: http://www.paolocorti.net
>> twitter: @capooti
>> skype: capooti
>> _______________________________________________
>> geonode-devel mailing list
>> geonode-devel at lists.osgeo.org
>> http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-devel
>>
>>
>>
>
>
>
> --
> Paolo Corti
> Geospatial software developer
> web: http://www.paolocorti.net
> twitter: @capooti
> skype: capooti
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20150626/21cc662e/attachment-0001.html>
More information about the geonode-devel
mailing list