Announcement Announcement Module
Collapse
No announcement yet.
Is this a proper configuration? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Is this a proper configuration?

    I get several errros with the following applicationContext-security.xml, and particularly this one:
    [/WEB-INF/applicationContext-security.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'ldap-authentication-provider'


    <?xml version="1.0" encoding="UTF-8"?>
    <beans:beans xmlns="http://www.springframework.org/schema/security"
    xmlns:beans="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schem...-beans-3.0.xsd
    http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.0.xsd">
    <global-method-security pre-post-annotations="enabled">
    </global-method-security>
    <http use-expressions="true">
    <intercept-url pattern="/" access="permitAll" />
    <intercept-url pattern="/entrar.jsp" filters="none" />
    <intercept-url pattern="/files/**" filters="none" />
    <intercept-url pattern="/sitemesh/**" filters="none" />
    <intercept-url pattern="/**" access="isAuthenticated()" />
    <form-login login-page="/entrar.jsp"
    authentication-failure-url="/entrar.jsp?login_error=1" />
    <logout />
    </http>
    <ldap-server url="ldap://ldap02.domain.net:389/o=company,c=net" />
    <ldap-authentication-provider user-search-filter="(uid={0})" user-search-base="cn=theGroup,o=company,c=net" />
    </beans:beans>

    Regards.

    MR

  • #2
    Notice the dots (...) in the URL: http://www.springframework.org/schem...-beans-3.0.xsd in your beans declaration. This incomplete URL could be the problem.

    Try replacing your beans declaration with this:

    Code:
    <beans:beans xmlns="http://www.springframework.org/schema/security"
    	xmlns:beans="http://www.springframework.org/schema/beans"
    	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"	
    	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
        http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.0.xsd">

    Comment

    Working...
    X