title: request.getUserPrincipal() got null
body: <p>User successfully authenticated but after authentication when I go to next controller I got <code>request.getUserPrincipal()</code> null. I am using websphere 7 and my application is in spring mvc.</p>
  
  <pre><code>   System.out.println("subject.getPrincipals(): " + subject.getPrincipals());
  
     WSSubject.setRunAsSubject(subject);
  </code></pre>
  
  <p>After authentication in login controller subject.getPrincipals() returns principal but when I go to next controller I got <code>request.getUserPrincipal()</code> null.</p>
  
  <p><strong>web.xml</strong></p>
  
  <pre><code>&lt;security-role&gt;
      &lt;role-name&gt;Administrator&lt;/role-name&gt;
  &lt;/security-role&gt;
  
  &lt;security-constraint&gt;
      &lt;display-name&gt;manager_Service&lt;/display-name&gt;
      &lt;web-resource-collection&gt;
          &lt;web-resource-name&gt;manageservice&lt;/web-resource-name&gt;
          &lt;url-pattern&gt;/manageServiceList.htm&lt;/url-pattern&gt;
      &lt;/web-resource-collection&gt;
      &lt;auth-constraint&gt;
          &lt;role-name&gt;Administrator&lt;/role-name&gt;
      &lt;/auth-constraint&gt;
      &lt;user-data-constraint&gt;
          &lt;transport-guarantee&gt;CONFIDENTIAL&lt;/transport-guarantee&gt;
      &lt;/user-data-constraint&gt;
  &lt;/security-constraint&gt;
  </code></pre>
  
  <p><strong>application.xml</strong></p>
  
  <pre><code>&lt;security-role&gt;
      &lt;role-name&gt;Administrator&lt;/role-name&gt;
  &lt;/security-role&gt;
  </code></pre>
  
  <p><strong>ibm-application-bnd.xml</strong></p>
  
  <pre><code>&lt;security-role name="Administrator"&gt;
      &lt;group name="Administrator" /&gt;
  &lt;/security-role&gt;
  </code></pre>
  
  <p>User belongs to Administrator group. All my deployment descriptors are set up well. Any idea where I am getting mistake?</p>