I am moving from jserv to tomcat.
I have 100+ servlets and classes that I want to be available to up to 100 virtual hosts. The server I am moving to runs RHE3 with Apache2, Plesk and Tomcat4. Plesk only supports the mod_webapp connector. I can't find much info on mod_webapp but it seems to me that each virtual host must have its own webapps deployed.
So I have tried to put all the classes into /var/tomcat4/shared/classes.
In each host, I deploy a servlets.war file that contains only the following WEB-INF/web.xml file -
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<display-name>Glogal servlets</display-name>
<description>
Global servlets.
</description>
<servlet-mapping>
<servlet-name>invoker</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
</web-app>
This is working on the few hosts I tried so far. I can link to a servlet using http://a-host.com/servlets/MyServlet.
Questions
Is there a better way to do this ?
Will tomcat be using hugely more memory than jserv was ?
Should I abandon Plesk, use Cpanel and configure apache/tomcat manually (but I don't want to have to ssh in and configure each new host manually) ?
Thanks
Bill
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
