squashTM et postgresql
Publié : mer. avr. 17, 2019 5:27 pm
Bonjour,
J'essaie d'exploiter squashTM 1.19.2 sur une base postgresql 10.7 (AdoptOpenJDK jdk-8.0.202.08 avec openj9)
Si je démarre sur la base H2, le serveur démarre, mais dans cette configuration, j'ai l'erreur suivante :
[19-04-17 16:55:32.232] SquashTM - 4308 INFO [main] [] --- org.squashtest.tm.service.RepositoryConfig: init JooqConfiguration
[19-04-17 16:55:35.177] SquashTM - 4308 WARN [main] [] --- org.hibernate.engine.jdbc.spi.SqlExceptionHelper: SQL Error: 42102, SQLState: 42S02
[19-04-17 16:55:35.177] SquashTM - 4308 ERROR [main] [] --- org.hibernate.engine.jdbc.spi.SqlExceptionHelper: Table "CORE_CONFIG" not found; SQL statement:
select VALUE from CORE_CONFIG where STR_KEY = ? [42102-187]
[19-04-17 16:55:35.181] SquashTM - 4308 WARN [main] [] --- org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'squashServletConfig': Unsatisfied dependency expressed through field 'credentialsProvider'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'squashtest.tm.service.CredentialsProvider': Unsatisfied dependency expressed through field 'storedCredentialsManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'storedCredentialsManagerImpl': Invocation of init method failed; nested exception is javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not prepare statement
startup.bat :
[...]
set DB_TYPE=postgresql
set DB_URL=jdbc:postgresql://localhost:5432/squashtm?ssl=false
set DB_USERNAME="squash-tm"
set DB_PASSWORD="initial_pw"
[...]
Idem version 1.19.3.
J'essaie d'exploiter squashTM 1.19.2 sur une base postgresql 10.7 (AdoptOpenJDK jdk-8.0.202.08 avec openj9)
Si je démarre sur la base H2, le serveur démarre, mais dans cette configuration, j'ai l'erreur suivante :
[19-04-17 16:55:32.232] SquashTM - 4308 INFO [main] [] --- org.squashtest.tm.service.RepositoryConfig: init JooqConfiguration
[19-04-17 16:55:35.177] SquashTM - 4308 WARN [main] [] --- org.hibernate.engine.jdbc.spi.SqlExceptionHelper: SQL Error: 42102, SQLState: 42S02
[19-04-17 16:55:35.177] SquashTM - 4308 ERROR [main] [] --- org.hibernate.engine.jdbc.spi.SqlExceptionHelper: Table "CORE_CONFIG" not found; SQL statement:
select VALUE from CORE_CONFIG where STR_KEY = ? [42102-187]
[19-04-17 16:55:35.181] SquashTM - 4308 WARN [main] [] --- org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'squashServletConfig': Unsatisfied dependency expressed through field 'credentialsProvider'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'squashtest.tm.service.CredentialsProvider': Unsatisfied dependency expressed through field 'storedCredentialsManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'storedCredentialsManagerImpl': Invocation of init method failed; nested exception is javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not prepare statement
startup.bat :
[...]
set DB_TYPE=postgresql
set DB_URL=jdbc:postgresql://localhost:5432/squashtm?ssl=false
set DB_USERNAME="squash-tm"
set DB_PASSWORD="initial_pw"
[...]
Idem version 1.19.3.