iceScrum | RedHat7 + icescrum R6 14.6 + Tomcat7 + openjdk 1.7.0 = initialisation failed – iceScrum

iceScrum Forums Discuss on iceScrum

Viewing 10 posts - 1 through 10 (of 10 total)

  • Author
    Posts
  • #35888

    Cmoi20
    Participant

    Hello,

    I’ve installed icescrum in 3 servers without succes.

    installation is ok but after a service reboot, I’ve got this error in icescrum.log :

    2016-09-20 08:37:13,296 [172.17.41.23-startStop-1] ERROR org.springframework.web.context.ContextLoader  - Context initialization failed
    org.springframework.beans.factory.access.BootstrapException: Error executing bootstraps; nested exception is org.codehaus.groovy.runtime.InvokerInvocationException: java.lang.NoClassDefFoundError: org/codehaus/groovy/grails/documentation/DocumentationContext
            at org.codehaus.groovy.grails.web.context.GrailsContextLoader.createWebApplicationContext(GrailsContextLoader.java:87)
            at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
            at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
            at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4973)
            at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)
            at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
            at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
            at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
            at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
            at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1083)
            at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1880)
            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
            at java.util.concurrent.FutureTask.run(FutureTask.java:262)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
            at java.lang.Thread.run(Thread.java:745)
    Caused by: org.codehaus.groovy.runtime.InvokerInvocationException: java.lang.NoClassDefFoundError: org/codehaus/groovy/grails/documentation/DocumentationContext
            at grails.spring.BeanBuilder.invokeBeanDefiningClosure(BeanBuilder.java:723)
            at grails.spring.BeanBuilder.beans(BeanBuilder.java:573)
            at grails.spring.BeanBuilder.invokeMethod(BeanBuilder.java:519)
            ... 5 more
    Caused by: java.lang.NoClassDefFoundError: org/codehaus/groovy/grails/documentation/DocumentationContext
            ... 8 more
    Caused by: java.lang.ClassNotFoundException: org.codehaus.groovy.grails.documentation.DocumentationContext
            ... 8 more

    can you please help me ?

    Best regards,

    #35889

    Nicolas Noullet
    Keymaster

    Hello

    java.lang.NoClassDefFoundError indicates a classpath issue.

    It is likely that some libraries provided in the Tomcat classpath clash with the one used to compile iceScrum.

    Such libraries are provided alongside with Tomcat in a lib directory such as /usr/share/tomcat/lib.

    With the regular Tomcat package available on their website, only one library clashes: tomcat-jdbc.jar, so it simply needs to be removed.

    I am aware that Tomcat packages provided by RPM contain a specific set of libraries that differ from all the other Tomcat releases so this may be part of the problem.

    Can you list the files under the Tomcat lib directory? Did you add anything to the JVM classpath manually?

    In your case, it seems that Grails libraries clash, which is quite unusual. Did you install Grails on your server?

    #35890

    Cmoi20
    Participant

    Merci pour cette réponse rapide.

    voici le contenu de mon dossier lib de tomcat :

    lrwxrwxrwx. 1 root root      46 19 sept. 10:11 commons-collections.jar -> /usr/share/java/apache-commons-collections.jar
    lrwxrwxrwx. 1 root root      39 19 sept. 10:11 commons-dbcp.jar -> /usr/share/java/apache-commons-dbcp.jar
    lrwxrwxrwx. 1 root root      39 19 sept. 10:11 commons-pool.jar -> /usr/share/java/apache-commons-pool.jar
    lrwxrwxrwx. 1 root root      23 19 sept. 10:11 jasper-jdt.jar -> /usr/share/java/ecj.jar
    lrwxrwxrwx. 1 root root      25 19 sept. 10:11 log4j.jar -> /usr/share/java/log4j.jar
    lrwxrwxrwx. 1 root root      24 19 sept. 10:11 tomcat-el-2.2-api.jar -> ../tomcat-el-2.2-api.jar
    lrwxrwxrwx. 1 root root      25 19 sept. 10:11 tomcat-jsp-2.2-api.jar -> ../tomcat-jsp-2.2-api.jar
    lrwxrwxrwx. 1 root root      37 19 sept. 10:11 tomcat-juli.jar -> /usr/share/tomcat/bin/tomcat-juli.jar
    lrwxrwxrwx. 1 root root      29 19 sept. 10:11 tomcat-servlet-3.0-api.jar -> ../tomcat-servlet-3.0-api.jar
    -rw-r--r--. 1 root root   17715 12 mai    2015 annotations-api.jar
    -rw-r--r--. 1 root root   54236 12 mai    2015 catalina-ant.jar
    -rw-r--r--. 1 root root  135052 12 mai    2015 catalina-ha.jar
    -rw-r--r--. 1 root root 1594270 12 mai    2015 catalina.jar
    -rw-r--r--. 1 root root  259194 12 mai    2015 catalina-tribes.jar
    -rw-r--r--. 1 root root  125505 12 mai    2015 jasper-el.jar
    -rw-r--r--. 1 root root  603653 12 mai    2015 jasper.jar
    -rw-r--r--. 1 root root  181248 12 mai    2015 tomcat7-websocket.jar
    -rw-r--r--. 1 root root    7263 12 mai    2015 tomcat-api.jar
    -rw-r--r--. 1 root root  834269 12 mai    2015 tomcat-coyote.jar
    -rw-r--r--. 1 root root   77648 12 mai    2015 tomcat-i18n-es.jar
    -rw-r--r--. 1 root root   48356 12 mai    2015 tomcat-i18n-fr.jar
    -rw-r--r--. 1 root root   51011 12 mai    2015 tomcat-i18n-ja.jar
    lrwxrwxrwx. 1 root root      25 19 sept. 10:11 tomcat-jsp-2.2-api.jar -> ../tomcat-jsp-2.2-api.jar
    lrwxrwxrwx. 1 root root      29 19 sept. 10:11 tomcat-servlet-3.0-api.jar -> ../tomcat-servlet-3.0-api.jar
    -rw-r--r--. 1 root root   31374 12 mai    2015 tomcat-util.jar
    -rw-r--r--. 1 root root   36545 12 mai    2015 websocket-api.jar

    je n’ai pas installé de paquet grails et je suis partis d’une machine vierge pour mon installation.
    j’ai tenté de supprimer les commons* comme vu ailleurs dans ce forum mais cela n’a rien changé.

    Cordialement,

    #35891

    Cmoi20
    Participant

    je n’ai rien modifié de plus que ce qui est précisé dans la documentation d’installation.
    j’ai tenté avec le tomcat7 fournis par redhat. mais également avec le tomcat7 et le tomcat6 disponible chez apache.
    j’ai testé avec le openjdk 1.7.0 fournis par redhat mais également avec la jdk officielle de oracle.

    EDITED

    EDITED

    2016-09-20 09:36:25,513 [172.17.41.23-startStop-1] INFO  grails.spring.BeanBuilder  - [RuntimeConfiguration] Configuring data source for environment: PRODUCTION
    2016-09-20 09:36:30,425 [172.17.41.23-startStop-1] ERROR org.springframework.web.context.ContextLoader  - Context initialization failed
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageSource': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'hibernateProperties' while setting bean property 'hibernateProperties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.springframework.jdbc.support.MetaDataAccessException: Error while extracting DatabaseMetaData; nested exception is java.sql.SQLException: org.postgresql.Driver
            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
            at java.util.concurrent.FutureTask.run(FutureTask.java:262)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
            at java.lang.Thread.run(Thread.java:745)
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'hibernateProperties' while setting bean property 'hibernateProperties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.springframework.jdbc.support.MetaDataAccessException: Error while extracting DatabaseMetaData; nested exception is java.sql.SQLException: org.postgresql.Driver
            ... 5 more
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'hibernateProperties' while setting bean property 'hibernateProperties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.springframework.jdbc.support.MetaDataAccessException: Error while extracting DatabaseMetaData; nested exception is java.sql.SQLException: org.postgresql.Driver
            ... 5 more
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.springframework.jdbc.support.MetaDataAccessException: Error while extracting DatabaseMetaData; nested exception is java.sql.SQLException: org.postgresql.Driver
            ... 5 more
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.springframework.jdbc.support.MetaDataAccessException: Error while extracting DatabaseMetaData; nested exception is java.sql.SQLException: org.postgresql.Driver
            ... 5 more
    Caused by: org.springframework.jdbc.support.MetaDataAccessException: Error while extracting DatabaseMetaData; nested exception is java.sql.SQLException: org.postgresql.Driver
            ... 5 more
    Caused by: java.sql.SQLException: org.postgresql.Driver
            at com.sun.proxy.$Proxy23.getMetaData(Unknown Source)
            ... 5 more
    Caused by: java.lang.ClassNotFoundException: org.postgresql.Driver
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Class.java:278)
            ... 6 more
    #35905

    Nicolas Noullet
    Keymaster

    En fait il n’est pas du tout nécessaire d’installer Grails.

    La documentation nous sert de procédure d’installation quand nous devons installer des serveurs, elle est donc à jour et normalement suffisante.

    En outre, nous ne recommandons pas d’utiliser Tomcat 6. De plus iceScrum devrait fonctionner aussi bien avec Open JDK que le JDK Oracle.

    Voici le contenu type du repertoire lib d’un Tomcat 7 installé pour iceScrum:

    annotations-api.jar
    catalina-ant.jar
    catalina-ha.jar
    catalina-tribes.jar
    catalina.jar
    ecj-4.4.2.jar
    el-api.jar
    jasper-el.jar
    jasper.jar
    jsp-api.jar
    servlet-api.jar
    tomcat-api.jar
    tomcat-coyote.jar
    tomcat-dbcp.jar
    tomcat-i18n-es.jar
    tomcat-i18n-fr.jar
    tomcat-i18n-ja.jar
    tomcat-util.jar
    tomcat7-websocket.jar
    websocket-api.jar

    Je viens de réessayer sur une image docker toute fraîche: https://hub.docker.com/r/icescrum/icescrum/

    Elle contient le dernier .war disponible sur notre site, le dernier Tomcat 7 qui est téléchargé ici : https://www.apache.org/dist/tomcat/tomcat-7/v7.0.72/bin/apache-tomcat-7.0.72.tar.gz, le dernier open-jdk 7 (7u111) sur une Debian Jessie. Tout marche nickel.

    Le problème est donc très probablement spécifique à votre environnement et à la manière dont le classpath Java est configuré sur votre machine. Le classpath est formé à partir libs inclues dans le .war (à priori pas de pb de ce côté là), du repertoire lib de Tomcat, mais également peut être d’autres bibliothèques, tout dépend comment la JVM est configurée dans votre environnement… J’ai encore un doute sur l’install via le site apache, à voir si l’install via Redhat n’a pas “pollué” votre machine.

    En parlant de Docker, est-il envisageable d’utiliser Docker ?

    #35913

    Cmoi20
    Participant

    Encore merci pour vos réponses,

    je travail pour un POC en entreprise. actuellement, pas de docker disponible.
    nous sommes bloqués sur redhat, pas de debian ou ubuntu de possible. il est possible d’envisager une centos si besoin.

    l’installation du tomcat d’apache a été fait sur une machine différente de celle avec le tomcat de redhat, donc pas de “pollution” possible. J’ai un peu testé tout ce qui était possible sans succès pour le moment.

    Auriez vous une documentation exhaustive de ce qu’il faut faire pour faire fonctionner icescrum sur redhat ? je n’ai rien trouvé de ce type lors de mes recherches sur internet.

    Cordialement

    #35955

    Cmoi20
    Participant

    Bonjour,

    j’ai un peu avancé.
    J’utilise postgresql pour mon installation. après l’installation, le service tomcat ne s’arrête pas correctement. je suis obligé de le killer.
    suite a ce kill, j’obtiens des erreurs dans le fichier de log. EDITED

    suite a cette modification, j’obtient l’erreur signalé en début de post.

    j’ai hier soir tenté 2 types d’installation différents :
    – utilisation de la base sur fichier local : cela fonctionne parfaitement
    – utilisation d’une base mariadb : cela fonctionne parfaitement.

    il semble donc que icescrum n’utilise pas correctement ma base postgresql.

    existe-t-il des contraintes de configuration coté postgresql ?

    Cordialement,

    #35959

    Cmoi20
    Participant

    pour info, voici l’erreur rencontrée lors du redémarrage sans la modification du properties :

    2016-09-21 08:00:40,842 [172.17.41.23-startStop-1] ERROR org.springframework.web.context.ContextLoader  - Context initialization failed
    org.springframework.beans.factory.access.BootstrapException: Error executing bootstraps; nested exception is org.codehaus.groovy.runtime.InvokerInvocationException: liquibase.exception.LockException: liquibase.exception.DatabaseException: Error executing SQL CREATE TABLE databasechangeloglock (ID INT NOT NULL, LOCKED BOOLEAN NOT NULL, LOCKGRANTED TIMESTAMP WITH TIME ZONE, LOCKEDBY VARCHAR(255), CONSTRAINT PK_DATABASECHANGELOGLOCK PRIMARY KEY (ID)); on jdbc:postgresql://172.17.41.23:5432/pocscrumINSERT INTO databasechangeloglock (ID, LOCKED) VALUES (1, FALSE): ERREUR: la relation « databasechangeloglock » existe déjà
            at org.codehaus.groovy.grails.web.context.GrailsContextLoader.createWebApplicationContext(GrailsContextLoader.java:87)
            at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
            at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
            at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4973)
            at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)
            at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
            at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
            at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
            at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
            at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1083)
            at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1880)
            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
            at java.util.concurrent.FutureTask.run(FutureTask.java:262)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
            at java.lang.Thread.run(Thread.java:745)
    Caused by: org.codehaus.groovy.runtime.InvokerInvocationException: liquibase.exception.LockException: liquibase.exception.DatabaseException: Error executing SQL CREATE TABLE databasechangeloglock (ID INT NOT NULL, LOCKED BOOLEAN NOT NULL, LOCKGRANTED TIMESTAMP WITH TIME ZONE, LOCKEDBY VARCHAR(255), CONSTRAINT PK_DATABASECHANGELOGLOCK PRIMARY KEY (ID)); on jdbc:postgresql://172.17.41.23:5432/pocscrumINSERT INTO databasechangeloglock (ID, LOCKED) VALUES (1, FALSE): ERREUR: la relation « databasechangeloglock » existe déjà
            ... 5 more
    Caused by: liquibase.exception.LockException: liquibase.exception.DatabaseException: Error executing SQL CREATE TABLE databasechangeloglock (ID INT NOT NULL, LOCKED BOOLEAN NOT NULL, LOCKGRANTED TIMESTAMP WITH TIME ZONE, LOCKEDBY VARCHAR(255), CONSTRAINT PK_DATABASECHANGELOGLOCK PRIMARY KEY (ID)); on jdbc:postgresql://172.17.41.23:5432/pocscrumINSERT INTO databasechangeloglock (ID, LOCKED) VALUES (1, FALSE): ERREUR: la relation « databasechangeloglock » existe déjà
            at liquibase.lockservice.LockService.acquireLock(LockService.java:121)
            at liquibase.lockservice.LockService.waitForLock(LockService.java:61)
            at liquibase.lockservice.LockService$waitForLock.call(Unknown Source)
            at liquibase.LiquibaseDsl.update(LiquibaseDsl.groovy:63)
            at liquibase.LiquibaseDsl$update.call(Unknown Source)
            at autobase.Autobase.migrate(Autobase.groovy:43)
            at autobase.Autobase$migrate.call(Unknown Source)
            at AutobaseGrailsPlugin$__clinit__closure9.doCall(AutobaseGrailsPlugin.groovy:103)
            at AutobaseGrailsPlugin.invokeMethod(AutobaseGrailsPlugin.groovy)
            at AutobaseGrailsPlugin$_closure2.doCall(AutobaseGrailsPlugin.groovy:114)
            ... 5 more
    Caused by: liquibase.exception.DatabaseException: Error executing SQL CREATE TABLE databasechangeloglock (ID INT NOT NULL, LOCKED BOOLEAN NOT NULL, LOCKGRANTED TIMESTAMP WITH TIME ZONE, LOCKEDBY VARCHAR(255), CONSTRAINT PK_DATABASECHANGELOGLOCK PRIMARY KEY (ID)); on jdbc:postgresql://172.17.41.23:5432/pocscrumINSERT INTO databasechangeloglock (ID, LOCKED) VALUES (1, FALSE): ERREUR: la relation « databasechangeloglock » existe déjà
            at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:62)
            at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:104)
            at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:70)
            at liquibase.database.AbstractDatabase.checkDatabaseChangeLogLockTable(AbstractDatabase.java:564)
            at liquibase.lockservice.LockService.acquireLock(LockService.java:94)
            ... 14 more
    Caused by: org.postgresql.util.PSQLException: ERREUR: la relation « databasechangeloglock » existe déjà
            at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2270)
            at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1998)
            at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:255)
            at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:570)
            at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:406)
            at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:398)
            at liquibase.executor.jvm.JdbcExecutor$1ExecuteStatementCallback.doInStatement(JdbcExecutor.java:92)
            at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:55)
            ... 18 more
    2016-09-21 08:00:40,844 [172.17.41.23-startStop-1] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[172.17.41.23].[/icescrum]  - Exception lors de l'envoi de l'évènement contexte initialisé (context initialized) à l'instance de classe d'écoute (listener) org.icescrum.core.IceScrumContextLoaderListener
    org.springframework.beans.factory.access.BootstrapException: Error executing bootstraps; nested exception is org.codehaus.groovy.runtime.InvokerInvocationException: liquibase.exception.LockException: liquibase.exception.DatabaseException: Error executing SQL CREATE TABLE databasechangeloglock (ID INT NOT NULL, LOCKED BOOLEAN NOT NULL, LOCKGRANTED TIMESTAMP WITH TIME ZONE, LOCKEDBY VARCHAR(255), CONSTRAINT PK_DATABASECHANGELOGLOCK PRIMARY KEY (ID)); on jdbc:postgresql://172.17.41.23:5432/pocscrumINSERT INTO databasechangeloglock (ID, LOCKED) VALUES (1, FALSE): ERREUR: la relation « databasechangeloglock » existe déjà
            at org.codehaus.groovy.grails.web.context.GrailsContextLoader.createWebApplicationContext(GrailsContextLoader.java:87)
            at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
            at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
            at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4973)
            at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)
            at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
            at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
            at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
            at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
            at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1083)
            at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1880)
            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
            at java.util.concurrent.FutureTask.run(FutureTask.java:262)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
            at java.lang.Thread.run(Thread.java:745)
    Caused by: org.codehaus.groovy.runtime.InvokerInvocationException: liquibase.exception.LockException: liquibase.exception.DatabaseException: Error executing SQL CREATE TABLE databasechangeloglock (ID INT NOT NULL, LOCKED BOOLEAN NOT NULL, LOCKGRANTED TIMESTAMP WITH TIME ZONE, LOCKEDBY VARCHAR(255), CONSTRAINT PK_DATABASECHANGELOGLOCK PRIMARY KEY (ID)); on jdbc:postgresql://172.17.41.23:5432/pocscrumINSERT INTO databasechangeloglock (ID, LOCKED) VALUES (1, FALSE): ERREUR: la relation « databasechangeloglock » existe déjà
            ... 5 more
    Caused by: liquibase.exception.LockException: liquibase.exception.DatabaseException: Error executing SQL CREATE TABLE databasechangeloglock (ID INT NOT NULL, LOCKED BOOLEAN NOT NULL, LOCKGRANTED TIMESTAMP WITH TIME ZONE, LOCKEDBY VARCHAR(255), CONSTRAINT PK_DATABASECHANGELOGLOCK PRIMARY KEY (ID)); on jdbc:postgresql://172.17.41.23:5432/pocscrumINSERT INTO databasechangeloglock (ID, LOCKED) VALUES (1, FALSE): ERREUR: la relation « databasechangeloglock » existe déjà
            at liquibase.lockservice.LockService.acquireLock(LockService.java:121)
            at liquibase.lockservice.LockService.waitForLock(LockService.java:61)
            at liquibase.lockservice.LockService$waitForLock.call(Unknown Source)
            at liquibase.LiquibaseDsl.update(LiquibaseDsl.groovy:63)
            at liquibase.LiquibaseDsl$update.call(Unknown Source)
            at autobase.Autobase.migrate(Autobase.groovy:43)
            at autobase.Autobase$migrate.call(Unknown Source)
            at AutobaseGrailsPlugin$__clinit__closure9.doCall(AutobaseGrailsPlugin.groovy:103)
            at AutobaseGrailsPlugin.invokeMethod(AutobaseGrailsPlugin.groovy)
            at AutobaseGrailsPlugin$_closure2.doCall(AutobaseGrailsPlugin.groovy:114)
            ... 5 more
    Caused by: liquibase.exception.DatabaseException: Error executing SQL CREATE TABLE databasechangeloglock (ID INT NOT NULL, LOCKED BOOLEAN NOT NULL, LOCKGRANTED TIMESTAMP WITH TIME ZONE, LOCKEDBY VARCHAR(255), CONSTRAINT PK_DATABASECHANGELOGLOCK PRIMARY KEY (ID)); on jdbc:postgresql://172.17.41.23:5432/pocscrumINSERT INTO databasechangeloglock (ID, LOCKED) VALUES (1, FALSE): ERREUR: la relation « databasechangeloglock » existe déjà
            at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:62)
            at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:104)
            at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:70)
            at liquibase.database.AbstractDatabase.checkDatabaseChangeLogLockTable(AbstractDatabase.java:564)
            at liquibase.lockservice.LockService.acquireLock(LockService.java:94)
            ... 14 more
    Caused by: org.postgresql.util.PSQLException: ERREUR: la relation « databasechangeloglock » existe déjà
            at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2270)
            at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1998)
            at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:255)
            at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:570)
            at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:406)
            at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:398)
            at liquibase.executor.jvm.JdbcExecutor$1ExecuteStatementCallback.doInStatement(JdbcExecutor.java:92)
            at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:55)
            ... 18 more
    2016-09-21 08:00:40,877 [172.17.41.23-startStop-1] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[172.17.41.23].[/icescrum]  - Exception lors de l'envoi de l'évènement contexte détruit (context destroyed) à l'instance de classe d'écoute org.icescrum.core.IceScrumContextLoaderListener
    org.springframework.beans.factory.access.BootstrapException: Error executing bootstraps; nested exception is org.codehaus.groovy.runtime.InvokerInvocationException: liquibase.exception.LockException: liquibase.exception.DatabaseException: Error executing SQL CREATE TABLE databasechangeloglock (ID INT NOT NULL, LOCKED BOOLEAN NOT NULL, LOCKGRANTED TIMESTAMP WITH TIME ZONE, LOCKEDBY VARCHAR(255), CONSTRAINT PK_DATABASECHANGELOGLOCK PRIMARY KEY (ID)); on jdbc:postgresql://172.17.41.23:5432/pocscrumINSERT INTO databasechangeloglock (ID, LOCKED) VALUES (1, FALSE): ERREUR: la relation « databasechangeloglock » existe déjà
            at org.codehaus.groovy.grails.web.context.GrailsContextLoader.createWebApplicationContext(GrailsContextLoader.java:87)
            at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
            at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
            at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4973)
            at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)
            at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
            at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
            at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
            at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
            at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1083)
            at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1880)
            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
            at java.util.concurrent.FutureTask.run(FutureTask.java:262)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
            at java.lang.Thread.run(Thread.java:745)
    Caused by: org.codehaus.groovy.runtime.InvokerInvocationException: liquibase.exception.LockException: liquibase.exception.DatabaseException: Error executing SQL CREATE TABLE databasechangeloglock (ID INT NOT NULL, LOCKED BOOLEAN NOT NULL, LOCKGRANTED TIMESTAMP WITH TIME ZONE, LOCKEDBY VARCHAR(255), CONSTRAINT PK_DATABASECHANGELOGLOCK PRIMARY KEY (ID)); on jdbc:postgresql://172.17.41.23:5432/pocscrumINSERT INTO databasechangeloglock (ID, LOCKED) VALUES (1, FALSE): ERREUR: la relation « databasechangeloglock » existe déjà
            ... 5 more
    Caused by: liquibase.exception.LockException: liquibase.exception.DatabaseException: Error executing SQL CREATE TABLE databasechangeloglock (ID INT NOT NULL, LOCKED BOOLEAN NOT NULL, LOCKGRANTED TIMESTAMP WITH TIME ZONE, LOCKEDBY VARCHAR(255), CONSTRAINT PK_DATABASECHANGELOGLOCK PRIMARY KEY (ID)); on jdbc:postgresql://172.17.41.23:5432/pocscrumINSERT INTO databasechangeloglock (ID, LOCKED) VALUES (1, FALSE): ERREUR: la relation « databasechangeloglock » existe déjà
            at liquibase.lockservice.LockService.acquireLock(LockService.java:121)
            at liquibase.lockservice.LockService.waitForLock(LockService.java:61)
            at liquibase.lockservice.LockService$waitForLock.call(Unknown Source)
            at liquibase.LiquibaseDsl.update(LiquibaseDsl.groovy:63)
            at liquibase.LiquibaseDsl$update.call(Unknown Source)
            at autobase.Autobase.migrate(Autobase.groovy:43)
            at autobase.Autobase$migrate.call(Unknown Source)
            at AutobaseGrailsPlugin$__clinit__closure9.doCall(AutobaseGrailsPlugin.groovy:103)
            at AutobaseGrailsPlugin.invokeMethod(AutobaseGrailsPlugin.groovy)
            at AutobaseGrailsPlugin$_closure2.doCall(AutobaseGrailsPlugin.groovy:114)
            ... 5 more
    Caused by: liquibase.exception.DatabaseException: Error executing SQL CREATE TABLE databasechangeloglock (ID INT NOT NULL, LOCKED BOOLEAN NOT NULL, LOCKGRANTED TIMESTAMP WITH TIME ZONE, LOCKEDBY VARCHAR(255), CONSTRAINT PK_DATABASECHANGELOGLOCK PRIMARY KEY (ID)); on jdbc:postgresql://172.17.41.23:5432/pocscrumINSERT INTO databasechangeloglock (ID, LOCKED) VALUES (1, FALSE): ERREUR: la relation « databasechangeloglock » existe déjà
            at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:62)
            at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:104)
            at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:70)
            at liquibase.database.AbstractDatabase.checkDatabaseChangeLogLockTable(AbstractDatabase.java:564)
            at liquibase.lockservice.LockService.acquireLock(LockService.java:94)
            ... 14 more
    Caused by: org.postgresql.util.PSQLException: ERREUR: la relation « databasechangeloglock » existe déjà
            at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2270)
            at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1998)
            at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:255)
            at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:570)
            at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:406)
            at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:398)
            at liquibase.executor.jvm.JdbcExecutor$1ExecuteStatementCallback.doInStatement(JdbcExecutor.java:92)
            at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:55)
            ... 18 more

    entre temps, nous avons réalisé divers tests via postgresql avec succès. notre DBA semble avoir sécurisé la base a chaque test et il y a une de ces sécurisation qui semble être la cause de cet incident. nous recherchons la cause précise de cette erreur.

    #35961

    Nicolas Noullet
    Keymaster

    Bonjour,

    En aucun cas il ne faut modifier le contenu du repertoire webapps/icescrum. iceScrum est censé marcher comme indiquer dans la doc, si ce n’est pas le cas alors il y a un problème de configuration de votre serveur. iceScrum tourne de manière fiable sur des milliers de serveurs et comme je vous l’ai indiqué une install from scratch avec les dernières versions fonctionne très bien sur une Debian (et sur Windows Server et OS X, c’est dire).

    D’ailleurs le fait qu’il faille supprimer des fichiers supplémentaires sur le paquet Tomcat de RHEL est un bug de leur paquet et non d’iceScrum. Il n’est pas normal que Tomcat soit fournit avec les mêmes libs partout sauf dans ce paquet.

    J’ai édité vos messages précédents pour ne pas donner de mauvaises idées aux utilisateurs qui tomberaient sur ce post.

    Je vous conseille de repartir de zéro sur un serveur clean, de télécharger:
    – icescrum.war ici : https://www.icescrum.com/download/r614-11-pro-war/
    – Tomcat ici : https://www.apache.org/dist/tomcat/tomcat-7/v7.0.72/bin/apache-tomcat-7.0.72.tar.gz

    De ne plus effectuer aucune rustine non indiquée dans la doc, simplement de suivre la doc : https://www.icescrum.com/documentation/application-server/.

    A l’issue de cela, vous deviez avoir un iceScrum qui tourne et une interface de setup comme montrée ici https://www.icescrum.com/documentation/install-guide/#settings. Dans ce setup, vous devriez pouvoir connecter iceScrum la base de données Postgres.

    J’ai suivi ce protocole des centaines de fois avec succès. Si cela ne fonctionne pas chez vous, il doit y avoir une spécificité dans votre configuration qui nous échappe et je ne vois pas comment mettre le doigt dessus à distance. Si le POC venait à devenir une vraie install en Prod, sachez que nous proposons des services d’installation à distance (ou même sur place si vous prenez en charge les frais) pour un prix raisonnable. Si il s’agit juste de tester iceScrum, la version .jar ou une install via Docker ferait aussi bien l’affaire.

    #35972

    Cmoi20
    Participant

    Bonjour,

    j’ai trouvé des informations concernant la cause de mon blocage.
    si avant de lancer l’installation, l’on positionne les informations de connexion a la base de donnée postgresql dans le fichier config.groovy , dans ce cas la, le service ne démarre plus correctement au redémarrage de tomcat.

    par contre, si l’on ne donne pas les informations de connexion a la bdd postgresql et que l’on laisse le processus d’installation les positionner, cela fonctionne parfaitement.

    je suis désolé pour le temps que je vous ai pris.

    Cordialement,

Viewing 10 posts - 1 through 10 (of 10 total)

The forum ‘Installation’ is closed to new topics and replies.