This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

WAS 6.1 Data source problem

 
sreedhar Lackka
Ranch Hand
Posts: 154
  • 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
  • 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