事物板无法启动| ubuntu上的应用程序启动失败

时间:2018-06-26 09:39:37

标签: java spring hibernate thingsboard

我从源代码构建了东西板,在ubuntu上安装了deb,一切运行正常。由于某种原因,我不得不重新启动ubuntu,但是之后我却遇到了以下错误

sudo service thingsboard start

结果

  ERROR 2127 --- [main] o.s.boot.SpringApplication : Application startup failed 2018-06-26 09:17:55.066 ERROR 3437 ---
 [ost-startStop-1] o.s.b.c.embedded.tomcat.TomcatStarter    : Error
 starting Tomcat context. Exception:
 org.springframework.beans.factory.UnsatisfiedDependencyException.
 Message: Error creating bean with name
 'thingsboardSecurityConfiguration': Unsatisfied dependency expressed
 through field 'restAuthenticationProvider'; nested exception is
 org.springframework.beans.factory.UnsatisfiedDependencyException:
 Error creating bean with name 'restAuthenticationProvider' defined in
 URL
 [jar:file:/usr/share/thingsboard/bin/thingsboard.jar!/BOOT-INF/classes!/org/thingsboard/server/service/security/auth/rest/RestAuthenticationProvider.class]:
 Unsatisfied dependency expressed through constructor parameter 0;
 nested exception is
 org.springframework.beans.factory.UnsatisfiedDependencyException:
 Error creating bean with name 'userServiceImpl': Unsatisfied
 dependency expressed through field 'relationService'; nested exception
 is org.springframework.beans.factory.UnsatisfiedDependencyException:
 Error creating bean with name 'baseRelationService': Unsatisfied
 dependency expressed through field 'relationDao'; nested exception is
 org.springframework.beans.factory.UnsatisfiedDependencyException:
 Error creating bean with name 'jpaRelationDao': Unsatisfied dependency
 expressed through field 'relationRepository'; nested exception is
 org.springframework.beans.factory.BeanCreationException: Error
 creating bean with name 'relationRepository': Cannot create inner bean
 '(inner bean)#6d5d8247' of type
 [org.springframework.orm.jpa.SharedEntityManagerCreator] while setting
 bean property 'entityManager'; nested exception is
 org.springframework.beans.factory.BeanCreationException: Error
 creating bean with name '(inner bean)#6d5d8247': Cannot resolve
 reference to bean 'entityManagerFactory' while setting constructor
 argument; 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/HibernateJpaAutoConfiguration.class]:
 Invocation of init method failed; nested exception is
 javax.persistence.PersistenceException: [PersistenceUnit: default]
 Unable to build Hibernate SessionFactory 2018-06-26 09:17:55.199 ERROR
 3437 --- [main] o.s.boot.SpringApplication               :
 Application startup failed

0 个答案:

没有答案