After two hours of trying to find out what I was doing wrong. I tried to retrieve attribute by name using.
req.getAttribute("uid");
And for some reason that works. Even though the "uid"
isn't listed in getAttributeNames();
It smells like a bug, or mistimed communication somewhere between AJP and Spring or JSF...