shared is the right directory for things to be shared by all your web apps (shared class loader). server/lib is for the Catalina class loader.
----- Original Message ----- From: "Mark Claassen" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Monday, November 08, 2004 1:40 PM Subject: ClassLoader question > What is the difference between the server/lib and shared directories as far > as the class loaders are concerned? > > Background: > ----------- > I was having trouble with CGI scripts, so I wanted to creat a new CGIServlet > to run some tests. To start the process, I copied source of the tomcat > CGIServlet file into my own package structure. Once I got this working I > would alter that code and try to see why the CGI scripts where not executing > correctly. > > Part I Don't Understand: > --------------- > I put my jar file containing the CGIServlet into the server/lib directory > (where the tomcat CGIServlet resides). This, however, would not start up > and gave me ClassNotFound exceptions. However, when I moved my jar to the > shared directory, everything seems to work. > > Question: > --------- > I thought everything had access to things in the server/lib directory. What > is going on here? > > Thanks, > Mark > > > Confidentiality Notice: OCIESERVICE > --------------------------------------------------------------------- > The contents of this e-mail message and any attachments are intended > solely for the addressee(s) named in this message. This communication > is intended to be and to remain confidential. If you are not the > intended recipient of this message, or if this message has been > addressed to you in error, please immediately alert the sender by > reply e-mail and then delete this message and its attachments. Do not > deliver, distribute, copy, disclose the contents or take any action > in reliance upon the information contained in the communication or > any attachments. > --------------------- > Mark Claassen > Donnell Systems, Inc. > 300 S. St. Louis Blvd. Ste. 203 > South Bend, IN 46617 > E-mail: mailto:[EMAIL PROTECTED] > Voice: (574)232-3784 > Fax: (574)232-4014 > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]