|
From: <Eri...@Bu...> - 2006-07-24 14:31:37
|
Leif,
Here is the message from net stop:
C:\Work\CVS\JOnASSvn>net stop JOnAS_jonas
The JOnAS (jonas) service is stopping........
The JOnAS (jonas) service could not be stopped.
So it is returning an error, if it's code in one of the threads from JOnAS
then I could look into it. I'm just trying to understand why the error
return from net stop is occuring since I thought that would only occur if
some timeout happened or the wrapper code returned an error which I'm not
seeing in the log. Thanks.
Eric
Leif Mortenson <le...@ta...>
Sent by: wra...@li...
07/21/2006 05:56 PM
Please respond to
wra...@li...
To
wra...@li...
cc
Subject
Re: [Wrapper-user] Net stop reports service could not be stopped
Eric,
What exactly are you seeing in the command window when you run "net
stop myapp"?
Looking at the wrapper.log file, everything appears to be
functioning correctly. The
Wrapper is exiting with an exit code of zero and it appears to be doing
so in a timely
manner. 17 seconds.
I did notice that your application appears to be calling System.exit
at some point
during the shutdown process. The stop main method is returning, but the
shutdown
hooks are being started. To avoid deadlocks, the wrapper goes into a
mode where
it only waits 5 seconds for your threads to complete. After 5 seconds,
you still have
15 non-daemon threads running so your application has not shutdown
completely
at that point. The workaround is needed because at least one of those
15 threads
is frozen within a call to System.exit and will never complete. With
Java 5, I may
may be able to figure out which threads are in System.exit and make this
work a
little better.
I don't believe that would be causing any errors from net stop
however.
Cheers,
Leif
Eri...@Bu... wrote:
>
> Leif,
> The service takes a little while to stop, it's an application server
> but I don't think a timeout should be occuring based on the wrapper
> debug output and information that I'm reading about the service
> control manager. I have tested the wrapper -t and -p functionality
> and it works as you state, but I'm dealing with a user that wants to
> do everything the standard MS way and also may be using the service
> window. I'm attaching the log file, where I just do a net start
> followed by a net stop and it doesn't seem long enough to be causing
> an error return from net stop. Have you looked at sending
> STOP_PENDING status messages to help with this issue, just something I
> saw in the Handler documentation?
>
> Eric
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wrapper-user mailing list
Wra...@li...
https://lists.sourceforge.net/lists/listinfo/wrapper-user
|