[Geoserver-devel] Install fails

Tim Schreiner ha scritto:

Andrea,

Since I have your attention on that other issue, I'll ask you this one too.

My GeoServer died (and would not restart) under tomcat (WXP).

So, I uninstalled it, then reloaded the war file. Geoserver looks started
(from Tomcat's perspective) but I can not get to the geoserver page.

Ah, somehow you managed to configure a datastore with no namespace attached, the configuration loader exception says:

org.vfny.geoserver.global.ConfigurationException: org.vfny.geoserver.global.ConfigurationException: java.lang.Exception: attribute namespacein element datastore is empty
  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)

You can either restart with a fresh data directory, or locate your
catalog.xml file and fix the configuration by hand. A properly
configured postgis datastore looks like this:

<datastore namespace = "topp" enabled = "true" id = "postgis_gnis" >
<connectionParams>
<parameter value = "topp" name = "namespace" />
<parameter value = "true" name = "loose bbox" />
<parameter value = "myuser" name = "user" />
<parameter value = "mypassword" name = "passwd" />
<parameter value = "true" name = "wkb enabled" />
<parameter value = "localhost" name = "host" />
<parameter value = "public" name = "schema" />
<parameter value = "5432" name = "port" />
<parameter value = "gnis" name = "database" />
<parameter value = "postgis" name = "dbtype" />
</connectionParams>
</datastore>

and the namespace references a properly configured namespace like:

<namespaces>
<namespace uri = "http://www.openplans.org/topp&quot; prefix = "topp" default = "true" />
...
/>
</namespaces>

Hope this helps
Best regards
Andrea Aime