Spring Security does not work with "hasRole('ROLE_ADMIN')" or ROLE_ADMIN
<p>I am using Spring Security version 4.1. If I specify <code>access="hasRole('ROLE_ADMIN')"</code> or <code>access="ROLE_ADMIN"</code> in the security configuration, I am able to login, but I am unable to access my admin page.</p>

<pre class="lang-xml prettyprint-override"><code>&lt;security:http use-expressions="true"&gt;
    &lt;security:intercept-url pattern="/admin/**" access="hasRole('ROLE_ADMIN')" /&gt;
    &lt;!-- security:intercept-url pattern="/admin" access="hasRole('ROLE_ADMIN')" / --&gt;
    &lt;security:intercept-url pattern="/createmanufsensors" access="isAuthenticated()" /&gt;
&lt;/security:http&gt;
&lt;security:global-method-security secured-annotations="enabled"&gt;&lt;/security:global-method-security&gt;
</code></pre>

<p>Below is the debug error:</p>

<pre class="lang-none prettyprint-override"><code>DEBUG [http-bio-8080-exec-10] [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] Secure object: FilterInvocation: URL: /admin; Attributes: [hasRole('ROLE_ADMIN')]     
2016-06-25 10:07:53,667 [] DEBUG [http-bio-8080-exec-10] [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] Previously Authenticated: org.springframework.security.authentication.UsernamePasswordAuthenticationToken@cc305a73: Principal: org.springframework.security.core.userdetails.User@74b46745: Username: francatore                                                  ; Password: [PROTECTED]; Enabled: true; AccountNonExpired: true; credentialsNonExpired: true; AccountNonLocked: true; Granted Authorities: ROLE_ADMIN                                ; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@166c8: RemoteIpAddress: 0:0:0:0:0:0:0:1; SessionId: 7F702A6911A71EA5556C750B6D424FF5; Granted Authorities: ROLE_ADMIN                                   
2016-06-25 10:07:53,667 [] DEBUG [http-bio-8080-exec-10] [org.springframework.security.access.vote.AffirmativeBased] Voter: org.springframework.security.web.access.expression.WebExpressionVoter@170ea084, returned: -1
2016-06-25 10:07:53,668 [] DEBUG [http-bio-8080-exec-10] [org.springframework.security.web.access.ExceptionTranslationFilter] Access is denied (user is not anonymous); delegating to AccessDeniedHandler
</code></pre>

<p>What could I possibly be missing?</p>