Sun GlassFish Enterprise Server 2.1 Troubleshooting Guide

Solution 3

If clearing the HADB does not work, delete and then recreate the database.

For solutions 2 and 3, above, after clearing the HADB, recreate the session store to restablish the database schema.