|
From: Leif M. <le...@ta...> - 2006-07-19 06:27:41
|
Srikanth,
I would be able to tell you more if you set the wrapper.debug=true
property and post
the results. But this is most likely being caused one or more
non-daemon threads or
shutdown hooks that are failing to complete in a timely manner.
Are you telling the WrapperStartStopApp class to wait for non-daemon
threads to
complete on shutdown?
Cheers,
Leif
Srikanth S wrote:
>
> I am running a Java application as service using Method 2.
>
> I am able to start and stop the program using the Console (i.e. using
> the startup script App.bat). The service installs fine and it starts
> fine. But, when I try to stop it, it shuts down internally but it
> gives me the following error:
>
> "Error 1067: The process terminated unexpectedly."
>
> But actually, it shuts down properly.
>
> STATUS | wrapper | 2006/07/17 11:59:42 | --> Wrapper Started as Service
> STATUS | wrapper | 2006/07/17 11:59:42 | Launching a JVM...
> INFO | jvm 1 | 2006/07/17 11:59:43 | Wrapper (Version 3.2.0)
> http://wrapper.tanukisoftware.org
> INFO | jvm 1 | 2006/07/17 11:59:43 |
> // My application log here. (Here, the printed log indicates that my
> application actually got
> // shutdown properly.
> ERROR | wrapper | 2006/07/17 12:00:21 | Shutdown failed: Timed out
> waiting for signal from JVM.
> ERROR | wrapper | 2006/07/17 12:00:21 | JVM did not exit on request,
> terminated
> STATUS | wrapper | 2006/07/17 12:00:22 | <-- Wrapper Stopped
|