the login.config is at the root of the resouces dir. so use the class's classload to get the resource.