01-29-2009 11:25 AM
16:20:43,868 INFO [org.alfresco.repo.module.ModuleServiceImpl] Found 2 module(s
).
16:20:43,919 INFO [org.alfresco.repo.module.ModuleServiceImpl] Starting module
'phpIntegration' version 1.0.
16:20:44,091 INFO [org.alfresco.repo.module.ModuleServiceImpl] Installing modul
e 'org.alfresco.module.mediawikiintegration' version 1.1.
16:20:44,921 ERROR [org.springframework.web.context.ContextLoader] Context initi
alization failed
org.alfresco.error.AlfrescoRuntimeException: Failed to execute transaction-level
behaviour public abstract void org.alfresco.repo.node.NodeServicePolicies$OnCre
ateNodePolicy.onCreateNode(org.alfresco.service.cmr.repository.ChildAssociationR
ef) in transaction 10de3d11-2b4e-4587-ab24-5b5a22baff21
at org.alfresco.repo.policy.TransactionBehaviourQueue.execute(Transactio
nBehaviourQueue.java:201)
at org.alfresco.repo.policy.TransactionBehaviourQueue.beforeCommit(Trans
actionBehaviourQueue.java:133)
at org.alfresco.repo.transaction.AlfrescoTransactionSupport$TransactionS
ynchronizationImpl.doBeforeCommit(AlfrescoTransactionSupport.java:710)
at org.alfresco.repo.transaction.AlfrescoTransactionSupport$TransactionS
ynchronizationImpl.doBeforeCommit(AlfrescoTransactionSupport.java:690)
….
02-24-2009 10:55 AM
03-06-2009 09:54 AM
03-12-2009 09:32 AM
Hello
I have looked at the Java source code to see what changed between the 3.0.0c and the 3.0.0stable. These are my conclusions:
In the 3.0.0c, modules were executed using system user credentials. This is not the case with 3.0.0stable: modules are executed using anonymous credentials, and as they are not allowed to, Java exceptions are thrown.
I modified the classes "org.alfresco.repo.module.ModuleComponentHelper", "org.alfresco.repo.module.ModuleServiceImpl", "org.alfresco.repo.admin.registry.RegistryServiceImpl" and several XML files, rewriting the references concerning "AuthenticationComponent" objects which existed on the previous software releases.
It seems to work fine on my development server, but I advice you to wait for a new official release of the software to deploy on your production server, all the more since there is probably a good (security) reason why Alfresco developers removed system user credentials for modules launcher.
Mederic
04-08-2009 05:21 AM
Hello
I have looked at the Java source code to see what changed between the 3.0.0c and the 3.0.0stable. These are my conclusions:
In the 3.0.0c, modules were executed using system user credentials. This is not the case with 3.0.0stable: modules are executed using anonymous credentials, and as they are not allowed to, Java exceptions are thrown.
I modified the classes "org.alfresco.repo.module.ModuleComponentHelper", "org.alfresco.repo.module.ModuleServiceImpl", "org.alfresco.repo.admin.registry.RegistryServiceImpl" and several XML files, rewriting the references concerning "AuthenticationComponent" objects which existed on the previous software releases.
It seems to work fine on my development server, but I advice you to wait for a new official release of the software to deploy on your production server, all the more since there is probably a good (security) reason why Alfresco developers removed system user credentials for modules launcher.
Mederic
11:56:27,614 ERROR [web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'moduleStarter' defined in class path resource [alfresco/bootstrap-context.xml]: Cannot resolve reference to bean 'ModuleService' while setting bean property 'moduleService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ModuleService' defined in class path resource [alfresco/public-services-context.xml]: Cannot resolve reference to bean 'moduleService' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'moduleService' defined in URL [file:/opt/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/module-context.xml]: Cannot resolve reference to bean 'RegistryService' while setting bean property 'registryService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'RegistryService' defined in class path resource [alfresco/public-services-context.xml]: Cannot resolve reference to bean 'registryService' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'registryService' defined in class path resource [alfresco/core-services-context.xml]: Invocation of init method failed; nested exception is org.alfresco.error.AlfrescoRuntimeException: Property 'authenticationComponent' has not been set: org.alfresco.repo.admin.registry.RegistryServiceImpl@198339a
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ModuleService' defined in class path resource [alfresco/public-services-context.xml]: Cannot resolve reference to bean 'moduleService' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'moduleService' defined in URL [file:/opt/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/module-context.xml]: Cannot resolve reference to bean 'RegistryService' while setting bean property 'registryService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'RegistryService' defined in class path resource [alfresco/public-services-context.xml]: Cannot resolve reference to bean 'registryService' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'registryService' defined in class path resource [alfresco/core-services-context.xml]: Invocation of init method failed; nested exception is org.alfresco.error.AlfrescoRuntimeException: Property 'authenticationComponent' has not been set: org.alfresco.repo.admin.registry.RegistryServiceImpl@198339a
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'moduleService' defined in URL [file:/opt/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/module-context.xml]: Cannot resolve reference to bean 'RegistryService' while setting bean property 'registryService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'RegistryService' defined in class path resource [alfresco/public-services-context.xml]: Cannot resolve reference to bean 'registryService' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'registryService' defined in class path resource [alfresco/core-services-context.xml]: Invocation of init method failed; nested exception is org.alfresco.error.AlfrescoRuntimeException: Property 'authenticationComponent' has not been set: org.alfresco.repo.admin.registry.RegistryServiceImpl@198339a
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'RegistryService' defined in class path resource [alfresco/public-services-context.xml]: Cannot resolve reference to bean 'registryService' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'registryService' defined in class path resource [alfresco/core-services-context.xml]: Invocation of init method failed; nested exception is org.alfresco.error.AlfrescoRuntimeException: Property 'authenticationComponent' has not been set: org.alfresco.repo.admin.registry.RegistryServiceImpl@198339a
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'registryService' defined in class path resource [alfresco/core-services-context.xml]: Invocation of init method failed; nested exception is org.alfresco.error.AlfrescoRuntimeException: Property 'authenticationComponent' has not been set: org.alfresco.repo.admin.registry.RegistryServiceImpl@198339a
Caused by: org.alfresco.error.AlfrescoRuntimeException: Property 'authenticationComponent' has not been set: org.alfresco.repo.admin.registry.RegistryServiceImpl@198339a
at org.alfresco.util.PropertyCheck.mandatory(PropertyCheck.java:50)
at org.alfresco.repo.admin.registry.RegistryServiceImpl.init(RegistryServiceImpl.java:122)
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.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1240)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1205)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1171)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:261)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:109)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1099)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:861)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:421)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:261)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:109)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1099)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:861)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:421)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:261)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:109)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1099)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:861)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:421)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:261)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:109)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1099)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:861)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:421)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:247)
at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:796)
at org.springframework.context.support.AbstractApplicationContext.registerListeners(AbstractApplicationContext.java:592)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:349)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:244)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
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.deployWAR(HostConfig.java:830)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:719)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
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)
Apr 8, 2009 11:56:27 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Apr 8, 2009 11:56:27 AM 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.
Apr 8, 2009 11:56:29 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Apr 8, 2009 11:56:29 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-80
Apr 8, 2009 11:56:29 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 89240 ms
05-01-2009 04:51 AM
05-05-2009 09:47 PM
05-21-2009 01:04 PM
09-11-2009 07:56 AM
06-09-2010 04:09 PM
08-04-2010 02:42 AM
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.