Thanks for the quick reply, I don't believe I've tried that, but it
isn't the complete solution I was looking for.  Remember, tomcat (5.5)
is shipped with the CGIServlet jar in a package named
/server/lib/servlets-cgi.renametojar.  Using your solution would
remove the servlet setup from the global web.xml, but still require an
admin to rename the jar.  Sure, not a big deal, but an installation
requirement I'd like to avoid.

So I guess the question comes down to classloading, and I'm getting
confused there.  On, this page:

http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html

It says:

"Catalina - This class loader is initialized to include all classes
and resources required to implement Tomcat 5 itself. These classes and
resources are TOTALLY invisible to web applications. All unpacked
classes and resources in $CATALINA_HOME/server/classes, as well as
classes and resources in JAR files under $CATALINA_HOME/server/lib,
are made visible through this class loader."

So I'm not following, are the resources "TOTALLY invisible to web
applications"  or are they "made visible through this class loader"?
The two parts seem contradictory to me.  Is is saying the actual
*files* are inivisble, but the classes (in either classes or lib) are
made visible by the classloader?  Again, not sure.

If they are "TOTALLY invisible" then your suggestion wouldn't work, as
the CGIServlet is in /server/lib.  However, the WebdavServlet runs in
a stand-alone webapp and it is also located in /server/lib.

So, in summary, you're saying the only way I can get CGIServlet
defined in a single webapp is to leave servlets-cgi.jar in /server/lib
and require an administrator to rename it?



On 6/30/07, Mark Thomas <[EMAIL PROTECTED]> wrote:
Robert J. Carr wrote:
> 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.

Try just putting the definition in your web.xml and leave the jar where
it is.

Mark


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



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