• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

WAS 6.1 Data source problem

 
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic