Based on this stack trace, you somehow got an update that requires
GlassFish version 3.1 to run. Did you at any point change default update
center repository configuration or install additional components from
update center?
Could you please run 'pkg list -f' command from <installdir>/bin
directory and post the output of the command?