That is fine you can make a setenv.bat, or adjust options in the tomcat manager thing under Java options.
Hi.
I forgot to say that is a Tomcat running in a Windows computer.
Best regards.
Óscar Diago Alonso
Ingeniero GIS
(+34) 945 13 13 72 | Plza. del Renacimiento, 9, 2.ª planta, Oficina 2 - 01004 Vitoria-Gasteiz
De: Oscar Diago Alonso via Geoserver-users <geoserver-users@lists.sourceforge.net>
Enviado el: jueves, 8 de febrero de 2024 6:38
Para: Jody Garnett <jody.garnett@…84…>
CC: geoserver-users@lists.sourceforge.net
Asunto: Re: [Geoserver-users] [EXTERNO] Re: Question about Parameterize catalog settings
Good morning.
Thanks for all the responses.
I’m using Tomncat.
I’ll try the options mentioned and see if I can make it work
Thankis!
Óscar Diago Alonso
Ingeniero GIS
(+34) 945 13 13 72 | Plza. del Renacimiento, 9, 2.ª planta, Oficina 2 - 01004 Vitoria-Gasteiz
De: Jody Garnett <jody.garnett@…84…>
Enviado el: jueves, 8 de febrero de 2024 2:27
Para: Oscar Diago Alonso <Oscar.Diago@…8230…>
CC: geoserver-users@lists.sourceforge.net
Asunto: [EXTERNO] Re: [Geoserver-users] Question about Parameterize catalog settings
Are you using tomcat or jetty?
Not every system admin thing can be set as environmental variable, so I am going to check the code: https://github.com/search?q=repo%3Ageoserver%2Fgeoserver+ALLOW_ENV_PARAMETRIZATION&type=code
It only shows checking the ALLOW_ENV_PARAMETRIZATION system property:
allowEnvParametrization =
Boolean.valueOf(System.getProperty(“ALLOW_ENV_PARAMETRIZATION”, “false”));
In general you can configure GeoServer as a system admin using:
- Environmental variable - popular for docker containers
- Java System Properties - Use -DALLOW_ENV_PARAMETRIZATION=true when starting up tomcat.
I do this by defining the environmental variable GEOSERVER_REQUIRE_FILE or JAVA_OPTS in Tomcat bin/setenv.sh, bin/setenv.bat or similar for jetty.
- Web Application Context Parameter - I may be the only one who likes this: conf/Catalina/localhost/geonetwork.xml
- Web Application Context Parameter - webapps/geoserver/WEB-INF/web.xml - these are the defaults (you can edit but they are lost when upgrading)
Here are some instructions for setting GEOSERVER_DATA_DIR which is similar: https://docs.geoserver.org/stable/en/user/datadirectory/setting.html#java-system-property
I notice the above docs advise people to edit bin/setclasspath.sh … I prefer creating a file bin/setenv.sh (which I can keep when upgrading tomcat).
Following the geoserver production considerations and adding your ALLOW_ENV_PARAMETRIZATION setting gives me this.
-
Create bin/startup.sh in your tomcat installation
-
Contents of file are:
#!/bin/sh
Prepend JVM Options
CATALINA_OPTS=“-XX:SoftRefLRUPolicyMSPerMB=36000 -XX:-UsePerfData ${CATALINA_OPTS}”
Append system properties
CATALINA_OPTS=“${CATALINA_OPTS} -Dorg.geotools.referencing.forceXY=true”
CATALINA_OPTS=“${CATALINA_OPTS} -DALLOW_ENV_PARAMETRIZATION=true”
Enjoy using GeoServer
–
Jody Garnett
On Feb 7, 2024 at 2:21:27 AM, Oscar Diago Alonso via Geoserver-users <geoserver-users@lists.sourceforge.net> wrote:
Good morning.
I’ve installed GeoServer 2.24.1 using the WAR file.
I also want to make use of the Parameterize catalog settings that is explained here: https://docs.geoserver.org/stable/en/user/datadirectory/configtemplate.html
Can anyone explain me how to set the -DALLOW_ENV_PARAMETRIZATION=true? Is a Windows system variable or do I need to add that in a file of GeoServer? I’ve tried creating the system variable, but it’s not working,
Thanks for any help provided!
Best regards.
Óscar Diago Alonso — Ingeniero GIS
(+34) 945 13 13 72 | Plza. del Renacimiento, 9, 2.ª planta, Oficina 2 - 01004 Vitoria-Gasteiz
![](https://geograma.com/wp-content/banners/banner_mail_06.png)
Si no ves la imagen puedes acceder desde aquí
Esta comunicación contiene información de acceso restringido y de uso exclusivo del destinatario. Si usted no es el destinatario tenga en cuenta que cualquier distribución, copia o uso de esta comunicación o la información que contiene está estrictamente prohibida. Si usted ha recibido esta comunicación por error por favor notifíquelo en la dirección dpd@…8230…. Tratamos su dirección de correo electrónico y otros datos personales para mantener el contacto y comunicación con Ud. y, en su caso, remitirle información sobre nuestros productos y servicios. Si no desea recibir tal información envíe un e-mail en tal sentido a dpd@…8230…. Puede acceder, rectificar y suprimir los datos, así como otros derechos, como se detalla en la información adicional y completa a su disposición en nuestra política de privacidad en la URL www.geograma.com/politica-privacidad/
![](https://geograma.com/wp-content/banners/web.png)
![](https://geograma.com/wp-content/banners/in.png)
Geoserver-users mailing list
Please make sure you read the following two resources before posting to this list:
If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users