0

組み込みLDAPサーバーを起動するTomcat7でアプリケーションを起動しようとしています。

それが私のsecurity-config.xmlです。

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:security="http://www.springframework.org/schema/security"
       xmlns:context="http://www.springframework.org/schema/context"
       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.1.xsd
       http://www.springframework.org/schema/context
       http://www.springframework.org/schema/context/spring-context-3.1.xsd">

    <context:property-placeholder location="file:///${catalina.home}/webapps/test.properties"
                                  ignore-unresolvable="true" />

    <!--<security:ldap-server id="ldapBPS" url="${ldap.url}" manager-dn="${ldap.managerDN}" manager-password="${ldap.managerPass}"-->
    <!--root="${ldap.root}" />-->

    <security:ldap-server id="ldapLocal" ldif="classpath:test-ldap.ldif" root="test" />

    <security:authentication-manager>
        <security:ldap-authentication-provider
                user-search-filter="${ldap.conf.userSearchFilter}"
                user-search-base="${ldap.conf.confuserSearchBase}"
                group-search-filter="${ldap.conf.groupSearchFilter}"
                group-search-base="${ldap.conf.groupSearchBase}"
                group-role-attribute="${ldap.conf.groupRoleAttr}"
                role-prefix="${ldap.conf.rolePrefix}">
        </security:ldap-authentication-provider>
    </security:authentication-manager>
</beans>

Springに関する限り、Mavenの依存関係は次のとおりです。

 <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-jdbc</artifactId>
            <version>${springframework.version}</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-orm</artifactId>
            <version>${springframework.version}</version>
        </dependency>
        <dependency>
            <groupId>org.springframework.security</groupId>
            <artifactId>spring-security-config</artifactId>
            <version>${springframework.version}</version>
        </dependency>
        <dependency>
            <groupId>org.springframework.ldap</groupId>
            <artifactId>spring-ldap-core</artifactId>
            <version>1.3.1.RELEASE</version>
        </dependency>
        <dependency>
            <groupId>org.springframework.security</groupId>
            <artifactId>spring-security-ldap</artifactId>
            <version>${springframework.version}</version>
        </dependency>

この構成を使用すると、Tomcatの起動中に次のエラーが発生します。

org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 17 in XML document from class path resource [META-INF/spring/mifid/mifid-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 'security:ldap-server'.

そのエラーの原因はどこにありますか?

前もって感謝します。

4

0 に答える 0