Re: Use JAVA/CATALINA_OPTS arguments in server.xml

2024-03-21 Thread Konstantin Kolinko
чт, 21 мар. 2024 г. в 17:04, Manak Bisht : > > I have not defined its value. It works fine if I do, however, I am > expecting it to use the default instead. How old is your version of Tomcat? This feature dates back to spring of year 2020 https://github.com/apache/tomcat/commit/90b8ff2f330973bbe5

Re: Use JAVA/CATALINA_OPTS arguments in server.xml

2024-03-21 Thread Christopher Schultz
Manak, On 3/21/24 09:57, Manak Bisht wrote: On Thu, 21 Mar 2024, 19:18 Christopher Schultz, < ch...@christopherschultz.net> wrote: Manak, On 3/21/24 05:38, Manak Bisht wrote: Thanks, Chuck! This works for defining the port but does not work for the host. Using either of the above throws

Re: Use JAVA/CATALINA_OPTS arguments in server.xml

2024-03-21 Thread Manak Bisht
I have not defined its value. It works fine if I do, however, I am expecting it to use the default instead. Sincerely, Manak Bisht On Thu, 21 Mar 2024, 19:18 Christopher Schultz, < ch...@christopherschultz.net> wrote: > Manak, > > On 3/21/24 05:38, Manak Bisht wrote: > > Thanks, Chuck! > > This

Re: Use JAVA/CATALINA_OPTS arguments in server.xml

2024-03-21 Thread Christopher Schultz
Manak, On 3/21/24 05:38, Manak Bisht wrote: Thanks, Chuck! This works for defining the port but does not work for the host. port="4000" host="${tomcat.member:-localhost}"/> port="4000" host="${tomcat.member:-127.0.0.1}"/> Using either of the above throws the following error, 21-Mar-2024 15:0

Re: Use JAVA/CATALINA_OPTS arguments in server.xml

2024-03-21 Thread Manak Bisht
Thanks, Chuck! This works for defining the port but does not work for the host. Using either of the above throws the following error, 21-Mar-2024 15:04:58.185 SEVERE [GroupChannel-Heartbeat-1] org.apache.catalina.tribes.group.interceptors.TcpFailureDetector.memberAlive Unable to perform failur

Re: Use JAVA/CATALINA_OPTS arguments in server.xml

2023-12-12 Thread Chuck Caldarale
> On Dec 12, 2023, at 09:11, Manak Bisht wrote: > > Hi, is it possible to use values passed as arguments through > *JAVA_OPTS *or *CATALINA_OPTS > *in the *server.xml*? Yes. For example, setting the port number in server.xml for the default connector: And using the following in setenv.

Use JAVA/CATALINA_OPTS arguments in server.xml

2023-12-12 Thread Manak Bisht
Hi, is it possible to use values passed as arguments through *JAVA_OPTS *or *CATALINA_OPTS *in the *server.xml*? Sincerely Manak Bisht