Advertisement
Guest User

Exceção

a guest
Aug 23rd, 2016
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.55 KB | None | 0 0
  1. INFORMAÇÕES: Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, contextClassLoaderSource -> caller, dataSourceName -> z8kfsx9i1f608dhz0xxs7|5eb3ad56, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> com.mysql.jdbc.Driver, extensions -> {}, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, forceSynchronousCheckins -> false, forceUseNamedDriverClass -> false, identityToken -> z8kfsx9i1f608dhz0xxs7|5eb3ad56, idleConnectionTestPeriod -> 0, initialPoolSize -> 5, jdbcUrl -> jdbc:mysql://kalifasadmindb.crguwkykhuor.sa-east-1.rds.amazonaws.com/Kalifas, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 0, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 5, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 5, numHelperThreads -> 3, preferredTestQuery -> null, privilegeSpawnedThreads -> false, properties -> {user=******, password=******}, propertyCycle -> 0, statementCacheNumDeferredCloseThreads -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, userOverrides -> {}, usesTraditionalReflectiveProxies -> false ]
  2. 14:18:01.508 [localhost-startStop-1] ERROR org.springframework.web.context.ContextLoader - Context initialization failed
  3. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in com.algaworks.brewer.config.JPAConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.persistence.EntityManagerFactory]: Factory method 'entityManagerFactory' threw exception; nested exception is org.hibernate.AnnotationException: No identifier specified for entity: com.algaworks.brewer.model.Cerveja
  4. at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599) ~[spring-beans-4.3.0.RELEASE.jar:4.3.0.RELEASE]
  5. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1123) ~[spring-beans-4.3.0.RELEASE.jar:4.3.0.RELEASE]
  6. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1018) ~[spring-beans-4.3.0.RELEASE.jar:4.3.0.RELEASE]
  7. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510) ~[spring-beans-4.3.0.RELEASE.jar:4.3.0.RELEASE]
  8. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) ~[spring-beans-4.3.0.RELEASE.jar:4.3.0.RELEASE]
  9. at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.3.0.RELEASE.jar:4.3.0.RELEASE]
  10. at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.3.0.RELEASE.jar:4.3.0.RELEASE]
  11. at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.3.0.RELEASE.jar:4.3.0.RELEASE]
  12. at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.3.0.RELEASE.jar:4.3.0.RELEASE]
  13. at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:775) ~[spring-beans-4.3.0.RELEASE.jar:4.3.0.RELEASE]
  14. at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:861) ~[spring-context-4.3.0.RELEASE.jar:4.3.0.RELEASE]
  15. at org.springframework.context.support.AbstractApplicationContext.__refresh(AbstractApplicationContext.java:541) ~[spring-context-4.3.0.RELEASE.jar:4.3.0.RELEASE]
  16. at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java) ~[spring-context-4.3.0.RELEASE.jar:4.3.0.RELEASE]
  17. at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:444) ~[spring-web-4.3.0.RELEASE.jar:4.3.0.RELEASE]
  18. at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:326) [spring-web-4.3.0.RELEASE.jar:4.3.0.RELEASE]
  19. at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107) [spring-web-4.3.0.RELEASE.jar:4.3.0.RELEASE]
  20. at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4840) [catalina.jar:8.0.36]
  21. at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5303) [catalina.jar:8.0.36]
  22. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147) [catalina.jar:8.0.36]
  23. at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1407) [catalina.jar:8.0.36]
  24. at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1397) [catalina.jar:8.0.36]
  25. at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_91]
  26. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_91]
  27. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_91]
  28. at java.lang.Thread.run(Thread.java:745) [?:1.8.0_91]
  29. Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.persistence.EntityManagerFactory]: Factory method 'entityManagerFactory' threw exception; nested exception is org.hibernate.AnnotationException: No identifier specified for entity: com.algaworks.brewer.model.Cerveja
  30. at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189) ~[spring-beans-4.3.0.RELEASE.jar:4.3.0.RELEASE]
  31. at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588) ~[spring-beans-4.3.0.RELEASE.jar:4.3.0.RELEASE]
  32. ... 24 more
  33. Caused by: org.hibernate.AnnotationException: No identifier specified for entity: com.algaworks.brewer.model.Cerveja
  34. at org.hibernate.cfg.InheritanceState.determineDefaultAccessType(InheritanceState.java:265) ~[hibernate-core-5.1.0.Final.jar:5.1.0.Final]
  35. at org.hibernate.cfg.InheritanceState.getElementsToProcess(InheritanceState.java:211) ~[hibernate-core-5.1.0.Final.jar:5.1.0.Final]
  36. at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:712) ~[hibernate-core-5.1.0.Final.jar:5.1.0.Final]
  37. at org.hibernate.boot.model.source.internal.annotations.AnnotationMetadataSourceProcessorImpl.processEntityHierarchies(AnnotationMetadataSourceProcessorImpl.java:245) ~[hibernate-core-5.1.0.Final.jar:5.1.0.Final]
  38. at org.hibernate.boot.model.process.spi.MetadataBuildingProcess$1.processEntityHierarchies(MetadataBuildingProcess.java:222) ~[hibernate-core-5.1.0.Final.jar:5.1.0.Final]
  39. at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:265) ~[hibernate-core-5.1.0.Final.jar:5.1.0.Final]
  40. at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:848) ~[hibernate-entitymanager-5.1.0.Final.jar:5.1.0.Final]
  41. at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:876) ~[hibernate-entitymanager-5.1.0.Final.jar:5.1.0.Final]
  42. at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.__createEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:60) ~[spring-orm-4.3.0.RELEASE.jar:4.3.0.RELEASE]
  43. at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java) ~[spring-orm-4.3.0.RELEASE.jar:4.3.0.RELEASE]
  44. at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.__createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:338) ~[spring-orm-4.3.0.RELEASE.jar:4.3.0.RELEASE]
  45. at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java) ~[spring-orm-4.3.0.RELEASE.jar:4.3.0.RELEASE]
  46. at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:373) ~[spring-orm-4.3.0.RELEASE.jar:4.3.0.RELEASE]
  47. at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:362) ~[spring-orm-4.3.0.RELEASE.jar:4.3.0.RELEASE]
  48. at com.algaworks.brewer.config.JPAConfig.entityManagerFactory(JPAConfig.java:50) ~[classes/:?]
  49. at com.algaworks.brewer.config.JPAConfig$$EnhancerBySpringCGLIB$$41bb5d8b.CGLIB$entityManagerFactory$0(<generated>) ~[JPAConfig$$EnhancerBySpringCGLIB$$41bb5d8b.class:?]
  50. at com.algaworks.brewer.config.JPAConfig$$EnhancerBySpringCGLIB$$41bb5d8b$$FastClassByCGLIB$$8e239f5d.invoke(<generated>) ~[JPAConfig$$EnhancerBySpringCGLIB$$41bb5d8b$$FastClassByCGLIB$$8e239f5d.class:?]
  51. at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) ~[spring-core-4.3.0.RELEASE.jar:4.3.0.RELEASE]
  52. at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:356) ~[spring-context-4.3.0.RELEASE.jar:4.3.0.RELEASE]
  53. at com.algaworks.brewer.config.JPAConfig$$EnhancerBySpringCGLIB$$41bb5d8b.entityManagerFactory(<generated>) ~[JPAConfig$$EnhancerBySpringCGLIB$$41bb5d8b.class:?]
  54. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91]
  55. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_91]
  56. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_91]
  57. at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_91]
  58. at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162) ~[spring-beans-4.3.0.RELEASE.jar:4.3.0.RELEASE]
  59. at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588) ~[spring-beans-4.3.0.RELEASE.jar:4.3.0.RELEASE]
  60. ... 24 more
  61. ago 23, 2016 2:18:01 PM org.apache.catalina.core.StandardContext listenerStart
  62. GRAVE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
  63. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in com.algaworks.brewer.config.JPAConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.persistence.EntityManagerFactory]: Factory method 'entityManagerFactory' threw exception; nested exception is org.hibernate.AnnotationException: No identifier specified for entity: com.algaworks.brewer.model.Cerveja
  64. at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599)
  65. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1123)
  66. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1018)
  67. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)
  68. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
  69. at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
  70. at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
  71. at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
  72. at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
  73. at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:775)
  74. at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:861)
  75. at org.springframework.context.support.AbstractApplicationContext.__refresh(AbstractApplicationContext.java:541)
  76. at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java)
  77. at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:444)
  78. at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:326)
  79. at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
  80. at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4840)
  81. at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5303)
  82. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
  83. at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1407)
  84. at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1397)
  85. at java.util.concurrent.FutureTask.run(FutureTask.java:266)
  86. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
  87. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
  88. at java.lang.Thread.run(Thread.java:745)
  89. Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.persistence.EntityManagerFactory]: Factory method 'entityManagerFactory' threw exception; nested exception is org.hibernate.AnnotationException: No identifier specified for entity: com.algaworks.brewer.model.Cerveja
  90. at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189)
  91. at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)
  92. ... 24 more
  93. Caused by: org.hibernate.AnnotationException: No identifier specified for entity: com.algaworks.brewer.model.Cerveja
  94. at org.hibernate.cfg.InheritanceState.determineDefaultAccessType(InheritanceState.java:265)
  95. at org.hibernate.cfg.InheritanceState.getElementsToProcess(InheritanceState.java:211)
  96. at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:712)
  97. at org.hibernate.boot.model.source.internal.annotations.AnnotationMetadataSourceProcessorImpl.processEntityHierarchies(AnnotationMetadataSourceProcessorImpl.java:245)
  98. at org.hibernate.boot.model.process.spi.MetadataBuildingProcess$1.processEntityHierarchies(MetadataBuildingProcess.java:222)
  99. at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:265)
  100. at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:848)
  101. at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:876)
  102. at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.__createEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:60)
  103. at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java)
  104. at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.__createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:338)
  105. at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java)
  106. at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:373)
  107. at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:362)
  108. at com.algaworks.brewer.config.JPAConfig.entityManagerFactory(JPAConfig.java:50)
  109. at com.algaworks.brewer.config.JPAConfig$$EnhancerBySpringCGLIB$$41bb5d8b.CGLIB$entityManagerFactory$0(<generated>)
  110. at com.algaworks.brewer.config.JPAConfig$$EnhancerBySpringCGLIB$$41bb5d8b$$FastClassByCGLIB$$8e239f5d.invoke(<generated>)
  111. at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
  112. at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:356)
  113. at com.algaworks.brewer.config.JPAConfig$$EnhancerBySpringCGLIB$$41bb5d8b.entityManagerFactory(<generated>)
  114. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  115. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  116. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  117. at java.lang.reflect.Method.invoke(Method.java:498)
  118. at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)
  119. ... 25 more
  120.  
  121. ago 23, 2016 2:18:01 PM org.apache.catalina.core.StandardContext startInternal
  122. GRAVE: One or more listeners failed to start. Full details will be found in the appropriate container log file
  123. ago 23, 2016 2:18:01 PM org.apache.catalina.core.StandardContext startInternal
  124. GRAVE: Context [/brewer] startup failed due to previous errors
  125. ago 23, 2016 2:18:01 PM org.apache.catalina.core.ApplicationContext log
  126. INFORMAÇÕES: Closing Spring root WebApplicationContext
  127. ago 23, 2016 2:18:01 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
  128. ADVERTÊNCIA: The web application [brewer] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
  129. java.lang.Object.wait(Native Method)
  130. java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143)
  131. com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:43)
  132. ago 23, 2016 2:18:01 PM org.apache.coyote.AbstractProtocol start
  133. INFORMAÇÕES: Starting ProtocolHandler ["http-nio-8080"]
  134. ago 23, 2016 2:18:01 PM org.apache.coyote.AbstractProtocol start
  135. INFORMAÇÕES: Starting ProtocolHandler ["ajp-nio-8009"]
  136. ago 23, 2016 2:18:01 PM org.apache.catalina.startup.Catalina start
  137. INFORMAÇÕES: Server startup in 11329 ms
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement