Foro de elhacker.net

Programación => Programación General => Mensaje iniciado por: EdiazMan en 6 Octubre 2021, 17:53 pm



Título: No arranca mi aplicacion de Spring boot
Publicado por: EdiazMan en 6 Octubre 2021, 17:53 pm
Les comento tengo un proyecto en Spring boot esta todo bien instalado pero al momento de  arrancar marca el siguiente log.



2021-10-06T10:52:52.473-0500 ERROR Application run failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'catPlantasDaoJpa': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Not a managed type: class com.fcagroup.sugiere.vo.AreaImpactoVo
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1794) ~[spring-beans-5.2.10.RELEASE.jar:5.2.10.RELEASE]



Título: Re: No arranca mi aplicacion de Spring boot
Publicado por: sapito169 en 6 Octubre 2021, 20:56 pm
tines que leer el mensaje de error con calma si tienes que aprender ingles aprendes

falla --generqado por->  catPlantasDaoJpa --generado por--> AreaImpactoVo


AreaImpactoVo es muy probable que tenga mal anotacion jpa

tambien puede ser que en la clase catPlantasDaoJpa (que por nomenclatura de clases deberia comenzar con Mayuscula) no pusiste el autowired a un objeto del tipo AreaImpactoVo


Título: Re: No arranca mi aplicacion de Spring boot
Publicado por: EdiazMan en 6 Octubre 2021, 22:52 pm
ya ajuste mis clases y mis repositorios pero me manda de nuevo el error.

2021-10-06T15:50:27.902-0500 ERROR Error starting Tomcat context. Exception: org.springframework.beans.factory.UnsatisfiedDependencyException. Message: Error creating bean with name 'siteMinderSecurityConfig': Unsatisfied dependency expressed through method 'setContentNegotationStrategy' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration$EnableWebMvcConfiguration': Unsatisfied dependency expressed through method 'setConfigurers' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'openEntityManagerInViewInterceptorConfigurer' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/JpaBaseConfiguration$JpaWebConfiguration.class]: Unsatisfied dependency expressed through method 'openEntityManagerInViewInterceptorConfigurer' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'openEntityManagerInViewInterceptor' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/JpaBaseConfiguration$JpaWebConfiguration.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is org.hibernate.AnnotationException: No identifier specified for entity: com.fcagroup.sugiere.vo.AreaImpactoVo
2021-10-06T15:50:28.374-0500 ERROR Application run failed
org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
   at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:156) ~[spring-boot-2.2.11.RELEASE.jar:2.2.11.RELEASE]
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:545) ~[spring-context-5.2.10.RELEASE.jar:5.2.10.RELEASE]
   at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141) ~[spring-boot-2.2.11.RELEASE.jar:2.2.11.RELEASE]
   at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747) [spring-boot-2.2.11.RELEASE.jar:2.2.11.RELEASE]