Hi Liu,
Did you run
orion -install
when you installed orion (or changed admin password in principals.xml)?
This username/password should correspond with the username/password from
the jndi.properties file of the client application
Mark
On Sun, 2002-04-28 at 13:02, Liu Bin wrote:
> 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!
--
--o-o----------
Mark Kettner
http://www.fredhopper.com
Amsterdam, The Netherlands
Phone: +31 20 3206203 Mobile: +31 620 609 817
fax: +31 20 8848747
E-mail: [EMAIL PROTECTED], [EMAIL PROTECTED]