简体   繁体   English

WSO2身份服务器5.0.0 / JDBC MSSQL

[英]WSO2 Identity Server 5.0.0 / JDBC MSSQL

I'm just getting started with WSO2 Identity Server 5.0.0 on Window Server 2008 R2. 我刚刚开始使用Window Server 2008 R2上的WSO2 Identity Server 5.0.0。

I have a MSSQL database and I've followed the Admin Guide on how to set up the system with a MSSQL database instead of using the built in H2 database. 我有一个MSSQL数据库,并且遵循了《管理指南》中的有关如何使用MSSQL数据库而不是使用内置的H2数据库来设置系统的信息。

I'm getting stuck with JDBC. 我陷入了JDBC的困境。 I've downloaded every possible JDBC driver (4.0, 4.1, 4.2 and even 6). 我已经下载了所有可能的JDBC驱动程序(4.0、4.1、4.2甚至6)。 I have JDK 1.7u80 installed. 我已经安装了JDK 1.7u80。 I tried all the different sqljdbc.jar files including sqljdbc4.jar. 我尝试了所有不同的sqljdbc.jar文件,包括sqljdbc4.jar。 In all cases I'm getting an error message telling me that the driver is not compatible with JDK 1.7. 在所有情况下,我都会收到一条错误消息,告诉我该驱动程序与JDK 1.7不兼容。

This is the WSO2 doc I was using to set up MSSQL database . 这是我用来建立MSSQL数据库的WSO2文档

I also read the Microsoft JDBC website Microsoft JDBC Driver for SQL Server Support Matrix and at least one of the JAR files should have worked with 1.7 according to the documentation. 我还阅读了Microsoft JDBC网站SQL Server支持列表中的Microsoft JDBC驱动程序,根据文档,至少一个JAR文件应该与1.7兼容。

The WSO2 doc says JDK 1.8 is not supported so I haven't tried this. WSO2文档说不支持JDK 1.8,因此我没有尝试过。

Any ideas anyone? 有任何想法吗?

Error: 错误:

... [2015-12-06 23:00:20,962] ERROR {org.wso2.carbon.user.core.util.DatabaseUtil} - Database Error - Java Runtime Environment (JRE) version 1.7 is not supported by this driver. ... [2015-12-06 23:00:20,962]错误{org.wso2.carbon.user.core.util.DatabaseUtil}-数据库错误-此驱动程序不支持Java运行时环境(JRE)1.7版。 Use the sqljdbc4.jar class library, which provides support for JDB C 4.0. 使用sqljdbc4.jar类库,该库提供对JDB C 4.0的支持。 java.sql.SQLException: Java Runtime Environment (JRE) version 1.7 is not support ed by this driver. java.sql.SQLException:此驱动程序不支持Java Runtime Environment(JRE)版本1.7。 Use the sqljdbc4.jar class library, which provides support fo r JDBC 4.0. 使用sqljdbc4.jar类库,该类库提供JDBC 4.0的支持。 ... ...

Based on the documentation you can find at the link below 4.0 supports Java 5 & 6. 4.1 Supports Java 5, 6 & 7. 4.2 Supports Java 5,6,7 & 8. So sqljdbc4.jar would not work for you if you are using 7, but the rest should. 根据文档,您可以在下面的链接中找到4.0支持Java 5和6。4.1支持Java 5、6和7。4.2支持Java 5、6、7和8。因此,如果您是sqljdbc4.jar,则对您不起作用使用7,其余的应该。 I am assuming you updated the driver name in your master-datasources.xml file? 我假设您在master-datasources.xml文件中更新了驱动程序名称? Are you able to share that file? 您可以共享该文件吗? We are using sqljdbc4_1.0.0.jar and JDK 1.7 with no issues. 我们正在使用sqljdbc4_1.0.0.jar和JDK 1.7,没有问题。

https://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=11774 https://www.microsoft.com/zh-cn/download/details.aspx?displaylang=en&id=11774

Joe

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM