When you want to use the Richfaces FileUpload on Glassfish ( version > 3.1.1) you may figure out that it won’t work properly.
The behavior after pressing the Upload button, is that it stucks in a loop. When you look via a tool like Firebug or something else, you see, that the request is send but didn’t came back.
This is caused by problem within the web-core.jar of Glassfish where the processing of multipart forms is broken in versions greater than 3.1.1
But the glassfish guys provide a fix for that. The web-core.jar attached to this ticket http://java.net/jira/browse/GLASSFISH-18444 fixes the issue.
You must place it in <gf-dir>/glassfish/modules restart the Glassfish and that’s it.
Cheers
Peter