Hi,

I'm trying to get a database connection on WAS 6.0 with DB2 UDB 8.1(Fix pack 16). The code is able to locate the connection pool thru jndi, but on invoking getConnection() gives the following error. I've placed all the db2jcc.jar's at a specified loaction and mentioned the same in the environment variables as DB2 classpath. Even placed the Db2java.zip in the same classpath. But it still doesnt seem to pick up the specified class.....please help resolve the issue.


Caused by: java.rmi.RemoteException: ; nested exception is:
java.lang.NoClassDefFoundError: com/ibm/db2/jcc/SQLJContext
at com.ibm.ws.rsadapter.spi.InternalDB2UniversalDataS toreHelper.createJDBCConnectionWrapper(InternalDB2 UniversalDataStoreHelper.java:358)
at com.ibm.ws.rsadapter.spi.WSRdbManagedConnectionImp l.getConnection(WSRdbManagedConnectionImpl.java:26 50)
at com.ibm.ejs.j2c.MCWrapper.getConnection(MCWrapper. java:1776)
at com.ibm.ejs.j2c.ConnectionManager.allocateConnecti on(ConnectionManager.java:626)
at com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConn ection(WSJdbcDataSource.java:402)
at com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConn ection(WSJdbcDataSource.java:625)
at com.ibm.bharti.cps.eai.process.ejb.db.util.DBAcces s.getConnection(DBAccess.java:40)
at com.ibm.bharti.cps.eai.process.ejb.db.util.DBServi ceDAO.invokeDB(DBServiceDAO.java:41)
at com.ibm.bharti.cps.eai.process.ejb.db.DBServiceBea n.invokeDB(DBServiceBean.java:48)
at com.ibm.bharti.cps.eai.process.ejb.db.EJSRemoteSta telessDBService_5a03cd76.invokeDB(EJSRemoteStatele ssDBService_5a03cd76.java:28)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java(Compiled Code))
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java(Compiled Code))
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compil ed Code))
at com.ibm.rmi.util.ProxyUtil$4.run(ProxyUtil.java:72 7)