Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Indirect data source lookup fails in WL 7.0.2

0 views
Skip to first unread message

Karoly

unread,
Oct 20, 2003, 3:25:12 PM10/20/03
to

NameNotFoundException looking up datasources indirectly with "java:comp/env/myXAds":
++++++++++++++++++++++++++++++++++++++++++++++
FATAL weblogic.rmi.internal.ServerRequest - unable to look up data source java:comp/env/myXAds
javax.naming.NameNotFoundException: Unable to resolve 'jdbc.oracle/myXAds'
Resolved: '' Unresolved:'jdbc' ; remaining name 'jdbc.oracle/myXAds'
at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:174)
++++++++++++++++++++++++++++++++++++++++++++++

Here is are the relevant config sections:

config.xml
===============================
<JDBCTxDataSource
EnableTwoPhaseCommit="true"
JNDIName="jdbc/oracle/myXAds"
Name="jdbc/oracle/myXAds" PoolName="myXAdsPool"/>
===============================

ejb-jar.xml
===============================
<resource-ref>
<description><![CDATA[my XA Data Source]]></description>
<res-ref-name>myXAds</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
===============================

weblogic-ejb-jar.xml
===============================
<reference-descriptor>
<resource-description>
<res-ref-name>myXAds</res-ref-name>
<jndi-name>jdbc/oracle/myXAds</jndi-name>
</resource-description>
</reference-descriptor>
===============================

One of the problems that I can't figure out is where the 'jdbc.oracle' issue comes
from.
I've explicitly have the JNDI names use jdbc/oracle.
It seems to me the indirect lookup gets messed up with the translation of the
JNDI name.

BTW, is there a tool that lets me dump out the namespace? Like 'dumpnamespace'
in Websphere.

0 new messages