NameNotFoundException: not bound
March 9th, 2009
Applies to:
JBoss 3.2
Oracle 9i
ANT
Description:
Error with ejb-jar.xml when running the client code.
Cause:
References in ejb-jar.xml and datasource are not correctly setup.
Follow these steps to do a context.lookup(“java:comp/env/OracleDS”):
OracleDS
javax.sql.DataSource
Container
OracleDS
java:/OracleDS
1. In ejb-jar.xml file, include the following lines:
2. Map the datasource declaration and reference in ejb-jar.xml: