I checked the error message within the log. It seems a difficulty with the hostname:
javax.net.ssl.SSLException: hostname in certificate didn't match: <webapp.domainA.com> != <*.domainB.com> OR <*.domainB.com> OR <domainB.com>
Is it possible that the connection is made by java with the mainserver and not through the webserver to the specific domain?
Because of domain-addresses I didn't send the full log.