[Geoserver-devel] Spring errors deploying 1.7 snapshot geoserver.war

I’m relatively new to building geoserver from source so I’m not comfortable filing a bug until I make sure I’m not making basic mistakes myself. In particular David Winslow helped me today by correcting some errors in the build for the RESTConfig and rest community modules. I svn up’d, did a mvn clean and finally a mvn install -Dcommunity -P RESTConfig,rest

When I deployed the war to tomcat I get a bunch of Spring configuration errors (which I pasted in below.) I’m familiar with Spring but because I’m just getting to know the code I thought someone might see something obvious to them that would take me awhile to track down.

INFO: Deploying web application archive geoserver.war
Jun 14, 2008 12:07:42 AM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener “org.geoserver.GeoserverInitStartupListener” is already configured for this context. The duplicate definition has been ignored.
Jun 14, 2008 12:07:42 AM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener “org.geoserver.logging.LoggingStartupContextListener” is already configured for this context. The duplicate definition has been ignored.
Jun 14, 2008 12:07:42 AM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener “org.springframework.web.context.ContextLoaderListener” is already configured for this context. The duplicate definition has been ignored.
14 Jun 00:07:44 ERROR [geoserver.global] -

  • GEOSERVER_DATA_DIR: C:\cygwin\opt\apache-tomcat-6.0.16\webapps\geoserver\data

14 Jun 00:07:44 INFO [geoserver.catalog] - Loaded namespace ‘it.geosolutions’ (http://www.geo-solutions.it)
14 Jun 00:07:44 INFO [geoserver.catalog] - Loaded namespace ‘topp’ (http://www.openplans.org/topp)
14 Jun 00:07:44 INFO [geoserver.catalog] - Default namespace: ‘topp’
14 Jun 00:07:44 INFO [geoserver.catalog] - Loaded style ‘polygon’
14 Jun 00:07:44 INFO [geoserver.catalog] - Loaded style ‘raster’
14 Jun 00:07:44 INFO [geoserver.catalog] - Loaded style ‘point’
14 Jun 00:07:44 INFO [geoserver.catalog] - Loaded style ‘line’
14 Jun 00:07:44 WARN [support.DisposableBeanAdapter] - Invocation of destroy method failed on bean with name ‘geoServerLoader’: org.springframework.beans.factory.Be
anCreationNotAllowedException: Error creating bean with name ‘wcsLoader’: Singleton bean creation not allowed while the singletons of this factory are in destructio
n (Do not request a bean from a BeanFactory in a destroy method implementation!)
14 Jun 00:07:44 ERROR [context.ContextLoader] - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘applicationState’ defined in URL [file:/C:/cygwin/opt/apache-tomcat-6.0.16/w
ebapps/geoserver/WEB-INF/classes/applicationContext.xml]: Cannot resolve reference to bean ‘data’ while setting constructor argument; nested exception is org.spring
framework.beans.factory.BeanCreationException: Error creating bean with name ‘data’ defined in URL [jar:file:/C:/cygwin/opt/apache-tomcat-6.0.16/webapps/geoserver/W
EB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]: Cannot resolve reference to bean ‘geoServer2’ while setting constructor argument; nested exception is o
rg.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘geoServer2’ defined in URL [jar:file:/C:/cygwin/opt/apache-tomcat-6.0.16/weba
pps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.RuntimeException: java.lang
.NullPointerException
Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘secureCatalog’ defined in URL [jar:file:/C:/cygwin/o
pt/apache-tomcat-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]: Unsatisfied dependency expressed through constructor argumen
t with index 1 of type [org.geoserver.security.DataAccessManager]: Ambiguous constructor argument types - did you specify the correct bean references as constructor
arguments?
Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘secureCatalog’ defined in URL [jar:file:/C:/cygwin/o
pt/apache-tomcat-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]: Unsatisfied dependency expressed through constructor argumen
t with index 1 of type [org.geoserver.security.DataAccessManager]: Ambiguous constructor argument types - did you specify the correct bean references as constructor
arguments?
Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘secureCatalog’ defined in URL [jar:file:/C:/cygwin/o
pt/apache-tomcat-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]: Unsatisfied dependency expressed through constructor argumen
t with index 1 of type [org.geoserver.security.DataAccessManager]: Ambiguous constructor argument types - did you specify the correct bean references as constructor
arguments?
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:474)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:160)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:893)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:803)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:430)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:254)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:198)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:829)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:718)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘data’ defined in URL [jar:file:/C:/cygwin/opt/apache-tomcat-6.0.1
6/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]: Cannot resolve reference to bean ‘geoServer2’ while setting constructor argument;
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘geoServer2’ defined in URL [jar:file:/C:/cygwin/opt/apac
he-tomcat-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.Runtim
eException: java.lang.NullPointerException
Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘secureCatalog’ defined in URL [jar:file:/C:/cygwin/o
pt/apache-tomcat-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]: Unsatisfied dependency expressed through constructor argumen
t with index 1 of type [org.geoserver.security.DataAccessManager]: Ambiguous constructor argument types - did you specify the correct bean references as constructor
arguments?
Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘secureCatalog’ defined in URL [jar:file:/C:/cygwin/o
pt/apache-tomcat-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]: Unsatisfied dependency expressed through constructor argumen
t with index 1 of type [org.geoserver.security.DataAccessManager]: Ambiguous constructor argument types - did you specify the correct bean references as constructor
arguments?
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:474)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:160)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:893)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:803)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
… 44 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘geoServer2’ defined in URL [jar:file:/C:/cygwin/opt/apache-tomcat
-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.RuntimeExceptio
n: java.lang.NullPointerException
Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘secureCatalog’ defined in URL [jar:file:/C:/cygwin/o
pt/apache-tomcat-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]: Unsatisfied dependency expressed through constructor argumen
t with index 1 of type [org.geoserver.security.DataAccessManager]: Ambiguous constructor argument types - did you specify the correct bean references as constructor
arguments?
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:470)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
… 59 more
Caused by: java.lang.RuntimeException: java.lang.NullPointerException
at org.geoserver.config.GeoServerLoader.initialize(GeoServerLoader.java:87)
at org.geoserver.config.GeoServerLoader.postProcessBeforeInitialization(GeoServerLoader.java:67)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFacto
ry.java:346)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1295)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:463)
… 68 more
Caused by: java.lang.NullPointerException
at org.geoserver.catalog.util.LegacyCatalogImporter.imprt(LegacyCatalogImporter.java:137)
at org.geoserver.config.GeoServerLoader.initialize(GeoServerLoader.java:84)
… 72 more
Related cause:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘secureCatalog’ defined in URL [jar:file:/C:/cygwin/opt/apache-tomca
t-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]: Unsatisfied dependency expressed through constructor argument with index 1
of type [org.geoserver.security.DataAccessManager]: Ambiguous constructor argument types - did you specify the correct bean references as constructor arguments?
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:556)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:190)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:893)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:803)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1210)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:978)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:462)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:474)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:160)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:893)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:803)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:474)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:160)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:893)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:803)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:430)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:254)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:198)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:829)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:718)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Jun 14, 2008 12:07:44 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Jun 14, 2008 12:07:44 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/geoserver] startup failed due to previous errors


Christopher Thatcher

I don't have any such issues building the latest revision (r9263) and deploying in tomcat, or just running with the maven jetty:run task. Could you try completely cleaning out the geoserver dir in webapps to ensure there aren't any stale jars there? (Equivalently, just rename the geoserver war file so that it is deployed under a different context.)

By the way, a couple of things about maven:
1. 'mvn clean' is also affected by profiles and environment variables. So when you just do 'mvn clean' the optional modules that are disabled by default (like rest and RESTConfig) will not be cleaned. Maven supports multiple targets in a single invocation so you can just do 'mvn clean install -Prest,RESTConfig'
2. Since restructuring the community modules to use profiles, the environment variable community has no effect, so you can leave out the '-Dcommunity' entirely.

-David

chris thatcher wrote:

I'm relatively new to building geoserver from source so I'm not comfortable filing a bug until I make sure I'm not making basic mistakes myself. In particular David Winslow helped me today by correcting some errors in the build for the RESTConfig and rest community modules. I svn up'd, did a mvn clean and finally a mvn install -Dcommunity -P RESTConfig,rest

When I deployed the war to tomcat I get a bunch of Spring configuration errors (which I pasted in below.) I'm familiar with Spring but because I'm just getting to know the code I thought someone might see something obvious to them that would take me awhile to track down.

INFO: Deploying web application archive geoserver.war
Jun 14, 2008 12:07:42 AM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "org.geoserver.GeoserverInitStartupListener" is already configured for this context. The duplicate definition has been ignored.
Jun 14, 2008 12:07:42 AM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "org.geoserver.logging.LoggingStartupContextListener" is already configured for this context. The duplicate definition has been ignored.
Jun 14, 2008 12:07:42 AM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "org.springframework.web.context.ContextLoaderListener" is already configured for this context. The duplicate definition has been ignored.
14 Jun 00:07:44 ERROR [geoserver.global] -
----------------------------------
- GEOSERVER_DATA_DIR: C:\cygwin\opt\apache-tomcat-6.0.16\webapps\geoserver\data
----------------------------------
14 Jun 00:07:44 INFO [geoserver.catalog] - Loaded namespace 'it.geosolutions' (http://www.geo-solutions.it)
14 Jun 00:07:44 INFO [geoserver.catalog] - Loaded namespace 'topp' (http://www.openplans.org/topp)
14 Jun 00:07:44 INFO [geoserver.catalog] - Default namespace: 'topp'
14 Jun 00:07:44 INFO [geoserver.catalog] - Loaded style 'polygon'
14 Jun 00:07:44 INFO [geoserver.catalog] - Loaded style 'raster'
14 Jun 00:07:44 INFO [geoserver.catalog] - Loaded style 'point'
14 Jun 00:07:44 INFO [geoserver.catalog] - Loaded style 'line'
14 Jun 00:07:44 WARN [support.DisposableBeanAdapter] - Invocation of destroy method failed on bean with name 'geoServerLoader': org.springframework.beans.factory.Be <http://org.springframework.beans.factory.Be>
anCreationNotAllowedException: Error creating bean with name 'wcsLoader': Singleton bean creation not allowed while the singletons of this factory are in destructio
n (Do not request a bean from a BeanFactory in a destroy method implementation!)
14 Jun 00:07:44 ERROR [context.ContextLoader] - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'applicationState' defined in URL [file:/C:/cygwin/opt/apache-tomcat-6.0.16/w
ebapps/geoserver/WEB-INF/classes/applicationContext.xml]: Cannot resolve reference to bean 'data' while setting constructor argument; nested exception is org.spring
framework.beans.factory.BeanCreationException: Error creating bean with name 'data' defined in URL [jar:file:/C:/cygwin/opt/apache-tomcat-6.0.16/webapps/geoserver/W
EB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]: Cannot resolve reference to bean 'geoServer2' while setting constructor argument; nested exception is o
rg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'geoServer2' defined in URL [jar:file:/C:/cygwin/opt/apache-tomcat-6.0.16/weba
pps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.RuntimeException: java.lang
.NullPointerException
Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'secureCatalog' defined in URL [jar:file:/C:/cygwin/o
pt/apache-tomcat-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]: Unsatisfied dependency expressed through constructor argumen
t with index 1 of type [org.geoserver.security.DataAccessManager]: Ambiguous constructor argument types - did you specify the correct bean references as constructor
arguments?
Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'secureCatalog' defined in URL [jar:file:/C:/cygwin/o
pt/apache-tomcat-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]: Unsatisfied dependency expressed through constructor argumen
t with index 1 of type [org.geoserver.security.DataAccessManager]: Ambiguous constructor argument types - did you specify the correct bean references as constructor
arguments?
Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'secureCatalog' defined in URL [jar:file:/C:/cygwin/o
pt/apache-tomcat-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]: Unsatisfied dependency expressed through constructor argumen
t with index 1 of type [org.geoserver.security.DataAccessManager]: Ambiguous constructor argument types - did you specify the correct bean references as constructor
arguments?
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
        at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:474)
        at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:160)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:893)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:803)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:430)
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:254)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:198)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:829)
        at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:718)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at org.apache.catalina.core.StandardService.start(StandardService.java:516)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'data' defined in URL [jar:file:/C:/cygwin/opt/apache-tomcat-6.0.1
6/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]: Cannot resolve reference to bean 'geoServer2' while setting constructor argument;
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'geoServer2' defined in URL [jar:file:/C:/cygwin/opt/apac
he-tomcat-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.Runtim
eException: java.lang.NullPointerException
Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'secureCatalog' defined in URL [jar:file:/C:/cygwin/o
pt/apache-tomcat-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]: Unsatisfied dependency expressed through constructor argumen
t with index 1 of type [org.geoserver.security.DataAccessManager]: Ambiguous constructor argument types - did you specify the correct bean references as constructor
arguments?
Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'secureCatalog' defined in URL [jar:file:/C:/cygwin/o
pt/apache-tomcat-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]: Unsatisfied dependency expressed through constructor argumen
t with index 1 of type [org.geoserver.security.DataAccessManager]: Ambiguous constructor argument types - did you specify the correct bean references as constructor
arguments?
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
        at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:474)
        at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:160)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:893)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:803)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
        ... 44 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'geoServer2' defined in URL [jar:file:/C:/cygwin/opt/apache-tomcat
-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.RuntimeExceptio
n: java.lang.NullPointerException
Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'secureCatalog' defined in URL [jar:file:/C:/cygwin/o
pt/apache-tomcat-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]: Unsatisfied dependency expressed through constructor argumen
t with index 1 of type [org.geoserver.security.DataAccessManager]: Ambiguous constructor argument types - did you specify the correct bean references as constructor
arguments?
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:470)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
        ... 59 more
Caused by: java.lang.RuntimeException: java.lang.NullPointerException
        at org.geoserver.config.GeoServerLoader.initialize(GeoServerLoader.java:87)
        at org.geoserver.config.GeoServerLoader.postProcessBeforeInitialization(GeoServerLoader.java:67)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFacto
ry.java:346)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1295)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:463)
        ... 68 more
Caused by: java.lang.NullPointerException
        at org.geoserver.catalog.util.LegacyCatalogImporter.imprt(LegacyCatalogImporter.java:137)
        at org.geoserver.config.GeoServerLoader.initialize(GeoServerLoader.java:84)
        ... 72 more
Related cause:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'secureCatalog' defined in URL [jar:file:/C:/cygwin/opt/apache-tomca
t-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]: Unsatisfied dependency expressed through constructor argument with index 1
of type [org.geoserver.security.DataAccessManager]: Ambiguous constructor argument types - did you specify the correct bean references as constructor arguments?
        at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:556)
        at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:190)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:893)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:803)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1210)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:978)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:462)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
        at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:474)
        at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:160)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:893)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:803)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
        at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:474)
        at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:160)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:893)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:803)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:430)
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:254)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:198)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:829)
        at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:718)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at org.apache.catalina.core.StandardService.start(StandardService.java:516)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Jun 14, 2008 12:07:44 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Jun 14, 2008 12:07:44 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/geoserver] startup failed due to previous errors

--
Christopher Thatcher !DSPAM:4040,4853496388715219720167!
------------------------------------------------------------------------

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php

!DSPAM:4040,4853496388715219720167!
  ------------------------------------------------------------------------

_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

!DSPAM:4040,4853496388715219720167!
  

Thanks David, In particular it’s really nice to know you can develop with jetty. I cleaned out my source tree and rechecked out from svn, cleaned out webapps, as well as work/Catalina, used jetty, renaming the war and still get these error in all cases. I am on Vista with cygwin and java 1.6 but wouldn’t expect any issues there. Do the Spring configuration error for bean creation seem unusual to you? I’m not used to so many bean refs as constructor args so it’s harder to see common issues I’ve run into before. I’m particulary confused by the first error regarding GEOSERVER_DATA_DIR

14 Jun 23:52:38 ERROR [geoserver.global] -


  • GEOSERVER_DATA_DIR: C:\cygwin\opt\apache-tomcat-6.0.16\webapps\geoserver\data

Is this really an error message or just logged at that level?

On Sat, Jun 14, 2008 at 8:32 AM, David Winslow <dwinslow@anonymised.com> wrote:

I don’t have any such issues building the latest revision (r9263) and deploying in tomcat, or just running with the maven jetty:run task. Could you try completely cleaning out the geoserver dir in webapps to ensure there aren’t any stale jars there? (Equivalently, just rename the geoserver war file so that it is deployed under a different context.)

By the way, a couple of things about maven:

  1. ‘mvn clean’ is also affected by profiles and environment variables. So when you just do ‘mvn clean’ the optional modules that are disabled by default (like rest and RESTConfig) will not be cleaned. Maven supports multiple targets in a single invocation so you can just do ‘mvn clean install -Prest,RESTConfig’
  2. Since restructuring the community modules to use profiles, the environment variable community has no effect, so you can leave out the ‘-Dcommunity’ entirely.

-David

chris thatcher wrote:

I’m relatively new to building geoserver from source so I’m not comfortable filing a bug until I make sure I’m not making basic mistakes myself. In particular David Winslow helped me today by correcting some errors in the build for the RESTConfig and rest community modules. I svn up’d, did a mvn clean and finally a mvn install -Dcommunity -P RESTConfig,rest

When I deployed the war to tomcat I get a bunch of Spring configuration errors (which I pasted in below.) I’m familiar with Spring but because I’m just getting to know the code I thought someone might see something obvious to them that would take me awhile to track down.

INFO: Deploying web application archive geoserver.war
Jun 14, 2008 12:07:42 AM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener “org.geoserver.GeoserverInitStartupListener” is already configured for this context. The duplicate definition has been ignored.
Jun 14, 2008 12:07:42 AM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener “org.geoserver.logging.LoggingStartupContextListener” is already configured for this context. The duplicate definition has been ignored.
Jun 14, 2008 12:07:42 AM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener “org.springframework.web.context.ContextLoaderListener” is already configured for this context. The duplicate definition has been ignored.
14 Jun 00:07:44 ERROR [geoserver.global] -

  • GEOSERVER_DATA_DIR: C:\cygwin\opt\apache-tomcat-6.0.16\webapps\geoserver\data

14 Jun 00:07:44 INFO [geoserver.catalog] - Loaded namespace ‘it.geosolutions’ (http://www.geo-solutions.it)
14 Jun 00:07:44 INFO [geoserver.catalog] - Loaded namespace ‘topp’ (http://www.openplans.org/topp)
14 Jun 00:07:44 INFO [geoserver.catalog] - Default namespace: ‘topp’
14 Jun 00:07:44 INFO [geoserver.catalog] - Loaded style ‘polygon’
14 Jun 00:07:44 INFO [geoserver.catalog] - Loaded style ‘raster’
14 Jun 00:07:44 INFO [geoserver.catalog] - Loaded style ‘point’
14 Jun 00:07:44 INFO [geoserver.catalog] - Loaded style ‘line’

14 Jun 00:07:44 WARN [support.DisposableBeanAdapter] - Invocation of destroy method failed on bean with name ‘geoServerLoader’: org.springframework.beans.factory.Be <http://org.springframework.beans.factory.Be>

anCreationNotAllowedException: Error creating bean with name ‘wcsLoader’: Singleton bean creation not allowed while the singletons of this factory are in destructio
n (Do not request a bean from a BeanFactory in a destroy method implementation!)
14 Jun 00:07:44 ERROR [context.ContextLoader] - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘applicationState’ defined in URL [file:/C:/cygwin/opt/apache-tomcat-6.0.16/w
ebapps/geoserver/WEB-INF/classes/applicationContext.xml]: Cannot resolve reference to bean ‘data’ while setting constructor argument; nested exception is org.spring
framework.beans.factory.BeanCreationException: Error creating bean with name ‘data’ defined in URL [jar:file:/C:/cygwin/opt/apache-tomcat-6.0.16/webapps/geoserver/W
EB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]: Cannot resolve reference to bean ‘geoServer2’ while setting constructor argument; nested exception is o
rg.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘geoServer2’ defined in URL [jar:file:/C:/cygwin/opt/apache-tomcat-6.0.16/weba
pps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.RuntimeException: java.lang
.NullPointerException
Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘secureCatalog’ defined in URL [jar:file:/C:/cygwin/o
pt/apache-tomcat-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]: Unsatisfied dependency expressed through constructor argumen
t with index 1 of type [org.geoserver.security.DataAccessManager]: Ambiguous constructor argument types - did you specify the correct bean references as constructor
arguments?
Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘secureCatalog’ defined in URL [jar:file:/C:/cygwin/o
pt/apache-tomcat-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]: Unsatisfied dependency expressed through constructor argumen
t with index 1 of type [org.geoserver.security.DataAccessManager]: Ambiguous constructor argument types - did you specify the correct bean references as constructor
arguments?
Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘secureCatalog’ defined in URL [jar:file:/C:/cygwin/o
pt/apache-tomcat-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]: Unsatisfied dependency expressed through constructor argumen
t with index 1 of type [org.geoserver.security.DataAccessManager]: Ambiguous constructor argument types - did you specify the correct bean references as constructor
arguments?
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:474)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:160)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:893)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:803)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:430)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:254)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:198)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:829)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:718)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘data’ defined in URL [jar:file:/C:/cygwin/opt/apache-tomcat-6.0.1
6/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]: Cannot resolve reference to bean ‘geoServer2’ while setting constructor argument;
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘geoServer2’ defined in URL [jar:file:/C:/cygwin/opt/apac
he-tomcat-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.Runtim
eException: java.lang.NullPointerException
Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘secureCatalog’ defined in URL [jar:file:/C:/cygwin/o
pt/apache-tomcat-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]: Unsatisfied dependency expressed through constructor argumen
t with index 1 of type [org.geoserver.security.DataAccessManager]: Ambiguous constructor argument types - did you specify the correct bean references as constructor
arguments?
Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘secureCatalog’ defined in URL [jar:file:/C:/cygwin/o
pt/apache-tomcat-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]: Unsatisfied dependency expressed through constructor argumen
t with index 1 of type [org.geoserver.security.DataAccessManager]: Ambiguous constructor argument types - did you specify the correct bean references as constructor
arguments?
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:474)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:160)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:893)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:803)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
… 44 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘geoServer2’ defined in URL [jar:file:/C:/cygwin/opt/apache-tomcat
-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.RuntimeExceptio
n: java.lang.NullPointerException
Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘secureCatalog’ defined in URL [jar:file:/C:/cygwin/o
pt/apache-tomcat-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]: Unsatisfied dependency expressed through constructor argumen
t with index 1 of type [org.geoserver.security.DataAccessManager]: Ambiguous constructor argument types - did you specify the correct bean references as constructor
arguments?
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:470)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
… 59 more
Caused by: java.lang.RuntimeException: java.lang.NullPointerException
at org.geoserver.config.GeoServerLoader.initialize(GeoServerLoader.java:87)
at org.geoserver.config.GeoServerLoader.postProcessBeforeInitialization(GeoServerLoader.java:67)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFacto
ry.java:346)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1295)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:463)
… 68 more
Caused by: java.lang.NullPointerException
at org.geoserver.catalog.util.LegacyCatalogImporter.imprt(LegacyCatalogImporter.java:137)
at org.geoserver.config.GeoServerLoader.initialize(GeoServerLoader.java:84)
… 72 more
Related cause:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘secureCatalog’ defined in URL [jar:file:/C:/cygwin/opt/apache-tomca
t-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]: Unsatisfied dependency expressed through constructor argument with index 1
of type [org.geoserver.security.DataAccessManager]: Ambiguous constructor argument types - did you specify the correct bean references as constructor arguments?
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:556)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:190)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:893)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:803)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1210)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:978)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:462)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:474)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:160)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:893)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:803)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:474)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:160)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:893)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:803)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:430)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:254)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:198)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:829)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:718)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Jun 14, 2008 12:07:44 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Jun 14, 2008 12:07:44 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/geoserver] startup failed due to previous errors

Christopher Thatcher !DSPAM:4040,4853496388715219720167!


Check out the new SourceForge.net Marketplace.
It’s the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php

!DSPAM:4040,4853496388715219720167!


Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

!DSPAM:4040,4853496388715219720167!


Christopher Thatcher


Christopher Thatcher

No, that message is not an error. You could double-check that the indicated directory is a valid data_dir (ie has a similar structure to http://svn.codehaus.org/geoserver/trunk/configuration/release/ . In fact, it should be a copy of http://svn.codehaus.org/geoserver/trunk/configuration/minimal unless you have specified otherwise.

I know that GeoServer + Windows Vista + Java 1.6 works fine for one of the OpenGeo employees, but he is not using cygwin. Just for kicks, could you try running a 'normal' windows tomcat instance without cygwin?

-David

chris thatcher wrote:

    Thanks David, In particular it's really nice to know you can
    develop with jetty. I cleaned out my source tree and rechecked
    out from svn, cleaned out webapps, as well as work/Catalina, used
    jetty, renaming the war and still get these error in all cases. I
    am on Vista with cygwin and java 1.6 but wouldn't expect any
    issues there. Do the Spring configuration error for bean creation
    seem unusual to you? I'm not used to so many bean refs as
    constructor args so it's harder to see common issues I've run into
    before. I'm particulary confused by the first error regarding
    GEOSERVER_DATA_DIR

    14 Jun 23:52:38 ERROR [geoserver.global] -

    ----------------------------------
    - GEOSERVER_DATA_DIR:
    C:\cygwin\opt\apache-tomcat-6.0.16\webapps\geoserver\data
    ----------------------------------

    Is this really an error message or just logged at that level?

    On Sat, Jun 14, 2008 at 8:32 AM, David Winslow
    <dwinslow@anonymised.com <mailto:dwinslow@anonymised.com>> wrote:

        I don't have any such issues building the latest revision
        (r9263) and deploying in tomcat, or just running with the
        maven jetty:run task. Could you try completely cleaning out
        the geoserver dir in webapps to ensure there aren't any stale
        jars there? (Equivalently, just rename the geoserver war file
        so that it is deployed under a different context.)

        By the way, a couple of things about maven:
        1. 'mvn clean' is also affected by profiles and environment
        variables. So when you just do 'mvn clean' the optional
        modules that are disabled by default (like rest and
        RESTConfig) will not be cleaned. Maven supports multiple
        targets in a single invocation so you can just do 'mvn clean
        install -Prest,RESTConfig'
        2. Since restructuring the community modules to use profiles,
        the environment variable community has no effect, so you can
        leave out the '-Dcommunity' entirely.

        -David

        chris thatcher wrote:

            I'm relatively new to building geoserver from source so
            I'm not comfortable filing a bug until I make sure I'm not
            making basic mistakes myself. In particular David Winslow
            helped me today by correcting some errors in the build for
            the RESTConfig and rest community modules. I svn up'd,
            did a mvn clean and finally a mvn install -Dcommunity -P
            RESTConfig,rest

            When I deployed the war to tomcat I get a bunch of Spring
            configuration errors (which I pasted in below.) I'm
            familiar with Spring but because I'm just getting to know
            the code I thought someone might see something obvious to
            them that would take me awhile to track down.

            INFO: Deploying web application archive geoserver.war
            Jun 14, 2008 12:07:42 AM
            org.apache.catalina.core.StandardContext
            addApplicationListener
            INFO: The listener
            "org.geoserver.GeoserverInitStartupListener" is already
            configured for this context. The duplicate definition has
            been ignored.
            Jun 14, 2008 12:07:42 AM
            org.apache.catalina.core.StandardContext
            addApplicationListener
            INFO: The listener
            "org.geoserver.logging.LoggingStartupContextListener" is
            already configured for this context. The duplicate
            definition has been ignored.
            Jun 14, 2008 12:07:42 AM
            org.apache.catalina.core.StandardContext
            addApplicationListener
            INFO: The listener
            "org.springframework.web.context.ContextLoaderListener" is
            already configured for this context. The duplicate
            definition has been ignored.
            14 Jun 00:07:44 ERROR [geoserver.global] -
            ----------------------------------
            - GEOSERVER_DATA_DIR:
            C:\cygwin\opt\apache-tomcat-6.0.16\webapps\geoserver\data
            ----------------------------------
            14 Jun 00:07:44 INFO [geoserver.catalog] - Loaded
            namespace 'it.geosolutions' (http://www.geo-solutions.it)
            14 Jun 00:07:44 INFO [geoserver.catalog] - Loaded
            namespace 'topp' (http://www.openplans.org/topp)
            14 Jun 00:07:44 INFO [geoserver.catalog] - Default
            namespace: 'topp'
            14 Jun 00:07:44 INFO [geoserver.catalog] - Loaded style
            'polygon'
            14 Jun 00:07:44 INFO [geoserver.catalog] - Loaded style
            'raster'
            14 Jun 00:07:44 INFO [geoserver.catalog] - Loaded style
            'point'
            14 Jun 00:07:44 INFO [geoserver.catalog] - Loaded style 'line'
            14 Jun 00:07:44 WARN [support.DisposableBeanAdapter] -
            Invocation of destroy method failed on bean with name
            'geoServerLoader': org.springframework.beans.factory.Be
            <http://org.springframework.beans.factory.Be>

            anCreationNotAllowedException: Error creating bean with
            name 'wcsLoader': Singleton bean creation not allowed
            while the singletons of this factory are in destructio
            n (Do not request a bean from a BeanFactory in a destroy
            method implementation!)
            14 Jun 00:07:44 ERROR [context.ContextLoader] - Context
            initialization failed
            org.springframework.beans.factory.BeanCreationException:
            Error creating bean with name 'applicationState' defined
            in URL [file:/C:/cygwin/opt/apache-tomcat-6.0.16/w
            ebapps/geoserver/WEB-INF/classes/applicationContext.xml]:
            Cannot resolve reference to bean 'data' while setting
            constructor argument; nested exception is org.spring
            framework.beans.factory.BeanCreationException: Error
            creating bean with name 'data' defined in URL
            [jar:file:/C:/cygwin/opt/apache-tomcat-6.0.16/webapps/geoserver/W
            EB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]:
            Cannot resolve reference to bean 'geoServer2' while
            setting constructor argument; nested exception is o
            rg.springframework.beans.factory.BeanCreationException:
            Error creating bean with name 'geoServer2' defined in URL
            [jar:file:/C:/cygwin/opt/apache-tomcat-6.0.16/weba
            pps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]:
            Initialization of bean failed; nested exception is
            java.lang.RuntimeException: java.lang
            .NullPointerException
            Related cause:
            org.springframework.beans.factory.UnsatisfiedDependencyException:
            Error creating bean with name 'secureCatalog' defined in
            URL [jar:file:/C:/cygwin/o
            pt/apache-tomcat-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]:
            Unsatisfied dependency expressed through constructor argumen
            t with index 1 of type
            [org.geoserver.security.DataAccessManager]: Ambiguous
            constructor argument types - did you specify the correct
            bean references as constructor
             arguments?
            Related cause:
            org.springframework.beans.factory.UnsatisfiedDependencyException:
            Error creating bean with name 'secureCatalog' defined in
            URL [jar:file:/C:/cygwin/o
            pt/apache-tomcat-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]:
            Unsatisfied dependency expressed through constructor argumen
            t with index 1 of type
            [org.geoserver.security.DataAccessManager]: Ambiguous
            constructor argument types - did you specify the correct
            bean references as constructor
             arguments?
            Related cause:
            org.springframework.beans.factory.UnsatisfiedDependencyException:
            Error creating bean with name 'secureCatalog' defined in
            URL [jar:file:/C:/cygwin/o
            pt/apache-tomcat-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]:
            Unsatisfied dependency expressed through constructor argumen
            t with index 1 of type
            [org.geoserver.security.DataAccessManager]: Ambiguous
            constructor argument types - did you specify the correct
            bean references as constructor
             arguments?
                   at
            org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
                   at
            org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
                   at
            org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:474)
                   at
            org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:160)
                   at
            org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:893)
                   at
            org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:803)
                   at
            org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437)
                   at
            org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)
                   at
            java.security.AccessController.doPrivileged(Native Method)
                   at
            org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)
                   at
            org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)
                   at
            org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)
                   at
            org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)
                   at
            org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)
                   at
            org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
                   at
            org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:430)
                   at
            org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
                   at
            org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
                   at
            org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:254)
                   at
            org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:198)
                   at
            org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
                   at
            org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
                   at
            org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
                   at
            org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
                   at
            org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
                   at
            org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
                   at
            org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:829)
                   at
            org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:718)
                   at
            org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
                   at
            org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
                   at
            org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
                   at
            org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
                   at
            org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
                   at
            org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
                   at
            org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
                   at
            org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
                   at
            org.apache.catalina.core.StandardService.start(StandardService.java:516)
                   at
            org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
                   at
            org.apache.catalina.startup.Catalina.start(Catalina.java:578)
                   at
            sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                   at
            sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                   at
            sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                   at java.lang.reflect.Method.invoke(Method.java:597)
                   at
            org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
                   at
            org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
            Caused by:
            org.springframework.beans.factory.BeanCreationException:
            Error creating bean with name 'data' defined in URL
            [jar:file:/C:/cygwin/opt/apache-tomcat-6.0.1
            6/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]:
            Cannot resolve reference to bean 'geoServer2' while
            setting constructor argument;
            nested exception is
            org.springframework.beans.factory.BeanCreationException:
            Error creating bean with name 'geoServer2' defined in URL
            [jar:file:/C:/cygwin/opt/apac
            he-tomcat-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]:
            Initialization of bean failed; nested exception is
            java.lang.Runtim
            eException: java.lang.NullPointerException
            Related cause:
            org.springframework.beans.factory.UnsatisfiedDependencyException:
            Error creating bean with name 'secureCatalog' defined in
            URL [jar:file:/C:/cygwin/o
            pt/apache-tomcat-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]:
            Unsatisfied dependency expressed through constructor argumen
            t with index 1 of type
            [org.geoserver.security.DataAccessManager]: Ambiguous
            constructor argument types - did you specify the correct
            bean references as constructor
             arguments?
            Related cause:
            org.springframework.beans.factory.UnsatisfiedDependencyException:
            Error creating bean with name 'secureCatalog' defined in
            URL [jar:file:/C:/cygwin/o
            pt/apache-tomcat-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]:
            Unsatisfied dependency expressed through constructor argumen
            t with index 1 of type
            [org.geoserver.security.DataAccessManager]: Ambiguous
            constructor argument types - did you specify the correct
            bean references as constructor
             arguments?
                   at
            org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
                   at
            org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
                   at
            org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:474)
                   at
            org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:160)
                   at
            org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:893)
                   at
            org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:803)
                   at
            org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437)
                   at
            org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)
                   at
            java.security.AccessController.doPrivileged(Native Method)
                   at
            org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)
                   at
            org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)
                   at
            org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)
                   at
            org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)
                   at
            org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)
                   at
            org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
                   at
            org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
                   ... 44 more
            Caused by:
            org.springframework.beans.factory.BeanCreationException:
            Error creating bean with name 'geoServer2' defined in URL
            [jar:file:/C:/cygwin/opt/apache-tomcat
            -6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]:
            Initialization of bean failed; nested exception is
            java.lang.RuntimeExceptio
            n: java.lang.NullPointerException
            Related cause:
            org.springframework.beans.factory.UnsatisfiedDependencyException:
            Error creating bean with name 'secureCatalog' defined in
            URL [jar:file:/C:/cygwin/o
            pt/apache-tomcat-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]:
            Unsatisfied dependency expressed through constructor argumen
            t with index 1 of type
            [org.geoserver.security.DataAccessManager]: Ambiguous
            constructor argument types - did you specify the correct
            bean references as constructor
             arguments?
                   at
            org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:470)
                   at
            org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)
                   at
            java.security.AccessController.doPrivileged(Native Method)
                   at
            org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)
                   at
            org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)
                   at
            org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)
                   at
            org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)
                   at
            org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)
                   at
            org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
                   at
            org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
                   ... 59 more
            Caused by: java.lang.RuntimeException:
            java.lang.NullPointerException
                   at
            org.geoserver.config.GeoServerLoader.initialize(GeoServerLoader.java:87)
                   at
            org.geoserver.config.GeoServerLoader.postProcessBeforeInitialization(GeoServerLoader.java:67)
                   at
            org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFacto
            ry.java:346)
                   at
            org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1295)
                   at
            org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:463)
                   ... 68 more
            Caused by: java.lang.NullPointerException
                   at
            org.geoserver.catalog.util.LegacyCatalogImporter.imprt(LegacyCatalogImporter.java:137)
                   at
            org.geoserver.config.GeoServerLoader.initialize(GeoServerLoader.java:84)
                   ... 72 more
            Related cause:
            org.springframework.beans.factory.UnsatisfiedDependencyException:
            Error creating bean with name 'secureCatalog' defined in
            URL [jar:file:/C:/cygwin/opt/apache-tomca
            t-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]:
            Unsatisfied dependency expressed through constructor
            argument with index 1
            of type [org.geoserver.security.DataAccessManager]:
            Ambiguous constructor argument types - did you specify the
            correct bean references as constructor arguments?
                   at
            org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:556)
                   at
            org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:190)
                   at
            org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:893)
                   at
            org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:803)
                   at
            org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437)
                   at
            org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)
                   at
            java.security.AccessController.doPrivileged(Native Method)
                   at
            org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)
                   at
            org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)
                   at
            org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)
                   at
            org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)
                   at
            org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)
                   at
            org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
                   at
            org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
                   at
            org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
                   at
            org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1210)
                   at
            org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:978)
                   at
            org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:462)
                   at
            org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)
                   at
            java.security.AccessController.doPrivileged(Native Method)
                   at
            org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)
                   at
            org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)
                   at
            org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)
                   at
            org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)
                   at
            org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)
                   at
            org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
                   at
            org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
                   at
            org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
                   at
            org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:474)
                   at
            org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:160)
                   at
            org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:893)
                   at
            org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:803)
                   at
            org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437)
                   at
            org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)
                   at
            java.security.AccessController.doPrivileged(Native Method)
                   at
            org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)
                   at
            org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)
                   at
            org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)
                   at
            org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)
                   at
            org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)
                   at
            org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
                   at
            org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
                   at
            org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
                   at
            org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:474)
                   at
            org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:160)
                   at
            org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:893)
                   at
            org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:803)
                   at
            org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437)
                   at
            org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)
                   at
            java.security.AccessController.doPrivileged(Native Method)
                   at
            org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)
                   at
            org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)
                   at
            org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)
                   at
            org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)
                   at
            org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)
                   at
            org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
                   at
            org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:430)
                   at
            org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
                   at
            org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
                   at
            org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:254)
                   at
            org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:198)
                   at
            org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
                   at
            org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
                   at
            org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
                   at
            org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
                   at
            org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
                   at
            org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
                   at
            org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:829)
                   at
            org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:718)
                   at
            org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
                   at
            org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
                   at
            org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
                   at
            org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
                   at
            org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
                   at
            org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
                   at
            org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
                   at
            org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
                   at
            org.apache.catalina.core.StandardService.start(StandardService.java:516)
                   at
            org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
                   at
            org.apache.catalina.startup.Catalina.start(Catalina.java:578)
                   at
            sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                   at
            sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                   at
            sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                   at java.lang.reflect.Method.invoke(Method.java:597)
                   at
            org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
                   at
            org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
            Jun 14, 2008 12:07:44 AM
            org.apache.catalina.core.StandardContext start
            SEVERE: Error listenerStart
            Jun 14, 2008 12:07:44 AM
            org.apache.catalina.core.StandardContext start
            SEVERE: Context [/geoserver] startup failed due to
            previous errors

            -- Christopher Thatcher
            ------------------------------------------------------------------------

            -------------------------------------------------------------------------
            Check out the new SourceForge.net Marketplace.
            It's the best place to buy or sell services for
            just about anything Open Source.
            http://sourceforge.net/services/buy/index.php

            !DSPAM:4040,4853496388715219720167!
             ------------------------------------------------------------------------

            _______________________________________________
            Geoserver-devel mailing list
            Geoserver-devel@lists.sourceforge.net
            <mailto:Geoserver-devel@lists.sourceforge.net>
            https://lists.sourceforge.net/lists/listinfo/geoserver-devel

            !DSPAM:4040,4853496388715219720167!
             
    -- Christopher Thatcher

--
Christopher Thatcher !DSPAM:4040,4854937b234635219720167!
------------------------------------------------------------------------

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php

!DSPAM:4040,4854937b234635219720167!
  ------------------------------------------------------------------------

_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

!DSPAM:4040,4854937b234635219720167!
  

Hmph, I tried rebuild everything from the regular windows shell, and running in jetty and tomcat using the bat startup files instead of the .sh files. I still get the same errors… :frowning: I don’t want sound silly but from these first few errors :

16 Jun 12:50:43 WARN [support.DisposableBeanAdapter] - Invocation of destroy method failed on bean with name ‘geoServerLoader’: org.springframework.beans.factory.Be
anCreationNotAllowedException: Error creating bean with name ‘wcsLoader’: Singleton bean creation not allowed while the singletons of this factory are in destructio
n (Do not request a bean from a BeanFactory in a destroy method implementation!)
16 Jun 12:50:43 ERROR [context.ContextLoader] - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘applicationState’ defined in URL [file:/C:/cygwin/opt/apache-tomcat-6.0.16/w
ebapps/geoserver/WEB-INF/classes/applicationContext.xml]: Cannot resolve reference to bean ‘data’ while setting constructor argument; nested exception is org.spring
framework.beans.factory.BeanCreationException: Error creating bean with name ‘data’ defined in URL [jar:file:/C:/cygwin/opt/apache-tomcat-6.0.16/webapps/geoserver/W
EB-INF/lib/main-1.8.0-SNAPSHOT.jar!/applicationContext.xml]: Cannot resolve reference to bean ‘geoServer2’ while setting constructor argument; nested exception is o
rg.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘geoServer2’ defined in URL [jar:file:/C:/cygwin/opt/apache-tomcat-6.0.16/weba
pps/geoserver/WEB-INF/lib/main-1.8.0-SNAPSHOT.jar!/applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.RuntimeException: java.lang
.NullPointerException

is it possible that I have hit a race condition in the way Spring is performing the dependency injection? And the error just causes a propogation of null pointers once the first failure results in a null container managed object?

Perhaps this evening I’ll try building and deploying trunk on my home machine with XP. I’m at a loss and don’t want to distract anyone from development tasks if we can’t reproduce the errors elsewhere.

Thatcher

On Sun, Jun 15, 2008 at 6:06 AM, David Winslow <dwinslow@anonymised.com> wrote:

No, that message is not an error. You could double-check that the indicated directory is a valid data_dir (ie has a similar structure to http://svn.codehaus.org/geoserver/trunk/configuration/release/ . In fact, it should be a copy of http://svn.codehaus.org/geoserver/trunk/configuration/minimal unless you have specified otherwise.

I know that GeoServer + Windows Vista + Java 1.6 works fine for one of the OpenGeo employees, but he is not using cygwin. Just for kicks, could you try running a ‘normal’ windows tomcat instance without cygwin?

-David

chris thatcher wrote:

Thanks David, In particular it’s really nice to know you can
develop with jetty. I cleaned out my source tree and rechecked
out from svn, cleaned out webapps, as well as work/Catalina, used
jetty, renaming the war and still get these error in all cases. I
am on Vista with cygwin and java 1.6 but wouldn’t expect any
issues there. Do the Spring configuration error for bean creation
seem unusual to you? I’m not used to so many bean refs as
constructor args so it’s harder to see common issues I’ve run into
before. I’m particulary confused by the first error regarding
GEOSERVER_DATA_DIR

14 Jun 23:52:38 ERROR [geoserver.global] -


  • GEOSERVER_DATA_DIR:
    C:\cygwin\opt\apache-tomcat-6.0.16\webapps\geoserver\data

Is this really an error message or just logged at that level?

On Sat, Jun 14, 2008 at 8:32 AM, David Winslow

<dwinslow@anonymised.com mailto:[dwinslow@anonymised.com](mailto:dwinslow@anonymised.com)> wrote:

I don’t have any such issues building the latest revision
(r9263) and deploying in tomcat, or just running with the
maven jetty:run task. Could you try completely cleaning out
the geoserver dir in webapps to ensure there aren’t any stale
jars there? (Equivalently, just rename the geoserver war file
so that it is deployed under a different context.)

By the way, a couple of things about maven:

  1. ‘mvn clean’ is also affected by profiles and environment
    variables. So when you just do ‘mvn clean’ the optional
    modules that are disabled by default (like rest and
    RESTConfig) will not be cleaned. Maven supports multiple
    targets in a single invocation so you can just do ‘mvn clean
    install -Prest,RESTConfig’
  2. Since restructuring the community modules to use profiles,
    the environment variable community has no effect, so you can
    leave out the ‘-Dcommunity’ entirely.

-David

chris thatcher wrote:

I’m relatively new to building geoserver from source so
I’m not comfortable filing a bug until I make sure I’m not
making basic mistakes myself. In particular David Winslow
helped me today by correcting some errors in the build for
the RESTConfig and rest community modules. I svn up’d,
did a mvn clean and finally a mvn install -Dcommunity -P
RESTConfig,rest

When I deployed the war to tomcat I get a bunch of Spring
configuration errors (which I pasted in below.) I’m
familiar with Spring but because I’m just getting to know
the code I thought someone might see something obvious to
them that would take me awhile to track down.

INFO: Deploying web application archive geoserver.war
Jun 14, 2008 12:07:42 AM
org.apache.catalina.core.StandardContext
addApplicationListener
INFO: The listener
“org.geoserver.GeoserverInitStartupListener” is already
configured for this context. The duplicate definition has
been ignored.
Jun 14, 2008 12:07:42 AM
org.apache.catalina.core.StandardContext
addApplicationListener
INFO: The listener
“org.geoserver.logging.LoggingStartupContextListener” is
already configured for this context. The duplicate
definition has been ignored.
Jun 14, 2008 12:07:42 AM
org.apache.catalina.core.StandardContext
addApplicationListener
INFO: The listener
“org.springframework.web.context.ContextLoaderListener” is
already configured for this context. The duplicate
definition has been ignored.
14 Jun 00:07:44 ERROR [geoserver.global] -

  • GEOSERVER_DATA_DIR:
    C:\cygwin\opt\apache-tomcat-6.0.16\webapps\geoserver\data

14 Jun 00:07:44 INFO [geoserver.catalog] - Loaded
namespace ‘it.geosolutions’ (http://www.geo-solutions.it)
14 Jun 00:07:44 INFO [geoserver.catalog] - Loaded
namespace ‘topp’ (http://www.openplans.org/topp)
14 Jun 00:07:44 INFO [geoserver.catalog] - Default
namespace: ‘topp’
14 Jun 00:07:44 INFO [geoserver.catalog] - Loaded style
‘polygon’
14 Jun 00:07:44 INFO [geoserver.catalog] - Loaded style
‘raster’
14 Jun 00:07:44 INFO [geoserver.catalog] - Loaded style
‘point’
14 Jun 00:07:44 INFO [geoserver.catalog] - Loaded style ‘line’
14 Jun 00:07:44 WARN [support.DisposableBeanAdapter] -
Invocation of destroy method failed on bean with name
‘geoServerLoader’: org.springframework.beans.factory.Be
<http://org.springframework.beans.factory.Be>
<http://org.springframework.beans.factory.Be>

anCreationNotAllowedException: Error creating bean with
name ‘wcsLoader’: Singleton bean creation not allowed
while the singletons of this factory are in destructio
n (Do not request a bean from a BeanFactory in a destroy
method implementation!)
14 Jun 00:07:44 ERROR [context.ContextLoader] - Context
initialization failed
org.springframework.beans.factory.BeanCreationException:
Error creating bean with name ‘applicationState’ defined
in URL [file:/C:/cygwin/opt/apache-tomcat-6.0.16/w
ebapps/geoserver/WEB-INF/classes/applicationContext.xml]:
Cannot resolve reference to bean ‘data’ while setting
constructor argument; nested exception is org.spring
framework.beans.factory.BeanCreationException: Error
creating bean with name ‘data’ defined in URL
[jar:file:/C:/cygwin/opt/apache-tomcat-6.0.16/webapps/geoserver/W
EB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]:
Cannot resolve reference to bean ‘geoServer2’ while
setting constructor argument; nested exception is o
rg.springframework.beans.factory.BeanCreationException:
Error creating bean with name ‘geoServer2’ defined in URL
[jar:file:/C:/cygwin/opt/apache-tomcat-6.0.16/weba
pps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]:
Initialization of bean failed; nested exception is
java.lang.RuntimeException: java.lang
.NullPointerException
Related cause:
org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name ‘secureCatalog’ defined in
URL [jar:file:/C:/cygwin/o
pt/apache-tomcat-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]:
Unsatisfied dependency expressed through constructor argumen
t with index 1 of type
[org.geoserver.security.DataAccessManager]: Ambiguous
constructor argument types - did you specify the correct
bean references as constructor
arguments?
Related cause:
org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name ‘secureCatalog’ defined in
URL [jar:file:/C:/cygwin/o
pt/apache-tomcat-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]:
Unsatisfied dependency expressed through constructor argumen
t with index 1 of type
[org.geoserver.security.DataAccessManager]: Ambiguous
constructor argument types - did you specify the correct
bean references as constructor
arguments?
Related cause:
org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name ‘secureCatalog’ defined in
URL [jar:file:/C:/cygwin/o
pt/apache-tomcat-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]:
Unsatisfied dependency expressed through constructor argumen
t with index 1 of type
[org.geoserver.security.DataAccessManager]: Ambiguous
constructor argument types - did you specify the correct
bean references as constructor
arguments?
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
at
org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:474)
at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:160)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:893)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:803)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)
at
java.security.AccessController.doPrivileged(Native Method)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:430)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:254)
at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:198)
at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:829)
at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:718)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at
org.apache.catalina.core.StandardService.start(StandardService.java:516)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at
org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by:
org.springframework.beans.factory.BeanCreationException:
Error creating bean with name ‘data’ defined in URL
[jar:file:/C:/cygwin/opt/apache-tomcat-6.0.1
6/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]:
Cannot resolve reference to bean ‘geoServer2’ while
setting constructor argument;
nested exception is
org.springframework.beans.factory.BeanCreationException:
Error creating bean with name ‘geoServer2’ defined in URL
[jar:file:/C:/cygwin/opt/apac
he-tomcat-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]:
Initialization of bean failed; nested exception is
java.lang.Runtim
eException: java.lang.NullPointerException
Related cause:
org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name ‘secureCatalog’ defined in
URL [jar:file:/C:/cygwin/o
pt/apache-tomcat-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]:
Unsatisfied dependency expressed through constructor argumen
t with index 1 of type
[org.geoserver.security.DataAccessManager]: Ambiguous
constructor argument types - did you specify the correct
bean references as constructor
arguments?
Related cause:
org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name ‘secureCatalog’ defined in
URL [jar:file:/C:/cygwin/o
pt/apache-tomcat-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]:
Unsatisfied dependency expressed through constructor argumen
t with index 1 of type
[org.geoserver.security.DataAccessManager]: Ambiguous
constructor argument types - did you specify the correct
bean references as constructor
arguments?
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
at
org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:474)
at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:160)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:893)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:803)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)
at
java.security.AccessController.doPrivileged(Native Method)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
… 44 more
Caused by:
org.springframework.beans.factory.BeanCreationException:
Error creating bean with name ‘geoServer2’ defined in URL
[jar:file:/C:/cygwin/opt/apache-tomcat
-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]:
Initialization of bean failed; nested exception is
java.lang.RuntimeExceptio
n: java.lang.NullPointerException
Related cause:
org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name ‘secureCatalog’ defined in
URL [jar:file:/C:/cygwin/o
pt/apache-tomcat-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]:
Unsatisfied dependency expressed through constructor argumen
t with index 1 of type
[org.geoserver.security.DataAccessManager]: Ambiguous
constructor argument types - did you specify the correct
bean references as constructor
arguments?
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:470)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)
at
java.security.AccessController.doPrivileged(Native Method)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
… 59 more
Caused by: java.lang.RuntimeException:
java.lang.NullPointerException
at
org.geoserver.config.GeoServerLoader.initialize(GeoServerLoader.java:87)
at
org.geoserver.config.GeoServerLoader.postProcessBeforeInitialization(GeoServerLoader.java:67)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFacto
ry.java:346)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1295)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:463)
… 68 more
Caused by: java.lang.NullPointerException
at
org.geoserver.catalog.util.LegacyCatalogImporter.imprt(LegacyCatalogImporter.java:137)
at
org.geoserver.config.GeoServerLoader.initialize(GeoServerLoader.java:84)
… 72 more
Related cause:
org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name ‘secureCatalog’ defined in
URL [jar:file:/C:/cygwin/opt/apache-tomca
t-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]:
Unsatisfied dependency expressed through constructor
argument with index 1
of type [org.geoserver.security.DataAccessManager]:
Ambiguous constructor argument types - did you specify the
correct bean references as constructor arguments?
at
org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:556)
at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:190)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:893)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:803)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)
at
java.security.AccessController.doPrivileged(Native Method)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1210)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:978)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:462)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)
at
java.security.AccessController.doPrivileged(Native Method)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
at
org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:474)
at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:160)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:893)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:803)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)
at
java.security.AccessController.doPrivileged(Native Method)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
at
org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:474)
at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:160)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:893)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:803)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)
at
java.security.AccessController.doPrivileged(Native Method)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:430)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:254)
at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:198)
at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:829)
at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:718)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at
org.apache.catalina.core.StandardService.start(StandardService.java:516)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at
org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Jun 14, 2008 12:07:44 AM
org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Jun 14, 2008 12:07:44 AM
org.apache.catalina.core.StandardContext start
SEVERE: Context [/geoserver] startup failed due to
previous errors

– Christopher Thatcher



Check out the new SourceForge.net Marketplace.
It’s the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php

!DSPAM:4040,4853496388715219720167!


Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net

mailto:[Geoserver-devel@lists.sourceforge.net](mailto:Geoserver-devel@lists.sourceforge.net)

https://lists.sourceforge.net/lists/listinfo/geoserver-devel

!DSPAM:4040,4853496388715219720167!

– Christopher Thatcher

Christopher Thatcher !DSPAM:4040,4854937b234635219720167!


Check out the new SourceForge.net Marketplace.
It’s the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php

!DSPAM:4040,4854937b234635219720167!


Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

!DSPAM:4040,4854937b234635219720167!


Christopher Thatcher

I'm having the exact same error - did you ever find a
solution.

Tried on Mac OS and Debian Sarge

Thanks,
Todd

chris thatcher-4 wrote:

I'm relatively new to building geoserver from source so I'm not
comfortable
filing a bug until I make sure I'm not making basic mistakes myself. In
particular David Winslow helped me today by correcting some errors in the
build for the RESTConfig and rest community modules. I svn up'd, did a
mvn
clean and finally a mvn install -Dcommunity -P RESTConfig,rest

When I deployed the war to tomcat I get a bunch of Spring configuration
errors (which I pasted in below.) I'm familiar with Spring but because
I'm
just getting to know the code I thought someone might see something
obvious
to them that would take me awhile to track down.

INFO: Deploying web application archive geoserver.war
Jun 14, 2008 12:07:42 AM org.apache.catalina.core.StandardContext
addApplicationListener
INFO: The listener "org.geoserver.GeoserverInitStartupListener" is already
configured for this context. The duplicate definition has been ignored.
Jun 14, 2008 12:07:42 AM org.apache.catalina.core.StandardContext
addApplicationListener
INFO: The listener "org.geoserver.logging.LoggingStartupContextListener"
is
already configured for this context. The duplicate definition has been
ignored.
Jun 14, 2008 12:07:42 AM org.apache.catalina.core.StandardContext
addApplicationListener
INFO: The listener "org.springframework.web.context.ContextLoaderListener"
is already configured for this context. The duplicate definition has been
ignored.
14 Jun 00:07:44 ERROR [geoserver.global] -
----------------------------------
- GEOSERVER_DATA_DIR:
C:\cygwin\opt\apache-tomcat-6.0.16\webapps\geoserver\data
----------------------------------
14 Jun 00:07:44 INFO [geoserver.catalog] - Loaded namespace
'it.geosolutions' (http://www.geo-solutions.it)
14 Jun 00:07:44 INFO [geoserver.catalog] - Loaded namespace 'topp' (
http://www.openplans.org/topp)
14 Jun 00:07:44 INFO [geoserver.catalog] - Default namespace: 'topp'
14 Jun 00:07:44 INFO [geoserver.catalog] - Loaded style 'polygon'
14 Jun 00:07:44 INFO [geoserver.catalog] - Loaded style 'raster'
14 Jun 00:07:44 INFO [geoserver.catalog] - Loaded style 'point'
14 Jun 00:07:44 INFO [geoserver.catalog] - Loaded style 'line'
14 Jun 00:07:44 WARN [support.DisposableBeanAdapter] - Invocation of
destroy
method failed on bean with name 'geoServerLoader':
org.springframework.beans.factory.Be
anCreationNotAllowedException: Error creating bean with name 'wcsLoader':
Singleton bean creation not allowed while the singletons of this factory
are
in destructio
n (Do not request a bean from a BeanFactory in a destroy method
implementation!)
14 Jun 00:07:44 ERROR [context.ContextLoader] - Context initialization
failed
org.springframework.beans.factory.BeanCreationException: Error creating
bean
with name 'applicationState' defined in URL
[file:/C:/cygwin/opt/apache-tomcat-6.0.16/w
ebapps/geoserver/WEB-INF/classes/applicationContext.xml]: Cannot resolve
reference to bean 'data' while setting constructor argument; nested
exception is org.spring
framework.beans.factory.BeanCreationException: Error creating bean with
name
'data' defined in URL
[jar:file:/C:/cygwin/opt/apache-tomcat-6.0.16/webapps/geoserver/W
EB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]: Cannot
resolve
reference to bean 'geoServer2' while setting constructor argument; nested
exception is o
rg.springframework.beans.factory.BeanCreationException: Error creating
bean
with name 'geoServer2' defined in URL
[jar:file:/C:/cygwin/opt/apache-tomcat-6.0.16/weba
pps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]:
Initialization of bean failed; nested exception is
java.lang.RuntimeException: java.lang
.NullPointerException
Related cause:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name 'secureCatalog' defined in URL
[jar:file:/C:/cygwin/o
pt/apache-tomcat-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]:
Unsatisfied dependency expressed through constructor argumen
t with index 1 of type [org.geoserver.security.DataAccessManager]:
Ambiguous
constructor argument types - did you specify the correct bean references
as
constructor
arguments?
Related cause:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name 'secureCatalog' defined in URL
[jar:file:/C:/cygwin/o
pt/apache-tomcat-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]:
Unsatisfied dependency expressed through constructor argumen
t with index 1 of type [org.geoserver.security.DataAccessManager]:
Ambiguous
constructor argument types - did you specify the correct bean references
as
constructor
arguments?
Related cause:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name 'secureCatalog' defined in URL
[jar:file:/C:/cygwin/o
pt/apache-tomcat-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]:
Unsatisfied dependency expressed through constructor argumen
t with index 1 of type [org.geoserver.security.DataAccessManager]:
Ambiguous
constructor argument types - did you specify the correct bean references
as
constructor
arguments?
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
        at
org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:474)
        at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:160)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:893)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:803)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)
        at java.security.AccessController.doPrivileged(Native Method)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
        at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:430)
        at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
        at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
        at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:254)
        at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:198)
        at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
        at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
        at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
        at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:829)
        at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:718)
        at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
        at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
        at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
        at
org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
        at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:516)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'data' defined in URL
[jar:file:/C:/cygwin/opt/apache-tomcat-6.0.1
6/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]:
Cannot resolve reference to bean 'geoServer2' while setting constructor
argument;
nested exception is
org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'geoServer2' defined in URL
[jar:file:/C:/cygwin/opt/apac
he-tomcat-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]:
Initialization of bean failed; nested exception is java.lang.Runtim
eException: java.lang.NullPointerException
Related cause:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name 'secureCatalog' defined in URL
[jar:file:/C:/cygwin/o
pt/apache-tomcat-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]:
Unsatisfied dependency expressed through constructor argumen
t with index 1 of type [org.geoserver.security.DataAccessManager]:
Ambiguous
constructor argument types - did you specify the correct bean references
as
constructor
arguments?
Related cause:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name 'secureCatalog' defined in URL
[jar:file:/C:/cygwin/o
pt/apache-tomcat-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]:
Unsatisfied dependency expressed through constructor argumen
t with index 1 of type [org.geoserver.security.DataAccessManager]:
Ambiguous
constructor argument types - did you specify the correct bean references
as
constructor
arguments?
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
        at
org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:474)
        at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:160)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:893)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:803)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)
        at java.security.AccessController.doPrivileged(Native Method)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
        ... 44 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'geoServer2' defined in URL
[jar:file:/C:/cygwin/opt/apache-tomcat
-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]:
Initialization of bean failed; nested exception is
java.lang.RuntimeExceptio
n: java.lang.NullPointerException
Related cause:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name 'secureCatalog' defined in URL
[jar:file:/C:/cygwin/o
pt/apache-tomcat-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]:
Unsatisfied dependency expressed through constructor argumen
t with index 1 of type [org.geoserver.security.DataAccessManager]:
Ambiguous
constructor argument types - did you specify the correct bean references
as
constructor
arguments?
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:470)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)
        at java.security.AccessController.doPrivileged(Native Method)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
        ... 59 more
Caused by: java.lang.RuntimeException: java.lang.NullPointerException
        at
org.geoserver.config.GeoServerLoader.initialize(GeoServerLoader.java:87)
        at
org.geoserver.config.GeoServerLoader.postProcessBeforeInitialization(GeoServerLoader.java:67)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFacto
ry.java:346)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1295)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:463)
        ... 68 more
Caused by: java.lang.NullPointerException
        at
org.geoserver.catalog.util.LegacyCatalogImporter.imprt(LegacyCatalogImporter.java:137)
        at
org.geoserver.config.GeoServerLoader.initialize(GeoServerLoader.java:84)
        ... 72 more
Related cause:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name 'secureCatalog' defined in URL
[jar:file:/C:/cygwin/opt/apache-tomca
t-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]:
Unsatisfied dependency expressed through constructor argument with index 1
of type [org.geoserver.security.DataAccessManager]: Ambiguous constructor
argument types - did you specify the correct bean references as
constructor
arguments?
        at
org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:556)
        at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:190)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:893)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:803)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)
        at java.security.AccessController.doPrivileged(Native Method)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1210)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:978)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:462)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)
        at java.security.AccessController.doPrivileged(Native Method)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
        at
org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:474)
        at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:160)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:893)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:803)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)
        at java.security.AccessController.doPrivileged(Native Method)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
        at
org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:474)
        at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:160)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:893)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:803)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)
        at java.security.AccessController.doPrivileged(Native Method)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
        at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:430)
        at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
        at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
        at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:254)
        at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:198)
        at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
        at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
        at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
        at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:829)
        at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:718)
        at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
        at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
        at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
        at
org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
        at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:516)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Jun 14, 2008 12:07:44 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Jun 14, 2008 12:07:44 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/geoserver] startup failed due to previous errors

--
Christopher Thatcher

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--
View this message in context: http://www.nabble.com/Spring-errors-deploying-1.7-snapshot-geoserver.war-tp17835818p18323411.html
Sent from the GeoServer - Dev mailing list archive at Nabble.com.

todd-ncar ha scritto:
......

org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name 'secureCatalog' defined in URL
[jar:file:/C:/cygwin/o
pt/apache-tomcat-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]:
Unsatisfied dependency expressed through constructor argumen
t with index 1 of type [org.geoserver.security.DataAccessManager]:
Ambiguous
constructor argument types - did you specify the correct bean references
as
constructor
arguments?

This is strange, it seems Spring is picking up the wrong constructor.
There are two in that class, one takes just a catalog reference, the
other a catalog reference and a data access manager.
The Spring declaration is:

<bean id="rawCatalog" class="org.geoserver.catalog.impl.CatalogImpl"/>
<bean id="secureCatalog" class="org.geoserver.security.SecureCatalogImpl">
     <constructor-arg index="0" ref="rawCatalog" />
</bean>

Why in your case Spring is trying to use the other constructor is
something I don't know... anyone with a clue?
Cheers
Andrea

chris thatcher ha scritto:

I'll try this today, but I'm wondering if removing the "index='0'" on the constructor arg injections will remove the confusion... It doesn't explain why but I think it will force spring to unambigiously use the single argument constructor in the IoC container. I'll let you know...

Hum, tried that, but I managed to reproduce random failures with it
too. I then changed the visibility of the constructor taking two
arguments to "default", since that constructor is just used for
tests anyways, and it seems I'm getting good results reproducably...

If I don't hear anything else, I'll commit the change along with
the big bad mass of security related changes I talked about in
a previous mail (the one titled "Some amendments to the per layer security proposal").

Cheers
Andrea

Guys,

Is there a simple change I can make to applicationContext.xml as a
temporary remedy, this one's been holding us up for a while.

Thanks,
Todd

chris thatcher-4 wrote:

I'm relatively new to building geoserver from source so I'm not
comfortable
filing a bug until I make sure I'm not making basic mistakes myself. In
particular David Winslow helped me today by correcting some errors in the
build for the RESTConfig and rest community modules. I svn up'd, did a
mvn
clean and finally a mvn install -Dcommunity -P RESTConfig,rest

When I deployed the war to tomcat I get a bunch of Spring configuration
errors (which I pasted in below.) I'm familiar with Spring but because
I'm
just getting to know the code I thought someone might see something
obvious
to them that would take me awhile to track down.

INFO: Deploying web application archive geoserver.war
Jun 14, 2008 12:07:42 AM org.apache.catalina.core.StandardContext
addApplicationListener
INFO: The listener "org.geoserver.GeoserverInitStartupListener" is already
configured for this context. The duplicate definition has been ignored.
Jun 14, 2008 12:07:42 AM org.apache.catalina.core.StandardContext
addApplicationListener
INFO: The listener "org.geoserver.logging.LoggingStartupContextListener"
is
already configured for this context. The duplicate definition has been
ignored.
Jun 14, 2008 12:07:42 AM org.apache.catalina.core.StandardContext
addApplicationListener
INFO: The listener "org.springframework.web.context.ContextLoaderListener"
is already configured for this context. The duplicate definition has been
ignored.
14 Jun 00:07:44 ERROR [geoserver.global] -
----------------------------------
- GEOSERVER_DATA_DIR:
C:\cygwin\opt\apache-tomcat-6.0.16\webapps\geoserver\data
----------------------------------
14 Jun 00:07:44 INFO [geoserver.catalog] - Loaded namespace
'it.geosolutions' (http://www.geo-solutions.it)
14 Jun 00:07:44 INFO [geoserver.catalog] - Loaded namespace 'topp' (
http://www.openplans.org/topp)
14 Jun 00:07:44 INFO [geoserver.catalog] - Default namespace: 'topp'
14 Jun 00:07:44 INFO [geoserver.catalog] - Loaded style 'polygon'
14 Jun 00:07:44 INFO [geoserver.catalog] - Loaded style 'raster'
14 Jun 00:07:44 INFO [geoserver.catalog] - Loaded style 'point'
14 Jun 00:07:44 INFO [geoserver.catalog] - Loaded style 'line'
14 Jun 00:07:44 WARN [support.DisposableBeanAdapter] - Invocation of
destroy
method failed on bean with name 'geoServerLoader':
org.springframework.beans.factory.Be
anCreationNotAllowedException: Error creating bean with name 'wcsLoader':
Singleton bean creation not allowed while the singletons of this factory
are
in destructio
n (Do not request a bean from a BeanFactory in a destroy method
implementation!)
14 Jun 00:07:44 ERROR [context.ContextLoader] - Context initialization
failed
org.springframework.beans.factory.BeanCreationException: Error creating
bean
with name 'applicationState' defined in URL
[file:/C:/cygwin/opt/apache-tomcat-6.0.16/w
ebapps/geoserver/WEB-INF/classes/applicationContext.xml]: Cannot resolve
reference to bean 'data' while setting constructor argument; nested
exception is org.spring
framework.beans.factory.BeanCreationException: Error creating bean with
name
'data' defined in URL
[jar:file:/C:/cygwin/opt/apache-tomcat-6.0.16/webapps/geoserver/W
EB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]: Cannot
resolve
reference to bean 'geoServer2' while setting constructor argument; nested
exception is o
rg.springframework.beans.factory.BeanCreationException: Error creating
bean
with name 'geoServer2' defined in URL
[jar:file:/C:/cygwin/opt/apache-tomcat-6.0.16/weba
pps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]:
Initialization of bean failed; nested exception is
java.lang.RuntimeException: java.lang
.NullPointerException
Related cause:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name 'secureCatalog' defined in URL
[jar:file:/C:/cygwin/o
pt/apache-tomcat-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]:
Unsatisfied dependency expressed through constructor argumen
t with index 1 of type [org.geoserver.security.DataAccessManager]:
Ambiguous
constructor argument types - did you specify the correct bean references
as
constructor
arguments?
Related cause:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name 'secureCatalog' defined in URL
[jar:file:/C:/cygwin/o
pt/apache-tomcat-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]:
Unsatisfied dependency expressed through constructor argumen
t with index 1 of type [org.geoserver.security.DataAccessManager]:
Ambiguous
constructor argument types - did you specify the correct bean references
as
constructor
arguments?
Related cause:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name 'secureCatalog' defined in URL
[jar:file:/C:/cygwin/o
pt/apache-tomcat-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]:
Unsatisfied dependency expressed through constructor argumen
t with index 1 of type [org.geoserver.security.DataAccessManager]:
Ambiguous
constructor argument types - did you specify the correct bean references
as
constructor
arguments?
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
        at
org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:474)
        at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:160)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:893)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:803)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)
        at java.security.AccessController.doPrivileged(Native Method)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
        at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:430)
        at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
        at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
        at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:254)
        at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:198)
        at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
        at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
        at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
        at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:829)
        at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:718)
        at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
        at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
        at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
        at
org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
        at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:516)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'data' defined in URL
[jar:file:/C:/cygwin/opt/apache-tomcat-6.0.1
6/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]:
Cannot resolve reference to bean 'geoServer2' while setting constructor
argument;
nested exception is
org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'geoServer2' defined in URL
[jar:file:/C:/cygwin/opt/apac
he-tomcat-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]:
Initialization of bean failed; nested exception is java.lang.Runtim
eException: java.lang.NullPointerException
Related cause:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name 'secureCatalog' defined in URL
[jar:file:/C:/cygwin/o
pt/apache-tomcat-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]:
Unsatisfied dependency expressed through constructor argumen
t with index 1 of type [org.geoserver.security.DataAccessManager]:
Ambiguous
constructor argument types - did you specify the correct bean references
as
constructor
arguments?
Related cause:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name 'secureCatalog' defined in URL
[jar:file:/C:/cygwin/o
pt/apache-tomcat-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]:
Unsatisfied dependency expressed through constructor argumen
t with index 1 of type [org.geoserver.security.DataAccessManager]:
Ambiguous
constructor argument types - did you specify the correct bean references
as
constructor
arguments?
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
        at
org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:474)
        at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:160)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:893)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:803)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)
        at java.security.AccessController.doPrivileged(Native Method)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
        ... 44 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'geoServer2' defined in URL
[jar:file:/C:/cygwin/opt/apache-tomcat
-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]:
Initialization of bean failed; nested exception is
java.lang.RuntimeExceptio
n: java.lang.NullPointerException
Related cause:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name 'secureCatalog' defined in URL
[jar:file:/C:/cygwin/o
pt/apache-tomcat-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]:
Unsatisfied dependency expressed through constructor argumen
t with index 1 of type [org.geoserver.security.DataAccessManager]:
Ambiguous
constructor argument types - did you specify the correct bean references
as
constructor
arguments?
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:470)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)
        at java.security.AccessController.doPrivileged(Native Method)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
        ... 59 more
Caused by: java.lang.RuntimeException: java.lang.NullPointerException
        at
org.geoserver.config.GeoServerLoader.initialize(GeoServerLoader.java:87)
        at
org.geoserver.config.GeoServerLoader.postProcessBeforeInitialization(GeoServerLoader.java:67)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFacto
ry.java:346)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1295)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:463)
        ... 68 more
Caused by: java.lang.NullPointerException
        at
org.geoserver.catalog.util.LegacyCatalogImporter.imprt(LegacyCatalogImporter.java:137)
        at
org.geoserver.config.GeoServerLoader.initialize(GeoServerLoader.java:84)
        ... 72 more
Related cause:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name 'secureCatalog' defined in URL
[jar:file:/C:/cygwin/opt/apache-tomca
t-6.0.16/webapps/geoserver/WEB-INF/lib/main-1.7.0-SNAPSHOT.jar!/applicationContext.xml]:
Unsatisfied dependency expressed through constructor argument with index 1
of type [org.geoserver.security.DataAccessManager]: Ambiguous constructor
argument types - did you specify the correct bean references as
constructor
arguments?
        at
org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:556)
        at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:190)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:893)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:803)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)
        at java.security.AccessController.doPrivileged(Native Method)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1210)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:978)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:462)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)
        at java.security.AccessController.doPrivileged(Native Method)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
        at
org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:474)
        at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:160)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:893)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:803)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)
        at java.security.AccessController.doPrivileged(Native Method)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
        at
org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:474)
        at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:160)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:893)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:803)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)
        at java.security.AccessController.doPrivileged(Native Method)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:375)
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:170)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:260)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:184)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163)
        at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:430)
        at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
        at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
        at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:254)
        at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:198)
        at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
        at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
        at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
        at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:829)
        at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:718)
        at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
        at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
        at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
        at
org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
        at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:516)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Jun 14, 2008 12:07:44 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Jun 14, 2008 12:07:44 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/geoserver] startup failed due to previous errors

--
Christopher Thatcher

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--
View this message in context: http://www.nabble.com/Spring-errors-deploying-1.7-snapshot-geoserver.war-tp17835818p18363285.html
Sent from the GeoServer - Dev mailing list archive at Nabble.com.

todd-ncar ha scritto:

Guys,

Is there a simple change I can make to applicationContext.xml as a
temporary remedy, this one's been holding us up for a while.

Try updating, I believe one change I made should make that
error go away (finger crossed)
Cheers
Andrea

Andrea Aime ha scritto:

todd-ncar ha scritto:

Guys,

Is there a simple change I can make to applicationContext.xml as a
temporary remedy, this one's been holding us up for a while.

Try updating, I believe one change I made should make that
error go away (finger crossed)

I actually managed to reproduce this once more, this time I upgraded
the Spring version and it finally deploys fine in Tomcat 6 too.
Can you give it a kick and see if it works for you too?

Cheers
Andrea