Upgrading from old data directory with Oracle and Postgis datastores fails
--------------------------------------------------------------------------
Key: GEOS-3602
URL: http://jira.codehaus.org/browse/GEOS-3602
Project: GeoServer
Issue Type: Bug
Affects Versions: 2.0.0
Reporter: Justin Deoliveira
Assignee: Justin Deoliveira
Priority: Blocker
Fix For: 2.0.0
The problem occurs during startup and results in any feature types / layers coming from the datastore to be disabled. Unfortunately re-enabling the layers can only be achieved by editing the files manually in the data directory. If you have been affected by this bug perform the following steps:
* Download 2.0.0 again (which has been patched) or
* Patch the existing installation with the jar files attached to this issue report. Copying them into the WEB-INF/lib directory of the installation.
To re-enable the affected feature types you must manually edit each featuretype.xml file affected. Which will be located under:
{code}
<GEOSERVER_DATA_DIR>/workspaces/<workspace>/<affectedDataStore>/<affectedFeatureType>/featuretype.xml
{code}
Find the {{<enabled>}} tag and change its value to "true".
The following unix command will automatically update all affected files:
{code}
cd $GEOSERVER_DATA_DIR/workspaces
find . -name "featuretype.xml" -exec sed -i 's/<enabled>false<\/enabled>/<enabled>true<\/enabled>/g' {} \;
{code}
Or alternatively revert to the 1.7.x structure of the directory. See the [upgrade notes|http://geoserver.org/display/GEOS/Upgrading+To+2.0\] for details.
--
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