-----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 echoed, but the catalina.out contains Exception in
> thread "main" java.lang.NoClassDefFoundError: ssl"

> The complete contents of setenv.sh is the single line below.
> CATALINA_OPTS='-Xms128m -Xmx256m
> -Dcom.sun.jndi.ldap.connect.pool.protocol="plain ssl"
> -Dcom.sun.jndi.ldap.connect.pool.timeout=10000'

So, the above echos fine but causes the NoClassDefFoundError?

Try any one of the following, which might work:

CATALINA_OPTS="-Xms128m -Xmx256m
- -Dcom.sun.jndi.ldap.connect.pool.protocol=plain\ ssl
- -Dcom.sun.jndi.ldap.connect.pool.timeout=10000"
CATALINA_OPTS='-Xms128m -Xmx256m
- -Dcom.sun.jndi.ldap.connect.pool.protocol=plain\ ssl
- -Dcom.sun.jndi.ldap.connect.pool.timeout=10000'
CATALINA_OPTS="-Xms128m -Xmx256m
- -Dcom.sun.jndi.ldap.connect.pool.protocol=\"plain ssl\"
- -Dcom.sun.jndi.ldap.connect.pool.timeout=10000"

These will probably not work:

CATALINA_OPTS="-Xms128m -Xmx256m
- -Dcom.sun.jndi.ldap.connect.pool.protocol='plain ssl'
- -Dcom.sun.jndi.ldap.connect.pool.timeout=10000"
CATALINA_OPTS='-Xms128m -Xmx256m
- -Dcom.sun.jndi.ldap.connect.pool.protocol="plain ssl"
- -Dcom.sun.jndi.ldap.connect.pool.timeout=10000'

I suspect that there is some quoting being done in the catalina.sh
script itself which is confusing things. Try looking at the script
itself to see where such quoting is being done, and how you might
"defeat" it :)

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkousdUACgkQ9CaO5/Lv0PA1QQCfT88n8/vMnkbtiC7wnPgQgdVg
438AmwV8lUADAdBfcWd9VeOZYGJqX2Y6
=zRFk
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to