Johann,
Can you show us the code in your action class that
does the EJB lookup?
Should probably look something like...
Properties p = new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY,
DBConnectionManager.getInstance().JNDI_INITIAL_FACTORY);
p.put(Context.PROVIDER_URL,
DBConnectionManager.getInstance().JNDI_PROVIDER_URL);
Context ctx = new InitialContext(p);
java.lang.Object o = ctx.lookup("UserManagerHome");
UserManagerHome userHome =
(UserManagerHome)javax.rmi.PortableRemoteObject.narrow(o,
UserManagerHome.class);
userManager = userHome.create();
Regards,
Wayland Chan
--- joi <[EMAIL PROTECTED]> wrote:
> Hi!
> I have a problem accessing the InitialContext in the
> action
> classes..when i perform lookup on my ejb's I get
> this error message...
>
> "Error instantiating web-app JNDI-context: No
> location specified and no
> suitable instance of the type
>
'com.maskina.mcstudio.model.persistance.UserManagementRemote'
> found for
> the ejb-ref ejbUserManagement"
>
> Does anyone have the answer..?
>
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/