-----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