1
resposta

Server não inicia

Boa noite, eu estou tentando fazer a segunda parte do projeto, segui as instruções de executar o comando :

 java -jar instalura.jar 

na pasta instalura-api. Mas o server não inicia, eu fiz os novos cursos de react por isso não acompanhei como funciona esse server .java não consigo entender oque esta acontecendo. O comando java -jar instalura.jar deveria iniciar o server? O "erro/log" que aparece depois do comando é muito grande vou colocar um pedaço dele aqui.

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

2020-04-23 20:17:56.610  INFO 5328 --- [           main] br.com.alura.instalura.Boot              : Starting Boot v1.0.0-SNAPSHOT on FETOLINO with PID 5328 (C:\Users\FELIPE\Desktop\instalura\instalura-api\instalura.jar started by FELIPE in C:\Users\FELIPE\Desktop\instalura\instalura-api)
2020-04-23 20:17:56.626  INFO 5328 --- [           main] br.com.alura.instalura.Boot              : No active profile set, falling back to default profiles: default
2020-04-23 20:17:56.907  INFO 5328 --- [           main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@4ccabbaa: startup date [Thu Apr 23 20:17:56 BRT 2020]; root of context hierarchy
2020-04-23 20:18:02.048  INFO 5328 --- [           main] o.s.b.f.s.DefaultListableBeanFactory     : Overriding bean definition for bean 'corsFilter' with a different definition: replacing [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=webAppConfiguration; factoryMethodName=corsFilter; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [br/com/alura/instalura/conf/WebAppConfiguration.class]] with [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=boot; factoryMethodName=corsFilter; initMethodName=null; destroyMethodName=(inferred); defined in br.com.alura.instalura.Boot]
2020-04-23 20:18:04.469  INFO 5328 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [class org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$fbc3e013] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2020-04-23 20:18:06.219  INFO 5328 --- [           main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 8080 (http)
2020-04-23 20:18:06.266  INFO 5328 --- [           main] o.apache.catalina.core.StandardService   : Starting service Tomcat
2020-04-23 20:18:06.266  INFO 5328 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet Engine: Apache Tomcat/8.5.5
2020-04-23 20:18:06.469  INFO 5328 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2020-04-23 20:18:06.469  INFO 5328 --- [ost-startStop-1] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 9562 ms
2020-04-23 20:18:06.985  INFO 5328 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'characterEncodingFilter' to: [/*]
2020-04-23 20:18:06.985  INFO 5328 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'corsFilter' to: [/*]
2020-04-23 20:18:06.985  INFO 5328 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
2020-04-23 20:18:06.985  INFO 5328 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'httpPutFormContentFilter' to: [/*]
2020-04-23 20:18:06.985  INFO 5328 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'requestContextFilter' to: [/*]
2020-04-23 20:18:06.985  INFO 5328 --- [ost-startStop-1] .s.DelegatingFilterProxyRegistrationBean : Mapping filter: 'springSecurityFilterChain' to: [/*]
2020-04-23 20:18:06.985  INFO 5328 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean  : Mapping servlet: 'dispatcherServlet' to [/]
2020-04-23 20:18:07.579  INFO 5328 --- [           main] j.LocalContainerEntityManagerFactoryBean : Building JPA container EntityManagerFactory for persistence unit 'default'
2020-04-23 20:18:07.641  INFO 5328 --- [           main] o.hibernate.jpa.internal.util.LogHelper  : HHH000204: Processing PersistenceUnitInfo [
        name: default
        ...]
1 resposta
O post foi fechado por inatividade. Para continuar o assunto, recomendamos criar um novo tópico. Bons Estudos!