On occasion I have need from my app to update the
web.xml and cause the app to get restarted.  I tried
to do this using the manager application and found
that whenever the reload command is issued from a
servlet in the target app (the one to be reloaded) it
causes the manager and target apps to hang:

        2001-10-22 16:32:34 StandardWrapper[/AGCW:Manager]: Loading
container servlet Manager
        2001-10-22 16:32:34 Manager: init
        2001-10-22 16:32:34 Manager: init: Associated with Deployer
'localhost'
        2001-10-22 16:32:34 Manager: restart: Reloading web application at
'/AGCW'
        2001-10-22 16:32:34 StandardContext[/AGCW]: Reloading this Context
has started
        2001-10-22 16:32:34 StandardWrapper[/AGCW:Manager]: Waiting for 1
instance(s) to be deallocated

the last entry indicates the hanging servlet.

If I issue the command from somewhere other than the target app,
it completes normally:

        2001-10-23 17:29:09 StandardWrapper[/manager:Manager]: Loading
container servlet Manager
        2001-10-23 17:29:09 Manager: init
        2001-10-23 17:29:09 Manager: init: Associated with Deployer
'localhost'
        2001-10-23 17:29:09 Manager: restart: Reloading web application at
'/AGCW'
        2001-10-23 17:29:09 StandardContext[/AGCW]: Reloading this Context
has started
        2001-10-23 17:29:09 AutowebControl: destroy
        2001-10-23 17:29:09 DBCheck: destroy
        2001-10-23 17:29:09 AutowebLogonControl: destroy
        2001-10-23 17:29:09 WebappLoader[/AGCW]: Deploying class
repositories to work directory C:\Cat_Test\work\localhost\AGCW
        2001-10-23 17:29:09 StandardManager[/AGCW]: Seeding random number
generator class java.security.SecureRandom
        2001-10-23 17:29:09 StandardManager[/AGCW]: Seeding of random number
generator has been completed
        2001-10-23 17:29:09 StandardWrapper[/AGCW:default]: Loading
container servlet default
        2001-10-23 17:29:09 default: init
        2001-10-23 17:29:09 StandardWrapper[/AGCW:invoker]: Loading
container servlet invoker
        2001-10-23 17:29:09 invoker: init
        2001-10-23 17:29:09 StandardWrapper[/AGCW:jsp]: Using Jasper
classloader for servlet jsp
        2001-10-23 17:29:10 jsp: init
        2001-10-23 17:29:11 StandardContext[/AGCW]: Reloading this Context
is completed

Allowing an app to restart itself seems like an important use of this
function.
I'd call this a bug.

Frank Lawlor
Athens Group, Inc.
(512) 345-0600 x151
Athens Group, an employee-owned consulting firm integrating technology
strategy and software solutions.



Reply via email to