I have been going over the O'Reilly's Enterprise Java
Beans and trying to run an EJB that I deployed in
Orion using an external client. I went into the
Console and I verified that so called application
cabin is deployed. When I try to run the client I am
getting the below exception. Here is my client code
that I have initialContext
public static Context getInitialContext() throws
javax.naming.NamingException {
Hashtable env = new java.util.Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,"com.evermind.server.ApplicationClientInitialContextFactory");
env.put(Context.PROVIDER_URL,"ormi://localhost/cabin");
return new javax.naming.InitialContext(env);
}
****************************************************
Exception:
javax.naming.NamingException: Error reading
application-client descriptor: No location specified
and no suitable instance of the type 'Cabin' found for
the ejb-ref Cabin
javax.naming.Context
com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext(java.util.Hashtable)
javax.naming.Context
javax.naming.spi.NamingManager.getInitialContext(java.util.Hashtable)
javax.naming.Context
javax.naming.InitialContext.getDefaultInitCtx()
void
javax.naming.InitialContext.init(java.util.Hashtable)
void
javax.naming.InitialContext.<init>(java.util.Hashtable)
javax.naming.Context
com.titan.cabin.Client_1.getInitialContext()
void
com.titan.cabin.Client_1.main(java.lang.String[])
Any help is appreciated.
Thanks,
Mustafa
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/