Bookmark Topic Watch Topic
  • New Topic

Error message

 
Ahsan Jamil
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Report post to moderator
hi 2 all,
I have made a simple LoginServlet, which just call a method validate() of a class Customer. Although that class Customer is placed in the lib folder of my web application as a jar file .
But when i try to use this class in that servlet LoginServlet, it shows an error that message.
" The server encountered an internal error () that prevented it from fulfilling this request. "
exception
javax.servlet.ServletException: Invoker service() exception
at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:524)
at org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)

root cause :
java.lang.NoClassDefFoundError: com/retail/controller/Customer
----------
Although jar file of complete package which contains class Customer is placed in the lib of web-inf of my web application.
I think that servlet container is not able to load that jar file. But how this problem could be solved?
Plz reply me ASAP.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65533
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not cross-post the same question in multiple forums. Continue any discussion here.
bear
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!