error in spring-security.xml for constructor arg error <p>i m using spring security for my login page.in this in the database user password is stored using sha-password encoder.now i want to use the same in my spring-security.xml.i tried this</p> <pre><code>&lt;beans:bean id="passwordEncoder" class="org.springframework.security.authentication.encoding.ShaPasswordEncoder"&gt; &lt;constructor-arg value="256"/&gt; &lt;/beans:bean&gt; &lt;authentication-manager&gt; &lt;authentication-provider&gt; &lt;password-encoder ref="passwordEncoder"/&gt; &lt;jdbc-user-service data-source-ref="dataSource" users-by-username-query= "select email,password, 'true' as enabled from user_login where email=? limit 1" authorities-by-username-query= "select email, role from user_roles where email =? " /&gt; &lt;/authentication-provider&gt; &lt;/authentication-manager&gt; &lt;/beans:beans&gt; </code></pre> <p>i m getting error at </p> <pre><code>cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'constructor-arg'. - Security namespace does not support decoration of element [constructor-arg] - Configuration problem: Security namespace does not support decoration of element. </code></pre> <p>anyone help me for this,please.</p>