Holy smokes, the thing doesn't run at all if I turn the security
manager on. No doubt I should be running with one, but I'm afraid
that's chasing after an altogether different problem, at the moment.
I'm hesitant to go fix that until I've figured out this issue first.
Any other ideas?
Thanks again,
Evan
On Jul 13, 2009, at 1:26 PM, Evan Smith wrote:
Thanks for the response, Chris.
No security manager, as I'm running into the errors in dev. I will try
running it under a security manager, and explicitly configure
catalina.policy to account for this connection. I'll let you know what
I find.
Evan
On Jul 13, 2009, at 10:06 AM, Christopher Schultz wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Evan,
On 7/10/2009 4:43 PM, Evan Smith wrote:
What's puzzling is that I have tested this exact code inside and
outside
Tomcat, on several different machines. On every machine, it connects
and
lists files on the FTP server successfully every time, provided that
it's not running under Tomcat. On every machine, when I run the same
code under Tomcat, I get the same exception.
I suspect it's a SecurityManager. Are you running under a
SecurityManager?
- re-evaluated Calatina policy: From what I can tell in the docs, if
there's an issue with policy permissions, a policy exception should be
logged, along with a FAILED message. I find neither of these in my
logs;
just the exception mentioned above.
I wouldn't be surprised of the SSLSocket is swallowing the security
exception and just throwing it's own exception instead.
If you are running under a SecurityManager, try disabling it temporarily
to see if your code works without those constraints. If it does, then
you need to fiddle with your catalina.policy.
Do you have anything in your catalina.policy already to account for this
connection?
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkpbaacACgkQ9CaO5/Lv0PB1qACfbr2U+YxTk5dwYcgG30u7+gAD
YdIAoJ+yCHYivgXWw8l/uYnphyU7/tVP
=lZSy
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org