[Geoserver-users] Tomcat 6 and Geoserver_data_dir

I tried this http://geoserver.org/display/GEOSDOC/2.5+GeoServer+Data+Directory which says:

A: All you have to do to get Tomcat to recognise the environment variable is create a file called setenv.sh for unix or setenv.bat for windows and save it in your Tomcat/bin directory. It will be sourced by catalina.sh if it exists.
Then, add the lines
set CATALINA_OPTS=“-DGEOSERVER_DATA_DIR=C:\path\to\my\geoserver\data\directory”

I changed this to reflect my situation:
set CATALINA_OPTS=“-DGEOSERVER_DATA_DIR=D:\ogi\data”

Well, I did this and restarted Tomcat, but the data dir was not changed. Is Tomcat 6 different? Did I do something wrong?

So, I changed it in the web.xml and this approach worked fine. Just wondering…

Roger

Hi Roger,

Perhaps the setenv is not being sourced by tomcat 6. Not sure, I usually just put the set CATALINA_OPTS="..." directly in catalina.sh/bat. Maybe try that?

-Justin

Roger Bedell wrote:

I tried this http://geoserver.org/display/GEOSDOC/2.5+GeoServer+Data+Directory which says:
*_A:_* All you have to do to get Tomcat to recognise the environment variable is create a file called *setenv.sh* for unix or *setenv.bat* for windows and save it in your Tomcat/bin directory. It will be sourced by catalina.sh if it exists.
Then, add the lines
set CATALINA_OPTS="-DGEOSERVER_DATA_DIR=C:\path\to\my\geoserver\data\directory"
I changed this to reflect my situation:
set CATALINA_OPTS="-DGEOSERVER_DATA_DIR=D:\ogi\data"
Well, I did this and restarted Tomcat, but the data dir was not changed. Is Tomcat 6 different? Did I do something wrong?
So, I changed it in the web.xml and this approach worked fine. Just wondering...
Roger

------------------------------------------------------------------------

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects

------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.