Alot of people get caught up by this issue. Just need to remember that if one is using the "java:comp/env" namespace - then you have to make sure it's mapped/aliased correctly via container specific deployment descriptors
Glassfish
EJB's, "sun-ejb-jar.xml"
WAR, /WEB-INF/sun-web.xml file
JBOSS
EJB's, "jboss-ejb-jar.xml"
WARS, /WEB-INF/jboss-web.xml
WEBSPHERE
EJB's, /WEB-INF/{"ibm-ejb-jar-bnd.xmi","ibm-ejb-jar-ext.xml","ibm-ejb-access-bean.xml"}
WARS, /WEB-INF/{"ibm-web-bnd.xmi", "ibm-web-ext.xmi"}
[Message sent by forum member 'gdaswani' (gdaswani)]
http://forums.java.net/jive/thread.jspa?messageID=266131