AnsweredAssumed Answered

Install manuale Alfresco Community 4.0 su tomcat 7.0.27

Question asked by koopa on May 15, 2012
Latest reply on Jun 8, 2012 by koopa
Ciao a tutti,
da un po' mi sto cimentando con problemi di installazione di Alfresco 4.0 Community Edition su tomcat 7.0.27 già esistente. Sto seguendo queste istruzioni da documentazione ufficiale ma mi sfugge qualcosa.
Non riesco ad eseguire il deploy dei due war interessati, ovvero alfresco.war e share.war.
Dai log di tomcat leggo:
mag 15, 2012 2:56:18 PM org.apache.catalina.core.AprLifecycleListener init
Informazioni: Loaded APR based Apache Tomcat Native library 1.1.23.
mag 15, 2012 2:56:18 PM org.apache.catalina.core.AprLifecycleListener init
Informazioni: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
mag 15, 2012 2:56:20 PM org.apache.coyote.AbstractProtocol init
Informazioni: Initializing ProtocolHandler ["http-apr-8080"]
mag 15, 2012 2:56:20 PM org.apache.coyote.AbstractProtocol init
Informazioni: Initializing ProtocolHandler ["ajp-apr-8009"]
mag 15, 2012 2:56:20 PM org.apache.catalina.startup.Catalina load
Informazioni: Initialization processed in 2555 ms
mag 15, 2012 2:56:20 PM org.apache.catalina.core.StandardService startInternal
Informazioni: Starting service Catalina
mag 15, 2012 2:56:20 PM org.apache.catalina.core.StandardEngine startInternal
Informazioni: Starting Servlet Engine: Apache Tomcat/7.0.27
mag 15, 2012 2:56:20 PM org.apache.catalina.startup.HostConfig deployWAR
Informazioni: Deploying web application archive D:\stefano_lazzaro\progs\apache-tomcat-7.0.27\webapps\alfresco.war
mag 15, 2012 2:56:32 PM org.apache.catalina.core.StandardContext addApplicationListener
Informazioni: The listener "org.apache.myfaces.webapp.StartupServletContextListener" is already configured for this context. The duplicate definition has been ignored.
mag 15, 2012 2:57:11 PM org.apache.catalina.core.StandardContext startInternal
Grave: Error listenerStart
mag 15, 2012 2:57:11 PM org.apache.catalina.core.StandardContext startInternal
Grave: Context [/alfresco] startup failed due to previous errors
mag 15, 2012 2:57:11 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
Grave: The web application [/alfresco] appears to have started a thread named [SolrWatcherScheduler_Worker-1] but has failed to stop it. This is very likely to create a memory leak.
mag 15, 2012 2:57:11 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
Grave: The web application [/alfresco] appears to have started a thread named [SolrWatcherScheduler_Worker-2] but has failed to stop it. This is very likely to create a memory leak.
mag 15, 2012 2:57:11 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
Grave: The web application [/alfresco] appears to have started a thread named [SolrWatcherScheduler_Worker-3] but has failed to stop it. This is very likely to create a memory leak.
mag 15, 2012 2:57:11 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
Grave: The web application [/alfresco] appears to have started a thread named [Timer-0] but has failed to stop it. This is very likely to create a memory leak.
mag 15, 2012 2:57:11 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
Grave: The web application [/alfresco] appears to have started a thread named [DefaultScheduler_Worker-1] but has failed to stop it. This is very likely to create a memory leak.
mag 15, 2012 2:57:11 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
Grave: The web application [/alfresco] appears to have started a thread named [DefaultScheduler_Worker-2] but has failed to stop it. This is very likely to create a memory leak.
mag 15, 2012 2:57:11 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
Grave: The web application [/alfresco] appears to have started a thread named [DefaultScheduler_Worker-3] but has failed to stop it. This is very likely to create a memory leak.
mag 15, 2012 2:57:11 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
Grave: The web application [/alfresco] appears to have started a thread named [DefaultScheduler_Worker-4] but has failed to stop it. This is very likely to create a memory leak.
mag 15, 2012 2:57:11 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
Grave: The web application [/alfresco] appears to have started a thread named [DefaultScheduler_Worker-5] but has failed to stop it. This is very likely to create a memory leak.
mag 15, 2012 2:57:11 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
Grave: The web application [/alfresco] appears to have started a thread named [DefaultScheduler_Worker-6] but has failed to stop it. This is very likely to create a memory leak.
mag 15, 2012 2:57:11 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
Grave: The web application [/alfresco] appears to have started a thread named [DefaultScheduler_Worker-7] but has failed to stop it. This is very likely to create a memory leak.
mag 15, 2012 2:57:11 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
Grave: The web application [/alfresco] appears to have started a thread named [DefaultScheduler_Worker-8] but has failed to stop it. This is very likely to create a memory leak.
mag 15, 2012 2:57:11 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
Grave: The web application [/alfresco] appears to have started a thread named [DefaultScheduler_Worker-9] but has failed to stop it. This is very likely to create a memory leak.
mag 15, 2012 2:57:11 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
Grave: The web application [/alfresco] appears to have started a thread named [DefaultScheduler_Worker-10] but has failed to stop it. This is very likely to create a memory leak.
mag 15, 2012 2:57:11 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
Grave: The web application [/alfresco] appears to have started a thread named [Thread-4] but has failed to stop it. This is very likely to create a memory leak.
mag 15, 2012 2:57:11 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
Grave: The web application [/alfresco] appears to have started a thread named [JobAcquisitionThread] but has failed to stop it. This is very likely to create a memory leak.
mag 15, 2012 2:57:11 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
Grave: The web application [/alfresco] appears to have started a thread named [SolrWatcherScheduler_QuartzSchedulerThread] but has failed to stop it. This is very likely to create a memory leak.
mag 15, 2012 2:57:11 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
Grave: The web application [/alfresco] appears to have started a thread named [DefaultScheduler_QuartzSchedulerThread] but has failed to stop it. This is very likely to create a memory leak.
mag 15, 2012 2:57:11 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
Grave: The web application [/alfresco] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@144ccd3]) and a value of type [org.alfresco.util.CachingDateFormat] (value [yyyy-MM-dd]) 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.
mag 15, 2012 2:57:11 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
Grave: The web application [/alfresco] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@1e3345f]) and a value of type [org.apache.cxf.bus.CXFBusImpl] (value [org.apache.cxf.bus.CXFBusImpl@183649c]) 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.
mag 15, 2012 2:57:11 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@1426aa6]) and a value of type [java.util.WeakHashMap] (value [{class org.alfresco.repo.audit.model._3.RecordValue=java.lang.ref.WeakReference@167f368, class org.alfresco.repo.audit.model._3.AuditPath=java.lang.ref.WeakReference@19d37b8, class org.alfresco.repo.audit.model._3.DataExtractors=java.lang.ref.WeakReference@b5234c, class org.alfresco.repo.audit.model._3.Application=java.lang.ref.WeakReference@20666e, class org.alfresco.repo.audit.model._3.DataGenerators=java.lang.ref.WeakReference@124df9f, class java.util.ArrayList=java.lang.ref.WeakReference@1d56122, class org.alfresco.repo.audit.model._3.DataExtractor=java.lang.ref.WeakReference@1dc2e48, class org.alfresco.repo.audit.model._3.PathMappings=java.lang.ref.WeakReference@62842e, class org.alfresco.repo.audit.model._3.DataGenerator=java.lang.ref.WeakReference@1d3fdbf, class javax.xml.bind.annotation.W3CDomHandler=java.lang.ref.WeakReference@b81c0d, class org.alfresco.repo.audit.model._3.PathMap=java.lang.ref.WeakReference@139a835, class org.alfresco.repo.audit.model._3.GenerateValue=java.lang.ref.WeakReference@526ec7, class org.alfresco.repo.audit.model._3.Audit=java.lang.ref.WeakReference@1e6ce0f}]) 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.
mag 15, 2012 2:57:11 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
Grave: The web application [/alfresco] created a ThreadLocal with key of type [com.sun.xml.bind.v2.runtime.Coordinator$1] (value [com.sun.xml.bind.v2.runtime.Coordinator$1@1e241ea]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@1558028]) 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.
mag 15, 2012 2:57:11 PM org.apache.catalina.startup.HostConfig deployWAR
Informazioni: Deploying web application archive D:\stefano_lazzaro\progs\apache-tomcat-7.0.27\webapps\share.war
mag 15, 2012 2:57:49 PM org.apache.catalina.startup.HostConfig deployDirectory
Informazioni: Deploying web application directory D:\stefano_lazzaro\progs\apache-tomcat-7.0.27\webapps\docs
mag 15, 2012 2:57:49 PM org.apache.catalina.startup.HostConfig deployDirectory
Informazioni: Deploying web application directory D:\stefano_lazzaro\progs\apache-tomcat-7.0.27\webapps\examples
mag 15, 2012 2:57:49 PM org.apache.catalina.startup.HostConfig deployDirectory
Informazioni: Deploying web application directory D:\stefano_lazzaro\progs\apache-tomcat-7.0.27\webapps\host-manager
mag 15, 2012 2:57:49 PM org.apache.catalina.startup.HostConfig deployDirectory
Informazioni: Deploying web application directory D:\stefano_lazzaro\progs\apache-tomcat-7.0.27\webapps\manager
mag 15, 2012 2:57:49 PM org.apache.catalina.startup.HostConfig deployDirectory
Informazioni: Deploying web application directory D:\stefano_lazzaro\progs\apache-tomcat-7.0.27\webapps\ROOT
mag 15, 2012 2:57:50 PM org.apache.coyote.AbstractProtocol start
Informazioni: Starting ProtocolHandler ["http-apr-8080"]
mag 15, 2012 2:57:50 PM org.apache.coyote.AbstractProtocol start
Informazioni: Starting ProtocolHandler ["ajp-apr-8009"]
mag 15, 2012 2:57:50 PM org.apache.catalina.startup.Catalina start
Informazioni: Server startup in 89096 ms
mag 15, 2012 3:00:00 PM org.apache.catalina.loader.WebappClassLoader loadClass
Informazioni: Illegal access: this web application instance has been stopped already.  Could not load org.quartz.StatefulJob.  The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
java.lang.IllegalStateException
   at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1597)
   at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556)
   at org.quartz.JobDetail.isStateful(JobDetail.java:436)
   at org.quartz.simpl.RAMJobStore.triggerFired(RAMJobStore.java:1335)
   at org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:320)

mag 15, 2012 3:08:27 PM org.apache.coyote.AbstractProtocol pause
Informazioni: Pausing ProtocolHandler ["http-apr-8080"]
mag 15, 2012 3:08:27 PM org.apache.coyote.AbstractProtocol pause
Informazioni: Pausing ProtocolHandler ["ajp-apr-8009"]
mag 15, 2012 3:08:27 PM org.apache.catalina.core.StandardService stopInternal
Informazioni: Stopping service Catalina
mag 15, 2012 3:08:27 PM org.apache.coyote.AbstractProtocol stop
Informazioni: Stopping ProtocolHandler ["http-apr-8080"]
mag 15, 2012 3:08:27 PM org.apache.coyote.AbstractProtocol stop
Informazioni: Stopping ProtocolHandler ["ajp-apr-8009"]
mag 15, 2012 3:08:27 PM org.apache.coyote.AbstractProtocol destroy
Informazioni: Destroying ProtocolHandler ["http-apr-8080"]
mag 15, 2012 3:08:27 PM org.apache.coyote.AbstractProtocol destroy
Informazioni: Destroying ProtocolHandler ["ajp-apr-8009"]
mag 15, 2012 3:09:18 PM org.apache.catalina.core.AprLifecycleListener init
Informazioni: Loaded APR based Apache Tomcat Native library 1.1.23.
mag 15, 2012 3:09:18 PM org.apache.catalina.core.AprLifecycleListener init
Informazioni: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
mag 15, 2012 3:09:19 PM org.apache.coyote.AbstractProtocol init
Informazioni: Initializing ProtocolHandler ["http-apr-8080"]
mag 15, 2012 3:09:19 PM org.apache.coyote.AbstractProtocol init
Informazioni: Initializing ProtocolHandler ["ajp-apr-8009"]
mag 15, 2012 3:09:19 PM org.apache.catalina.startup.Catalina load
Informazioni: Initialization processed in 897 ms
mag 15, 2012 3:09:19 PM org.apache.catalina.core.StandardService startInternal
Informazioni: Starting service Catalina
mag 15, 2012 3:09:19 PM org.apache.catalina.core.StandardEngine startInternal
Informazioni: Starting Servlet Engine: Apache Tomcat/7.0.27
mag 15, 2012 3:09:19 PM org.apache.catalina.startup.HostConfig deployWAR
Informazioni: Deploying web application archive D:\stefano_lazzaro\progs\apache-tomcat-7.0.27\webapps\alfresco.war
mag 15, 2012 3:09:20 PM org.apache.catalina.core.StandardContext addApplicationListener
Informazioni: The listener "org.apache.myfaces.webapp.StartupServletContextListener" is already configured for this context. The duplicate definition has been ignored.
mag 15, 2012 3:10:16 PM org.apache.catalina.startup.HostConfig deployWARs
Grave: Error waiting for multi-thread deployment of WAR files to complete
java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: PermGen space
   at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
   at java.util.concurrent.FutureTask.get(FutureTask.java:111)
   at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:751)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:471)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1416)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:312)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
   at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
   at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:401)
   at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:346)
   at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1145)
   at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:782)
   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
   at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1566)
   at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1556)
   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
   at java.util.concurrent.FutureTask.run(FutureTask.java:166)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
   at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.OutOfMemoryError: PermGen space
   at java.lang.ClassLoader.defineClass1(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
   at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
   at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2889)
   at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1170)
   at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1678)
   at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556)
   at org.springframework.util.ClassUtils.forName(ClassUtils.java:257)
   at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:408)
   at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1271)
   at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1242)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:576)
   at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1319)
   at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:315)
   at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:394)
   at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:594)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:407)
   at org.alfresco.repo.management.subsystems.ChildApplicationContextFactory$ApplicationContextState.start(ChildApplicationContextFactory.java:685)
   at org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean.start(AbstractPropertyBackedBean.java:667)
   at org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean.onApplicationEvent(AbstractPropertyBackedBean.java:473)
   at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEventInternal(SafeApplicationEventMulticaster.java:209)
   at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEvent(SafeApplicationEventMulticaster.java:180)
   at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)
   at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428)
   at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
   at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
   at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
   at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:63)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779)
   at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273)
   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
e non so che pesci pigliare.
Penso che i problemi risiedano nel file di configurazione alfresco-global.properties che sta su apache-tomcat-7.0.27\shared\classes. Considerate che ho già creato il db alfresco con utenza alfresco (su postgres).

Vi chiedo supporto. Se avete bisogno di info aggiuntive basta chiedere. Sono completamente nuovo ad Alfresco.
Grazie!

Outcomes