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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content