Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I had the same error message while trying to deploy the application. In Spring, the security configuration xml can be a different one from applicationContext.xml, usually applicationContext-security.xml inside WEB-INF folder. The changes to be applied are for web.xml</p> <pre><code>&lt;context-param&gt; &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt; &lt;param-value&gt; /WEB-INF/applicationContext.xml /WEB-INF/applicationContext-security.xml &lt;/param-value&gt; &lt;/context-param&gt; </code></pre> <p>And the applicationContext.xml would look like:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;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.1.xsd"&gt; &lt;http auto-config='true'&gt; &lt;intercept-url pattern="/login.jsp" access="IS_AUTHENTICATED_ANONYMOUSLY"/&gt; &lt;intercept-url pattern="/**" access="ROLE_USER" /&gt; &lt;form-login login-page='login.jsp'/&gt; &lt;/http&gt; &lt;/beans:beans&gt; </code></pre> <p>Even after you make these changes, the namespace error will exist. To get rid of this, add the following jar files to the WEB-INF/lib and then to the library:</p> <ul> <li>spring-security-acl-3.1.0.M2.jar</li> <li>spring-security-config-3.1.0.M2.jar</li> <li>spring-security-core-3.1.0.M2.jar</li> <li>spring-security-taglibs-3.1.0.M2.jar</li> <li>spring-security-web-3.1.0.M2.jar</li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload