tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Claassen <...@donnell.com>
Subject ClassLoader question
Date Mon, 08 Nov 2004 19:40:16 GMT
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:mark.claassen@donnell.com
Voice: (574)232-3784
Fax: (574)232-4014
 



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message