[Geoserver-users] Problem creating new coverage

Hello,

I am attempting to create a new map layer, but the system does not seem to be permanently storing it. I am using Geoserver 1.6.0 and I added a shapefile using data->datastores to initially identify the file. I then went into data->FeatureTypes and selected "new", then selected my shapefile from the list. I then select the sld that I added to the sld file, and input the SRS, which is one I just created. I then select "Generate", scroll down and select "Submit", then I click "apply" and "save". After that, I go into the demo portion and it shows up in Map Previews. Then I exit Geoserver, restart Tomcat (version6.0.14 if it matters), and the map I just created and could view no longer shows up. What am I doing wrong? Should I be loading this map differently?

Thanks,

Amy

Amy Johnson ha scritto:

Hello,

I am attempting to create a new map layer, but the system does not seem to be permanently storing it. I am using Geoserver 1.6.0 and I added a shapefile using data->datastores to initially identify the file. I then went into data->FeatureTypes and selected "new", then selected my shapefile from the list. I then select the sld that I added to the sld file, and input the SRS, which is one I just created. I then select "Generate", scroll down and select "Submit", then I click "apply" and "save". After that, I go into the demo portion and it shows up in Map Previews. Then I exit Geoserver, restart Tomcat (version6.0.14 if it matters), and the map I just created and could view no longer shows up. What am I doing wrong? Should I be loading this map differently?

Nope, you should be using an external data dir for your GeoServer.
The one we ship with in the war gets wiped out each time
you restart tomcat, if the latter is configured not to unpack the
war. Copy the data dir contents out of the war wherever you
want, and then set up the environment variable GEOSERVER_DATA_DIR
to that path, and finally restart GeoServer.
It will pick up the new data dir, and then you should be gold.
To make sure, have a look at the tomcat console, GeoServer dumps
the data dir location when it starts up.

Hope this helps
Cheers
Andrea