This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes JSP and the fly likes Error message Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Reply locked New topic
Author

Error message

Ahsan Jamil
Ranch Hand

Joined: Aug 24, 2001
Posts: 58
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.


Regards,<br /> <br />Ahsan Jamil<br />SCJP, SCWCD, IBM OOAD
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60045
    
  65

Please do not cross-post the same question in multiple forums. Continue any discussion here.
bear


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
wood burning stoves
 
subject: Error message
 
Similar Threads
Error Message
Uploading files using servlet
Help needed urgently in running a servlet in J2sdkee1.2.1
Getting exception in small JDBC Servlet Program.
Cannot find Servlet in WAS3.5