03-22-07 06:25 AM
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 invok
ing getConnection() gives the following error. I've placed all the db2jcc.ja
r's at a specified loaction
and mentioned the same in the environment variables as DB2 classpath. Even p
laced the Db2java.zip in the same classpath. But it still doesnt seem to pic
k 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.InternalDB2UniversalDataStoreHelper.createJDBCCo
nnectionWrapper(InternalDB2UniversalData
StoreHelper.java:358)
at com.ibm.ws.rsadapter.spi.WSRdbManagedConnectionImpl.getConnection(WSRdbMa
nagedConnectionImpl.java:2650)
at com.ibm.ejs.j2c.MCWrapper.getConnection(MCWrapper.java:1776)
at com.ibm.ejs.j2c.ConnectionManager.allocateConnection(ConnectionManager.ja
va:626)
at com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJdbcDataSource
.java:402)
at com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJdbcDataSource
.java:625)
at com.ibm.bharti.cps.eai.process.ejb.db.util.DBAccess.getConnection(DBAcces
s.java:40)
at com.ibm.bharti.cps.eai.process.ejb.db.util.DBServiceDAO.invokeDB(DBServic
eDAO.java:41)
at com.ibm.bharti.cps.eai.process.ejb.db.DBServiceBean.invokeDB(DBServiceBea
n.java:48)
at com.ibm.bharti.cps.eai.process.ejb.db.EJSRemoteStatelessDBService_5a03cd7
6. invokeDB(EJSRemoteStatelessDBService_5a0
3cd76.java:28)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
(Compiled Code))
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
(Compiled Code))
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI
mpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at com.ibm.rmi.util.ProxyUtil$4.run(ProxyUtil.java:727)
[ Post a follow-up to this message ]
|