Announcement Announcement Module
No announcement yet.
Cannot use the custom tag in applicationContext-acegi-security.xml Page Title Module
Move Remove Collapse
This topic is closed
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

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

    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=" sedTargetUrlResolver">
    <constructor-arg ref="defaultTargetUrlResolver" />

    <bean id="authenticationProcessingFilter" class=" 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
    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.


    • #3
      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?