Hi,
I currently use the .war version of GeoServer, and deploy it in a JBoss environment.
GeoServer works really well, but if i have to modify the configuration of GeoServer to for example add a new DataStore/FeatureType the changes will be lost after a restart of JBoss/GeoServer.
Can anyone offer any advice on how to make the changes to the GeoServer configuration not be lost on restart ? Having to always set everything up after a restart is a pain.
Thanks in advance,
Andy
Andy Dale ha scritto:
Hi,
I currently use the .war version of GeoServer, and deploy it in a JBoss environment.
GeoServer works really well, but if i have to modify the configuration of GeoServer to for example add a new DataStore/FeatureType the changes will be lost after a restart of JBoss/GeoServer.
Can anyone offer any advice on how to make the changes to the GeoServer configuration not be lost on restart ? Having to always set everything up after a restart is a pain.
Hem... you do have pressed "apply" and "save" after configurin geoserver, right?
If you did, it may be that JBoss is wiping out and re-extracting
Geoserver from the war at each restart, and this would wipe out
the data directory as well.
One way to avoid the above would be to extract the data folder
from the Geoserver war, set GEOSERVER_DATA_DIR to point to your
extracted data dir, so that Geoserver uses it. For more information
about the data dir, see:
http://docs.codehaus.org/display/GEOSDOC/3+GeoServer+Data+Directory
Hope this helps
Cheers
Andrea
Hi,
Thanks for the tip Andrea, i followed the guide in the link you sent me and the configuration changes are no longer lost anymore 
Cheers,
Andy
On 10/07/07, Andrea Aime < aaime@anonymised.com> wrote:
Andy Dale ha scritto:
Hi,
I currently use the .war version of GeoServer, and deploy it in a JBoss
environment.
GeoServer works really well, but if i have to modify the configuration
of GeoServer to for example add a new DataStore/FeatureType the changes
will be lost after a restart of JBoss/GeoServer.
Can anyone offer any advice on how to make the changes to the GeoServer
configuration not be lost on restart ? Having to always set everything
up after a restart is a pain.
Hem… you do have pressed “apply” and “save” after configurin
geoserver, right?
If you did, it may be that JBoss is wiping out and re-extracting
Geoserver from the war at each restart, and this would wipe out
the data directory as well.
One way to avoid the above would be to extract the data folder
from the Geoserver war, set GEOSERVER_DATA_DIR to point to your
extracted data dir, so that Geoserver uses it. For more information
about the data dir, see:
http://docs.codehaus.org/display/GEOSDOC/3+GeoServer+Data+Directory
Hope this helps
Cheers
Andrea
That does sound like a pain. It could be because jboss isn't uncompressing the war, and by default geoserver saves its settings in the war.
The best way out of this is to set up a 'Data Directory'. See: http://docs.codehaus.org/display/GEOSDOC/3+GeoServer+Data+Directory
Then you just point your web.xml to the directory in another location, and it should be able to write your changes there just fine.
best regards,
Chris
Andy Dale wrote:
Hi,
I currently use the .war version of GeoServer, and deploy it in a JBoss environment.
GeoServer works really well, but if i have to modify the configuration of GeoServer to for example add a new DataStore/FeatureType the changes will be lost after a restart of JBoss/GeoServer.
Can anyone offer any advice on how to make the changes to the GeoServer configuration not be lost on restart ? Having to always set everything up after a restart is a pain.
Thanks in advance,
Andy
!DSPAM:4005,46933cb2282742143011171!
------------------------------------------------------------------------
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
!DSPAM:4005,46933cb2282742143011171!
------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
!DSPAM:4005,46933cb2282742143011171!
Hi,
JBoss does uncompress the .war to $JBOSS_HOME/server/default/tmp/deploy (wiped at every restart), so I adapted the guide in the link Andrea sent (edited the run.conf to include -DGEOSERVER_DATA_DIR), and it seems to work (as far as i can tell).
Andy
On 10/07/07, Chris Holmes <cholmes@anonymised.com> wrote:
That does sound like a pain. It could be because jboss isn’t
uncompressing the war, and by default geoserver saves its settings in
the war.
The best way out of this is to set up a ‘Data Directory’. See:
http://docs.codehaus.org/display/GEOSDOC/3+GeoServer+Data+Directory
Then you just point your web.xml to the directory in another location,
and it should be able to write your changes there just fine.
best regards,
Chris
Andy Dale wrote:
Hi,
I currently use the .war version of GeoServer, and deploy it in a JBoss
environment.
GeoServer works really well, but if i have to modify the configuration
of GeoServer to for example add a new DataStore/FeatureType the changes
will be lost after a restart of JBoss/GeoServer.
Can anyone offer any advice on how to make the changes to the GeoServer
configuration not be lost on restart ? Having to always set everything
up after a restart is a pain.
Thanks in advance,
Andy
!DSPAM:4005,46933cb2282742143011171!
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
!DSPAM:4005,46933cb2282742143011171!
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
!DSPAM:4005,46933cb2282742143011171!
Hi
I have the same problem that every data is lost if i restart JBoss.
The given Link
(http://docs.codehaus.org/display/GEOSDOC/3+GeoServer+Data+Directory)
does not exist anymore.
Is there another Tutorial wich describes how to setup a new data directory??
Thanks for any help!
Max
--
View this message in context: http://www.nabble.com/Configuration-changes-are-lost-after-restart-tp11516394p24621695.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
Howie.Stuntman ha scritto:
Hi
I have the same problem that every data is lost if i restart JBoss.
JBOSS is probably exploding the GeoServer .war at every restart,
and if you're using the data directory inside the .war (the demo one)
it gets reset every time. You need to setup an external one.
The given Link
(http://docs.codehaus.org/display/GEOSDOC/3+GeoServer+Data+Directory)
does not exist anymore.
Is there another Tutorial wich describes how to setup a new data directory??
http://geoserver.org/display/GEOSDOC/2.5+GeoServer+Data+Directory
and
http://docs.geoserver.org/1.7.5/user/data-directory/index.html
Cheers
Andrea
--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.
Thanks for this fast answer Andrea.
I followed the instructions of your first link and its works now.
I think for the work with JBoss this link is also usefull (for others with
the same problem):
http://geoserver.org/display/GEOSDOC/Jboss+-+data_dir+environment+variables
--
View this message in context: http://www.nabble.com/Configuration-changes-are-lost-after-restart-tp11516394p24622383.html
Sent from the GeoServer - User mailing list archive at Nabble.com.