SpringBoot: Embeded Tomcat Error

0

Witajcie,

Próbuję odaplić projekt na SpringBoocie i mam error: "Unable to start embedded Tomcat". Baza jest na postgresie. Próbowałam zmienić port, ale to nie pomogło. Wszelkie pomysły na rozwiązanie problemu mile widziane. Dzięki.

0

Jak to zrobić profesjonalnie? Sorry, że o takie rzeczy pytam, ale się uczę. Dzięki za cierpliwość...

0

Wklejam i dziękuję:

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'keycloakSecurityConfigurer': 
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 'liquibase' defined in class path resource 
[com/core/configuration/LiquibaseUpdaterConfiguration.class]: 
Invocation of init method failed; nested exception is liquibase.exception.DatabaseException:
 org.postgresql.util.PSQLException: Connection to postgresql.xx.com:5432 refused. 
Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
0

Baza jest na localhost:5432

0

postgresql.xx.com

Co to jest za dziwny hostname?

0

Wycięłam, nazwa hosta jest wpisana..

0

Baza jest na localhost, ale łączysz się z czymś na zewnątrz? Sprawdzałaś czy w ogóle możesz się połączyć z nią?

0
tsz napisał(a):

Baza jest na localhost, ale łączysz się z czymś na zewnątrz? Sprawdzałaś czy w ogóle możesz się połączyć z nią?

Lokalnie jest baza. PgAdminem łączę się z nią bez problemu.

2

Skoro jest na localhost to czemu masz aplikację ustawioną na innego hosta?

1 użytkowników online, w tym zalogowanych: 0, gości: 1