Hello everyone,

ok, I got it: The folder I want it to be in is not writable for the tomcat 
process, which geoserver doesn't like as it seems - it falls back to the 
"default" value.

I'd like to deploy a "readonly" geoserver instance with a preconfigured data 
dir which is supposed not to change by means of the web interface, running in a 
DMZ.

So the GEOSERVER_DATA_DIR is set to read only for the tomcat process, logins 
into the web interface should be disabled and so on - it should expose only the 
services needed for serving maps, no configuration. I'd like it to act as WMS 
Proxy and Cache for the "real" Geoserver behind.

Any Ideas how to achive something like that?

Regards,
Sebastian

Von: Daniel Tuerk [mailto:[email protected]]
Gesendet: Donnerstag, 30. August 2012 16:08
An: Schmidt.Sebastian S-IP-AN-TG; [email protected]
Betreff: AW: failing to change geoserver's data dir

Hello Sebastian,

could be a "Bug". :)

The folder you configure must exist!
I try it on my system. (last line in setclasspath.sh for my Tomcat6 + Linux)

Best Regards
Daniel Türk


________________________________
Von: [email protected]<mailto:[email protected]> 
[[email protected]]
Gesendet: Donnerstag, 30. August 2012 09:42
An: 
[email protected]<mailto:[email protected]>
Betreff: [Geoserver-users] failing to change geoserver's data dir
Hello everyone,

I'm currently failing to force geoserver into a different data directory than 
the default:

I am deploying the Geoserver 2.1.3 war file into a tomcat 6.0.35 container, JVM 
6.

Neither setting the Java System Property (-DGEOSERVER_DATA_DIR=...) nor setting 
the context-Param inside web.xml does help.

On startup of the web application, geoserver still sits inside its default 
Directory. If I remove it, it gets recreated:

...catalina.out...:

Aug 30, 2012 9:21:57 AM it.geosolutions.imageio.gdalframework.GDALUtilities 
loadGDAL
WARNING: Failed to load the GDAL native libs. This is not a problem unless you 
need to use the GDAL plugins: they won't be 
enabled.java.lang.UnsatisfiedLinkError: no gdaljni in java.library.path
30 Aug 09:21:57 WARN [geoserver.logging] - Could not find configuration file 
for logging
30 Aug 09:21:59 ERROR [geoserver.global] -
----------------------------------
- GEOSERVER_DATA_DIR: /srv/[....]/webapps/geoserver/data

Which is the wrong path.

I double checked the existence of the correct context-param value and Java 
System Properties via some simple JSP tests - they are there, restarting tomcat 
dos not help either.

Any hints what to do or how that can happen?

Weird enough, via the same mechanism we set a GEOWEBACHE_CACHE_DIR Java System 
Property, and that one is used indeed.

Kind regards,
Sebastian Schmidt
SWM - Besser leben mit M.
Informations- und Prozesstechnik
Anwendungen Technische Geschäftsfelder
Telefon: 089/23 61-44 78
[email protected]<mailto:[email protected]>
www.swm.de<http://www.swm.de>
SWM Services GmbH, Emmy-Noether-Straße 2, 80992 München; Geschäftsführer Dr. 
Kurt Mühlhäuser, Herbert König, Reinhard Büttner, Stephan Schwarz, Dr. Florian 
Bieberbach; Sitz München; Registergericht München HRB 126 674; 
Aufsichtsratsvorsitzender Oberbürgermeister Christian Ude
Der Inhalt dieser E-Mail oder eventueller Anhänge ist ausschließlich für den 
bezeichneten Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat 
dieser E-Mail oder dessen Vertreter sein sollten, so beachten Sie bitte, dass 
jede Form der Kenntnisnahme, Veröffentlichung, Vervielfältigung oder Weitergabe 
des Inhalts dieser E-Mail unzulässig ist. Wir bitten Sie, sich in diesem Fall 
mit dem Absender der E-Mail in Verbindung zu setzen.

________________________________

Daniel Tuerk, Software Architect
Phone: +49.89.45 23 47 - 214
PGP-Fingerprint: F530B24F06047CE967BE739F15DD03CB4E9E400B

jambit Software Development & Management GmbH
Erika-Mann-Str. 63, 80636 München
Phone: +49.89.45 23 47-0 Fax: +49.89.45 23 47-70

http://www.jambit.com where innovation works

Geschäftsführer: Peter F. Fellinger, Markus Hartinger
Sitz: München; Registergericht: München, HRB 129139
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to