We have recently migrated to SQL server 2014 with JAVA 5 on one machine and JAVA 6 on another (this is a requirement). When I try to connect to database I get follwoing exception.
org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (
com.microsoft.sqlserver.jdbc.SQLServerException:
The server version is not supported.
The target server must be SQL Server 2000 or later.
)
at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:168)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:508)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:207)
Following is the configuration:
You will need to upgrade your SQL Server JDBC driver to at least version 4.0 (download here ). Then you can use its versions of
to access SQL Server 2014.
我们丢弃了sqljdnc4.jar
并使用了jtds jar
而且一切都像魅力一样。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.