Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 9th, 2014  |  syntax: None  |  size: 1.19 KB  |  views: 28  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Caused by: org.hibernate.TransactionException: JDBC begin failed:
  2.         at org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:92)
  3.         at org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1473)
  4.         at org.springframework.orm.hibernate3.HibernateTransactionManager.doBegin(HibernateTransactionManager.java:555)
  5.         ... 84 more
  6. Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: The connection is closed.
  7.         at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(SQLServerException.java:190)
  8.         at com.microsoft.sqlserver.jdbc.SQLServerConnection.checkClosed(SQLServerConnection.java:388)
  9.         at com.microsoft.sqlserver.jdbc.SQLServerConnection.getAutoCommit(SQLServerConnection.java:
  10.        
  11. dataSource {
  12.             dialect = org.hibernate.dialect.SQLServerDialect
  13.             driverClassName = 'com.microsoft.sqlserver.jdbc.SQLServerDriver'
  14.             username = 'user'
  15.             password = 'P@SSWorD'
  16.             url = 'jdbc:sqlserver://hostName;DatabaseName=dbName;instanceName=instanceName'
  17.             dbCreate = 'update' // Deliberately kept in update mode due to some reasons. Please advise if it has to be changed as well.
  18. }
clone this paste RAW Paste Data