It seems like your JDBCRealm config is wrong.
The classname for JDBCRealm in Glassfish is com.sun.enterprise.security.auth.realm.jdbc.JDBCRealm, not org.apache.catalina.realm.JDBCRealm. This would be available to you in a drop down menu when you create a new auth realm using admin GUI. I advice that you create a new auth realm using the GUI and try again.
[Message sent by forum member 'nasradu8' (Sudarsan.Sridhar_at_sun.com)]
http://forums.java.net/jive/thread.jspa?messageID=381065