title: SSLv3 Related Errors - Spring + Hibernate + SQL Server on Tomcat
body: <p>I am getting issues connecting to SQL Server 2008 from Spring Hibernate Application hosted on tomcat (RHEL)</p>
  
  <p>My beans : </p>
  
  <pre><code>&lt;beans:bean id="sDataSource"
          class="org.springframework.jdbc.datasource.DriverManagerDataSource"&gt;
          &lt;beans:property name="driverClassName" value="com.microsoft.sqlserver.jdbc.SQLServerDriver" /&gt;
          &lt;beans:property name="url" value="jdbc:sqlserver://abc.com:1433;databaseName=ABC;" /&gt;
          &lt;beans:property name="username" value="AAAAAAA" /&gt;
          &lt;beans:property name="password" value="XXXXXXXX" /&gt;
      &lt;/beans:bean&gt;
  </code></pre>
  
  <p>Initially I got this error : </p>
  
  <pre><code>[04-18-2016 17:45:01,837-0400] [Line:   ?] DEBUG [com.services.hibernate.SessionHandler] [Entering Method getSession()]
  [04-18-2016 17:45:01,882-0400] [Line:   ?] DEBUG [com.services.hibernate.SessionHandler] [Exiting Method getSession()]
  [04-18-2016 17:45:01,901-0400] [Line:   ?] ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] [The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "SSLv3 SSLContext not available".]
  [04-18-2016 17:45:01,902-0400] [Line:   ?] DEBUG [com.services.hibernate.SessionHandler] [Entering Method returnSession()]
  [04-18-2016 17:45:01,903-0400] [Line:   ?] DEBUG [com.services.hibernate.SessionHandler] [Exiting Method returnSession()]
  </code></pre>
  
  <p>Then I came across this <a href="https://stackoverflow.com/questions/28733799/sslv3-error-connecting-jdbc-to-sql-server-2012">question</a>, and made changes as <code>-Dcom.ibm.jsse2.disableSSLv3=false</code></p>
  
  <p>And then I got this error:</p>
  
  <pre><code>[04-18-2016 17:47:45,728-0400] [Line:   ?] DEBUG [com.services.hibernate.SessionHandler] [Entering Method getSession()]
  [04-18-2016 17:47:45,815-0400] [Line:   ?] DEBUG [com.services.hibernate.SessionHandler] [Exiting Method getSession()]
  [04-18-2016 17:47:45,845-0400] [Line:   ?] ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] [The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "No appropriate protocol (protocol is disabled or cipher suites are inappropriate)".]
  [04-18-2016 17:47:45,847-0400] [Line:   ?] DEBUG [com.services.hibernate.SessionHandler] [Entering Method returnSession()]
  [04-18-2016 17:47:45,848-0400] [Line:   ?] DEBUG [com.services.hibernate.SessionHandler] [Exiting Method returnSession()]
  </code></pre>
  
  <p>The code is completely functioning as it is returning results on my local environment but as I deploy it in cloud (RHEL V6) I am getting these errors.</p>
  
  <p>Please help me out. I am completely stuck at this point.</p>
  
  <p><strong>Do I need to install something on Linux Server?</strong></p>