[DG: Spanish Sakai] Error al arrancar Tomcat tras aplicar unparche

Daniel Merino daniel.merino at unavarra.es
Tue Mar 23 03:49:15 PDT 2010


Gracias por la respuesta! Sí que tengo en el components.xml ese bean, 
está incluido en el parche. Añado esta línea:

/<property name="serverConfigurationService" 
ref="org.sakaiproject.component.api.ServerConfigurationService" />/

Contestando a otro mail de Miguel, el parche toca bastantes más cosas. 
Si quieres mirarlo, es el parche "MSGCNTR-9_sak25x.txt" del JIRA 
http://jira.sakaiproject.org/browse/MSGCNTR-9

Lo del import voy a probarlo a ver. Lo dicho, gracias!

Salu2

DAVID ROLDAN MARTINEZ escribió:
>
> Lo único que se me ocurre es que te esté fallando la IoC porque no 
> encuentre el bean serverConfigurationService. Mira el components.xml a 
> ver si está. Estos errores salen en tiempo de ejecución y no de 
> compilación. L
>
>  
>
> Otra alternativa es que en lugar de la IoC utilices la cubierta 
> estática del servicio de configuración. Para eso, cambia el import 
> para incluir el cover y emplea el *_S_*erverConfigurationService en 
> lugar del serverConfigurationService.
>
>  
>
> Salu2
>
>  
>
> *De:* spanish-sakai-bounces at collab.sakaiproject.org 
> [mailto:spanish-sakai-bounces at collab.sakaiproject.org] *En nombre de 
> *Daniel Merino
> *Enviado el:* martes, 23 de marzo de 2010 11:07
> *Para:* Spanish Sakai
> *Asunto:* [DG: Spanish Sakai] Error al arrancar Tomcat tras aplicar un 
> parche
>
>  
>
> Hola a tod at s. Estoy intentando adaptar un parche para la 2.7 en 
> nuestra 2.5.3 y más o menos lo estoy consiguiendo trasteando con el 
> Eclipse. Ya lo compilo y lo despliego sin problemas, pero me da un 
> error al arrancar Tomcat y estoy seguro de que será una tontería.
>
> El error me dá en esta línea de la clase AreaManagerImpl.java:
>
> */DEFAULT_AUTO_MARK_READ = 
> serverConfigurationService.getBoolean("msgcntr.forums.default.auto.mark.threads.read", 
> false);/*
>
> Os pego el log del Tomcat, por si algún programador experto puede 
> decirme qué falla.
>
> Gracias.
>
> /ERROR: Failed to preinstantiate the singleton named 
> org.sakaiproject.api.app.messageforums.DiscussionForumService. 
> Destroying all Spring beans. (2010-03-23 10:26:36,594 
> main_org.sakaiproject.util.NoisierDefaultListableBeanFactory)
> org.springframework.beans.factory.BeanCreationException: Error 
> creating bean with name 
> 'org.sakaiproject.api.app.messageforums.DiscussionForumService' 
> defined in file 
> [/apps/tomcat/tomcat-b/components/sakai-messageforums-components/WEB-INF/components.xml]: 
> Cannot resolve reference to bean 
> 'org.sakaiproject.api.app.messageforums.AreaManager' while setting 
> bean property 'areaManager'; nested exception is 
> org.springframework.beans.factory.BeanCreationException: Error 
> creating bean with name 
> 'org.sakaiproject.api.app.messageforums.AreaManager' defined in file 
> [/apps/tomcat/tomcat-b/components/sakai-messageforums-components/WEB-INF/components.xml]: 
> Cannot create inner bean 
> 'org.sakaiproject.component.app.messageforums.AreaManagerImpl#1a01f91' 
> of type [org.sakaiproject.component.app.messageforums.AreaManagerImpl] 
> while setting bean property 'target'; nested exception is 
> org.springframework.beans.factory.BeanCreationException: Error 
> creating bean with name 
> 'org.sakaiproject.component.app.messageforums.AreaManagerImpl#1a01f91' 
> defined in file 
> [/apps/tomcat/tomcat-b/components/sakai-messageforums-components/WEB-INF/components.xml]: 
> Invocation of init method failed; nested exception is 
> java.lang.NullPointerException
>
> Caused by:
> org.springframework.beans.factory.BeanCreationException: Error 
> creating bean with name 
> 'org.sakaiproject.api.app.messageforums.AreaManager' defined in file 
> [/apps/tomcat/tomcat-b/components/sakai-messageforums-components/WEB-INF/components.xml]: 
> Cannot create inner bean 
> 'org.sakaiproject.component.app.messageforums.AreaManagerImpl#1a01f91' 
> of type[org.sakaiproject.component.app.messageforums.AreaManagerImpl] 
> while setting bean property 'target'; nested exception is 
> org.springframework.beans.factory.BeanCreationException: Error 
> creating bean with name 
> 'org.sakaiproject.component.app.messageforums.AreaManagerImpl#1a01f91' 
> defined in file 
> [/apps/tomcat/tomcat-b/components/sakai-messageforums-components/WEB-INF/components.xml]: 
> Invocation of init method failed; nested exception is 
> java.lang.NullPointerException
>
> Caused by:
> org.springframework.beans.factory.BeanCreationException: Error 
> creating bean with name 
> 'org.sakaiproject.component.app.messageforums.AreaManagerImpl#1a01f91' 
> defined in file 
> [/apps/tomcat/tomcat-b/components/sakai-messageforums-components/WEB-INF/components.xml]: 
> Invocation of init method failed; nested exception is 
> java.lang.NullPointerException
>
> Caused by:
> java.lang.NullPointerException
>         at 
> org.sakaiproject.component.app.messageforums.AreaManagerImpl.init(AreaManagerImpl.java:82)
>
> /Salu2
>
> -- 
> Daniel Merino
> daniel.merino at unavarra.es <mailto:daniel.merino at unavarra.es>
> Gestor de teleformación - Centro Superior de Innovación Educativa.
> Tfno: 948-168489 - Universidad Pública de Navarra.
> --
> Avaricia es vivir en la pobreza por miedo a la pobreza. (S. Bernardo)
>
>  
>

-- 
Daniel Merino
daniel.merino at unavarra.es
Gestor de teleformación - Centro Superior de Innovación Educativa.
Tfno: 948-168489 - Universidad Pública de Navarra.
--
Para caerles bien a las personas tienes que hacer muchas cosas... para 
caerles mal, no tienes que hacer nada. (Homer Simpson)


More information about the spanish-sakai mailing list