Results 1 to 3 of 3

Thread: JdbcDaoImpl error

  1. #1
    Join Date
    Apr 2005
    Posts
    2

    Default JdbcDaoImpl error

    I am new to using Acegi Security. I am using version 0.8.1 and am getting the following error when the application context is loading. I get the same error when using ImMemoryDaoImpl. Both these classes implement net.sf.acegisecurity.providers.dao.AuthenticationD ao which does not extend net.sf.acegisecurity.providers.AuthenticationProvi der.


    11:36:45,062 ERROR ContextLoader:172 - Context initialization failed
    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'authenticationManager' defined in ServletContext resource [/WEB-INF/spring.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyAccessExceptions Exception: PropertyAccessExceptionsException (1 errors); nested propertyAccessExceptions are: [org.springframework.beans.MethodInvocationExceptio n: Property 'providers' threw exception; nested exception is java.lang.IllegalArgumentException: AuthenticationProvider net.sf.acegisecurity.providers.dao.jdbc.JdbcDaoImp l must implement AuthenticationProvider]

  2. #2
    Luke Taylor is offline Senior Member Acegi Security System TeamSpring Team
    Join Date
    Aug 2004
    Location
    Glasgow, Scotland
    Posts
    3,449

    Default

    It sounds like you need to use a DaoAuthenticationProvider rather than the Dao directly - the authentication manager is configured with a list of AuthenticationProviders.

    Follow the configuration for the contacts sample app. which uses JdbcDaoImpl.

    Luke.

  3. #3
    Join Date
    Apr 2005
    Posts
    2

    Default

    Thanks Luke!

    You are correct. I missed the part about including the DaoAuthenticationProvider.

Similar Threads

  1. ERROR: Context initialization failed
    By makhlo in forum Architecture
    Replies: 8
    Last Post: Jul 11th, 2008, 01:41 AM
  2. Context initialization failed
    By kanonmicke in forum Container
    Replies: 7
    Last Post: Sep 29th, 2005, 12:35 AM
  3. could not satisfy dependencies
    By springuser in forum Container
    Replies: 4
    Last Post: Apr 26th, 2005, 01:15 PM
  4. Replies: 1
    Last Post: Apr 25th, 2005, 07:37 PM
  5. Replies: 4
    Last Post: Nov 5th, 2004, 03:59 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •