WebSphere Application Server - WAS 6.0---java.lang.NoClassDefFoundError:

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Application Server > March 2007 > WAS 6.0---java.lang.NoClassDefFoundError:





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author WAS 6.0---java.lang.NoClassDefFoundError:
Saurabh Narang

2007-03-22, 1: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 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.InternalDB2UniversalDataStoreHelper. createJDBCConnectionWrapper(InternalDB2U
niversalDataStoreHelper.java:358)
at com.ibm.ws.rsadapter.spi.WSRdbManagedConnectionImpl. getConnection(WSRdbManagedConnectionImpl
.java:2650)
at com.ibm.ejs.j2c.MCWrapper.getConnection(MCWrapper.java:1776)
at com.ibm.ejs.j2c.ConnectionManager.allocateConnection(ConnectionManager.java: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(DBAccess.java:40)
at com.ibm.bharti.cps.eai.process.ejb.db.util.DBServiceDAO.invokeDB(DBServiceDAO.java:41)
at com.ibm.bharti.cps.eai.process.ejb.db.DBServiceBean.invokeDB(DBServiceBean.java:48)
at com.ibm.bharti.cps.eai.process.ejb.db.EJSRemoteStatelessDBService_5a03cd76. 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(DelegatingMethodAccessorImpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at com.ibm.rmi.util.ProxyUtil$4.run(ProxyUtil.java:727)

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com