Версия для печати темы
Нажмите сюда для просмотра этой темы в оригинальном формате
Форум программистов > Java EE (J2EE) и Spring > Spring security pom.xml


Автор: Ccoder 22.4.2012, 23:52
Намучился, что делать незнаю
Вот что именно не выходит
pom.xml
Код

        <dependency>
                <groupId>org.springframework.security</groupId>
                <artifactId>spring-security-core</artifactId>
                <version>3.0.5.RELEASE</version>
                <type>jar</type>
                <scope>compile</scope>
        </dependency>
        <dependency>
                <groupId>org.springframework.security</groupId>
                <artifactId>spring-security-config</artifactId>
                <version>3.0.5.RELEASE</version>
                <type>jar</type>
                <scope>compile</scope>
        </dependency>
        <dependency>
                <groupId>org.springframework.security</groupId>
                <artifactId>spring-security-web</artifactId>
                <version>3.0.5.RELEASE</version>
                <type>jar</type>
                <scope>compile</scope>
        </dependency>
        <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-web</artifactId>
                <version>3.0.5.RELEASE</version>
                <type>jar</type>
                <scope>compile</scope>
        </dependency>

spring-security.xml
Код

<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns="http://www.springframework.org/schema/security"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:beans="http://www.springframework.org/schema/beans"
    xmlns:sec="http://www.springframework.org/schema/security"
    xsi:schemaLocation="
http://www.springframework.org/schema/security
http://www.springframework.org/schema/security/spring-security-3.0.3.xsd
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.1.xsd">

    <http pattern="/resources" security="none" />

Получаю
Цитата

cvc-complex-type.3.2.2: Attribute 'pattern' is not allowed to appear in element 'http'.    spring-security.xml    /aaa/src/main/webapp/WEB-INF    line 11    XML Problem
cvc-complex-type.3.2.2: Attribute 'security' is not allowed to appear in element 'http'.    spring-security.xml    /aaa/src/main/webapp/WEB-INF    line 11    XML Problem


А с 
Код

http://www.springframework.org/schema/security/spring-security-3.1.xsd

просит поменять....

Автор: Ccoder 23.4.2012, 02:04
Проблема была что старый war был на сервере

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)