I am getting the following exception:
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.pro
Is the website certificate issued by a private/company-owned CA or is it a self-signed?
... new SSLContextBuilder().loadTrustMaterial(null, new TrustStrategy() ...
So it seems like Tomcat ignored your SSLContext. Used like that, the sslContext is useless anyway. Debugging results? JVM SSL settings? Exception stack trace?