Hello,
I also got this error message while trying to get the Fibo tutorial up and running:
javax.servlet.ServletException: Lookup of java:comp/env/ failed
Object ref = context.lookup("java:/comp/env/ejb/Fibo");
Object ref = context.lookup("ejb/Fibo");
Hi,
I noticed that on a second machine I can use both variants, i.e. "java:/comp/env/ejb/Fibo" and "ejb/Fibo". Same configuration, same os (Win XP SP2). And I promise I didn't forget to repackage & redeploy. ;-)
Very strange...
Regards
Michael
Hi,
I must say that the tutorial may need some reviewing.
Within the jboss.xml code:
<session> <ejb-name>Fibo</ejb-name> <jndi-name>Fibo</jndi-name> <local-jndi-name>FiboLocal</local-jndi-name> </session>