cancel
Showing results for 
Search instead for 
Did you mean: 

cannot login anymore

fluca1978
Champ in-the-making
Champ in-the-making
Hi all,
after experimenting with a (luckily test) environment 3.4.c on PostgreSQL I'm no more able to login. The system presents me the login web form but tells me that the remote server or my credentials are not valid. The backend is running and in the logs I found the following:


7:58:14,537 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed 
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'file_prox\
y' defined in class path resource [alfresco/module/org_alfresco_module_dod5015/rm-action-context.\
xml]: Invocation of init method failed; nested exception is net.sf.acegisecurity.providers.Provid\
erNotFoundException: No authentication provider for net.sf.acegisecurity.providers.UsernamePasswo\
rdAuthenticationToken 
….
Caused by: net.sf.acegisecurity.providers.ProviderNotFoundException: No authentication provider f\
or net.sf.acegisecurity.providers.UsernamePasswordAuthenticationToken                            
        at net.sf.acegisecurity.providers.ProviderManager.doAuthentication(ProviderManager.java:1\
69)                                                                                              
        at net.sf.acegisecurity.AbstractAuthenticationManager.authenticate(AbstractAuthentication\
Manager.java:49)                                                                                 
        at net.sf.acegisecurity.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSe\
curityInterceptor.java:372)                                                                      
        at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(Met\
hodSecurityInterceptor.java:77)                                                                  
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodI\
nvocation.java:172)                                                                              
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:20\
2)                                                                                               
        at $Proxy86.getName(Unknown Source)      

I'm pretty sure the only things I've changed in the configuration are the logging levels in the log4.properties and then restarted the alfresco service.
Any idea or hint to solve the problem?

Thanks
3 REPLIES 3

fluca1978
Champ in-the-making
Champ in-the-making
I found that changing the following parameters in the file tomcat/webapps/alfresco/WEB-INF/classes/log4j.properties makes the login system working or not with the error reported in the previous post:

(from - working)

log4j.logger.org.hibernate=error
log4j.logger.org.alfresco=error
log4j.logger.org.alfresco.repo.model.filefolder=info

(to - not working)

log4j.logger.org.hibernate=debug
log4j.logger.org.alfresco=debug
log4j.logger.org.alfresco.repo.model.filefolder=debug

So this probably means there is an issue initializing a logger bean, thus the context initialization error. Anyone has an idea on that?

mrogers
Star Contributor
Star Contributor
I'm pretty sure changing log levels will not cause the stack trace you have shown above.

And just a reminder - you shouldn't be changing files below web inf.

fluca1978
Champ in-the-making
Champ in-the-making
I know it is strange, but if I do the changes in the logging level the alfresco.log reports again:


09:26:27,330 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed 
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'file_prox\
y' defined in class path resource [alfresco/module/org_alfresco_module_dod5015/rm-action-context.\
xml]: Invocation of init method failed; nested exception is net.sf.acegisecurity.providers.Provid\
erNotFoundException: No authentication provider for net.sf.acegisecurity.providers.UsernamePasswo\
rdAuthenticationToken

I'm running 3.4.c with the embedded Tomcat. Besides this, I was trying to change the log level to better understand where bottlenecks are within my installation, but if anyone can suggest me a smarter way to get more information from the logs he's welcome!