Stps Deploy Error
Stps Deploy Error
jar
2022-08-23 19:49:17 INFO com.treasured.stps.StpsApplication - Starting
StpsApplication v1.0.0 using Java
1.8.0_332 on ip-172-31-6-32.us-west-2.compute.internal with PID 37075 (/home/ec2-
user/stps-1.0.0.jar started
by ec2-user in /home/ec2-user)
2022-08-23 19:49:17 INFO com.treasured.stps.StpsApplication - The following
profiles are active:
site,common
2022-08-23 19:49:18 INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping
Spring Data JPA
repositories in DEFAULT mode.
2022-08-23 19:49:18 INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished
Spring Data repository
scanning in 183 ms. Found 24 JPA repository interfaces.
2022-08-23 19:49:19 INFO o.s.b.w.e.tomcat.TomcatWebServer - Tomcat initialized
with port(s): 8080 (http)
2022-08-23 19:49:19 INFO o.a.catalina.core.StandardService - Starting service
[Tomcat]
2022-08-23 19:49:19 INFO o.a.catalina.core.StandardEngine - Starting Servlet
engine: [Apache Tomcat/9.0.56]
2022-08-23 19:49:19 INFO o.a.c.c.C.[Tomcat].[localhost].[/] - Initializing Spring
embedded
WebApplicationContext
2022-08-23 19:49:19 INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root
WebApplicationContext:
initialization completed in 2254 ms
2022-08-23 19:49:20 INFO o.h.jpa.internal.util.LogHelper - HHH000204: Processing
PersistenceUnitInfo [name:
default]
2022-08-23 19:49:20 INFO org.hibernate.Version - HHH000412: Hibernate ORM core
version 5.4.33
2022-08-23 19:49:20 INFO o.h.annotations.common.Version - HCANN000001: Hibernate
Commons Annotations
{5.1.2.Final}
2022-08-23 19:49:20 INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 -
Starting...
2022-08-23 19:49:20 INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Start
completed.
2022-08-23 19:49:21 INFO org.hibernate.dialect.Dialect - HHH000400: Using dialect:
org.hibernate.dialect.MySQL8Dialect
2022-08-23 19:49:21 INFO o.h.e.b.internal.EnversServiceImpl - Envers integration
enabled? : true
2022-08-23 19:49:24 INFO o.h.e.t.j.p.i.JtaPlatformInitiator - HHH000490: Using
JtaPlatform implementation:
[org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
2022-08-23 19:49:24 INFO o.s.o.j.LocalContainerEntityManagerFactoryBean -
Initialized JPA
EntityManagerFactory for persistence unit 'default'
2022-08-23 19:49:25 WARN
o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - Exception
encountered during context initialization - cancelling refresh attempt:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating
bean with name
'equityApiCheckoutService' defined in URL
[jar:file:/home/ec2-user/stps-1.0.0.jar!/BOOT-INF/classes!/com/treasured/stps/
gateway/services/EquityApiCheckoutService.class]:
Unsatisfied dependency expressed through constructor parameter 2; nested exception
is
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating
bean with name
'clientService' defined in URL
[jar:file:/home/ec2-user/stps-1.0.0.jar!/BOOT-INF/classes!/com/treasured/stps/
clients/services/ClientService.class]:
Unsatisfied dependency expressed through constructor parameter 1; nested exception
is
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating
bean with name
'securityService': Unsatisfied dependency expressed through field
'authenticationManager'; nested exception
is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating
bean with name
'stpsSecurityConfig' defined in URL
[jar:file:/home/ec2-user/stps-1.0.0.jar!/BOOT-INF/classes!/com/treasured/stps/
configs/StpsSecurityConfig.class]:
Unsatisfied dependency expressed through constructor parameter 0; nested exception
is
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating
bean with name
'userService': Unsatisfied dependency expressed through field
'bCryptPasswordEncoder'; nested exception is
org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating
bean with name
'stpsSecurityConfig': Requested bean is currently in creation: Is there an
unresolvable circular reference?
2022-08-23 19:49:25 INFO o.s.o.j.LocalContainerEntityManagerFactoryBean - Closing
JPA EntityManagerFactory
for persistence unit 'default'
2022-08-23 19:49:25 INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 -
Shutdown initiated...
2022-08-23 19:49:25 INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 -
Shutdown completed.
2022-08-23 19:49:25 INFO o.a.catalina.core.StandardService - Stopping service
[Tomcat]
2022-08-23 19:49:25 INFO o.s.b.a.l.ConditionEvaluationReportLoggingListener -
***************************
APPLICATION FAILED TO START
***************************
Description:
The dependencies of some of the beans in the application context form a cycle: