Advertisement
Guest User

Untitled

a guest
Feb 9th, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. grails.config.locations = ["classpath:mytool-config.properties"]
  2.  
  3. dataSource.username = "sa"
  4. dataSource.password = "db!admin"
  5. dataSource.url = "jdbc:h2:file:E:\MyTool\db\MyTool;MVCC=TRUE;LOCK_TIMEOUT=10000"
  6.  
  7. dataSource {
  8. jmxExport = true
  9. driverClassName = "org.h2.Driver"
  10. pooled = true
  11. }
  12. hibernate {
  13. cache.use_second_level_cache = true
  14. cache.region.factory_class = 'org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory' // Hibernate 4
  15. singleSession = true // configure OSIV singleSession mode
  16. flush.mode = 'manual' // OSIV session flush mode outside of transactional context
  17. }
  18.  
  19. // environment specific settings
  20. environments {
  21. development {
  22. dataSource {
  23. dbCreate = "update"
  24. logSql = false
  25. }
  26. hibernate.cache.use_query_cache = false
  27. }
  28. production {
  29. dataSource {
  30. dbCreate = "update"
  31. logSql = false
  32. }
  33. hibernate.cache.use_query_cache = true
  34. }
  35. }
  36.  
  37. 2016-02-09 11:59:35,797 [localhost-startStop-1] ERROR pool.ConnectionPool - Unable to create initial connections of pool.
  38. java.sql.SQLException: Driver:org.h2.Driver@3871b7bc returned null for URL:"jdbc:h2:file:E:/M3ReleaseTool/db/M3ReleaseTool;MVCC=TRUE;LOCK_TIMEOUT=10000"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement