wood burning stoves 2.0*
The moose likes Websphere and the fly likes WAS 6.1 Data source problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "WAS 6.1 Data source problem" Watch "WAS 6.1 Data source problem" New topic
Author

WAS 6.1 Data source problem

sreedhar Lackka
Ranch Hand

Joined: Jul 05, 2008
Posts: 154
Hi All,
Thanks a lot in advance.
I am facing some problem while connecting to Oracle database.
Actually, I have created one data source and tried with Test connection from admin console and which is connecting fine.
However,with application it is not working fine.I am getting following exception,

0000005c Helpers W NMSV0610I: A NamingException is being thrown from a javax.naming.Context implementation. Details follow:
Context implementation: com.ibm.ws.naming.java.javaURLContextRoot
Context method: lookup(Name)
Context name: java:
Target name: comp/env/jdbc/TestDS
Other data: ""
Exception stack trace: com.ibm.websphere.naming.CannotInstantiateObjectException: Exception occurred while the JNDI NamingManager
was processing a javax.naming.Reference object.
[Root exception is com.ibm.websphere.naming.CannotInstantiateObjectException: Exception occurred while the JNDI NamingManager was processing
a javax.naming.Reference object. [Root exception is java.lang.reflect.InvocationTargetException]]

Environement: WAS 6.1 and Oracle 9i.
Regards,
Sree
Jair Rillo Junior
Ranch Hand

Joined: Aug 27, 2008
Posts: 114
It looks your application is not finding the JNDI namespace. I do not see anything wrong in your code, but I can advice you to check this post: http://www.jairrillo.com/blog/2008/05/26/how-to-setup-a-datasource-on-websphere-61-for-mysql-step-by-step/. There is a example how to setup the DS in WAS 6.1 (using MySQL) and an application test to connect into this DS.


Regards, Jair Rillo Junior
http://www.jairrillo.com/blog, SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 5.0, IBM SOA Associate (Test 664).
 
 
subject: WAS 6.1 Data source problem
 
Similar Threads
Database connection
Unable to bind datasource in WebSphere 5.0
J2CXAResource E J2CA0036E: Error in WSAD v5.0
urgent -- datasource problem
JNDI lookup from a standalone JMS client - WAS 7 - AIX