Migration from glassfish 4.0 to Glassfish 4.1.1 - JDBC Realm issue

The problem happened because I copy-pasted the JBDC resource from glassfish 4.0 to glassfish 4.1.1 domain.xml. The problem was resolved after reverting the JDBC resource manually and re-create using admin console or command line.