AnsweredAssumed Answered

[SOLUCIONADO]Alfresco Commun 3.2r2 WAR Ubuntu 9.10 Tomcat 6

Question asked by aduniel on Jan 15, 2010
Latest reply on Feb 2, 2010 by venzia
Hola

Estoy intentando desplegar alfresco en el servidor tomcat 6 que viene por defecto en Ubuntu 9.10 Karmic y me es imposible.
Tengo configurado mysql 5.1 y he creado la base de datos alfresco. He puesto el conector jdbc en /usr/share/java que es el classpath de java. Tomcat 6 accede a el a través de /usr/share/tomcat6/lib.

Despliego los alfresco.war, share.war y mobile.war en /var/lib/tomcat6/webpps/ que es el directorio de aplicaciones correspondiente a CATALINA_BASE.

Me meto en el manager de tomcat6 y veo las 3 aplicaciones .war desplegadas alli. Pero al intentar arrancar alfresco me da el siguiente error:
   

FALLO - No se pudo arrancar la aplicación en trayectoria de contexto /alfresco

Al mirar los logs en /var/logs/tomcat6/localhost… obtengo esto:
15-ene-2010 13:20:43 org.apache.catalina.core.ApplicationContext log                                       
INFO: HTMLManager: list: Listing contexts for virtual host 'localhost'                                    
15-ene-2010 13:21:44 org.apache.catalina.core.ApplicationContext log                                      
INFO: HTMLManager: start: Starting web application at '/alfresco'                                         
15-ene-2010 13:21:44 org.apache.catalina.core.StandardContext listenerStart                               
GRAVE: Error configurando escuchador de aplicación de clase org.apache.myfaces.webapp.StartupServletContextListener
java.lang.ExceptionInInitializerError                                                                             
        at org.apache.myfaces.webapp.StartupServletContextListener.<clinit>(StartupServletContextListener.java:44)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)                                  
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)           
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)   
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)                                        
        at java.lang.Class.newInstance0(Class.java:355)                                                           
        at java.lang.Class.newInstance(Class.java:308)                                                            
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3878)                      
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)                              
        at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1249)                             
        at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:612)                      
        at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:136)                      
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)                                           
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)                                           
        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.security.SecurityUtil$1.run(SecurityUtil.java:269)                                 
        at java.security.AccessController.doPrivileged(Native Method)                                             
        at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)                                           
        at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:301)                               
        at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)                         
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:283)      
        at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:56)             
        at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)                 
        at java.security.AccessController.doPrivileged(Native Method)                                             
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)              
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)                    
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)                    
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)                 
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)                          
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)                          
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)                      
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)                            
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)                             
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)       
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)                                
        at java.lang.Thread.run(Thread.java:619)                                                                  
Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission org.apache.commons.logging.LogFactory.HashtableImpl read)
        at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)                                                         
        at java.security.AccessController.checkPermission(AccessController.java:546)                                                                 
        at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)                                                                       
        at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1285)                                                                  
        at java.lang.System.getProperty(System.java:650)                                                                                             
        at org.apache.commons.logging.LogFactory.createFactoryStore(LogFactory.java:320)                                                             
        at org.apache.commons.logging.LogFactory.<clinit>(LogFactory.java:1725)                                                                      
        … 39 more                                                                                                                                  
15-ene-2010 13:21:44 org.apache.catalina.core.StandardContext listenerStart                                                                          
GRAVE: Error configurando escuchador de aplicación de clase org.alfresco.web.app.ContextLoaderListener                                               
java.lang.NoClassDefFoundError: Could not initialize class org.apache.commons.logging.LogFactory                                                     
        at org.alfresco.web.app.ContextLoaderListener.<clinit>(ContextLoaderListener.java:48)                                                        
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)                                                                     
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)                                              
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)                                      
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)                                                                           
        at java.lang.Class.newInstance0(Class.java:355)                                                                                              
        at java.lang.Class.newInstance(Class.java:308)                                                                                               
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3878)                                                         
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)                                                                 
        at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1249)                                                                
        at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:612)                                                         
        at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:136)                                                         
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)                                                                              
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)                                                                              
        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.security.SecurityUtil$1.run(SecurityUtil.java:269)                                                                    
        at java.security.AccessController.doPrivileged(Native Method)                                                                                
        at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)                                                                              
        at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:301)                                                                  
        at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)                                                            
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:283)                                         
        at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:56)                                                
        at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)                                                    
        at java.security.AccessController.doPrivileged(Native Method)                                                                                
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)                                                 
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)                                                       
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)                                                       
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)                                                    
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)                                                             
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)                                                             
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)                                                         
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)                                                               
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)                                                                
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)                                          
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)                                                                   
        at java.lang.Thread.run(Thread.java:619)                                                                                                     
15-ene-2010 13:21:44 org.apache.catalina.core.StandardContext listenerStart                                                                          
GRAVE: Error configurando escuchador de aplicación de clase org.alfresco.web.app.ContextListener                                                     
java.lang.NoClassDefFoundError: Could not initialize class org.apache.commons.logging.LogFactory                                                     
        at org.alfresco.web.app.ContextListener.<clinit>(ContextListener.java:65)                                                                    
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)                                                                     
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at java.lang.Class.newInstance0(Class.java:355)
        at java.lang.Class.newInstance(Class.java:308)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3878)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)
        at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1249)
        at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:612)
        at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:136)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        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.security.SecurityUtil$1.run(SecurityUtil.java:269)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
        at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:301)
        at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:283)
        at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:56)
        at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
        at java.lang.Thread.run(Thread.java:619)
15-ene-2010 13:21:44 org.apache.catalina.core.StandardContext listenerStart
GRAVE: Se ha saltado la instalación de escuchadores de aplicación debido a error(es) previo(s)
15-ene-2010 13:21:44 org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: list: Listing contexts for virtual host 'localhost'

¿Que me falta configurar para que arranque correctamente?

Outcomes