Re: Re: how to shutdown orion app server?

2002-04-29 Thread Liu Bin



but i can't look up my ejb,how to config it.
thanks



  
  

  
 Hi.
 Make sure you remove 
the'deactivated="false"' for admin in 
config/principals.xml

 Lachezar.

  Hi,
  I writed one EJB and deployed it successful on 
  Orion 1.5.4. Buti 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!

= = = = = = = = = = = = = = = = = = = = = = 
ÖÂÀñ£¡
Liu Bin
[EMAIL PROTECTED]¡¡2002-04-29



FOX.GIF
Description: GIF image


Re: how to shutdown orion app server?

2002-04-28 Thread Liu Bin



Hi,
I writed one EJB and deployed it successful on Orion 
1.5.4. Buti 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!


FOX.GIF
Description: GIF image