cancel
Showing results for 
Search instead for 
Did you mean: 

Jaas authentication error on JBoss

peltuinum
Champ in-the-making
Champ in-the-making
My environment is Alfresco 2.0 in a RedHat 3.0 ES with JBoss 4.0.2 and Oracle 10.1.2 DB.
Alfresco works correctly.
Now I'm trying to apply Jaas authentication according to 'Enterprise security and uthenticatiob configuration' Wiki., so I  created jaas-authentication-context.xml copying the .sample, them modified java.security and created java.login.config accordingly.
When I launch JBoss , the server log writes:
'…..
2007-06-21 11:40:34,626 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanIsNotAFactoryException: Bean named 'authenticationDao' must be of type [org.springframework.beans.factory.FactoryBean], but was actually of type [org.alfresco.repo.security.authentication.RepositoryAuthenticationDao]
        at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForSharedInstance(AbstractBeanFactory.java:799)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:269)
…….

Any help appreciated.
1 REPLY 1

andy
Champ on-the-rise
Champ on-the-rise
Hi

The config example is wrong.
See http://issues.alfresco.com/browse/AR-1564


<bean name="authenticationDao" class="org.alfresco.repo.security.authentication.DefaultMutableAuthenticationDao" >
        <property name="allowDeleteUser">
            <value>true</value>
        </property>
    </bean>   

Should sort this out.

Andy