This works now .. thanks for the suggestions Muthu
> -----Original Message----- > From: Bhangale, Bhushan [SMTP:[EMAIL PROTECTED]] > Sent: Monday, August 19, 2002 7:56 PM > To: [EMAIL PROTECTED] > Subject: Re: Helper Class placing path problem > > Do this.... > > e:\tomcat401\webapps\examples\WEB-INF\Classes\ShowPendQueries.class > e:\tomcat401\webapps\examples\WEB-INF\Classes\CustomerQueries.class > > Now in classpath to compile your servelt add > e:\tomcat401\webapps\examples\WEB-INF\Classes > > -----Original Message----- > From: Muthukumaran [mailto:[EMAIL PROTECTED]] > Sent: Monday, August 19, 2002 10:19 AM > To: [EMAIL PROTECTED] > Subject: Helper Class placing path problem > > > Hi, > > I am having a problem in deploying a helper class for a servlet deployed > in > TOMCAT can anyone please let me know if I am at fault? > > Servlet is placed as : > e:\tomcat401\webapps\examples\WEB-INF\Classes\ShowPendQueries.class > Helper Class which is instantiated in above servlet is placed at : > e:\tomcat401\common\classes\CustomerQueries.class > > when the servlet is executed in browser, I get Exception as > > EXCEPTION > javax.servlet.ServletException: Cannot allocate servlet instance for path > /examples/servlet/ShowPendQueries > > > ROOT CAUSE > java.lang.NoClassDefFoundError: common/classes/CustomerQueries > > I tried out placing the hepler class in the same class as that of servlet > and even worse, servlet did not compile due to path error then I went > through the docs of TOMCAT to find that the classes referred in Servlets > can > be placed in common->classes directory and i tried the same in vain Thanks > in advance for valuable suggestions Rgds Muthukumaran > > __________________________________________________________________________ > _ > To unsubscribe, send email to [EMAIL PROTECTED] and include in the > body > of the message "signoff SERVLET-INTEREST". > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > Resources: http://java.sun.com/products/servlet/external-resources.html > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html > > > "The information in this e-mail, and any attachment therein, is > confidential and for use by the addressee only. If you are not the > intended recipient, please return the e-mail to the sender and delete > it from your computer. Although The Bank of New York attempts to > sweep e-mail and attachments for viruses, it does not guarantee that > either are virus-free and accepts no liability for any damage sustained > as a result of viruses." > > __________________________________________________________________________ > _ > To unsubscribe, send email to [EMAIL PROTECTED] and include in the > body > of the message "signoff SERVLET-INTEREST". > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > Resources: http://java.sun.com/products/servlet/external-resources.html > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html