InitialContext ctx = new InitialContext(env);
getLog().debug("Created InitialContext, ctx="+ctx);
super.deploy("naming.jar");
Object obj = getInitialContext().lookup("ENCTests/ejbs/SecuredENCBean");
obj = PortableRemoteObject.narrow(obj, TestENCHome.class);
TestENCHome home = (TestENCHome)obj;
try
{
TestENC bean = home.create();
getLog().debug("Created SecuredENCBean");
bean.accessENC();
bean.remove();
System.setProperty("java.security.auth.login.config", "invalid");
}