tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <Yoav.Shap...@mpi.com>
Subject RE: ClassLoader question
Date Mon, 08 Nov 2004 19:47:12 GMT

Hi,
RTFM:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/class-loader-howto.html.
It clearly (in bold, capital letters) says server/lib is not visible to
web applications.

Yoav Shapira http://www.yoavshapira.com
 

>-----Original Message-----
>From: Mark Claassen [mailto:mac@donnell.com]
>Sent: Monday, November 08, 2004 2:40 PM
>To: 'Tomcat Users List'
>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: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




This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.


---------------------------------------------------------------------
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