My thanks for your response. Actually the trouble is in finding the supporting classes of the servlet,not the servlet itself. My servlet is in ROOT\WEB-INF\classes, while the supporting classes is in a package outside of tomcat installation dir. I was hoping the server classloader would have no problem finding them with the help from "CLASSPATH". Turns out the class loader refuse to refer to the "CLASSPATH". We'd have to put everthing under webapp/web-inf. If any of the answerers of this question find my statement inproper, pls point out. thanks, Chasee Reynir_H�bner <[EMAIL PROTECTED]> wrote:Try putting your servlet into your webapplications lib directory, its usually under,
Your_web_application/WEB-INF/classes (if it's not packaged) or Your_web_application/WEB-INF/lib (if it's packaged in a jar file). The size of your terminal screen does not matter. hope it helps -reynir > -----Original Message----- > From: chasee [mailto:[EMAIL PROTECTED]] > Sent: 16. n�vember 2002 20:31 > To: tomcat user > Subject: servlet classpath > > > Hello all, > > the class loader of my tomcat stand-alone server (jakarta4.0.4) has > problems finding classes for my SERVLET. it gives a > java.lang.NoClassDefFoundError. > > I checked the classpath environment variable using echo > %classpath%. It > is properly set. The only thing I have doubt about is my > "classpath" is > way too long with 20 lines also. (in the command window of a width of > 80 chars). Would that affect the behavior of the server in any way? > > thanks, Chasee > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Web Hosting - Let the expert host your site > -- To unsubscribe, e-mail: For additional commands, e-mail: --------------------------------- Do you Yahoo!? Yahoo! Web Hosting - Let the expert host your site
