AnsweredAssumed Answered

alfresco installation by alfresco.war with existing tomcat ?

Question asked by skhawaja on Feb 12, 2010
Latest reply on Feb 14, 2010 by mrogers
Hi All,

I am facing issue while installing/deploying alfresco through war file. Before alfresco tomcat is working fine. I have tried in different ways like installing alfresco by alfresco-community-tomcat-3.2r2.tar.gz, Alfresco-Community-3.2r2-Linux-x86-Install and now trying with war file. I am installing on Centos5.4. I followed the following steps,

1. Installed JDK - /usr/bin/java ( JAVA_HOME is set)
2. Installed MYSQL - created mysql db/user and can verify this user able to connect to this db through console # mysql -u alfresco -palfresco
3. tomcat is working fine before alfresco war file - I can see the main page with http://localhost:8080
4. downloaded alfresco-community-war-3.2r2.tar.gz and untared it in a directory
alfrescowar]# ls -l
total 102684
-rw-r–r– 1 root root 75982021 Nov 12 16:49 alfresco.war
drwxr-xr-x 2 root root 4096 Feb 11 12:37 commands
drwxr-xr-x 2 root root 4096 Feb 11 12:37 endorsed
drwxr-xr-x 5 root root 4096 Feb 11 12:37 extensions
drwxr-xr-x 3 root root 4096 Feb 11 12:37 extras
drwxr-xr-x 3 root root 4096 Oct 30 16:08 licenses
-rw-r–r– 1 root root 10766620 Nov 12 16:52 mobile.war
-rw-r–r– 1 root root 543 Oct 30 16:08 README.txt
-rw-r–r– 1 root root 18209351 Nov 12 16:52 share.war

5. copied alfresco.war to /opt/tomcat/webapps/
6. copied mysql-connector-java-5.1.7-bin.jar to /opt/tomcat/lib/ (mysql-connector-java-5.1.7-bin.jar got it from alfresco-community-tomcat-3.2r2.tar.gz)

7. Now when I restart the tomcat I got so many errors  here is the catalina.out log

INFO: The listener "org.apache.myfaces.webapp.StartupServletContextListener" is already configured for this context. The duplicate definition has been ignored.
12:12:30,671 INFO [alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/repository.properties]
12:12:30,673 INFO [alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/domain/transaction.properties]
12:12:30,821 INFO [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
12:12:51,143 INFO [domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.
12:12:53,152 INFO [domain.schema.SchemaBootstrap] No changes were made to the schema.
12:12:53,550 INFO [management.subsystems.ChildApplicationContextFactory] Starting 'sysAdmin' subsystem, ID: [sysAdmin, default]
12:12:53,567 INFO [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
12:12:53,571 INFO [management.subsystems.ChildApplicationContextFactory] Startup of 'sysAdmin' subsystem, ID: [sysAdmin, default] complete
12:12:56,233 WARN [node.index.FullIndexRecoveryComponent] The indexes are not synchronized with the database.
12:12:56,324 WARN [node.index.AVMFullIndexRecoveryComponent] Index for avm store sitestore is out of date
12:12:56,682 WARN [repo.admin.ConfigurationChecker] The Alfresco 'dir.root' property is set to a relative path './alf_data'. 'dir.root' should be overridden to point to a specific folder.
12:12:56,682 INFO [repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: ./alf_data
12:12:56,812 ERROR [repo.admin.ConfigurationChecker] CONTENT INTEGRITY ERROR: Indexes not found for 7 stores.
12:12:56,812 INFO [repo.admin.ConfigurationChecker] You may set 'index.recovery.mode=FULL' if you need to rebuild the indexes.
12:12:56,812 ERROR [repo.admin.ConfigurationChecker] CONTENT INTEGRITY ERROR: System content not found in content store.
12:12:56,812 ERROR [repo.admin.ConfigurationChecker] Ensure that the 'dir.root' property is pointing to the correct data location.
12:12:56,815 ERROR [web.context.ContextLoader] Context initialization failed
org.alfresco.error.AlfrescoRuntimeException: 01120000 Ensure that the 'dir.root' property is pointing to the correct data location.
at org.alfresco.repo.admin.ConfigurationChecker.check(ConfigurationChecker.java:338)
at org.alfresco.repo.admin.ConfigurationChecker.access$000(ConfigurationChecker.java:74)
at org.alfresco.repo.admin.ConfigurationChecker$1.execute(ConfigurationChecker.java:186)
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:327)
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:253)
at org.alfresco.repo.admin.ConfigurationChecker.onBootstrap(ConfigurationChecker.java:190)
at org.alfresco.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:62)
at org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:77)
at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:75)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:246)
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:617)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:355)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)

Feb 12, 2010 12:12:56 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Feb 12, 2010 12:12:56 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/alfresco] startup failed due to previous errors
Feb 12, 2010 12:12:56 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: A web application appears to have started a thread named [MySQL Statement Cancellation Timer] but has failed to stop it. This is very likely to create a memory leak.
Feb 12, 2010 12:12:56 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: A web application 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.

Feb 12, 2010 12:12:56 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: A web application appears to have started a thread named [FileStateReaper] but has failed to stop it. This is very likely to create a memory leak.
Feb 12, 2010 12:12:56 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: A web application appears to have started a thread named [Thread-11] but has failed to stop it. This is very likely to create a memory leak.
Feb 12, 2010 12:12:56 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: A web application appears to have started a thread named [Timer-0] but has failed to stop it. This is very likely to create a memory leak.
Feb 12, 2010 12:12:56 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads

Feb 12, 2010 12:12:56 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: A web application created a ThreadLocal with key of type [org.alfresco.repo.security.authentication.AuthenticationUtil.ThreadLocalStack] (value [org.alfresco.repo.security.authentication.AuthenticationUtil$ThreadLocalStack@a10ca8]) and a value of type [java.util.Stack] (value [[]]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.
Feb 12, 2010 12:12:56 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: A web application created a ThreadLocal with key of type [org.alfresco.repo.policy.BaseBehaviour.StackThreadLocal] (value [org.alfresco.repo.policy.BaseBehaviour$StackThreadLocal@14611ec]) and a value of type [java.util.Stack] (value [[]]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.

can see
http://localhost:8080
http://alfdare:8080 (alfdare is server name)

Can any on help me to sort out this issue please?? What am i doing wrong?

many thanks in advance.

Soh

Outcomes