Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dataSource {
- pooled = true
- driverClassName = "com.mysql.jdbc.Driver"
- username = "root"
- password = ""
- }
- hibernate {
- cache.use_second_level_cache = true
- cache.use_query_cache = false
- cache.region.factory_class = 'org.hibernate.cache.ehcache.EhCacheRegionFactory'
- dialect = 'org.hibernate.dialect.MySQL5InnoDBDialect'
- // cache.region.factory_class = 'org.hibernate.cache.ehcache.EhCacheRegionFactory' // Hibernate 4
- }
- // environment specific settings
- environments {
- development {
- dataSource {
- dbCreate = "update" // one of 'create', 'create-drop', 'update', 'validate', ''
- url = "jdbc:mysql://localhost:3306/teste_guilherme"
- }
- }
- test {
- dataSource {
- dbCreate = "create-drop"
- url = "jdbc:mysql://localhost:3306/teste_guilherme"
- }
- }
- production {
- dataSource {
- dbCreate = "update"
- url = "jdbc:mysql://localhost:3306/teste_guilherme"
- }
- }
- }
- Error |
- 2017-09-29 08:58:51,818 [localhost-startStop-1] ERROR pool.ConnectionPool - Una
- ble to create initial connections of pool.
- Message: com.mysql.jdbc.Driver
- Line | Method
- ->> 262 | run in java.util.concurrent.FutureTask
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- | 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
- | 615 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker
- ^ 745 | run in java.lang.Thread
- Caused by ClassNotFoundException: com.mysql.jdbc.Driver
- ->> 366 | run in java.net.URLClassLoader$1
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- | 355 | run in ''
- | 354 | findClass in java.net.URLClassLoader
- | 425 | loadClass in java.lang.ClassLoader
- | 278 | forName . in java.lang.Class
- | 262 | run in java.util.concurrent.FutureTask
- | 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
- | 615 | run in java.util.concurrent.ThreadPoolExecutor$Worker
- ^ 745 | run . . . in java.lang.Thread
- Error |
- 2017-09-29 08:58:51,849 [localhost-startStop-1] ERROR pool.ConnectionPool - Una
- ble to create initial connections of pool.
- Message: com.mysql.jdbc.Driver
- Line | Method
- ->> 262 | run in java.util.concurrent.FutureTask
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- | 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
- | 615 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker
- ^ 745 | run in java.lang.Thread
- Caused by ClassNotFoundException: com.mysql.jdbc.Driver
- ->> 366 | run in java.net.URLClassLoader$1
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- | 355 | run in ''
- | 354 | findClass in java.net.URLClassLoader
- | 425 | loadClass in java.lang.ClassLoader
- | 278 | forName . in java.lang.Class
- | 262 | run in java.util.concurrent.FutureTask
- | 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
- | 615 | run in java.util.concurrent.ThreadPoolExecutor$Worker
- ^ 745 | run . . . in java.lang.Thread
- Error |
- 2017-09-29 08:58:52,293 [localhost-startStop-1] ERROR pool.ConnectionPool - Una
- ble to create initial connections of pool.
- Message: com.mysql.jdbc.Driver
- Line | Method
- ->> 262 | run in java.util.concurrent.FutureTask
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- | 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
- | 615 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker
- ^ 745 | run in java.lang.Thread
- Caused by ClassNotFoundException: com.mysql.jdbc.Driver
- ->> 366 | run in java.net.URLClassLoader$1
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- | 355 | run in ''
- | 354 | findClass in java.net.URLClassLoader
- | 425 | loadClass in java.lang.ClassLoader
- | 278 | forName . in java.lang.Class
- | 262 | run in java.util.concurrent.FutureTask
- | 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
- | 615 | run in java.util.concurrent.ThreadPoolExecutor$Worker
- ^ 745 | run . . . in java.lang.Thread
- Error |
- 2017-09-29 08:58:52,325 [localhost-startStop-1] ERROR context.GrailsContextLoade
- rListener - Error initializing the application: Error creating bean with name '
- transactionManagerPostProcessor': Initialization of bean failed; nested exceptio
- n is org.springframework.beans.factory.BeanCreationException: Error creating bea
- n with name 'transactionManager': Cannot resolve reference to bean 'sessionFacto
- ry' while setting bean property 'sessionFactory'; nested exception is org.spring
- framework.beans.factory.BeanCreationException: Error creating bean with name 'se
- ssionFactory': Invocation of init method failed; nested exception is java.lang.N
- ullPointerException
- Message: Error creating bean with name 'transactionManagerPostProcessor': Initia
- lization of bean failed; nested exception is org.springframework.beans.factory.B
- eanCreationException: Error creating bean with name 'transactionManager': Cannot
- resolve reference to bean 'sessionFactory' while setting bean property 'session
- Factory'; nested exception is org.springframework.beans.factory.BeanCreationExce
- ption: Error creating bean with name 'sessionFactory': Invocation of init method
- failed; nested exception is java.lang.NullPointerException
- Line | Method
- ->> 262 | run in java.util.concurrent.FutureTask
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- | 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
- | 615 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker
- ^ 745 | run in java.lang.Thread
- Caused by BeanCreationException: Error creating bean with name 'transactionManag
- er': Cannot resolve reference to bean 'sessionFactory' while setting bean proper
- ty 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanC
- reationException: Error creating bean with name 'sessionFactory': Invocation of
- init method failed; nested exception is java.lang.NullPointerException
- ->> 262 | run in java.util.concurrent.FutureTask
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- | 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
- | 615 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker
- ^ 745 | run in java.lang.Thread
- Caused by BeanCreationException: Error creating bean with name 'sessionFactory':
- Invocation of init method failed; nested exception is java.lang.NullPointerExce
- ption
- ->> 262 | run in java.util.concurrent.FutureTask
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- | 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
- | 615 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker
- ^ 745 | run in java.lang.Thread
- Caused by NullPointerException: null
- ->> 262 | run in java.util.concurrent.FutureTask
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- | 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
- | 615 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker
- ^ 745 | run in java.lang.Thread
- | Error Forked Grails VM exited with error
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement