- This topic has 1 reply, 2 voices, and was last updated 19 years, 6 months ago by Riyad Kalla.
-
AuthorPosts
-
cecil143MemberHi,
I’m getting an Error.. Please can you help me of how to get rid of this Error and make My Application work.
I’m using a Struts and Hibernate in my application.
My Account Action Code look like this
public static void main(String args[])
{
AccountListForm accountListForm = new AccountListForm();
LibraryManager libmanager = new LibraryManager();
accountListForm.getAccountName(libmanager.Lib());
}
// Main Code is working perfectly fine….. Because I’m able to see the records printed on my console.But When I execute the following code…
public ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response) {
AccountListForm accountListForm = (AccountListForm) form;
//Error occurs at this line LibraryManager libmanager = new LibraryManager();
accountListForm.getAccountName(libmanager.Lib());
return mapping.findForward(“accountList”);
}I’m attaching also the stack trace please help me..
java.lang.NoClassDefFoundError: com/tcs/ge/cecil/bl/LibraryManager
at com.tcs.ge.cecil.action.AccountListAction.execute(AccountListAction.java:54)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)Thanks,
Cecil.C.
Riyad KallaMemberMoving to OT > Soft Dev.
Cecil, you need to find the JAR that provides the LibraryManager class and add it to your build path AND you need to make sure to include it in your WEB-INF/lib directory so it is deployed with your application.
-
AuthorPosts