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.
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.
Jak to zrobić profesjonalnie? Sorry, że o takie rzeczy pytam, ale się uczę. Dzięki za cierpliwość...
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.
Baza jest na localhost:5432
postgresql.xx.com
Co to jest za dziwny hostname?
Wycięłam, nazwa hosta jest wpisana..
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ą?
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.
Skoro jest na localhost to czemu masz aplikację ustawioną na innego hosta?