I am currently running Tomcat 5.5 and IIS6. Up until recently I had
only one site that was using servlets. But as of this week I have
acquired a new site that will also be using a few servlets. Originally
I placed copies of the servlets for the site in the sites directory,
and I set up a generic <host> for that site in tomcat's server.xml to
link to them.
The new site I acquired will be using one of the same servlets that my
original site is using. Now rather then create a completely new copy
of the servlet and set up a <host> for the new site. I want to use the
same servlet by placing it in Tomcat's webapps directory. I can get
this to work fine if I take the <host> out of the server.xml, but if I
remove the <host> Tomcat can no longer access the jsp pages and
servlets at the root of the site.
I need to know if there is a way to keep the generic <host> in the
server.xml so that all the jsp pages and other servlets on the root of
the sites will continue working from the sites directory, while at the
same time allowing the shared servlet to run from webapps.
Any ideas?
Claus Petersen - 10 Mar 2005 14:16 GMT
Hi there,
as far as i remember u have a folder called shared/classes in the tomcat
lib, and its there u should have all Servlets u wish to share though ur
applications.
Claus
>I am currently running Tomcat 5.5 and IIS6. Up until recently I had
> only one site that was using servlets. But as of this week I have
[quoted text clipped - 15 lines]
>
> Any ideas?