Do you have a data source reference configured? If so, maybe this will work:
(BTW - "DataSource" is the preferred property now for the JNDI datasource)
<transactionManager type="JDBC">
<dataSource type="JNDI">
<property name="DataSource" value="java:comp/env/jdbc/scrimnet" />
</dataSource>
<dataSource type="JNDI">
<property name="DataSource" value="java:comp/env/jdbc/scrimnet" />
</dataSource>
</transactionManager>
Jeff Butler
On 11/27/05, Michael Laccetti [c] <[EMAIL PROTECTED]> wrote:
Has anybody used iBATIS with Geronimo? I've managed to get Geronimo
configured (with much help from them on IRC), but now I have a problem with
loading the SqlMap. For some reason it cannot resolve the JNDI name for the
data source. I keep getting:
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/dataSource/end()'. Cause:
com.ibatis.sqlmap.client.SqlMapException: There was an error configuring
JndiDataSourceDaoTransactionPool. Cause: javax.naming.NameNotFoundException:
jdbc
Caused by: javax.naming.NameNotFoundException: jdbc
My sqlmap-config file is as follows:
<transactionManager type="JDBC">
<dataSource type="JNDI">
<property name="DBJndiContext" value="jdbc/scrimnet" />
</dataSource>
</transactionManager>
I've been using the information found at
http://db.apache.org/derby/integrate/JPetStoreGeronimo.html as a guide, so
I'm not quite sure what I'm missing. Any help is appreciated.
Mike
--
------------------------ [ SECURITY NOTICE ]
------------------------
To: [email protected].
For your security, [EMAIL PROTECTED]
digitally signed this message on 28 November 2005 at 03:21:11 UTC.
Verify this digital signature at http://www.ciphire.com/verify.
------------------- [ CIPHIRE DIGITAL SIGNATURE ]
-------------------
Q2lwaGlyZSBTaWcuAjh1c2VyLWphdmFAaWJhdGlzLmFwYWNoZS5vcmcAbWljaGFlbEBzM
mctbGltaXRlZC5jb20AZW1haWwgYm9keQDZAwAAfAB8AAAAAQAAAKd3ikPZAwAARAMAAg
ACAAIAIIXYnAvwVJnXYkeNqqLiR5ZyHRK7W0tiTAYcV7p1uX8mAQAxTkdmLdtsIbMe4FE
6BpyDx/u9eVN0WyoQPcWCmWDyDyx8Y8loXVUACALAHrYhDdbhE2ALcmF+ap8bug6KAMtO
7iZRU2lnRW5k
--------------------- [ END DIGITAL SIGNATURE ]
---------------------
