I'd like to use some basic CGI in my webapp but I don't want to rely
on server admins to set it up per the directions of the how to (found
at http://tomcat.apache.org/tomcat-5.5-doc/cgi-howto.html).  When I
follow those directions, everything works fine, however I'd like to
put the CGIServlet definition into my own webapp.

To do this, I simply put the servlet definitions into my own web.xml,
and then put the servlets-cgi.jar into my own lib.  When doing this, I
get a ClassNotFound exception on CGIServlet.

At first I was pretty stumped by this, because I was sure the classes
were there to be found, but after digging a bit deeper, I think it was
just a bad exception.  I'm guessing the reason I'm getting the error
is because CGIServlet.jar imports two other classes:

import org.apache.catalina.Globals;
import org.apache.catalina.util.IOTools;

Those classes are located in catalina.jar and catalina-optional.jar,
respectively, which are both in servert/lib, which aren't visible to
webapps.

I can try putting those two jars into my webapp, but it is likely to
cascade and those jars need jars, etc.  So, my question is, what would
be the best approach for getting the CGISerlet into my own webapp
without having to set it up at a global level?  Or maybe I'm wrong in
my ClassNotFound diagnosis?  Thanks!

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to