Announcement Announcement Module
Collapse
No announcement yet.
IllegalArgumentException from FilterSecurityInterceptor bean Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • IllegalArgumentException from FilterSecurityInterceptor bean

    Hi!

    I am trying to do LDAP authentication with ACEGI v1.0.7. When I start my app, I get a bean creation exception...

    2009-07-17 08:45:56.084::WARN: Failed startup of context org.mortbay.jetty.webapp.WebAppConte...dataimport.war}
    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'filterInvocationInterceptor' defined in class path resource [dataimport-security-beans.xml]: Invocation of init
    method failed; nested exception is java.lang.IllegalArgumentException: Unsupported configuration attributes: [IMPORTER_GROUP, EDITOR_GROUP]
    Caused by: java.lang.IllegalArgumentException: Unsupported configuration attributes: [IMPORTER_GROUP, EDITOR_GROUP]
    at org.acegisecurity.intercept.AbstractSecurityInterc eptor.afterPropertiesSet(AbstractSecurityIntercept or.java:247)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.invokeInitMethods(Abstr actAutowireCapableBeanFactory.java:1143)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.initializeBean(Abstract AutowireCapableBeanFactory.java:1110)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:431)
    at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 54)


    My config attributes look like this...

    <bean id="filterInvocationInterceptor" class="org.acegisecurity.intercept.web.FilterSecur ityInterceptor">
    <property name="authenticationManager" ref="authenticationManager"/>
    <property name="accessDecisionManager">
    <bean class="org.acegisecurity.vote.AffirmativeBased">
    <property name="allowIfAllAbstainDecisions" value="false"/>
    <property name="decisionVoters">
    <list>
    <bean class="org.acegisecurity.vote.RoleVoter"/>
    <bean class="org.acegisecurity.vote.AuthenticatedVoter"/>
    </list>
    </property>
    </bean>
    </property>
    <property name="objectDefinitionSource">
    <value><![CDATA[
    CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
    PATTERN_TYPE_APACHE_ANT
    /tasks=IMPORTER_GROUP
    /import=IMPORTER_GROUP
    /bvt=IMPORTER_GROUP
    /process=IMPORTER_GROUP
    /workflow=IMPORTER_GROUP
    /listauditlog=EDITOR_GROUP
    /editpropertytransaction=EDITOR_GROUP
    ]]></value>
    </property>
    </bean>


    ----

    Is there anything wrong with the naming of the groups? Why is this error happening?

    Thanks

    feroze.
Working...
X