Decide to use Spring Security framework

I have a lot of problems when trying to use Glassfish JDBCRealm, so i
decide to switch to Spring Security framework instead