ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ashok <as...@sraindia.com>
Subject Re: Configuring JNDI + IBatis +Websphere 6.0
Date Wed, 04 Jul 2007 05:23:32 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">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi<br>
<br>
I done the steps you have mentioned below.<br>
<br>
I still get the following exception :<br>
<br>
<small><font face="Arial">Root exception is
org.omg.CosNaming.NamingContextPackage.NotFound: IDL:<a
 onclick="return top.js.OpenExtLink(window,event,this)"
 href="http://omg.org/CosNaming/NamingContext/NotFound:1.0"
 target="_blank">omg.org/CosNaming/NamingContext/NotFound:1.0</a></font></small><br>
<br>
<br>
Regards<br>
Ashok<br>
<br>
<br>
Jeff Butler wrote:
<blockquote
 cite="midc593b8750707030651w35b1438ds40859f090e1df167@mail.gmail.com"
 type="cite">
  <div>Assuming that you've created a data source with the JNDI name
"exampleDS", here's what you need to do:</div>
  <div>&nbsp;</div>
  <div>1. Use the second form <a class="moz-txt-link-rfc2396E" href="java:comp/env/jdbc/exampleDS">"java:comp/env/jdbc/exampleDS"</a></div>
  <div>2. Add a resource reference entry in web.xml - name the
reference "jdbc/exampleDS"</div>
  <div>3. Map the resource reference "jdbc/exampleDS"&nbsp;to JNDI name
"exampleDS"</div>
  <div>&nbsp;</div>
  <div>If you're using RAD/RSA then you can do this all on the
references page of the web.xml editor.</div>
  <div>&nbsp;</div>
  <div>Jeff Butler<br>
  <br>
&nbsp;</div>
  <div><span class="gmail_quote">On 7/3/07, <b class="gmail_sendername">ashok</b>
&lt;<a href="mailto:ashok@sraindia.com">ashok@sraindia.com</a>&gt;
wrote:</span>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left:
1ex;">
    <div text="#000000" bgcolor="#ffffff"><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:<a
 onclick="return top.js.OpenExtLink(window,event,this)"
 href="http://omg.org/CosNaming/NamingContext/NotFound:1.0"
 target="_blank">omg.org/CosNaming/NamingContext/NotFound:1.0
    </a>]<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>"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></div>
  </blockquote>
  </div>
  <br>
</blockquote>
<br>
</body>
</html>


Mime
View raw message