Hello Simone, I've configured an extra option to pass to the JVM with
-DGEOSERVER_DATA_DIR=/var/lib/geoserver_data in the /etc/default/jetty file and in this way it works. Thank you for the suggestion. Regards Fabio
Ciao Fabio, you can do the same via an env var or a java switch (-Dsomething). Check the docs deeper... Regards, Simone Giannecchini ------------------------------------------------------- Ing. Simone Giannecchini GeoSolutions S.A.S. Founder Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 962313 mob: +39 333 8128928 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.youtube.com/user/GeoSolutionsIT http://www.linkedin.com/in/simonegiannecchini http://twitter.com/simogeo -- Please take note that GeoSolutions will be closed for Christmas holidays from 27/12 to 31/12 -- ------------------------------------------------------- On Mon, Dec 19, 2011 at 6:29 PM, Fabio Ciampi<[email protected]> wrote:Hi, I have GeoServer version 2.1.2 with Jetty version 6.1.24-6. I would like to change the environment variable GEOSERVER_DATA_DIR and I found in the GeoServer user guide that I have to specify the following context parameter in the WEB-INF/web.xml file. <web-app> ... <context-param> <param-name>GEOSERVER_DATA_DIR</param-name> <param-value>/var/lib/geoserver_data</param-value> </context-param> ... </web-app> The problem is that if I change this file when I will restart Jetty it will be overridden. So I have to set the variable GEOSERVER_DATA_DIR within the Jetty configuration but I can't understand how can I do it. Regards Fabio ------------------------------------------------------------------------------ Learn Windows Azure Live! Tuesday, Dec 13, 2011 Microsoft is holding a special Learn Windows Azure training event for developers. It will provide a great way to learn Windows Azure and what it provides. You can attend the event by watching it streamed LIVE online. Learn more at http://p.sf.net/sfu/ms-windowsazure _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
------------------------------------------------------------------------------ Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev
_______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
