java.lang.UnsupportedOperationException for driver sqljdbc4.jar
Issue
Follwoing exception was comming when starting JBoss with Microsoft SQL Server as the database.
Caused by: java.lang.UnsupportedOperationException: Java Runtime Environment (JRE) version 1.6 is not supported by this driver. Use the sqljdbc4.jar class library, which provides support for JDBC 4.0.
at com.microsoft.sqlserver.jdbc.SQLServerConnection.<init>(SQLServerConnection.java:238)
at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(SQLServerDriver.java:841)
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 5.x
- Microsoft SQL Server 2008 R2 ( sqljdbc.jar and sqljdbc4.jar )
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.