WAS 6.0---java.lang.NoClassDefFoundError:
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere Application Server > WAS 6.0---java.lang.NoClassDefFoundError:




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

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


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
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 ]



    Sponsored Links  




 





   All times are GMT. The time now is 07:12 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register