tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Claassen <...@donnell.com>
Subject RE: ClassLoader question
Date Mon, 08 Nov 2004 20:34:28 GMT
One thing I was going to add to this was that I do have other classes in
this directory that work.  I have a custom access log value, which works
fine, and the only reference to it is in a jar file that is in this
directory.  And, from what I have read, it properly placed be in this
directory.



> -----Original Message-----
> From: Mark Claassen [mailto:mac@donnell.com] 
> Sent: Monday, November 08, 2004 3:14 PM
> To: 'Tomcat Users List'
> Subject: RE: ClassLoader question
> 
> 
> I forgot to mention that I am running 4.1, however the docs 
> are similar and on this point I clearly deserve any sneers 
> that are sent my way.
> 
> But,...
> In the default web.xml file there is this:
> <!-- IMPORTANT: To use the CGI servlet, you also need to rename the
> -->
> <!--            
> $CATALINA_HOME/server/lib/servlets-cgi.renametojar file
> -->
> <!--            to $CATALINA_HOME/server/lib/servlets-cgi.jar
> -->.
> 
> When the name is changed, the default CGIServlet works!  Why 
> does the CGIServlet work from the server/lib directory and 
> mine not?  Does it actually check somehow?  My class is 
> currently a carbon copy of tomcat's with no additional class 
> dependencies.  It compiles against the catalina.jar just fine.
> 
> 
> > -----Original Message-----
> > From: Shapira, Yoav [mailto:Yoav.Shapira@mpi.com]
> > Sent: Monday, November 08, 2004 2:47 PM
> > To: Tomcat Users List
> > Subject: RE: ClassLoader question
> > 
> > 
> > 
> > Hi,
> > RTFM:
> > http://jakarta.apache.org/tomcat/tomcat-5.0-doc/class-loader-h
> > owto.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
> > 
> > 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 



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