You should look at the file $GF_INSTALL/config/asenv.conf. It contains the path to the JAVA_HOME used when glassfish starts up. It point to the Java version that was used during installation of glassfish.
Wolfram Rittmeyer
[Message sent by forum member 'writtmeyer' (writtmeyer)]
http://forums.java.net/jive/thread.jspa?messageID=262978