1
resposta

Não consigo instalar o servidor

Possuo a versão 12.0.1 do Java e não estou conseguindo instalar o servidor. Da o seguinte erro:

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v1.3.6.RELEASE)

2019-06-13 16:49:08.523  INFO 2175 --- [           main] br.com.caelum.alura.Application          : Starting Application v0.0.1-SNAPSHOT on MacBook-Pro-de-Matheus.local with PID 2175 (/Users/matheuspires/Documents/Alura/iOS/Agenda - Projeto e Aulas/Agenda Aulas/11 - Salvando informações no servidor/server/server.jar started by matheuspires in /Users/matheuspires/Documents/Alura/iOS/Agenda - Projeto e Aulas/Agenda Aulas/11 - Salvando informações no servidor/server)
2019-06-13 16:49:08.526  INFO 2175 --- [           main] br.com.caelum.alura.Application          : No active profile set, falling back to default profiles: default
2019-06-13 16:49:08.615  INFO 2175 --- [           main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@2b9627bc: startup date [Thu Jun 13 16:49:08 BRT 2019]; root of context hierarchy
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils$1 (jar:file:/Users/matheuspires/Documents/Alura/iOS/Agenda%20-%20Projeto%20e%20Aulas/Agenda%20Aulas/11%20-%20Salvando%20informações%20no%20servidor/server/server.jar!/lib/spring-core-4.2.7.RELEASE.jar!/) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of org.springframework.cglib.core.ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
2019-06-13 16:49:10.057  INFO 2175 --- [           main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2019-06-13 16:49:10.079  INFO 2175 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'appConfig' of type [class br.com.caelum.alura.config.AppConfig$$EnhancerBySpringCGLIB$$8da27485] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-06-13 16:49:10.085  INFO 2175 --- [           main] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService 
2019-06-13 16:49:10.214  INFO 2175 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [class org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$f408338e] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-06-13 16:49:10.489  WARN 2175 --- [           main] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tomcatEmbeddedServletContainerFactory' defined in class path resource [org/springframework/boot/autoconfigure/web/EmbeddedServletContainerAutoConfiguration$EmbeddedTomcat.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.boot.autoconfigure.web.ServerProperties org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration.properties; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serverProperties' defined in class path resource [org/springframework/boot/autoconfigure/web/ServerPropertiesAutoConfiguration.class]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/ValidationException
2019-06-13 16:49:10.504 ERROR 2175 --- [           main] o.s.boot.SpringApplication               : Application startup failed
1 resposta

Oi Matheus, tudo bem? Muito provavelmente o problema seja a versão do Java. Acho que o Spring vai pedir o Java 8

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software