AnsweredAssumed Answered

Authentication Service - FtpAuthenticator

Question asked by fxl on Oct 27, 2010
Latest reply on Dec 22, 2010 by nitinagarwal1985
Hi,

The following error occurs when Alfresco startup.

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'FtpAuthenticator' defined in class path resource [alfresco/authentication-services-context.xml]: Cannot create inner bean 'org.alfresco.filesys.auth.ftp.AlfrescoFtpAuthenticator#1a83e35b' of type [org.alfresco.filesys.auth.ftp.AlfrescoFtpAuthenticator] while setting bean property 'defaultTarget'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.alfresco.filesys.auth.ftp.AlfrescoFtpAuthenticator#1a83e35b' defined in class path resource [alfresco/authentication-services-context.xml]: Cannot resolve reference to bean 'fileServerConfiguration' while setting bean property 'config'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fileServerConfiguration' defined in file [C:\travail\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp2\wtpwebapps\renodocV4_alf3-3-3\WEB-INF\classes\alfresco\extension\file-servers-context.xml]: Cannot resolve reference to bean 'ftpServerConfig' while setting bean property 'ftpConfigBean'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ftpServerConfig' defined in file [C:\travail\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp2\wtpwebapps\renodocV4_alf3-3-3\WEB-INF\classes\alfresco\extension\file-servers-context.xml]: Cannot resolve reference to bean 'FtpAuthenticator' while setting bean property 'authenticator'; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'FtpAuthenticator': org.springframework.beans.factory.FactoryBeanNotInitializedException: Cannot determine target class for proxy
   at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:281)
   at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:120)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1305)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1067)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
   at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
   at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
   at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
   at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:540)
   at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:842)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:416)
   at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:261)
   at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:192)
   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:4135)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4630)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
   at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)
   at org.apache.catalina.core.StandardService.start(StandardService.java:519)
   at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
   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:289)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.alfresco.filesys.auth.ftp.AlfrescoFtpAuthenticator#1a83e35b' defined in class path resource [alfresco/authentication-services-context.xml]: Cannot resolve reference to bean 'fileServerConfiguration' while setting bean property 'config'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fileServerConfiguration' defined in file [C:\travail\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp2\wtpwebapps\renodocV4_alf3-3-3\WEB-INF\classes\alfresco\extension\file-servers-context.xml]: Cannot resolve reference to bean 'ftpServerConfig' while setting bean property 'ftpConfigBean'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ftpServerConfig' defined in file [C:\travail\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp2\wtpwebapps\renodocV4_alf3-3-3\WEB-INF\classes\alfresco\extension\file-servers-context.xml]: Cannot resolve reference to bean 'FtpAuthenticator' while setting bean property 'authenticator'; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'FtpAuthenticator': org.springframework.beans.factory.FactoryBeanNotInitializedException: Cannot determine target class for proxy
   at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
   at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1305)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1067)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
   at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:270)
   … 31 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fileServerConfiguration' defined in file [C:\travail\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp2\wtpwebapps\renodocV4_alf3-3-3\WEB-INF\classes\alfresco\extension\file-servers-context.xml]: Cannot resolve reference to bean 'ftpServerConfig' while setting bean property 'ftpConfigBean'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ftpServerConfig' defined in file [C:\travail\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp2\wtpwebapps\renodocV4_alf3-3-3\WEB-INF\classes\alfresco\extension\file-servers-context.xml]: Cannot resolve reference to bean 'FtpAuthenticator' while setting bean property 'authenticator'; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'FtpAuthenticator': org.springframework.beans.factory.FactoryBeanNotInitializedException: Cannot determine target class for proxy
   at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
   at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1305)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1067)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
   at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
   at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
   at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
   at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
   … 37 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ftpServerConfig' defined in file [C:\travail\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp2\wtpwebapps\renodocV4_alf3-3-3\WEB-INF\classes\alfresco\extension\file-servers-context.xml]: Cannot resolve reference to bean 'FtpAuthenticator' while setting bean property 'authenticator'; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'FtpAuthenticator': org.springframework.beans.factory.FactoryBeanNotInitializedException: Cannot determine target class for proxy
   at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
   at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1305)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1067)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
   at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
   at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
   at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
   at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
   … 47 more
Caused by: org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'FtpAuthenticator': org.springframework.beans.factory.FactoryBeanNotInitializedException: Cannot determine target class for proxy
   at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:147)
   at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:109)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1387)
   at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:244)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
   at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)

I have no idea of what's going wrong. I checked authentication-services-context.xml, file-servers-context.xml and properties : all those files seem to be ok. I read the relative wiki page :  http://wiki.alfresco.com/wiki/File_Server_Configuration#Alfresco_Authenticator but I found nothing which could help me.

Have you an idea ?

Thanks

fx

Outcomes