if Login.class in global module or it point to the same login.class,it is right.or it happens ClassCastException
Reply to this message by going to Community
Start a new discussion in JNDI and Naming at Community