cancel
Showing results for 
Search instead for 
Did you mean: 

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

aduniel
Champ in-the-making
Champ in-the-making
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?
6 REPLIES 6

venzia
Star Collaborator
Star Collaborator
Supongo que le echarias un vistazo al articulo del wiki http://wiki.alfresco.com/wiki/Download_and_install_Alfresco_in_Linux
Ahi queda por si acaso.
La verdad que fuera que no sea tema de permisos del sistema u otros subcomponentes no encuentro ningun caso de problema o bug similar en dicha versión de Alfresco.
Saludos y suerte!

aduniel
Champ in-the-making
Champ in-the-making
He vuelto a leer el wiki y he hecho todos los pasos por defecto. Pero he simplificado, solo uso alfresco.war con mysql. Los voy a resumir:
1.- Instalo tomcat6 limpio en Kubuntu 9.10 Karmic, Mysql Server version: 5.1.37-1ubuntu5 (Ubuntu)
2.- Compruebo que funciona tomcat en http://localhost:8080
3.- Pongo alfresco.war, la version community 3.2r2 en /var/lib/tomcat6/webbapp y veo que se despliega correctamente creando el directorio alfresco en /var/lib/tomcat6/webbapp/
4.- Pongo el jar  de mysql: mysql-connector-java-5.1.10-bin.jar en /usr/share/tomcat6/lib/
5.- Creo la base de datos con mysql -u root -p < /directorio_alfresco_descomprimido/extras/databases/mysql/db_setup.sql
6.- Compruebo que se han creado los usuarios y la base de datos en alfresco.
7.- En principio me salto el paso del openoffice ya que quiero comprobar que funciona alfresco, solamente.
8.- Segun el wiki vuestro ya se puede entrar en la aplicacion de alfresco para probar si funciona con los parametros del repositorio por defecto y las contraseñas y demás por defecto (se que hay que cambiarlas por seguridad y demás pero esto es para ver si funciona).
9.- entro en http://localhost:8080/alfresco
10.- No funciona:
Estado HTTP 404 -

type Informe de estado

mensaje

descripción El recurso requerido () no está disponible.
Apache Tomcat/6.0.20

11.- Reinicio alfresco por si fuera eso
/etc/init.d/tomcat6 restart
* Stopping Tomcat servlet engine tomcat6                                                                                                             [ OK ]
* Starting Tomcat servlet engine tomcat6                                                                                                             [ OK ]
No funciona, mismo error.

Pongo los logs:

02-feb-2010 13:59:08 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.core.ContainerBase.addChildInternal(ContainerBase.java:791)                                                           
        at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:123)                                                                 
        at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:145)                                                     
        at java.security.AccessController.doPrivileged(Native Method)                                                                                
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:769)                                                                   
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)                                                                     
        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)                                                              
        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:556)                                                             
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:491)                                                                    
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)                                                                        
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)                                                                
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)                                                   
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)                                                                     
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)                                                                        
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)                                                                     
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)                                                                    
        at org.apache.catalina.core.StandardService.start(StandardService.java:516)                                                                  
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)                                                                    
        at org.apache.catalina.startup.Catalina.start(Catalina.java:583)                                                                             
        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:288)                                                                           
        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.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177)                                                               
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)                                                                      
        … 38 more                                                                                                                                  
02-feb-2010 13:59:08 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.core.ContainerBase.addChildInternal(ContainerBase.java:791)                                                           
        at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:123)                                                                 
        at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:145)                                                     
        at java.security.AccessController.doPrivileged(Native Method)                                                                                
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:769)                                                                   
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)                                                                     
        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)                                                              
        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:556)                                                             
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:491)                                                                    
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)                                                                        
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)                                                                
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)                                                   
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)                                                                     
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)                                                                        
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)                                                                     
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)                                                                    
        at org.apache.catalina.core.StandardService.start(StandardService.java:516)                                                                  
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)                                                                    
        at org.apache.catalina.startup.Catalina.start(Catalina.java:583)                                                                             
        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:288)                                                                           
        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.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177)                                                               
02-feb-2010 13:59:08 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.core.ContainerBase.addChildInternal(ContainerBase.java:791)
        at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:123)
        at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:145)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:769)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)
        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:556)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:491)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at org.apache.catalina.core.StandardService.start(StandardService.java:516)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
        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:288)
        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.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177)
02-feb-2010 13:59:08 org.apache.catalina.core.StandardContext listenerStart
GRAVE: Se ha saltado la instalación de escuchadores de aplicación debido a error(es) previo(s)

¿Alguien ha testeado que funcione el .war en ubuntu? Poniendo todo por defecto no funciona. ¿Me falta algún paso que no esta en el Wiki? Los pasos del wiki no funcionan, supongo que habria que detallarlos mas…

Saludos

venzia
Star Collaborator
Star Collaborator
Pues seguramente al articulo le falta un apartado de "Problemas comunes" (puedes completarlo si lo estimas oportuno  :mrgreenSmiley Happy .. echale un vistazo a este otro (para desplegar en un servidor con Liferay) que parece indica un error significativo q a ti te sale en el log java.lang.NoClassDefFoundError: Could not initialize class org.apache.commons.logging.LogFactory -> http://wiki.alfresco.com/wiki/Deploying_2.1WAR_Liferay4.3#Troubleshooting .
Saludos,

aduniel
Champ in-the-making
Champ in-the-making
Bueno, pues el problema es el siguiente:

Resulta que Ubuntu Karmic (no se si anteriores) dispone del fichero de configuración de tomcat6 /etc/default/tomcat6. Como se ve en el error en el log que puse antes

Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission org.apache.commons.logging.LogFactory.HashtableImpl read) 

hay un problema de permisos de seguridad… Bueno, como se arregla esto, pues en el fichero /etc/default/tomcat6, por defecto está habilitada la seguridad, asi que ponemos el parametro:

# Use the Java security manager? (yes/no, default: yes)
# WARNING: Do not disable the security manager unless you understand
# the consequences!
#TOMCAT6_SECURITY=yes
TOMCAT6_SECURITY=no

volvemos a http://localhost:8080/alfresco y ahora si que funciona y entra a la aplicación.

Esto habría que mencionarlo en el Wiki de instalación. Además, habría que mencionar como configurar los permisos en tomcat6 para que se pueda usar alfresco sin deshabilitar la seguridad de todo tomcat (cosa poco segura a mi entender). Es más, si alguien puede poner como poner los permisos correctos para que funcione alfresco sin deshabilitar la seguridad en este tema podria estar incluso mejor.

Saludos

aduniel
Champ in-the-making
Champ in-the-making
He tenido el problema de Outofmemory y lo he solucionado poniendo en /etc/default/tomcat6 lo siguiente

# Arguments to pass to the Java virtual machine (JVM).
#JAVA_OPTS="-Djava.awt.headless=true -Xmx128M"
JAVA_OPTS="-Djava.awt.headless=true -Xms512m -Xmx1024m -Xss96k -XX:MaxPermSize=512m"

Tambien he puesto las aplicaciones share.war y mobile.war y de momento funciona sin problemas en Kubuntu 9.10 Karmic Koala 32 bits.

venzia
Star Collaborator
Star Collaborator