Error occurs when linking tomcat msql.

해리 김 0 Reputation points
2023-03-20T04:35:05.7666667+00:00

Error "com.microsoft.sqlserver.jdbc.SQLServerException: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "SQL Server did not return a response" accessing Microsoft SQL Server database. ClientConnectionId:730b2f11-cca7-49a8-9227-de381e4d6aac".

Error occurs when linking tomcat msql.
MSSQL SSL is disabled.
Tomcat is ssl disabled.

It works fine with jdk 1.8 but only with jdk 1.7 errors.

my jdbc url

jdbc:sqlserver://ip:1433;databasename=~;encrypt=false

  • version

tomcat 7.0

jdk 1.7

Windwos 2019 std

MSSQL 2016, mssql-jdbc-6.4.0.jre7.jar

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,682 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Seeya Xi-MSFT 16,461 Reputation points
    2023-03-21T06:02:31.0166667+00:00

    Hi @해리 김,

    Please refer to these:
    System requirements for the JDBC driver:

    https://learn.microsoft.com/en-us/sql/connect/jdbc/system-requirements-for-the-jdbc-driver?view=sql-server-ver16

    Using the JDBC driver:

    https://learn.microsoft.com/en-us/sql/connect/jdbc/using-the-jdbc-driver?view=sql-server-ver16

    Best regards,

    Seeya


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.