java.sql.SQLException:I / O错误:SSO失败:本机SSPI库 [英] java.sql.SQLException: I/O Error: SSO Failed: Native SSPI library

查看:151
本文介绍了java.sql.SQLException:I / O错误:SSO失败:本机SSPI库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个Web应用程序需要在Tomcat 6,MS SQL 2008和JTDS-1.2.2上作为驱动程序运行。

I have two web-applications which need to run on Tomcat 6, MS SQL 2008 and JTDS-1.2.2 as driver.

如果我只启动一个Web应用程序一切正常,但是一旦我开始第二个,我得到以下错误(订单无关紧要):

If I start only one web application everything is working fine, but as soon as I start the second one I get the following error (it does not matter the order):

java.sql.SQLException: I/O Error: SSO Failed: Native SSPI library

当然,库 ntlmauth.dll 位于 C:\ WINDOWS \ system32

似乎启动的第二个应用程序无法为单点登录找到 ntlmauth.dll

It seems that the second application which starts is not able to find the ntlmauth.dll for the single sign on.

推荐答案

这是解决方案:

下载 jTDS驱动程序,解压缩并复制 x86 \ SSO \\ \\ antlmauth.dll jdk \ jre \ bin

Download the jTDS driver, unzip it, and copy x86\SSO\ntlmauth.dll to jdk\jre\bin.

这可以解决您的问题。

修改:

如果没有安装JDK,我的路径是 C:\Program Files\Java\jre7\bin\\\
tlmauth.dll

Without the JDK installed the path for me was C:\Program Files\Java\jre7\bin\ntlmauth.dll

jTDS必须能够加载本机SPPI库(ntlmauth.dll)。将此DLL放在系统路径中的任何位置(由PATH系统变量定义)并且您已完成设置。

这篇关于java.sql.SQLException:I / O错误:SSO失败:本机SSPI库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆