Advertisement
Guest User

Untitled

a guest
Sep 29th, 2017
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.13 KB | None | 0 0
  1. dataSource {
  2. pooled = true
  3. driverClassName = "com.mysql.jdbc.Driver"
  4. username = "root"
  5. password = ""
  6. }
  7. hibernate {
  8. cache.use_second_level_cache = true
  9. cache.use_query_cache = false
  10. cache.region.factory_class = 'org.hibernate.cache.ehcache.EhCacheRegionFactory'
  11. dialect = 'org.hibernate.dialect.MySQL5InnoDBDialect'
  12. // cache.region.factory_class = 'org.hibernate.cache.ehcache.EhCacheRegionFactory' // Hibernate 4
  13. }
  14.  
  15. // environment specific settings
  16. environments {
  17. development {
  18. dataSource {
  19. dbCreate = "update" // one of 'create', 'create-drop', 'update', 'validate', ''
  20. url = "jdbc:mysql://localhost:3306/teste_guilherme"
  21. }
  22. }
  23. test {
  24. dataSource {
  25. dbCreate = "create-drop"
  26. url = "jdbc:mysql://localhost:3306/teste_guilherme"
  27. }
  28. }
  29. production {
  30. dataSource {
  31. dbCreate = "update"
  32. url = "jdbc:mysql://localhost:3306/teste_guilherme"
  33. }
  34. }
  35. }
  36.  
  37. Error |
  38. 2017-09-29 08:58:51,818 [localhost-startStop-1] ERROR pool.ConnectionPool - Una
  39. ble to create initial connections of pool.
  40. Message: com.mysql.jdbc.Driver
  41. Line | Method
  42. ->> 262 | run in java.util.concurrent.FutureTask
  43. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  44. | 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
  45. | 615 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker
  46. ^ 745 | run in java.lang.Thread
  47. Caused by ClassNotFoundException: com.mysql.jdbc.Driver
  48. ->> 366 | run in java.net.URLClassLoader$1
  49. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  50. | 355 | run in ''
  51. | 354 | findClass in java.net.URLClassLoader
  52. | 425 | loadClass in java.lang.ClassLoader
  53. | 278 | forName . in java.lang.Class
  54. | 262 | run in java.util.concurrent.FutureTask
  55. | 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
  56. | 615 | run in java.util.concurrent.ThreadPoolExecutor$Worker
  57. ^ 745 | run . . . in java.lang.Thread
  58. Error |
  59. 2017-09-29 08:58:51,849 [localhost-startStop-1] ERROR pool.ConnectionPool - Una
  60. ble to create initial connections of pool.
  61. Message: com.mysql.jdbc.Driver
  62. Line | Method
  63. ->> 262 | run in java.util.concurrent.FutureTask
  64. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  65. | 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
  66. | 615 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker
  67. ^ 745 | run in java.lang.Thread
  68. Caused by ClassNotFoundException: com.mysql.jdbc.Driver
  69. ->> 366 | run in java.net.URLClassLoader$1
  70. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  71. | 355 | run in ''
  72. | 354 | findClass in java.net.URLClassLoader
  73. | 425 | loadClass in java.lang.ClassLoader
  74. | 278 | forName . in java.lang.Class
  75. | 262 | run in java.util.concurrent.FutureTask
  76. | 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
  77. | 615 | run in java.util.concurrent.ThreadPoolExecutor$Worker
  78. ^ 745 | run . . . in java.lang.Thread
  79. Error |
  80. 2017-09-29 08:58:52,293 [localhost-startStop-1] ERROR pool.ConnectionPool - Una
  81. ble to create initial connections of pool.
  82. Message: com.mysql.jdbc.Driver
  83. Line | Method
  84. ->> 262 | run in java.util.concurrent.FutureTask
  85. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  86. | 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
  87. | 615 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker
  88. ^ 745 | run in java.lang.Thread
  89. Caused by ClassNotFoundException: com.mysql.jdbc.Driver
  90. ->> 366 | run in java.net.URLClassLoader$1
  91. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  92. | 355 | run in ''
  93. | 354 | findClass in java.net.URLClassLoader
  94. | 425 | loadClass in java.lang.ClassLoader
  95. | 278 | forName . in java.lang.Class
  96. | 262 | run in java.util.concurrent.FutureTask
  97. | 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
  98. | 615 | run in java.util.concurrent.ThreadPoolExecutor$Worker
  99. ^ 745 | run . . . in java.lang.Thread
  100. Error |
  101. 2017-09-29 08:58:52,325 [localhost-startStop-1] ERROR context.GrailsContextLoade
  102. rListener - Error initializing the application: Error creating bean with name '
  103. transactionManagerPostProcessor': Initialization of bean failed; nested exceptio
  104. n is org.springframework.beans.factory.BeanCreationException: Error creating bea
  105. n with name 'transactionManager': Cannot resolve reference to bean 'sessionFacto
  106. ry' while setting bean property 'sessionFactory'; nested exception is org.spring
  107. framework.beans.factory.BeanCreationException: Error creating bean with name 'se
  108. ssionFactory': Invocation of init method failed; nested exception is java.lang.N
  109. ullPointerException
  110. Message: Error creating bean with name 'transactionManagerPostProcessor': Initia
  111. lization of bean failed; nested exception is org.springframework.beans.factory.B
  112. eanCreationException: Error creating bean with name 'transactionManager': Cannot
  113. resolve reference to bean 'sessionFactory' while setting bean property 'session
  114. Factory'; nested exception is org.springframework.beans.factory.BeanCreationExce
  115. ption: Error creating bean with name 'sessionFactory': Invocation of init method
  116. failed; nested exception is java.lang.NullPointerException
  117. Line | Method
  118. ->> 262 | run in java.util.concurrent.FutureTask
  119. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  120. | 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
  121. | 615 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker
  122. ^ 745 | run in java.lang.Thread
  123. Caused by BeanCreationException: Error creating bean with name 'transactionManag
  124. er': Cannot resolve reference to bean 'sessionFactory' while setting bean proper
  125. ty 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanC
  126. reationException: Error creating bean with name 'sessionFactory': Invocation of
  127. init method failed; nested exception is java.lang.NullPointerException
  128. ->> 262 | run in java.util.concurrent.FutureTask
  129. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  130. | 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
  131. | 615 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker
  132. ^ 745 | run in java.lang.Thread
  133. Caused by BeanCreationException: Error creating bean with name 'sessionFactory':
  134. Invocation of init method failed; nested exception is java.lang.NullPointerExce
  135. ption
  136. ->> 262 | run in java.util.concurrent.FutureTask
  137. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  138. | 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
  139. | 615 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker
  140. ^ 745 | run in java.lang.Thread
  141. Caused by NullPointerException: null
  142. ->> 262 | run in java.util.concurrent.FutureTask
  143. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  144. | 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
  145. | 615 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker
  146. ^ 745 | run in java.lang.Thread
  147. | Error Forked Grails VM exited with error
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement