|
I have this for my dao.xml: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE daoConfig PUBLIC "-//iBATIS.com//DTD DAO Configuration
2.0//EN" "http://www.ibatis.com/dtd/dao-2.dtd"> <daoConfig> <context> <transactionManager type="JDBC"> <property name="DataSource" value="JNDI"/> <property name="DBJndiContext" value="java:comp/env/jdbc/ops"/> </transactionManager> <dao interface="com.bcca.ttr.dtt.persistence.iface.BlobDao" implementation="com.bcca.ttr.dtt.persistence.jdbc.JdbcBlobDao"/> </context> </daoConfig> I’ve
made sure that my container has a datasource registered under jdbc/ops. When I
try to instantiate DaoManager, I get: Caused by:
java.lang.RuntimeException: Could not initialize DaoConfig. Cause:
com.ibatis.dao.client.DaoException: Error while configuring DaoManager. Cause:
com.ibatis.dao.client.DaoException: There was an error configuring the
DataSource from JNDI. Cause:
javax.naming.NameNotFoundException: Name JNDI is not bound in this Context Caused by:
javax.naming.NameNotFoundException: Name JNDI is not bound in this Context Any ideas? Thanks, Tony |

