I have a IMAP4 server running with TLS authentication switched on and have self signed certificate. do not want toinstall certificates so I tried DummySSLSocketFactory and DummyTrustManager provided by SUN.
Standalone programm works correctly. Please see code below. But If I put the code into Tomcat throws exception. Any clue?