[Geoserver-devel] [jira] Created: (GEOS-893) Misconfigured datastore prevents geoserver startup

Misconfigured datastore prevents geoserver startup
--------------------------------------------------

                 Key: GEOS-893
                 URL: http://jira.codehaus.org/browse/GEOS-893
             Project: GeoServer
          Issue Type: Bug
          Components: Configuration
    Affects Versions: 1.5.0-beta2, 1.4.0
            Reporter: Andrea Aime
         Assigned To: Andrea Aime
            Priority: Critical
             Fix For: 1.4.1, 1.5.0-beta3

Connecting to a Geoserver 1.3.2 data directory may prevent Geoserver 1.4.0 onwards to start up at all.
Apparently, 1.3.2 allowed for no namespace specification in datastores, whilst 1.4.0 pretends it, and makes the whole geoserver crash if it's missing.

Here is a piece of a stack trace:

2007-2-6 16:55:01 org.springframework.web.context.ContextLoader initWebApplicationContext
ÑÏÖØ: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'wfs' defined in URL [jar:file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%205.5/webapps/geoserver/WEB-INF/lib/wfs-1.4.0.jar!/applicationContext.xml]: Can't resolve reference to bean 'config' while setting property 'constructor argument'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'config' defined in URL [jar:file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%205.5/webapps/geoserver/WEB-INF/lib/main-1.4.0.jar!/applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanInitializationException: Error creating xml config reader; nested exception is org.vfny.geoserver.global.ConfigurationException: org.vfny.geoserver.global.ConfigurationException: org.vfny.geoserver.global.ConfigurationException: there is no namespace defined for datatasore 'gdwy'
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'config' defined in URL [jar:file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%205.5/webapps/geoserver/WEB-INF/lib/main-1.4.0.jar!/applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanInitializationException: Error creating xml config reader; nested exception is org.vfny.geoserver.global.ConfigurationException: org.vfny.geoserver.global.ConfigurationException: org.vfny.geoserver.global.ConfigurationException: there is no namespace defined for datatasore 'gdwy'
org.springframework.beans.factory.BeanInitializationException: Error creating xml config reader; nested exception is org.vfny.geoserver.global.ConfigurationException: org.vfny.geoserver.global.ConfigurationException: org.vfny.geoserver.global.ConfigurationException: there is no namespace defined for datatasore 'gdwy'
org.vfny.geoserver.global.ConfigurationException: org.vfny.geoserver.global.ConfigurationException: org.vfny.geoserver.global.ConfigurationException: there is no namespace defined for datatasore 'gdwy'
  at org.vfny.geoserver.global.xml.XMLConfigReader.loadCatalog(XMLConfigReader.java:300)
  at org.vfny.geoserver.global.xml.XMLConfigReader.load(XMLConfigReader.java:195)
  at org.vfny.geoserver.global.xml.XMLConfigReader.<init>(XMLConfigReader.java:145)
  at org.vfny.geoserver.global.Config.setApplicationContext(Config.java:43)
  at org.springframework.context.support.ApplicationContextAwareProcessor.postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:84)
  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:248)

If the spring context initialization fails, the whole geoserver startup fails...

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira