I had a similar issue with commons-collections-3.2.jar being in our app and 3.2.1 being in glassfish/domain/lib and this solution worked for me.
I created the sun-web.xml with the above contents and placed it in our war's WEB-INF/lib and redeployed and everything worked.
Thanks =]
[Message sent by forum member 'areplogle' (areplogle)]
http://forums.java.net/jive/thread.jspa?messageID=280826