cancel
Showing results for 
Search instead for 
Did you mean: 

Problemas al crear un repo en Alfresco 5.1

apache
Confirmed Champ
Confirmed Champ

Estoy aprendiendo a desarrollar para Alfresco 5.1 y me encuentro creando el proyecto que contiene el repo. Cuando ejecuto el comando ¨"run.bat" no se inicia porque no puede iniciar dos componentes del Tomcat.

Este es el error:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:20 min
[INFO] Finished at: 2017-12-06T18:35:05+00:00
[INFO] Final Memory: 72M/565M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.alfresco.maven.plugin:alfresco-maven-plugin:3.0.1:run (default-cli) on project content-tutorial-repo: Unable to execute mojo: Could not start Tomcat: Failed to start component [StandardServer[-1]]: Failed to start component [StandardService[Tomcat]]: Failed to start component [StandardEngine[Tomcat]]: A child container failed during start -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
java.lang.NoClassDefFoundError: de/schlichtherle/truezip/fs/FsLockController$1Sync
        at de.schlichtherle.truezip.fs.FsLockController.sync(FsLockController.java:240)
        at de.schlichtherle.truezip.fs.archive.zip.KeyController.sync(KeyController.java:128)
        at de.schlichtherle.truezip.fs.FsDecoratingController.sync(FsDecoratingController.java:131)
        at de.schlichtherle.truezip.fs.FsFalsePositiveArchiveController.sync(FsFalsePositiveArchiveController.java:480)
        at de.schlichtherle.truezip.fs.FsManager.sync(FsManager.java:105)
        at de.schlichtherle.truezip.fs.FsDefaultManager.sync(FsDefaultManager.java:190)
        at de.schlichtherle.truezip.fs.FsSyncShutdownHook$Hook.run(FsSyncShutdownHook.java:93)
Caused by: java.lang.ClassNotFoundException: de.schlichtherle.truezip.fs.FsLockController$1Sync
        at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
        at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
        at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
        at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
        ... 7 more
Exception in thread "Thread-4" Exception in thread "Thread-3" java.lang.NoClassDefFoundError: org/apache/commons/io/FileUtils
        at org.apache.tomcat.maven.plugin.tomcat7.run.RunMojo$2.run(RunMojo.java:295)
Exception in thread "Thread-5" Exception in thread "Thread-2" Exception in thread "Thread-6" java.lang.NoClassDefFoundError: org/apache/commons/io/FileUtils
        at org.apache.tomcat.maven.plugin.tomcat7.run.RunMojo$1.run(RunMojo.java:140)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.io.FileUtils
        at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
        at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
        at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
        at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
        ... 1 more
java.lang.NoClassDefFoundError: org/apache/commons/io/FileUtils
        at org.apache.tomcat.maven.plugin.tomcat7.run.RunMojo$2.run(RunMojo.java:295)
java.lang.NoClassDefFoundError: org/apache/commons/io/FileUtils
        at org.apache.tomcat.maven.plugin.tomcat7.run.RunMojo$2.run(RunMojo.java:295)
java.lang.NoClassDefFoundError: org/apache/commons/io/FileUtils
        at org.apache.tomcat.maven.plugin.tomcat7.run.RunMojo$2.run(RunMojo.java:295)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.io.FileUtils
        at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
        at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
        at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
        at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
        ... 1 more

Agradeceria cualquier ayuda,llevo dos meses y no he podido empezar por este bache. Mi correo es smontalvo1992@gmail.com

17 REPLIES 17

Le asigné más memoria a Maven ("GB) y ya el repo me da la salida que definiste,sin embargo el share sigue quedándose colgado cuando muestra: Initializing Spring FrameworkServlet 'Spring Surf Dispatcher Servlet'.

Aqui te expongo lo que muestra (una parte de la consola):

dic 08, 2017 2:02:11 PM org.apache.catalina.core.StandardService startInternal
INFORMACIËN: Starting service Tomcat
dic 08, 2017 2:02:11 PM org.apache.catalina.core.StandardEngine startInternal
INFORMACIËN: Starting Servlet Engine: Apache Tomcat/7.0.47
dic 08, 2017 2:02:27 PM org.apache.catalina.core.ApplicationContext log
INFORMACIËN: No Spring WebApplicationInitializer types detected on classpath
dic 08, 2017 2:02:28 PM org.apache.catalina.core.ApplicationContext log
INFORMACIËN: Initializing Spring root WebApplicationContext
2017-12-08 14:02:41,460  INFO  [config.packaging.ModulePackageManager] [localhost-startStop-1] Found 2 module package(s)
2017-12-08 14:02:41,489  INFO  [config.packaging.ModulePackageManager] [localhost-startStop-1] content-tutorial-share AMP project, 1.0-SNAPSHOT, Manages the lifecycle of the content-tutorial-share AMP (Alfresco Module Package)
content-tutorial-share AMP project, 1.0-SNAPSHOT, Manages the lifecycle of the content-tutorial-share AMP (Alfresco Module Package)

2017-12-08 14:02:44,157  INFO  [extensions.webscripts.TemplateProcessorRegistry] [localhost-startStop-1] Registered template processor freemarker for extension ftl
2017-12-08 14:02:44,215  INFO  [extensions.webscripts.ScriptProcessorRegistry] [localhost-startStop-1] Registered script processor javascript for extension js
2017-12-08 14:02:44,230  INFO  [extensions.webscripts.TemplateProcessorRegistry] [localhost-startStop-1] Registered template processor freemarker for extension ftl
2017-12-08 14:02:44,235  INFO  [extensions.webscripts.ScriptProcessorRegistry] [localhost-startStop-1] Registered script processor javascript for extension js
2017-12-08 14:02:48,979  INFO  [extensions.webscripts.DeclarativeRegistry] [localhost-startStop-1] Registered 383 Web Scripts (+0 failed), 401 URLs
2017-12-08 14:02:48,982  INFO  [extensions.webscripts.DeclarativeRegistry] [localhost-startStop-1] Registered 8 Package Description Documents (+0 failed)
2017-12-08 14:02:48,984  INFO  [extensions.webscripts.DeclarativeRegistry] [localhost-startStop-1] Registered 0 Schema Description Documents (+0 failed)
2017-12-08 14:02:49,085  INFO  [extensions.webscripts.AbstractRuntimeContainer] [localhost-startStop-1] Initialised Spring Surf Container Web Script Container (in 4802.3325ms)
2017-12-08 14:02:49,090  INFO  [extensions.webscripts.TemplateProcessorRegistry] [localhost-startStop-1] Registered template processor freemarker for extension ftl
2017-12-08 14:02:49,091  INFO  [extensions.webscripts.ScriptProcessorRegistry] [localhost-startStop-1] Registered script processor javascript for extension js
2017-12-08 14:02:49,332  WARN  [shared_impl.util.LocaleUtils] [localhost-startStop-1] Locale name in faces-config.xml null or empty, setting locale to default locale : es_ES
dic 08, 2017 2:02:49 PM org.apache.catalina.core.ApplicationContext log
INFORMACIËN: org.tuckey.web.filters.urlrewrite.UrlRewriteFilter INFO: loaded (conf ok)
dic 08, 2017 2:02:49 PM org.apache.catalina.core.ApplicationContext log
INFORMACIËN: Initializing Spring FrameworkServlet 'Spring Surf Dispatcher Servlet'

Algo debe faltar pero desconozco lo que es.Espero que estemos más cerca de solucionarlo.

angelborroy
Community Manager Community Manager
Community Manager

Prueba a arrancar solo el Share (sin repo). Quizá tu ordenador no tenga suficientes recursos para tener ambos arrancados.

Hyland Developer Evangelist

Arranque solo el share y se queda en la misma linea que te mostré en el post anterior.

angelborroy
Community Manager Community Manager
Community Manager

Esa es la penúltima línea del log...

Dec 09, 2017 9:19:45 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8081"]

¿Has verificado si la aplicación está activa en http://localhost:8081/share? Quizá solo sea un problema de refresco del log...

Hyland Developer Evangelist

Cuando verifico si la aplicacion está activa (http://localhost:8081/share ) me da en el navegador:

Error 404 Not Found.

Lo que no entiendo es por qué nunca alcanza la línea:

Dec 09, 2017 9:19:45 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8081"]

Y siempre se queda en
dic 13, 2017 1:32:12 PM org.apache.catalina.core.ApplicationContext log
INFORMACIËN: Initializing Spring FrameworkServlet 'Spring Surf Dispatcher Servlet'

Lo siento, yo también me he quedado sin pistas... ¿Puedes probarlo en otra máquina?

Hyland Developer Evangelist

Ok, vamos a ver lo pruebo y despues te informo

Al fin funcionó todo, logré despegar con el sdk 2.2.0, muchas gracias x todo. Al parecer era el jdk de java.