How to access a ejb from a bean

I need to acces a ejb from a bean, working with iplanet, but I cant open the home object. An NoClassDefFoundError happen.

there is the code:

String JNDIFormulari = "java:comp/env/Formulari";

Object BOFormulari = null;

com.base.formulari.FormulariHome HomeFormulari;

com.base.formulari.Formulari RemoteFormulari;

InitialContext ctx = new InitialContext();

BOFormulari = ctx.lookup(JNDIFormulari);

HomeFormulari = (com.base.formulari.FormulariHome) BOFormulari; <<The thing brokes here!!!

[564 byte] By [JPons] at [2007-9-26 4:36:30]
# 1
Have you included the Remote jar?
dubwai at 2007-6-29 17:54:33 > top of Java-index,Other Topics,Patterns & OO Design...
# 2
If you in one ejb call another one, you definitely already have access to IntitialContext. Don't use "new InitialContext()" to find ctx.yg
gu_gary at 2007-6-29 17:54:33 > top of Java-index,Other Topics,Patterns & OO Design...
# 3
wrong
lliijjzz at 2007-6-29 17:54:33 > top of Java-index,Other Topics,Patterns & OO Design...