You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Java 8+GlassFish 3.1.2.2环境下TLSv1协议兼容问题求助

升级Java 8后SQL Server TLS连接异常求助

为规避TLS相关问题,我将服务器升级至Java 8,但出现以下TLS握手异常:

Caused by: com.microsoft.sqlserver.jdbc.SQLServerException:Error: "Server chose TLSv1, but that protocol version is not enabled or not supported by the client.".
Caused by: javax.net.ssl.SSLHandshakeException: Server chose TLSv1, but that protocol version is not enabled or not supported by the client.

我已尝试以下方案但问题仍未解决:

  • 在osgi.properties文件中添加jre-1.8=${jre-1.6},com.sun.tracing.
  • 为服务器JVM Options添加-Dhttps.protocols=TLSv1.2参数
  • 在domain.xml文件中设置tls11-enabled="false" tls12-enabled="true" tls-enabled="false"
  • 在数据库连接URL中添加;encrypt=true;trustServerCertificate=true

恳请各位提供其他可行的解决思路。

内容的提问来源于stack exchange,提问作者Juan C. Moreno

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.07 19:02:32