Não consigo inicializar a aplicação loja. Pelo apt-get apenas consegui instalar o tomcat9, e a versão do mysql não pedia a senha inicial. Alterei a senha do root através do comando dentro do mysql, criei o banco de dados projeto_jpa, criei o arquivo setenv.sh conforme orientado e ainda assim não é feita a conexão.
Abaixo alguns trechos do log de erro:
05-Oct-2020 00:52:25.227 INFO [main] org.apache.catalina.core.ApplicationContext.log Spring WebApplicationInitializers detected on classpath: [br.com.caelum.Inicializador@6fd07a56] 05-Oct-2020 00:52:25.308 INFO [main] org.apache.catalina.core.ApplicationContext.log Initializing Spring root WebApplicationContext 05-Oct-2020 00:52:29.277 SEVERE [main] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class [org.springframework.web.context.ContextLoaderListener] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'criadorDeProdutos': Invocation of init method failed; nested exception is org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is javax.persistence.PersistenceException: org.hibernate.exception.JDBCConnectionException: Could not open connection
Caused by: org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is javax.persistence.PersistenceException: org.hibernate.exception.JDBCConnectionException: Could not open connection
Caused by: javax.persistence.PersistenceException: org.hibernate.exception.JDBCConnectionException: Could not open connection
Caused by: org.hibernate.exception.JDBCConnectionException: Could not open connection
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server