Results 1 to 3 of 3

Thread: Cannot use the custom tag in applicationContext-acegi-security.xml

  1. #1
    Join Date
    May 2009
    Posts
    2

    Default Cannot use the custom tag in applicationContext-acegi-security.xml

    Hi,
    This may be a silly question but I am extremely new to Spring security ...please bare with me..
    I am implemting the TargetUrlResolver in order to redirect access to one url or another depending on a users roles.
    This is the relevant part of the xml.

    <bean id="DashboardRoleBasedTargetUrlResolver"
    class="com.XXXX.dashboard.security.DashboardRoleBa sedTargetUrlResolver">
    <constructor-arg ref="defaultTargetUrlResolver" />
    </bean>

    <bean id="authenticationProcessingFilter" class="org.springframework.security.ui.webapp.Auth enticationProcessingFilter">
    <security:custom-filter position="AUTHENTICATION_PROCESSING_FILTER" />
    <property name="authenticationManager"><ref bean="usersecUsernamePasswordAuthenticationManager "/></property>
    <property name="authenticationFailureUrl" value="/auth/login?c=2"/>
    <property name="filterProcessesUrl" value="/auth/j_acegi_security_check"/>
    <property name="defaultTargetUrl" value="/reports"/>
    <property name="targetUrlResolver" ref="DashboardRoleBasedTargetUrlResolver" /> </bean>

    When I try to start up weblogic I get the following error (even if I do not append the security
    Element type "security:custom-filter" must be declared.

    Has anyone faced this before? Any help would be welcome

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

    Default

    Have you declared the namespace properly in the XML file?

    Take a look at the namespace chapter in the reference manual or one of the sample configuration files.
    Spring - by Pivotal
    twitter @tekul

  3. #3
    Join Date
    May 2009
    Posts
    2

    Default

    Thank you it worked!!!

    I had to replace the dtd declaration with a xsd one. My understanding of the documentation is that nothing else has to change. Would that be correct?

Tags for this Thread

Posting Permissions

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