Hi,

I writed one EJB and deployed it successful on Orion 1.5.4. But i get the Exception when i test it used one client application:

javax.naming.AuthenticationException: Invalid username/password for default (admin)
        at com.evermind._dn._mu(.:2173)
        at com.evermind._dn._mu(.:2009)
        at com.evermind._dn._es(.:1590)
        at com.evermind._bp._es(.:357)
        at com.evermind.server.rmi.RMIContext.lookup(.:106)
        at javax.naming.InitialContext.lookup(InitialContext.java:347)
        at ejbtest.Test1.main(Test1.java:24)

code:

Properties p = new Properties();
  p.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
  p.put(Context.PROVIDER_URL, "ormi://211.167.71.60:23791");
  p.put(Context.SECURITY_PRINCIPAL, "admin");
  p.put(Context.SECURITY_CREDENTIALS, "123");
  
  try {
   Context ctx = new InitialContext(p);
   OrganizationsHome home = (OrganizationsHome)ctx.lookup("ejb/OrgOrganizations");
   Organizations remote = (Organizations)home.create();
  } catch (Exception ex) {
   ex.printStackTrace();
  }

help me!

Attachment: FOX.GIF
Description: GIF image

Reply via email to