Solucionado (ver solução)
Solucionado
(ver solução)
3
respostas

Data JPA - data.sql - Port 8080 was already in use

... [2m2022-06-03 09:45:10.530[0;39m [32m INFO[0;39m [35m20456[0;39m [2m---[0;39m [2m[ restartedMain][0;39m [36mo.hibernate.annotations.common.Version [0;39m [2m:[0;39m HCANN000001: Hibernate Commons Annotations {5.1.2.Final} [2m2022-06-03 09:45:10.620[0;39m [32m INFO[0;39m [35m20456[0;39m [2m---[0;39m [2m[ restartedMain][0;39m [36morg.hibernate.dialect.Dialect [0;39m [2m:[0;39m HHH000400: Using dialect: org.hibernate.dialect.H2Dialect [2m2022-06-03 09:45:10.878[0;39m [32m INFO[0;39m [35m20456[0;39m [2m---[0;39m [2m[ restartedMain][0;39m [36morg.hibernate.tuple.PojoInstantiator [0;39m [2m:[0;39m HHH000182: No default (no-argument) constructor for class: br.com.alura.forum.modelo.Curso (class must be instantiated by Interceptor) [2m2022-06-03 09:45:11.017[0;39m [32m INFO[0;39m [35m20456[0;39m [2m---[0;39m [2m[ restartedMain][0;39m [36morg.hibernate.tuple.PojoInstantiator [0;39m [2m:[0;39m HHH000182: No default (no-argument) constructor for class: br.com.alura.forum.modelo.Topico (class must be instantiated by Interceptor) [2m2022-06-03 09:45:11.182[0;39m [32m INFO[0;39m [35m20456[0;39m [2m---[0;39m [2m[ restartedMain][0;39m [36mo.h.e.t.j.p.i.JtaPlatformInitiator [0;39m [2m:[0;39m HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform] [2m2022-06-03 09:45:11.189[0;39m [32m INFO[0;39m [35m20456[0;39m [2m---[0;39m [2m[ restartedMain][0;39m [36mj.LocalContainerEntityManagerFactoryBean[0;39m [2m:[0;39m Initialized JPA EntityManagerFactory for persistence unit 'default' [2m2022-06-03 09:45:11.224[0;39m [33m WARN[0;39m [35m20456[0;39m [2m---[0;39m [2m[ restartedMain][0;39m [36mJpaBaseConfiguration$JpaWebConfiguration[0;39m [2m:[0;39m spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning [2m2022-06-03 09:45:11.507[0;39m [33m WARN[0;39m [35m20456[0;39m [2m---[0;39m [2m[ restartedMain][0;39m [36mo.s.b.d.a.OptionalLiveReloadServer [0;39m [2m:[0;39m Unable to start LiveReload server [2m2022-06-03 09:45:11.526[0;39m [33m WARN[0;39m [35m20456[0;39m [2m---[0;39m [2m[ restartedMain][0;39m [36mConfigServletWebServerApplicationContext[0;39m [2m:[0;39m Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Failed to start bean 'webServerStartStop'; nested exception is org.springframework.boot.web.server.PortInUseException: Port 8080 is already in use [2m2022-06-03 09:45:11.528[0;39m [32m INFO[0;39m [35m20456[0;39m [2m---[0;39m [2m[ restartedMain][0;39m [36mj.LocalContainerEntityManagerFactoryBean[0;39m [2m:[0;39m Closing JPA EntityManagerFactory for persistence unit 'default' [2m2022-06-03 09:45:11.747[0;39m [33m WARN[0;39m [35m20456[0;39m [2m---[0;39m [2m[ restartedMain][0;39m [36mo.s.b.f.support.DisposableBeanAdapter [0;39m [2m:[0;39m Invocation of destroy method failed on bean with name 'inMemoryDatabaseShutdownExecutor': org.h2.jdbc.JdbcSQLNonTransientConnectionException: Database is already closed (to disable automatic closing at VM shutdown, add ";DB_CLOSE_ON_EXIT=FALSE" to the db URL) [90121-212] [2m2022-06-03 09:45:11.748[0;39m [32m INFO[0;39m [35m20456[0;39m [2m---[0;39m [2m[ restartedMain][0;39m [36mcom.zaxxer.hikari.HikariDataSource [0;39m [2m:[0;39m HikariPool-1 - Shutdown initiated... [2m2022-06-03 09:45:11.749[0;39m [32m INFO[0;39m [35m20456[0;39m [2m---[0;39m [2m[ restartedMain][0;39m [36mcom.zaxxer.hikari.HikariDataSource [0;39m [2m:[0;39m HikariPool-1 - Shutdown completed. [2m2022-06-03 09:45:11.751[0;39m [32m INFO[0;39m [35m20456[0;39m [2m---[0;39m [2m[ restartedMain][0;39m [36mo.apache.catalina.core.StandardService [0;39m [2m:[0;39m Stopping service [Tomcat] [2m2022-06-03 09:45:11.761[0;39m [32m INFO[0;39m [35m20456[0;39m [2m---[0;39m [2m[ restartedMain][0;39m [36mConditionEvaluationReportLoggingListener[0;39m [2m:[0;39m

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. [2m2022-06-03 09:45:11.776[0;39m [31mERROR[0;39m [35m20456[0;39m [2m---[0;39m [2m[ restartedMain][0;39m [36mo.s.b.d.LoggingFailureAnalysisReporter [0;39m [2m:[0;39m


APPLICATION FAILED TO START


Description:

Web server failed to start. Port 8080 was already in use.

Action:

Identify and stop the process that's listening on port 8080 or configure this application to listen on another port.

3 respostas

Certeza que não tem nenhum outro serviço rodando e usando a porta 8080?

solução!

Ola Andrea, tente mudar a porta do server, no application.properties. Tente incluir: server.port = 8090 no application.properties.

Funcionou alterando a porta. Obrigada