ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ashok <as...@sraindia.com>
Subject Configuring JNDI + IBatis +Websphere 6.0
Date Tue, 03 Jul 2007 11:43:55 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<small><font face="Arial">Hi<br>
<br>
I am trying to get the datasource using JNDI&nbsp;&nbsp; and Websphere 6.0<br>
I have created the exampleDS datasource on Websphere 6.0<br>
<br>
<b>In my sqlmapconfig.xml , i have the following enteries</b> :<br>
&lt;transactionManager type="JDBC" commitRequired="true"&gt;&nbsp; <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;dataSource type="JNDI"&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;property
name="DataSource" &nbsp;&nbsp; &nbsp;value="jdbc/exampleDS"
/&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;/dataSource&gt;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;<br>
&nbsp;&nbsp;&nbsp; &lt;/transactionManager&gt; <br>
<br>
<b>I get the following exception :</b><br>
Error while configuring DaoManager.&nbsp; Cause:
com.ibatis.common.exception.NestedRuntimeException: Error occurred.&nbsp;
Cause: com.ibatis.common.xml.NodeletException: Error parsing XML.&nbsp;
Cause: com.ibatis.common.exception.NestedRuntimeException: Error
parsing XPath '/sqlMapConfig/transactionManager/dataSource/end()'.&nbsp;
Cause: com.ibatis.sqlmap.client.SqlMapException: There was an error
configuring JndiDataSourceDaoTransactionPool. Cause:
javax.naming.NameNotFoundException: Context:
srai91Node01Cell/nodes/srai91Node01/servers/server1, name: jdbc/acids:
First component in name acids not found. [Root exception is
org.omg.CosNaming.NamingContextPackage.NotFound:
IDL:omg.org/CosNaming/NamingContext/NotFound:1.0]<br>
<br>
<br>
<big><b><small>In my sqlmapconfig.xml , i have the following enteries</small></b></big>
:<br>
&lt;transactionManager type="JDBC" commitRequired="true"&gt;&nbsp; <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;dataSource type="JNDI"&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;property
name="DataSource" &nbsp;&nbsp;
&nbsp;value=<a class="moz-txt-link-rfc2396E"
 href="java:comp/env/jdbc/exampleDS">"java:comp/env/jdbc/exampleDS"</a>
/&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;/dataSource&gt;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;<br>
&nbsp;&nbsp;&nbsp; &lt;/transactionManager&gt; <br>
<br>
<big><b><small>I get the following exception :</small></b></big><br>
Caused by: com.ibatis.sqlmap.client.SqlMapException: There was an error
configuring JndiDataSourceDaoTransactionPool. Cause:
javax.naming.NameNotFoundException: Name "comp/env/acids" not found in
context "java:".<br>
Caused by: javax.naming.NameNotFoundException: Name "comp/env/acids"
not found in context "java:".<br>
<br>
<br>
<br>
Regards<br>
Ashok<br>
</font></small>
<br>
</body>
</html>


Mime
View raw message