File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes JNDI and WSAD Database Connectivity Steps Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "JNDI and WSAD Database Connectivity Steps" Watch "JNDI and WSAD Database Connectivity Steps" New topic
Author

JNDI and WSAD Database Connectivity Steps

thomas davis
Ranch Hand

Joined: Feb 01, 2003
Posts: 207
I am facing same kind of problem.

An exception occurred while invoking method setDataSourceProperties on com.ibm.ws.rsadapter.spi.WSManagedConnectionFactoryImpl used by resource Data source 1 : java.lang.reflect.InvocationTargetException


1. I have added parameters as mentioned above in web.xml and ibm-web-bnd.xml files and created JNDI name using Server persepective of WSAD 5.1.2.
Whatelese I need to get the connection?

Can anybody help me out to solve the connectivity issue?


quote:
--------------------------------------------------------------------------------
It would be great help,if you could send me the steps required for establishing the connection with help of JNDI Look Up using WSAD 5.1.2.
--------------------------------------------------------------------------------



Thanks in advance,
Tom.
--------------------------------------------------------------------------------
Posts: 168 | Registered: Feb 2003 | IP: Logged

thomas davis
ranch hand
Member # 44248
posted February 06, 2006 02:11 AM
--------------------------------------------------------------------------------
I got 10 exceptions and i am sending all those exceptions
1)An exception occurred while invoking method setDataSourceProperties on com.ibm.ws.rsadapter.spi.WSManagedConnectionFactoryImpl used by resource Data source 1 : java.lang.reflect.InvocationTargetException
2)An exception occurred while trying to instantiate the ManagedConnectionFactory class com.ibm.ws.rsadapter.spi.WSManagedConnectionFactoryImpl used by resource jdbc/sample : java.lang.reflect.InvocationTargetException
3)A Reference object looked up from the context "localhost/nodes/localhost/servers/server1" with the name "jdbc/sample" was sent to the JNDI Naming Manager and an exception resulted. Reference data follows:
4)Exception occurred while the JNDI NamingManager was processing a javax.naming.Reference object. Root exception is java.lang.reflect.InvocationTargetException
5)An exception occurred while invoking method setDataSourceProperties on com.ibm.ws.rsadapter.spi.WSManagedConnectionFactoryImpl used by resource Data source 1 : java.lang.reflect.InvocationTargetException
6)An exception occurred while trying to instantiate the ManagedConnectionFactory class com.ibm.ws.rsadapter.spi.WSManagedConnectionFactoryImpl used by resource jdbc/sample : java.lang.reflect.InvocationTargetException
7)A Reference object looked up from the context "localhost/nodes/localhost/servers/server1/jdbc" with the name "sample" was sent to the JNDI Naming Manager and an exception resulted. Reference data follows:
8)A NamingException is being thrown from a javax.naming.Context implementation. Details follow:
9)A Reference object looked up from the context "java:" with the name "comp/env/jdbc/sample" was sent to the JNDI Naming Manager and an exception resulted. Reference data follows:
10)A NamingException is being thrown from a javax.naming.Context implementation. Details follow:
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 31074
    
232

I'm moving this to our IBM/WebSphere forum as it looks pretty WSAD specific.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JNDI and WSAD Database Connectivity Steps