cancel
Showing results for 
Search instead for 
Did you mean: 

Error creating bean with name 'Authentication' in Alfresco 4

bcohen
Champ in-the-making
Champ in-the-making
I had AD/LDAP configured just fine in Alfresco 3.4.e.  On 4.0.d, I have it configured the same way, and I am getting the following error in catalina.out:


2012-06-11 15:20:04,752  ERROR [web.context.ContextLoader] [main] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'RepoServerMgmt' defined in class path resource [alfresco/core-services-context.xml]: Cannot resolve reference to bean 'authenticationService' while setting bean property 'authenticationService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationService' defined in class path resource [alfresco/authentication-services-context.xml]: Cannot resolve reference to bean 'Authentication' while setting bean property 'applicationContextManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'Authentication' defined in class path resource [alfresco/authentication-services-context.xml]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Malformed \uxxxx encoding.

I have all the files in ../subsystems/Authentication/ setup the same as in 3.4.e.  In my alfresco-global.properties I have of course:
### Authentication methods and chaining
# authentication.chain=alfrescoNtlm1:alfrescoNtlm
authentication.chain=alfrescoNtlm1:alfrescoNtlm,ldap-ad1:ldap-ad
# authentication.chain=alfrescoNtlm1:alfrescoNtlm,passthru1Smiley Tongueassthru,ldap-ad1:ldap-ad

Just trying to get LDAP working for now without passthru. 

Any idea of this error?  What's different between 3.4.x and 4.0.x that I am missing.
2 REPLIES 2

bcohen
Champ in-the-making
Champ in-the-making
Additional notes, I have https configured for 4.0.d if that matters ( I didn't in 3.4.e).  I assume it has nothing to do with this error.

Also, I moved the authentication chain properties into alfresco-global.properties as follows:

authentication.chain=alfrescoNtlm1:alfrescoNtlm,passthru1:passthru,ldap-ad1:ldap-ad


# alfrescoNtlm
alfresco.authentication.allowGuestLogin=false
alfresco.authentication.authenticateCIFS=false


# passthru
passthru.authentication.useLocalServer=false
passthru.authentication.domain=
passthru.authentication.servers=DOMAIN-name\\foobar.domain.com
passthru.authentication.guestAccess=false
passthru.authentication.defaultAdministratorUserNames=admin
passthru.authentication.connectTimeout=5000
passthru.authentication.offlineCheckInterval=300
passthru.authentication.protocolOrder=NetBIOS,TCPIP
passthru.authentication.authenticateCIFS=true
passthru.authentication.authenticateFTP=true

# ldap-ad
ldap.authentication.active=false
ldap.authentication.allowGuestLogin=false
ldap.authentication.userNameFormat=%s@domain.com
ldap.authentication.java.naming.provider.url=ldap://foobar.domain.com:389
ldap.authentication.java.naming.security.authentication=simple
ldap.synchronization.active=true
ldap.synchronization.java.naming.security.authentication=simple
ldap.synchronization.java.naming.security.principal=DOMAIN-name\\admin
ldap.synchronization.java.naming.security.credentials=secret
ldap.synchronization.personQuery=(&(objectClass=\user)(userAccountControl\:1.2.840.113556.1.4.803\:\=512))
ldap.synchronization.personDifferentialQuery=(&(objectclass\=user)(userAccountControl\:1.2.840.113556.1.4.803
\:\=512)(!(modifyTimestamp<\={0})))
ldap.synchronization.userSearchBase=DC\=domain,DC\=com

and now in catalina.out I am getting:


2012-06-11 16:26:30,929  ERROR [web.context.ContextLoader] [main] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'repository-properties' defined in class path resource [alfresco/core-services-context.xml]: Cannot resolve reference to bean 'global-properties' while setting bean property 'properties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'global-properties' defined in class path resource [alfresco/core-services-context.xml]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Malformed \uxxxx encoding.

I feel like I am missing something very basic here….

mrogers
Star Contributor
Star Contributor
Yes the problem is with escaping characters in a properties file.    Something looks like garbage unicode.  Probably :\user