I have two user roles, USER and ADMIN.

I have several pages, that USERs should see in the menu, but when they try to access the page, they should be redirected to the login page.

I tried it two ways, neither of which works:

1.) I tried the <error-page>-element:
Code:
<error-page>
	<error-code>403</error-code>
	<location>/login</location>
</error-page>
Error: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'error-page'.

2.)
Code:
<access-denied-handler error-page="/login"/>
Code:
Error: Line 24 in XML document from class path resource [web.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'access-denied-handler'. One of '{"http://www.springframework.org/schema/security":intercept-url, "http://www.springframework.org/schema/security":form-login, "http://www.springframework.org/schema/security":openid-login, "http://www.springframework.org/schema/security":x509, "http://www.springframework.org/schema/security":http-basic, "http://www.springframework.org/schema/security":logout, "http://www.springframework.org/schema/security":concurrent-session-control, "http://www.springframework.org/schema/security":remember-me, "http://www.springframework.org/schema/security":anonymous, "http://www.springframework.org/schema/security":port-mappings}' is expected.
Any help appreciated!

Thanks!