AnsweredAssumed Answered

Test de la 3.0c disponible dans le Nightly

Question asked by jeanjot on Oct 28, 2008
Latest reply on Oct 30, 2008 by michaelh
Bonjour

Je suis en cours de test de la version du 25 octobre estampilé 3.0c sur la nightly.

Je rappelle que je suis sur une mandriva 2009, avec Mysql

Toutes les modifications mysql ont été faite.
1. dans tomcat/share/alfresco/extension
   a. modification de "custom-hibernate-dialect.properties" et  "custom-repository.properties"
2.  installation du jar : mysql-connector-java-5.1.6.tar.gz dans tomcat/common/lib
3. initialisation de la base de données mysql à partir du fichier db_setup.sql fourni dans extra/database avec la commance suivante :
mysql -u root -p < db_setup.sql
4. j'ai mis à jour le fichier alfresco.sh, pour le démarrage d'openoffice.org et la localosation du useroo
5. j'ai récupérer le fichier start_oo.sh à partir du dossier "installer"

Puis j'ai lancer la commande :
./alfresco.sh start

java -version me donne :
java version "1.6.0_06"
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) Client VM (build 10.0-b22, mixed mode)

malheureusement j'ai le message suivant dans tomcat/log/catalina.out
INFO: Déploiement de l'archive alfresco.war de l'application web                                  
17:17:44,708  INFO  [config.xml.XMLConfigService$PropertyConfigurer] Loading properties file from class path resource [alfresco/file-servers.properties]                                                                                                               
17:17:59,646  ERROR [web.context.ContextLoader] Context initialization failed                                                      
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'luceneIndexBackupComponent' defined in class path resource [alfresco/core-services-context.xml]: Invocation of init method failed; nested exception is org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is org.hibernate.exception.GenericJDBCException: Cannot open connection                                                                                    
Caused by: org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is org.hibernate.exception.GenericJDBCException: Cannot open connection                                                
Caused by: org.hibernate.exception.GenericJDBCException: Cannot open connection                                                    
        at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)                       
        at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)                                            
        at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)                                        
        at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)                                        
        at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:426)                                         
        at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)                                          
        at org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:119)                                                         
        at org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:57)                                                
        at org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1326)                                                  
        at org.springframework.orm.hibernate3.HibernateTransactionManager.doBegin(HibernateTransactionManager.java:510)            
        at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:350)                                                                                                                      
        at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:262)                                                                                                                        
        at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:219)                                                                                                                        
        at org.alfresco.util.transaction.SpringAwareUserTransaction.begin(SpringAwareUserTransaction.java:380)                     
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:291)             
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:209)             
        at org.alfresco.repo.search.impl.lucene.AbstractLuceneIndexerAndSearcherFactory$LuceneIndexBackupComponent.afterPropertiesSet(AbstractLuceneIndexerAndSearcherFactory.java:1439)                                                                               
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1201)                                                                                                                
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1171)                                                                                                                   
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425)                                                                                                                        
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)                 
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)                                                                                                                                  
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)                     
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)                     
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287)                                                                                                                          
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)             
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:244)                       
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187)                         
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)                 
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)                                       
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)                                               
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)                                         
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)                                                 
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)                                                   
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)                                                   
        at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)                                                  
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)                                                  
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)                                                      
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)                                              
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)                                 
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)                                                   
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)                                                      
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)                                                   
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)                                                  
        at org.apache.catalina.core.StandardService.start(StandardService.java:448)                                                
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)                                                  
        at org.apache.catalina.startup.Catalina.start(Catalina.java:552)                                                           
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                                                             
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)                                           
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)                                   
        at java.lang.reflect.Method.invoke(Method.java:597)                                                                        
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)                                                         
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)                                                          
Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Communications link failure        

Last packet sent to the server was 0 ms ago.)
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
        at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)  
        at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:81)                                                                                                                               
        at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:423)                                         
        … 48 more                                                                                                                
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

Je n'ai pas mis tout le log mais si besoin je complèterais

Je me demande si il n'y a pas un problème avec lucene ?

Quelqu'un aurait une idée.

PS : J'avais déjà fait un test sans modifier la base de données, donc en utilisant derby par défaut, et j'ai souvenir d'avoir eu le même problème avec la même version d'Alfresco 3.0c.

Outcomes