0
Spring + Hibernate的+ SQL服務器
我正在從春天Hibernate的應用程序連接到SQL Server 2008的問題,託管在Tomcat(RHEL)的SSLv3相關的錯誤 - 在Tomcat
我豆類:
<beans:bean id="sDataSource"
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<beans:property name="driverClassName" value="com.microsoft.sqlserver.jdbc.SQLServerDriver" />
<beans:property name="url" value="jdbc:sqlserver://abc.com:1433;databaseName=ABC;" />
<beans:property name="username" value="AAAAAAA" />
<beans:property name="password" value="XXXXXXXX" />
</beans:bean>
起初我得到這個錯誤:
[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()]
然後我碰到這個question,並提出了變化-Dcom.ibm.jsse2.disableSSLv3=false
然後我得到這個錯誤:
[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()]
的代碼是完全用作它返回在我的本地環境的結果,但正如我在雲中部署它(RHEL V6)我得到這些錯誤。
請幫我一把。我完全停留在這一點上。
我需要在Linux服務器上安裝一些東西嗎?