java.lang.UnsupportedOperationException for driver sqljdbc4.jar

Solution Verified - Updated -

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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.