简体   繁体   English

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

[英]Java application deploying on Linux platform

I am trying to deploy project war file on Linux platform and its giving me following error. 我正在尝试在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 details 服务器详细信息

Server - Tomcat v8.5

configuration in the property file. 属性文件中的配置。

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

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

We have tried adding the following javakerberos property but it didnt work. 我们尝试添加以下javakerberos属性,但是没有起作用。

  authenticationScheme=JavaKerberos  

Please help. 请帮忙。

To save you a lot of pain really try to convince sql admins to allow you the password authentication. 为了节省您很多麻烦,请尝试说服sql管理员允许您进行密码验证。

Otherwise you need to run Tomcat under an AD service account, which is not difficult if you kow how to do that. 否则,您需要在AD服务帐户下运行Tomcat,如果您知道该怎么做,这并不困难。

I wrote a blog about SPNEGO authentication . 我写了一个有关SPNEGO身份验证的博客。 you do not need all the steps, it is enough that Tomcat will run as AD service. 您不需要所有步骤,Tomcat就可以作为AD服务运行就足够了。 (until configuring krb5.ini file) (直到配置krb5.ini文件)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在WebsitePanel平台上部署Java Web应用程序 - Deploying Java Web Application on WebsitePanel platform 将 Java Spring Boot 应用程序部署到 Azure Web App Linux - Deploying Java Spring Boot Application to Azure Web App Linux 使用 maven 构建跨平台(Linux、Windows)java JNI 应用程序 - Building cross-platform(Linux, Windows) java JNI application with maven 部署具有下降逆向工程保护的跨平台Java桌面应用程序? - Deploying cross-platform Java Desktop Application with descent reverse engineering protection? 将Java应用程序部署为Servlet - Deploying Java Application As Servlet 将Java应用程序部署到Heroku - Deploying Java Application to Heroku 在Linux系统上部署Java项目 - Deploying a Java project on Linux system 使用Java在Linux平台上启动画面 - Splashscreen on linux platform using java 在 Linux 上部署 Java 应用程序并通过 Active Directory 连接到 Azure SQL Server - Deploying java application on linux with connection to Azure SQL Server via Active Directory 多点触控跨平台java应用程序(Windows,Mac和Linux(Ubuntu)(可能是Android)) - Multi-touch cross platform java application (Windows, Mac, and Linux(Ubuntu)(possibly Android))
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM