[jboss-user] [EJB/JBoss] - Re: java.lang.ClassNotFoundException: org.jnp.interfaces.Nam
jaikiran
do-not-reply at jboss.com
Thu May 8 04:12:28 EDT 2008
You probably are not using the correct jndi-name while doing the lookup in the client. Use the JNDIView http://wiki.jboss.org/wiki/DisplayTheJNDITreeWithTheJMXConsole to list the contents of the jndi-tree and see what's the jndi-name for your bean.
Alternately, you can annotate the bean to use a jndi-name of your choice and use that jndi-name in your client lookup.
@Stateless
| @RemoteBinding(jndiBinding = "MyJNDIName")
| public class TestMyBean implements MyBeanLocal {
Client code:
MyBeanLocal bean = (MyBeanLocal) ctx.lookup("MyJNDIName");
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149351#4149351
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149351
More information about the jboss-user
mailing list