Gostaria que me ajudassem a ver o que é esse erro, tenho um projeto mais antigo usando o springBootVersion = ‘1.4.1.BUILD-SNAPSHOT’ e ele consegue subir o servidor de boa, e com essa nova versão que já está na 2.0, que eu simplesmente só copiei as configurações para o projeto novo não funciona o que poderia ser? já pesquisei na internet alguns fala que é Bug dessa nova versão mais não encontrei como corrigir ou alguma configuração adicionar que eu tenho que fazer para funcionar.
Log de erro:
. ____ _ __ _ _
/\ / ’ __ _ () __ __ _ \ \ \
( ( )__ | '_ | '| | ’ / ` | \ \ \
\/ )| |)| | | | | || (| | ) ) ) )
’ || .__|| ||| |_, | / / / /
=========||==============|/=////
:: Spring Boot :: (v2.0.0.BUILD-SNAPSHOT)
2017-09-15 21:24:54.034 INFO 10984 — [ main] b.c.e.e.EscOficinaWebServiceApplication : Starting EscOficinaWebServiceApplication on DESKTOP-T93D3J0 with PID 10984 (started by eders in D:\Desenvolvimento\Códigos Fontes\Eclipse\ESCOficinaWebService)
2017-09-15 21:24:54.038 INFO 10984 — [ main] b.c.e.e.EscOficinaWebServiceApplication : No active profile set, falling back to default profiles: default
2017-09-15 21:24:54.099 INFO 10984 — [ main] ConfigServletWebServerApplicationContext : Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@1c93084c: startup date [Fri Sep 15 21:24:54 BRT 2017]; root of context hierarchy
2017-09-15 21:24:55.383 INFO 10984 — [ main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 ‘javax.inject.Inject’ annotation found and supported for autowiring
2017-09-15 21:24:55.933 INFO 10984 — [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)
2017-09-15 21:24:55.946 INFO 10984 — [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2017-09-15 21:24:55.947 INFO 10984 — [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/8.5.20
2017-09-15 21:24:56.137 INFO 10984 — [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2017-09-15 21:24:56.138 INFO 10984 — [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 2043 ms
2017-09-15 21:24:56.234 INFO 10984 — [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean : Mapping servlet: ‘dispatcherServlet’ to [/]
2017-09-15 21:24:56.238 INFO 10984 — [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: ‘characterEncodingFilter’ to: [/*]
2017-09-15 21:24:56.300 INFO 10984 — [ main] o.s.j.d.DriverManagerDataSource : Loaded JDBC driver: com.mysql.jdbc.Driver
2017-09-15 21:24:56.439 INFO 10984 — [ main] org.hibernate.Version : HHH000412: Hibernate Core {5.1.10.Final}
2017-09-15 21:24:56.442 INFO 10984 — [ main] org.hibernate.cfg.Environment : HHH000206: hibernate.properties not found
2017-09-15 21:24:56.443 INFO 10984 — [ main] org.hibernate.cfg.Environment : HHH000021: Bytecode provider name : javassist
2017-09-15 21:24:56.491 INFO 10984 — [ main] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.0.1.Final}
2017-09-15 21:24:58.215 INFO 10984 — [ main] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.MySQL5InnoDBDialect
2017-09-15 21:24:58.987 INFO 10984 — [ main] o.h.h.i.QueryTranslatorFactoryInitiator : HHH000397: Using ASTQueryTranslatorFactory
2017-09-15 21:24:59.316 INFO 10984 — [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped “{[/error]}” onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
2017-09-15 21:24:59.317 INFO 10984 — [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped “{[/error],produces=[text/html]}” onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
2017-09-15 21:24:59.358 INFO 10984 — [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/app/] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2017-09-15 21:24:59.358 INFO 10984 — [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/assets/] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2017-09-15 21:24:59.358 INFO 10984 — [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/static/] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2017-09-15 21:24:59.358 INFO 10984 — [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/resources/] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2017-09-15 21:24:59.572 INFO 10984 — [ main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@1c93084c: startup date [Fri Sep 15 21:24:54 BRT 2017]; root of context hierarchy
2017-09-15 21:24:59.650 INFO 10984 — [ main] o.s.o.h.HibernateTransactionManager : Using DataSource [org.springframework.jdbc.datasource.DriverManagerDataSource@11ce2e22] of Hibernate SessionFactory for HibernateTransactionManager
2017-09-15 21:24:59.780 WARN 10984 — [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘jpaMappingContext’: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: At least one JPA metamodel must be present!
2017-09-15 21:24:59.780 INFO 10984 — [ main] o.s.j.e.a.AnnotationMBeanExporter : Unregistering JMX-exposed beans on shutdown
2017-09-15 21:24:59.783 INFO 10984 — [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
2017-09-15 21:24:59.798 INFO 10984 — [ main] utoConfigurationReportLoggingInitializer :
Error starting ApplicationContext. To display the auto-configuration report re-run your application with ‘debug’ enabled.
2017-09-15 21:24:59.811 ERROR 10984 — [ main] o.s.boot.SpringApplication : Application startup failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘jpaMappingContext’: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: At least one JPA metamodel must be present!
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1702) ~[spring-beans-5.0.0.RC4.jar:5.0.0.RC4]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:583) ~[spring-beans-5.0.0.RC4.jar:5.0.0.RC4]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:502) ~[spring-beans-5.0.0.RC4.jar:5.0.0.RC4]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:312) ~[spring-beans-5.0.0.RC4.jar:5.0.0.RC4]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) ~[spring-beans-5.0.0.RC4.jar:5.0.0.RC4]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:310) ~[spring-beans-5.0.0.RC4.jar:5.0.0.RC4]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200) ~[spring-beans-5.0.0.RC4.jar:5.0.0.RC4]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:740) ~[spring-beans-5.0.0.RC4.jar:5.0.0.RC4]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:868) ~[spring-context-5.0.0.RC4.jar:5.0.0.RC4]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549) ~[spring-context-5.0.0.RC4.jar:5.0.0.RC4]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:122) ~[spring-boot-2.0.0.BUILD-SNAPSHOT.jar:2.0.0.BUILD-SNAPSHOT]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:750) [spring-boot-2.0.0.BUILD-SNAPSHOT.jar:2.0.0.BUILD-SNAPSHOT]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:386) [spring-boot-2.0.0.BUILD-SNAPSHOT.jar:2.0.0.BUILD-SNAPSHOT]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:327) [spring-boot-2.0.0.BUILD-SNAPSHOT.jar:2.0.0.BUILD-SNAPSHOT]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1245) [spring-boot-2.0.0.BUILD-SNAPSHOT.jar:2.0.0.BUILD-SNAPSHOT]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1233) [spring-boot-2.0.0.BUILD-SNAPSHOT.jar:2.0.0.BUILD-SNAPSHOT]
at br.com.escconsultoria.escoficina.EscOficinaWebServiceApplication.main(EscOficinaWebServiceApplication.java:10) [bin/:na]
Caused by: java.lang.IllegalArgumentException: At least one JPA metamodel must be present!
at org.springframework.util.Assert.notEmpty(Assert.java:450) ~[spring-core-5.0.0.RC4.jar:5.0.0.RC4]
at org.springframework.data.jpa.mapping.JpaMetamodelMappingContext.(JpaMetamodelMappingContext.java:54) ~[spring-data-jpa-2.0.0.RC3.jar:na]
at org.springframework.data.jpa.repository.config.JpaMetamodelMappingContextFactoryBean.createInstance(JpaMetamodelMappingContextFactoryBean.java:88) ~[spring-data-jpa-2.0.0.RC3.jar:na]
at org.springframework.data.jpa.repository.config.JpaMetamodelMappingContextFactoryBean.createInstance(JpaMetamodelMappingContextFactoryBean.java:43) ~[spring-data-jpa-2.0.0.RC3.jar:na]
at org.springframework.beans.factory.config.AbstractFactoryBean.afterPropertiesSet(AbstractFactoryBean.java:141) ~[spring-beans-5.0.0.RC4.jar:5.0.0.RC4]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1761) ~[spring-beans-5.0.0.RC4.jar:5.0.0.RC4]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1698) ~[spring-beans-5.0.0.RC4.jar:5.0.0.RC4]
… 16 common frames omitted