Tomcat 4.0.1, when run as a service on NT, doesn't seem to integrate 
properly with IIS. The service fails to stop gracefully and does not call 
my Servlet's destroy() method().

NT4 sp6a.  I downloaded the .exe binary for TC 4.0.1 and installed it 
selecting the checkbox to have it run as a service (nice feature).  After 
having done that, the following works correctly...

1. net start "Apache Tomcat" (service starts)
2. Load/run my servlet via a browser (on port 8080, bypassing IIS).
3. net stop "Apache Tomcat" (service stops gracefully and my servlet's 
destroy() method is called)

However, if I now edit server.xml, comment *in* in the ajp13 connector, and 
repeat the steps above, step 3 fails.  The service fails to stop gracefully 
and my servlet's destroy() method is not called!

Since you need the ajp13 connector to integrate with IIS and you'd want 
Tomcat to run as a service when integrating with IIS, it seems IIS 
integration doesn't work correctly.  I guess it kinda does if your 
destroy() method does nothing important and/or you never stop the tomcat 
service. :)

After my steps 1-3 above (with ajp13 commented in), the 
catalina_log.<my-date>.txt contained the following tail...

...
2001-12-21 11:05:17 HttpProcessor[8080][0] Stopping background thread
2001-12-21 11:05:17 HttpConnector[8080] Stopping background thread
...
2001-12-21 11:05:37 Ajp13Processor[8009][0] Stopping background thread
2001-12-21 11:05:42 Ajp13Connector[8009] Stopping background thread
2001-12-21 11:05:47 Ajp13Connector[8009] Opening server socket on all host 
IP addresses

The last line looks fishy to me.

If anybody has TC 4.0.1 running as a service with the ajp13 connector 
active *and* they can gracefully stop the service with their Servlet's 
destroy() method being called, I'd like to know.

Thanks all

-Sam


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to