You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by ashok <as...@sraindia.com> on 2007/06/29 05:29:30 UTC
Problem Configuring EXTERNAL transaction manager + JNDI + IBATIS
Hi
In my sqlMapConfig.xml file
<transactionManager type="EXTERNAL">
<property name="SetAutoCommitAllowed" value="false"/>
<dataSource type="JNDI">
<property name="DataSource" value="java:comp/env/jdbc/sampleDB" />
</dataSource>
</transactionManager>
I get the following Exception :
com.ibatis.dao.client.DaoException: Error while configuring DaoManager.
Cause: com.ibatis.common.exception.NestedRuntimeException: Error
occurred. Cause: com.ibatis.common.xml.NodeletException: Error parsing
XML. Cause: com.ibatis.common.exception.NestedRuntimeException: Error
parsing XPath '/sqlMapConfig/transactionManager/end()'. Cause:
com.ibatis.sqlmap.client.SqlMapException: Error initializing
TransactionManager. Could not instantiate TransactionConfig. Cause:
java.lang.NullPointerException
1.Is the transaction manager specified in the sqlMapConfig.xml is
correct or it should be changed.
2.In my dao classe's how to begin and end transaction's ?
Regards
Ashok