Advertisement
Guest User

Untitled

a guest
Aug 30th, 2016
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.04 KB | None | 0 0
  1. Message: Error creating bean with name 'transactionManagerPostProcessor': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'hibernateProperties' while setting bean property 'hibernateProperties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.springframework.jdbc.support.MetaDataAccessException: Error while extracting DatabaseMetaData; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class 'org.h2.Driver' for connect URL 'jdbc:db2://localhost:50000/DTH3_E:currentSchema=DFP_V115'
  2. Line | Method
  3. ->> 303 | innerRun in java.util.concurrent.FutureTask$Sync
  4. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  5. | 138 | run in java.util.concurrent.FutureTask
  6. | 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
  7. | 908 | run in ''
  8. ^ 662 | run . . in java.lang.Thread
  9. Caused by BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'hibernateProperties' while setting bean property 'hibernateProperties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.springframework.jdbc.support.MetaDataAccessException: Error while extracting DatabaseMetaData; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class 'org.h2.Driver' for connect URL 'jdbc:db2://localhost:50000/DTH3_E:currentSchema=DFP_V115'
  10. ->> 303 | innerRun in java.util.concurrent.FutureTask$Sync
  11. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  12. | 138 | run in java.util.concurrent.FutureTask
  13. | 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
  14. | 908 | run in ''
  15. ^ 662 | run . . in java.lang.Thread
  16. Caused by BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'hibernateProperties' while setting bean property 'hibernateProperties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.springframework.jdbc.support.MetaDataAccessException: Error while extracting DatabaseMetaData; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class 'org.h2.Driver' for connect URL 'jdbc:db2://localhost:50000/DTH3_E:currentSchema=DFP_V115'
  17. ->> 303 | innerRun in java.util.concurrent.FutureTask$Sync
  18. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  19. | 138 | run in java.util.concurrent.FutureTask
  20. | 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
  21. | 908 | run in ''
  22. ^ 662 | run . . in java.lang.Thread
  23. Caused by BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.springframework.jdbc.support.MetaDataAccessException: Error while extracting DatabaseMetaData; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class 'org.h2.Driver' for connect URL 'jdbc:db2://localhost:50000/DTH3_E:currentSchema=DFP_V115'
  24. ->> 303 | innerRun in java.util.concurrent.FutureTask$Sync
  25. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  26. | 138 | run in java.util.concurrent.FutureTask
  27. | 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
  28. | 908 | run in ''
  29. ^ 662 | run . . in java.lang.Thread
  30. Caused by BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.springframework.jdbc.support.MetaDataAccessException: Error while extracting DatabaseMetaData; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class 'org.h2.Driver' for connect URL 'jdbc:db2://localhost:50000/DTH3_E:currentSchema=DFP_V115'
  31. ->> 303 | innerRun in java.util.concurrent.FutureTask$Sync
  32. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  33. | 138 | run in java.util.concurrent.FutureTask
  34. | 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
  35. | 908 | run in ''
  36. ^ 662 | run . . in java.lang.Thread
  37. Caused by MetaDataAccessException: Error while extracting DatabaseMetaData; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class 'org.h2.Driver' for connect URL 'jdbc:db2://localhost:50000/DTH3_E:currentSchema=DFP_V115'
  38. ->> 303 | innerRun in java.util.concurrent.FutureTask$Sync
  39. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  40. | 138 | run in java.util.concurrent.FutureTask
  41. | 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
  42. | 908 | run in ''
  43. ^ 662 | run . . in java.lang.Thread
  44. Caused by SQLNestedException: Cannot create JDBC driver of class 'org.h2.Driver' for connect URL 'jdbc:db2://localhost:50000/DTH3_E:currentSchema=DFP_V115'
  45. ->> 1452 | createConnectionFactory in org.apache.commons.dbcp.BasicDataSource
  46. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  47. | 1371 | createDataSource in ''
  48. | 1044 | getConnection in ''
  49. | 303 | innerRun in java.util.concurrent.FutureTask$Sync
  50. | 138 | run . . in java.util.concurrent.FutureTask
  51. | 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
  52. | 908 | run . . in ''
  53. ^ 662 | run in java.lang.Thread
  54. Caused by SQLException: No suitable driver
  55. ->> 264 | getDriver in java.sql.DriverManager
  56. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  57. | 1437 | createConnectionFactory in org.apache.commons.dbcp.BasicDataSource
  58. | 1371 | createDataSource in ''
  59. | 1044 | getConnection in ''
  60. | 303 | innerRun in java.util.concurrent.FutureTask$Sync
  61. | 138 | run in java.util.concurrent.FutureTask
  62. | 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
  63. | 908 | run in ''
  64. ^ 662 | run . . in java.lang.Thread
  65.  
  66. environments {
  67. development {
  68. dataSource {
  69. dbCreate = "create-drop" // one of 'create', 'create-drop', 'update', 'validate', ''
  70. //url = "jdbc:h2:mem:devDb;MVCC=TRUE;LOCK_TIMEOUT=10000"
  71. url = "jdbc:db2://localhost:50000/DTH3_E:currentSchema=DFP_V115"
  72. }
  73. }
  74. ....
  75.  
  76. dataSource {
  77. dialect="org.hibernate.dialect.DB2Dialect"
  78. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement