0

I am using spring_security with primefaces I create my login file and the loginBean and I add all the required librairies but I get this error:

     Configuration problem: You must use a 3.0 schema with Spring Security 3.0.(2.0 or 3.1       versions are not valid) Please update your schema declarations to the 3.0.3 schema     (spring-security-3.0.3.xsd).
Offending resource: ServletContext resource [/WEB-INF/applicationContext-security.xml] 

I look to the faces-config.xml I found that this line

xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee      /web-facesconfig_2_0.xsd"
    version="2.0"

I wonder if is this the main cause of error ?? and how can I correct it ?

4

1 回答 1

3

您应该首先阅读整个错误消息。对不起,如果我的评论看起来很粗鲁,但我自己很惊讶我想要过快并且直到最后才阅读错误消息。

这里的错误告诉你:

Offending resource: ServletContext resource [/WEB-INF/applicationContext-security.xml] 

您的问题与 JSF 无关,问题位于applicationContext-security.xml. 您可能在该文件中引用了错误的架构(例如,根据错误消息为 2.0 或 3.1)。

如果这对您没有帮助,请编辑您的消息并向我们提供applicationContext-security.xml.

于 2013-06-17T15:36:04.450 回答