Re: setenv.sh - how to set system properties to values containing spaces

2009-06-10 Thread Bap
Thanks again Rainer, Your seccond two points were covered in my initial mail containing the test code I am pretty sure that the issue is with the shell, and have been using the code below to test all sorts of combinations of values for OPTS - the only way I can get the arg to print on o

Re: setenv.sh - how to set system properties to values containing spaces

2009-06-10 Thread Bap
Hi André, Now I understand the issue regarding the -jdpa option. I had not even considerred that one - if set, then CATALINA_OPTS would require 2 levels of escape, and, if not set, just one! I have only been looking at the "start" block as called by startup.sh without using -security ex

Re: setenv.sh - how to set system properties to values containing spaces

2009-06-10 Thread Rainer Jung
On 10.06.2009 15:47, André Warnier wrote: > Sorry, I mistook "CATALINA_OPTS" for "JAVA_OPTS", > but > > Bap wrote: >> Hi André, >> >> The solution you have suggested just introduces a new variable, but >> with exactly the same characteristics of the existing CATALINA_OPTS >> variable (unless I am

Re: setenv.sh - how to set system properties to values containing spaces

2009-06-10 Thread André Warnier
Sorry, I mistook "CATALINA_OPTS" for "JAVA_OPTS", but Bap wrote: Hi André, The solution you have suggested just introduces a new variable, but with exactly the same characteristics of the existing CATALINA_OPTS variable (unless I am missing something.) Say that, originally in setenv.sh, you

Re: setenv.sh - how to set system properties to values containing spaces

2009-06-10 Thread Bap
Hi André, The solution you have suggested just introduces a new variable, but with exactly the same characteristics of the existing CATALINA_OPTS variable (unless I am missing something.) The issue is, that even when the CATALINA_OPTS value looks like it is correctly quoted (echo of CATAL

Re: setenv.sh - how to set system properties to values containing spaces

2009-06-10 Thread André Warnier
Bap wrote: ... Looks very much like the problem from hell, where the number of extra quoting levels depends on the number of times this thing ends up being interpolated. A suggestion, which involves modifying catalina.sh, but maybe with less nefarious effects if it ever gets replaced : - mo

Re: setenv.sh - how to set system properties to values containing spaces

2009-06-10 Thread Bap
Hi Chris, Thanks for the reply. Unfortunately I had already tried all of those suggestions - and more - before posting. I have just retried the three below, to double check, but unfortunately all with similar results - either looking to run ssl ssl" or ssl' I am pretty sure that the issue

Re: setenv.sh - how to set system properties to values containing spaces

2009-06-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bap, On 6/9/2009 1:06 PM, Bap wrote: > I am trying to set the following system property/value in setenv.sh > com.sun.jndi.ldap.connect.pool.protocol="plain ssl" > If I enclose the whole CATALINA_OPTS in single quotes, then the value > looks fine when

setenv.sh - how to set system properties to values containing spaces

2009-06-09 Thread Bap
Hi all, I am trying to set the following system property/value in setenv.sh com.sun.jndi.ldap.connect.pool.protocol="plain ssl" on Apache Tomcat/6.0.16, and I cannot for the life of me figure out how to escape the quotes and get the server to start. If I enclose the whole CATALINA_OPTS in sin