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

DAVID ROLDAN MARTINEZ darolmar at upvnet.upv.es
Tue Mar 23 03:40:40 PDT 2010


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. :(

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 ServerConfigurationService 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)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/spanish-sakai/attachments/20100323/f9f9af92/attachment.html 


More information about the spanish-sakai mailing list