I am trying to run a maven archetype allinone project, I have installed alfresco-5.0.b. I can build my project with maven, but when I try to launch run.sh, I get this errors. It seems that alfresco doesn't start, someone know how to fix this error?
oct. 17, 2014 1:44:37 PM org.apache.catalina.core.StandardContext listenerStart GRAVE: Exception sending context initialized event to listener instance of class org.alfresco.web.app.ContextLoaderListener java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;Ljava/lang/ThrowableV at org.apache.commons.logging.impl.SLF4JLocationAwareLog.error(SLF4JLocationAwareLog.java:225) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:331) at org.alfresco.web.app.ContextLoaderListener.initWebApplicationContext(ContextLoaderListener.java) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112) at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:63) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4797) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5291) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745)
oct. 17, 2014 1:44:37 PM org.apache.catalina.core.StandardContext listenerStart GRAVE: Exception sending context initialized event to listener instance of class org.alfresco.repo.webdav.WebDAVSessionListener java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered? at org.springframework.web.context.support.WebApplicationContextUtils.getRequiredWebApplicationContext(WebApplicationContextUtils.java:84) at org.alfresco.repo.webdav.WebDAVSessionListener.contextInitialized(WebDAVSessionListener.java:85) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4797) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5291) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745)
oct. 17, 2014 1:44:37 PM com.sun.xml.ws.transport.http.servlet.WSServletContextListener contextInitialized INFOS: WSSERVLET12: JAX-WS context listener initializing oct. 17, 2014 1:44:45 PM com.sun.xml.ws.transport.http.servlet.WSServletDelegate <init> INFOS: WSSERVLET14: JAX-WS servlet initializing oct. 17, 2014 1:44:45 PM org.apache.catalina.core.StandardContext listenerStart GRAVE: Exception sending context initialized event to listener instance of class org.apache.myfaces.webapp.StartupServletContextListener java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;Ljava/lang/ThrowableV at org.apache.commons.logging.impl.SLF4JLocationAwareLog.trace(SLF4JLocationAwareLog.java:107) at org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:76) at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:65) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4797) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5291) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745)
oct. 17, 2014 1:44:45 PM org.apache.catalina.core.StandardContext startInternal GRAVE: Error listenerStart oct. 17, 2014 1:44:45 PM org.apache.catalina.core.StandardContext startInternal GRAVE: Context [/alfresco] startup failed due to previous errors oct. 17, 2014 1:44:45 PM com.sun.xml.ws.transport.http.servlet.WSServletDelegate destroy INFOS: WSSERVLET15: JAX-WS servlet destroyed oct. 17, 2014 1:44:45 PM com.sun.xml.ws.transport.http.servlet.WSServletContextListener contextDestroyed INFOS: WSSERVLET13: JAX-WS context listener destroyed oct. 17, 2014 1:44:45 PM org.apache.catalina.core.ApplicationContext log INFOS: Closing Spring root WebApplicationContext oct. 17, 2014 1:44:45 PM org.apache.catalina.core.StandardContext listenerStop GRAVE: Exception sending context destroyed event to listener instance of class org.alfresco.web.app.ContextLoaderListener java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;Ljava/lang/ThrowableV at org.apache.commons.logging.impl.SLF4JLocationAwareLog.warn(SLF4JLocationAwareLog.java:199) at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1052) at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:1010) at org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:586) at org.alfresco.web.app.ContextLoaderListener.closeWebApplicationContext(ContextLoaderListener.java) at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:143) at org.alfresco.web.app.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java) at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4837) at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5483) at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745)
oct. 17, 2014 1:44:45 PM org.apache.catalina.core.ApplicationContext log INFOS: Shutting down log4j oct. 17, 2014 1:44:45 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads GRAVE: The web application [/alfresco] appears to have started a thread named [FileSystemWatcher: files=#11 cl=WebappClassLoader context: /alfresco delegate: false repositories: /WEB-INF/classes/ ———-> Parent Classloader: ClassRealm[tomcat, parent: null] ] but has failed to stop it. This is very likely to create a memory leak. oct. 17, 2014 1:44:45 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks GRAVE: The web application [/alfresco] created a ThreadLocal with key of type [com.sun.xml.bind.v2.ClassFactory$1] (value [com.sun.xml.bind.v2.ClassFactory$1@39bee82]) and a value of type [java.util.WeakHashMap] (value [{class javax.xml.bind.annotation.W3CDomHandler=java.lang.ref.WeakReference@1514a4e2}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak. oct. 17, 2014 1:44:51 PM org.apache.catalina.core.ApplicationContext log INFOS: No Spring WebApplicationInitializer types detected on classpath SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/home/jpmfouilou/Development/git/alfresco/alfresco-allinone-archetype/runner/target/tomcat/webapps/solr/WEB-INF/lib/slf4j-log4j12-1.5.11.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/home/jpmfouilou/Development/git/alfresco/alfresco-allinone-archetype/runner/target/tomcat/webapps/solr/WEB-INF/lib/slf4j-log4j12-1.5.5.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/home/jpmfouilou/Development/git/alfresco/alfresco-allinone-archetype/runner/target/tomcat/webapps/solr/WEB-INF/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. 2014-10-17 13:44:54,143 WARN [handler.component.SpellCheckComponent] [localhost-startStop-1] No queryConverter defined, using default converter 2014-10-17 13:44:55,427 WARN [handler.component.SpellCheckComponent] [localhost-startStop-1] No queryConverter defined, using default converter oct. 17, 2014 1:44:55 PM org.apache.coyote.AbstractProtocol start INFOS: Starting ProtocolHandler ["http-bio-8080"] 2014-10-17 13:45:00,721 ERROR [solr.tracker.CoreTracker] [SolrTrackerScheduler_Worker-3] Tracking failed org.alfresco.error.AlfrescoRuntimeException: 09170001 GetModelsDiff return status is 404 at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:1095) at org.alfresco.solr.tracker.CoreTracker.trackModelsImpl(CoreTracker.java:1353) at org.alfresco.solr.tracker.CoreTracker.trackModels(CoreTracker.java:2020) at org.alfresco.solr.tracker.CoreTracker.trackRepository(CoreTracker.java:885) at org.alfresco.solr.tracker.CoreTracker.updateIndex(CoreTracker.java:366) at org.alfresco.solr.tracker.CoreTrackerJob.execute(CoreTrackerJob.java:45) at org.quartz.core.JobRunShell.run(JobRunShell.java:216) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563) 2014-10-17 13:45:00,721 ERROR [solr.tracker.CoreTracker] [SolrTrackerScheduler_Worker-2] Tracking failed org.alfresco.error.AlfrescoRuntimeException: 09170000 GetModelsDiff return status is 404 at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:1095) at org.alfresco.solr.tracker.CoreTracker.trackModelsImpl(CoreTracker.java:1353) at org.alfresco.solr.tracker.CoreTracker.trackModels(CoreTracker.java:2020) at org.alfresco.solr.tracker.CoreTracker.trackRepository(CoreTracker.java:885) at org.alfresco.solr.tracker.CoreTracker.updateIndex(CoreTracker.java:366) at org.alfresco.solr.tracker.CoreTrackerJob.execute(CoreTrackerJob.java:45) at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
please take a look into the parent-pom (alfresco-sdk-parent) of your allinone-project and check for the alfresco version. I guess that the alfresco.version is still 5.0.a For running alfresco-5.0.b i had to build the archetypes on my own from https://github.com/Alfresco/alfresco-sdk.