Good morning. I made it work adding the option in the Tomcat manager.
[cid:image001.png@01DA5B22.8D4D9AE0] Not the best of the solutions, but GeoServer is the only app that will be hosted on that Tomcat, so I won’t overthink it. Thanks for all the help! Ó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.garn...@gmail.com> Enviado el: jueves, 8 de febrero de 2024 7:22 Para: Oscar Diago Alonso <oscar.di...@geograma.com> CC: geoserver-users@lists.sourceforge.net Asunto: Re: [Geoserver-users] [EXTERNO] Re: Question about Parameterize catalog settings That is fine you can make a setenv.bat, or adjust options in the tomcat manager thing under Java options. -- Jody Garnett On Wed, Feb 7, 2024 at 10:17 PM Oscar Diago Alonso <oscar.di...@geograma.com<mailto:oscar.di...@geograma.com>> wrote: 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<mailto:geoserver-users@lists.sourceforge.net>> Enviado el: jueves, 8 de febrero de 2024 6:38 Para: Jody Garnett <jody.garn...@gmail.com<mailto:jody.garn...@gmail.com>> CC: geoserver-users@lists.sourceforge.net<mailto: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.garn...@gmail.com<mailto:jody.garn...@gmail.com>> Enviado el: jueves, 8 de febrero de 2024 2:27 Para: Oscar Diago Alonso <oscar.di...@geograma.com<mailto:oscar.di...@geograma.com>> CC: geoserver-users@lists.sourceforge.net<mailto: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. 1. Create bin/startup.sh in your tomcat installation 1. 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" # See https://docs.geoserver.org/main/en/user/datadirectory/configtemplate.html 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<mailto: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]<https://www.linkedin.com/company/geograma/> Si no ves la imagen puedes acceder desde aquí<https://www.linkedin.com/company/geograma/> 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 d...@geograma.com<mailto:d...@geograma.com>. 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 d...@geograma.com<mailto:d...@geograma.com>. 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/<http://www.geograma.com/politica-privacidad/> [https://geograma.com/wp-content/banners/web.png]<https://www.geograma.com/> [https://geograma.com/wp-content/banners/in.png] <http://geograma.com/wp-content/eventos/linkedin.php> _______________________________________________ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html 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<mailto:Geoserver-users@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/geoserver-users
_______________________________________________ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html 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