12-06-2017 01:53 PM
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
12-08-2017 09:14 AM
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.
12-08-2017 01:47 PM
Prueba a arrancar solo el Share (sin repo). Quizá tu ordenador no tenga suficientes recursos para tener ambos arrancados.
12-08-2017 03:39 PM
Arranque solo el share y se queda en la misma linea que te mostré en el post anterior.
12-09-2017 03:21 AM
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...
12-13-2017 08:39 AM
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'
12-13-2017 02:01 PM
Lo siento, yo también me he quedado sin pistas... ¿Puedes probarlo en otra máquina?
12-14-2017 08:23 AM
Ok, vamos a ver lo pruebo y despues te informo
12-15-2017 01:50 PM
Al fin funcionó todo, logré despegar con el sdk 2.2.0, muchas gracias x todo. Al parecer era el jdk de java.
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.