Hi Nicholas,
Have you been playing with data directories between geoserver version. Or
have you by any chance been manually copying files between them? That
message might indicate that some references between configuration entities
(datastores and feature types) might be off.
I would check manually. Find the featureytpe.xml file for the layer that is
failing. And note its reference to its containing datastore. Then find the
datastore.xml file (one directory out) and check that the ids match.
-Justin
On Thu, Dec 23, 2010 at 8:47 AM, Nicholas Whittier <
[email protected]> wrote:
> All,
>
> I'm using the 2.1 beta builds to make use of the new SQL View
> functionality. The problem I'm encountering is that once a PostGIS
> layer is generated in the 2.1-beta3 (it also happens in 2.1-beta1, I did
> not use the beta2 release.), if tomcat is restarted, the geoserver
> webapp fails to load. Note that the layer does not need to be a SQL
> View layer. Also, deleting all the layer directories (just the layers,
> it can still launch with the PostGIS data store present in the data
> directory) from the data directory will allow geoserver to start again.
>
> This happens on CentOS 5.5 64 bit, using the Sun 1.6 JDK (occurs with
> both 32 and 64-bit). I am not able to get this to occur on Ubuntu 10.04
> LTS, although that's my dev machine, and I may have stray libs loaded
> that are not present on the CentOS server. Haven't tried any other
> distros. Tomcat version is 6.0.20 on each. The abridged catalina.out
> logs are below, any pointers are greatly appreciated.
>
> -- Nicholas
>
>
>
> 22 Dec 15:40:28 ERROR [geoserver.global] -
> ----------------------------------
> - GEOSERVER_DATA_DIR: /usr/share/tomcat_geoserver2.1/webapps/geobeta/data
> ----------------------------------
> 22 Dec 15:40:28 INFO [org.geoserver] - Loaded style 'burg'
> ... [MORE STYLES, LAYERS, STORES]
> 22 Dec 15:40:28 INFO [org.geoserver] - Loaded data store 'nyc'
> 22 Dec 15:40:28 WARN [referencing.factory] - Axis elements found in a
> wkt definition, the force longitude first axis order hint might not be
> respected:
> PROJCS["WGS84 / Simple Mercator", GEOGCS["WGS 84", DATUM["WGS_1984",
> SPHEROID["WGS_1984", 6378137.0, 298.257223563]], PRIMEM["Greenwich",
> 0.0], UNIT["degree", 0.017453292519943295]],
> PROJECTION["Mercator_1SP_Google"], PARAMETER["latitude_of_origin", 0.0],
> PARAMETER["central_meridian", 0.0], PARAMETER["scale_factor", 1.0],
> PARAMETER["false_easting", 0.0], PARAMETER["false_northing", 0.0],
> UNIT["m", 1.0], AXIS["x", EAST], AXIS["y", NORTH],
> AUTHORITY["EPSG","54004"]]
> 22 Dec 15:40:28 INFO [org.geoserver] - Loaded feature type
> 'tiger_roads', enabled
> ... [MORE STYLES, LAYERS, STORES]
> 22 Dec 15:40:29 INFO [org.geoserver] - Loaded feature type 'sf'
> 22 Dec 15:40:29 INFO [org.geoserver] - Loaded layer 'roads'
> 22 Dec 15:40:29 INFO [org.geoserver] - Loaded store
> 'myPostGISDataStore', enabled
> 22 Dec 15:40:29 INFO [org.geoserver] - Loaded data store
> 'myPostGISDataStore'
> 22 Dec 15:40:29 INFO [org.geoserver] - Loaded feature type
> 'aPostGISLayer', enabled
> 22 Dec 15:40:29 INFO [org.geoserver] - Loaded feature type
> 'myPostGISDataStore'
> 22 Dec 15:40:29 INFO [org.geoserver] - Loaded layer 'aPostGISLayer'
> 22 Dec 15:40:29 INFO [org.geoserver] - Loaded feature type
> 'anotherPostGISLayer', enabled
> 22 Dec 15:40:29 WARN [support.DisposableBeanAdapter] - Invocation of
> destroy method failed on bean with name 'geoServerLoader':
> java.lang.NullPointerException
> 22 Dec 15:40:29 ERROR [context.ContextLoader] - Context initialization
> failed
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'gwcCatalogConfiguration' defined in URL
>
> [jar:file:/usr/share/tomcat_geoserver2.1/webapps/geobeta/WEB-INF/lib/gwc-2.1-beta3.jar!/geowebcache-geoserver-context.xml]:
> Cannot resolve reference to bean 'rawCatalog' while setting constructor
> argument; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'rawCatalog' defined in URL
>
> [jar:file:/usr/share/tomcat_geoserver2.1/webapps/geobeta/WEB-INF/lib/main-2.1-beta3.jar!/applicationContext.xml]:
> Initialization of bean failed; nested exception is
> java.lang.RuntimeException: java.lang.IllegalArgumentException: Resource
> must be part of a store
> 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:495)
> at
>
> org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:162)
> at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925)
> at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835)
> at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
> at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
> at java.security.AccessController.doPrivileged(Native Method)
> at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
> at
>
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
> at
>
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)
> at
>
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
> at
>
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
> at
>
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
> at
>
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
> 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:255)
> at
>
> org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
> at
>
> org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
> at
>
> org.geoserver.platform.GeoServerContextLoaderListener.contextInitialized(GeoServerContextLoaderListener.java:18)
> at
>
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)
> 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:526)
> at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:850)
> at
> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:724)
> at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:493)
> at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)
> at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)
> at
>
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
> at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
> 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:583)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> 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 'rawCatalog' defined in URL
>
> [jar:file:/usr/share/tomcat_geoserver2.1/webapps/geobeta/WEB-INF/lib/main-2.1-beta3.jar!/applicationContext.xml]:
> Initialization of bean failed; nested exception is
> java.lang.RuntimeException: java.lang.IllegalArgumentException: Resource
> must be part of a store
> at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)
> at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
> at java.security.AccessController.doPrivileged(Native Method)
> at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
> at
>
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
> at
>
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)
> at
>
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
> at
>
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
> at
>
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
> at
>
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
> ... 45 more
> Caused by: java.lang.RuntimeException:
> java.lang.IllegalArgumentException: Resource must be part of a store
> at
>
> org.geoserver.config.GeoServerLoader.postProcessBeforeInitialization(GeoServerLoader.java:122)
> at
>
> org.geoserver.config.GeoServerLoaderProxy.postProcessBeforeInitialization(GeoServerLoaderProxy.java:54)
> at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:350)
> at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1330)
> at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
> ... 54 more
> Caused by: java.lang.IllegalArgumentException: Resource must be part of
> a store
> at
> org.geoserver.catalog.impl.CatalogImpl.validate(CatalogImpl.java:361)
> at org.geoserver.catalog.impl.CatalogImpl.add(CatalogImpl.java:347)
> at
> org.geoserver.config.GeoServerLoader.readCatalog(GeoServerLoader.java:382)
> at
> org.geoserver.config.GeoServerLoader.readCatalog(GeoServerLoader.java:220)
> at
>
> org.geoserver.config.DefaultGeoServerLoader.loadCatalog(DefaultGeoServerLoader.java:37)
> at
>
> org.geoserver.config.GeoServerLoader.postProcessBeforeInitialization(GeoServerLoader.java:116)
> ... 58 more
> Dec 22, 2010 3:40:29 PM org.apache.catalina.core.StandardContext start
> SEVERE: Error listenerStart
> Dec 22, 2010 3:40:29 PM org.apache.catalina.core.StandardContext start
> SEVERE: Context [/geobeta] startup failed due to previous errors
> Dec 22, 2010 3:40:29 PM org.geoserver.GeoserverInitStartupListener
> contextDestroyed
> INFO: Beginning GeoServer cleanup sequence
>
>
> --
> Nicholas Whittier
> NOAA Chesapeake Bay Office
> T: 410.267.5671
> M: 443.994.4806
>
>
>
> ------------------------------------------------------------------------------
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment,
> and,
> should the need arise, upgrade to a full multi-node Oracle RAC database
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users