SQLServerException: 此驱动程序未配置集成身份验证
SQLServerException: This driver is not configured for integrated authentication
我正在构建查询 SQL 服务器的 GWT 应用程序。在 Eclipse 中工作时,一切都很好,但当我尝试部署 .war 文件并将其粘贴到 JBoss 部署目录时,我收到此错误:
Failed to load the sqljdbc_auth.dll cause : Native Library
JBossServerPath\bin\sqljdbc_auth.dll already loaded in another
classloader com.microsoft.sqlserver.jdbc.SQLServerException: This
driver is not configured for integrated authentication.
ClientConnectionId:450886fa-8bde-4f52-b213-7af1f4948913
如果我从我的项目目录中删除 sqljdbc4.jar 并按照建议 JBossPath\bin 目录中的 sqljdbc_auth.dll here,我会收到以下错误。
java.sql.SQLException: No suitable driver found for
jdbc:sqlserver://localhost:1433;databaseName=DataBase;integratedSecurity=true;
另外,我找不到上面回答中引用的lib目录。
我的项目 WEB-INF\lib 目录中有 sqljdbc4.jar,我正在使用 ant 构建项目。
我试过问 this question earlier, but it got marked as a duplicate of this question,但没有解决我的问题。
问题是我的 Manifest.MF 文件中没有行 Dependencies: com.microsoft.sqlserver
。
我正在构建查询 SQL 服务器的 GWT 应用程序。在 Eclipse 中工作时,一切都很好,但当我尝试部署 .war 文件并将其粘贴到 JBoss 部署目录时,我收到此错误:
Failed to load the sqljdbc_auth.dll cause : Native Library JBossServerPath\bin\sqljdbc_auth.dll already loaded in another classloader com.microsoft.sqlserver.jdbc.SQLServerException: This driver is not configured for integrated authentication. ClientConnectionId:450886fa-8bde-4f52-b213-7af1f4948913
如果我从我的项目目录中删除 sqljdbc4.jar 并按照建议 JBossPath\bin 目录中的 sqljdbc_auth.dll here,我会收到以下错误。
java.sql.SQLException: No suitable driver found for jdbc:sqlserver://localhost:1433;databaseName=DataBase;integratedSecurity=true;
另外,我找不到上面回答中引用的lib目录。
我的项目 WEB-INF\lib 目录中有 sqljdbc4.jar,我正在使用 ant 构建项目。
我试过问 this question earlier, but it got marked as a duplicate of this question,但没有解决我的问题。
问题是我的 Manifest.MF 文件中没有行 Dependencies: com.microsoft.sqlserver
。