File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

WAS 6.1 Data source problem

 
sreedhar Lackka
Ranch Hand
Posts: 154
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
Jair Rillo Junior
Ranch Hand
Posts: 114
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic