Results 1 to 2 of 2

Thread: Is this a proper configuration?

Hybrid View

  1. #1
    Join Date
    Aug 2010
    Posts
    5

    Default 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. #2

    Default

    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">

Posting Permissions

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