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