Topic
  • No replies
SystemAdmin
SystemAdmin
269 Posts

Pinned topic NoClassDefFoundError

‏2004-11-02T06:50:51Z |
Hi All

I am deploying my EAR file created using the WSAD. I am getting the below mentioned error.

I would be getting a third party jar file and so I need to add the same to the ear and invoke a Constructor of the class in the Jar file from my Stateless Session Bean.

The class file in the third party jar is Sample.java and I am trying to invoke Sample S = new Sample() from my Bean.

Please help me out, If I am wrong somewhere.
11/2/04 12:03:40:294 IST 1e171788 ExceptionUtil E CNTR0020E: Non-application exception occurred while processing method "invokegetStrAcctStatus" on bean "BeanId(CB_Module#CCEJB.jar#InvokeCCMBIS, null)". Exception data: java.lang.NoClassDefFoundError: test/Sample
at techlib.InvokeCCMBISBean.invokegetStrAcctStatus(InvokeCCMBISBean.java:43)
at techlib.EJSRemoteStatelessInvokeCCMBIS_9fb9e9db.invokegetStrAcctStatus(EJSRemoteStatelessInvokeCCMBIS_9fb9e9db.java:31)
at techlib._InvokeCCMBIS_Stub.invokegetStrAcctStatus(_InvokeCCMBIS_Stub.java:252)
at CallingBean.doGet(CallingBean.java:60)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:974)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:555)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:114)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)

Thanks and Regards,
Gops