This discussion is archived
2 Replies Latest reply: Sep 12, 2012 8:52 AM by user696 RSS

Getting NameNotFoundException in EJB 3.0

961632 Newbie
Currently Being Moderated

I am getting NameNotFoundException while trying to look up the bean.

My Business Interface :
package test;

import javax.ejb.Remote;

public interface Test{
String printName(String name);


Session Bean :


public class TestBean implements Test{



Properties h;
               Context ctx;

               h = new Properties();
               ctx = new InitialContext(h);

               Test test = (Test) ctx
                         .lookup("TestBean#test.Test"); // Getting the exception here

Please help me to resolve the issue.


  • Correct Answers - 10 points
  • Helpful Answers - 5 points