Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

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

Of course, the library ntlmauth.dll is under C:\WINDOWS\system32

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

like image 610
andrew0007 Avatar asked Nov 18 '10 21:11

andrew0007


1 Answers

I got past this by changing the url from

jdbc:jtds:sqlserver://host_server:1433/Database_name

to

jdbc:jtds:sqlserver://host_server:1433/Database_name;user=XXX;password=YYY

Apparently, "When URL [does] not contains user and password properties, systems uses Windows authentication method, and "SSPI Native library not found" error appears."

like image 96
Speck Avatar answered Sep 18 '22 08:09

Speck