Please be aware that recently we found and fixed in 3.1.2 several issues
related to using JDK 1.7.0_02 and GlassFish. I noticed that you are
using 3.1.1. These relate to the order of the list that is returned
from the Class.getMethods call. See issues: