簡體   English   中英

在Linux平台上部署Java應用程序

[英]Java application deploying on Linux platform

我正在嘗試在Linux平台上部署項目War文件,它給了我以下錯誤。

com.microsoft.sqlserver.jdbc.SQLServerException: This driver is not configured for integrated authentication. ClientConnectionId:1207f4ed-32d0-44e8-ae1c-308b157e9903

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is org.hibernate.exception.JDBCConnectionException: Could not open connection

服務器詳細信息

Server - Tomcat v8.5

屬性文件中的配置。

    jdbc.url = jdbc:sqlserver://DC01ODSDBDV03;databaseName=ExecDB_Stg;integratedSecurity=true;

   hibernate.dialect = org.hibernate.dialect.SQLServer2008Dialect
   hibernate.show_sql = true
   hibernate.format_sql = true

我們嘗試添加以下javakerberos屬性,但是沒有起作用。

  authenticationScheme=JavaKerberos  

請幫忙。

為了節省您很多麻煩,請嘗試說服sql管理員允許您進行密碼驗證。

否則,您需要在AD服務帳戶下運行Tomcat,如果您知道該怎么做,這並不困難。

我寫了一個有關SPNEGO身份驗證的博客。 您不需要所有步驟,Tomcat就可以作為AD服務運行就足夠了。 (直到配置krb5.ini文件)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM