Hi,
recently i tried to install/setup a dev multi-tenancy environment with Alfresco Community 3.2r in Linux Platform. See bellow my structure:
Linux: RedHat 5.3 x64
Alfresco Community 3.2r
Mysql DB server 5.0.45
I run a typical installation with success. My alfresco setup loaded successfully without MT enabled. After that i tried to enable MT with success again. I created a test logical mt domain with success again (tested logins)…but when i tried to restart my alfresco service, i took the following errors…see bellow…
Can you help me?
Thanks in advance.
INFO: Starting service Catalina
Jan 6, 2010 2:17:51 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
Jan 6, 2010 2:17:52 PM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "org.apache.myfaces.webapp.StartupServletContextListener" is already configured for this context. The duplicate definition has been ignored.
14:17:57,178 INFO [alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/repository.properties]
14:17:57,179 INFO [alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/domain/transaction.properties]
14:17:57,179 INFO [alfresco.config.JndiPropertiesFactoryBean] Loading properties file from URL [file:/project/Alfresco/tomcat/shared/classes/alfresco-global.properties]
14:17:57,266 INFO [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
14:18:13,467 INFO [domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.
14:18:14,228 INFO [domain.schema.SchemaBootstrap] No changes were made to the schema.
14:18:14,570 INFO [management.subsystems.ChildApplicationContextFactory] Starting 'sysAdmin' subsystem, ID: [sysAdmin, default]
14:18:14,580 INFO [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
14:18:14,584 INFO [management.subsystems.ChildApplicationContextFactory] Startup of 'sysAdmin' subsystem, ID: [sysAdmin, default] complete
14:18:16,561 ERROR [web.context.ContextLoader] Context initialization failed
org.alfresco.error.AlfrescoRuntimeException: 00060000 Failed to bootstrap tenants
at org.alfresco.repo.tenant.MultiTAdminServiceImpl.startTenants(MultiTAdminServiceImpl.java:326)
at org.alfresco.repo.tenant.MultiTenantBootstrap.onBootstrap(MultiTenantBootstrap.java:53)
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)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:189)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:69)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:627)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:627)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.lang.RuntimeException: Error during run as.
at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:526)
at org.alfresco.repo.dictionary.DictionaryDAOImpl.initDictionary(DictionaryDAOImpl.java:187)
at org.alfresco.repo.dictionary.DictionaryDAOImpl.init(DictionaryDAOImpl.java:135)
at org.alfresco.repo.dictionary.NamespaceDAOImpl.reset(NamespaceDAOImpl.java:125)
at org.alfresco.repo.dictionary.NamespaceDAOImpl.getNamespaceRegistry(NamespaceDAOImpl.java:424)
at org.alfresco.repo.dictionary.NamespaceDAOImpl.getPrefixesCtx(NamespaceDAOImpl.java:551)
at org.alfresco.repo.dictionary.NamespaceDAOImpl.getPrefixes(NamespaceDAOImpl.java:366)
at org.alfresco.repo.dictionary.DictionaryNamespaceComponent.getPrefixes(DictionaryNamespaceComponent.java:88)
at org.alfresco.service.namespace.QName.getPrefixedQName(QName.java:276)
at org.alfresco.repo.dictionary.DictionaryRepositoryBootstrap.onDictionaryInit(DictionaryRepositoryBootstrap.java:246)
at org.alfresco.repo.dictionary.DictionaryDAOImpl.initDictionaryRegistry(DictionaryDAOImpl.java:254)
at org.alfresco.repo.dictionary.DictionaryDAOImpl.access$100(DictionaryDAOImpl.java:66)
at org.alfresco.repo.dictionary.DictionaryDAOImpl$1.doWork(DictionaryDAOImpl.java:196)
at org.alfresco.repo.dictionary.DictionaryDAOImpl$1.doWork(DictionaryDAOImpl.java:189)
at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:514)
at org.alfresco.repo.dictionary.DictionaryDAOImpl.initDictionary(DictionaryDAOImpl.java:187)
at org.alfresco.repo.dictionary.DictionaryDAOImpl.init(DictionaryDAOImpl.java:135)
at org.alfresco.repo.dictionary.NamespaceDAOImpl.reset(NamespaceDAOImpl.java:125)
at org.alfresco.repo.dictionary.NamespaceDAOImpl.getNamespaceRegistry(NamespaceDAOImpl.java:424)
at org.alfresco.repo.dictionary.NamespaceDAOImpl.getPrefixesCtx(NamespaceDAOImpl.java:551)
at org.alfresco.repo.dictionary.NamespaceDAOImpl.getPrefixes(NamespaceDAOImpl.java:366)
at org.alfresco.repo.dictionary.DictionaryNamespaceComponent.getPrefixes(DictionaryNamespaceComponent.java:88)
at org.alfresco.service.namespace.QName.getPrefixedQName(QName.java:276)
at org.alfresco.repo.dictionary.DictionaryRepositoryBootstrap.onDictionaryInit(DictionaryRepositoryBootstrap.java:246)
at org.alfresco.repo.dictionary.DictionaryDAOImpl.initDictionaryRegistry(DictionaryDAOImpl.java:254)
at org.alfresco.repo.dictionary.DictionaryDAOImpl.access$100(DictionaryDAOImpl.java:66)
at org.alfresco.repo.dictionary.DictionaryDAOImpl$1.doWork(DictionaryDAOImpl.java:196)
at org.alfresco.repo.dictionary.DictionaryDAOImpl$1.doWork(DictionaryDAOImpl.java:189)
at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:514)
at org.alfresco.repo.dictionary.DictionaryDAOImpl.initDictionary(DictionaryDAOImpl.java:187)
at org.alfresco.repo.dictionary.DictionaryDAOImpl.init(DictionaryDAOImpl.java:135)
at org.alfresco.repo.dictionary.NamespaceDAOImpl.reset(NamespaceDAOImpl.java:125)
at org.alfresco.repo.dictionary.NamespaceDAOImpl.getNamespaceRegistry(NamespaceDAOImpl.java:424)
at org.alfresco.repo.dictionary.NamespaceDAOImpl.getPrefixesCtx(NamespaceDAOImpl.java:551)
at org.alfresco.repo.dictionary.NamespaceDAOImpl.getPrefixes(NamespaceDAOImpl.java:366)
at org.alfresco.repo.dictionary.DictionaryNamespaceComponent.getPrefixes(DictionaryNamespaceComponent.java:88)
at org.alfresco.service.namespace.QName.getPrefixedQName(QName.java:276)
at org.alfresco.repo.dictionary.NamespaceDAOImpl.reset(NamespaceDAOImpl.java:125)
at org.alfresco.repo.dictionary.NamespaceDAOImpl.getNamespaceRegistry(NamespaceDAOImpl.java:424)
at org.alfresco.repo.dictionary.NamespaceDAOImpl.getPrefixesCtx(NamespaceDAOImpl.java:551)
at org.alfresco.repo.dictionary.NamespaceDAOImpl.getPrefixes(NamespaceDAOImpl.java:366)
at org.alfresco.repo.dictionary.DictionaryNamespaceComponent.getPrefixes(DictionaryNamespaceComponent.java:88)
at org.alfresco.service.namespace.QName.getPrefixedQName(QName.java:276)
at org.alfresco.repo.dictionary.DictionaryRepositoryBootstrap.onDictionaryInit(DictionaryRepositoryBootstrap.java:246)
at org.alfresco.repo.dictionary.DictionaryDAOImpl.initDictionaryRegistry(DictionaryDAOImpl.java:254)
at org.alfresco.repo.dictionary.DictionaryDAOImpl.access$100(DictionaryDAOImpl.java:66)
at org.alfresco.repo.dictionary.DictionaryDAOImpl$1.doWork(DictionaryDAOImpl.java:196)
at org.alfresco.repo.dictionary.DictionaryDAOImpl$1.doWork(DictionaryDAOImpl.java:189)
at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:514)
at org.alfresco.repo.dictionary.DictionaryDAOImpl.initDictionary(DictionaryDAOImpl.java:187)
Caused by: java.lang.StackOverflowError
at java.util.LinkedHashMap.get(LinkedHashMap.java:280)
at net.sf.ehcache.store.MemoryStore.get(MemoryStore.java:130)
….
….
….
Jan 6, 2010 2:18:16 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Jan 6, 2010 2:18:16 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/alfresco] startup failed due to previous errors
log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository.
Jan 6, 2010 2:18:17 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive mobile.war
14:18:18,461 INFO [alfresco.config.JBossEnabledWebApplicationContext] Refreshing org.alfresco.config.JBossEnabledWebApplicationContext@c936ce: display name [Root WebApplicationContext]; startup date [Wed Jan 06 14:18:18 EET 2010]; root of context hierarchy
14:18:18,698 INFO [alfresco.config.JBossEnabledWebApplicationContext] Bean factory for application context [org.alfresco.config.JBossEnabledWebApplicationContext@c936ce]: org.springframework.beans.factory.support.DefaultListableBeanFactory@11ee981
14:18:19,529 INFO [web.scripts.DeclarativeRegistry] Registered 22 Web Scripts (+0 failed), 24 URLs
14:18:19,542 INFO [web.scripts.AbstractRuntimeContainer] Initialised Presentation Web Script Container (in 161.708ms)
14:18:19,617 INFO [web.scripts.DeclarativeRegistry] Registered 40 Web Scripts (+0 failed), 42 URLs
14:18:19,628 INFO [web.scripts.AbstractRuntimeContainer] Initialised WebFramework Web Script Container (in 84.104ms)
14:18:19,664 INFO [web.site.FrameworkHelper] Successfully Initialized Web Framework
Jan 6, 2010 2:18:19 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive share.war
14:18:21,643 INFO [web.site.FrameworkHelper] Successfully Initialized Web Framework
Jan 6, 2010 2:18:21 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jan 6, 2010 2:18:21 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 30526 ms