|
From: Leif M. <le...@ta...> - 2005-12-14 23:35:07
|
David,
This looks to me like your main method simply stops without really
doing anything.
Could you post the wrapper.log with wrapper.debug=true set? That will
let me tell
you exactly what is happening.
You need to have at least one non-daemon thread running or the
Wrapper will
think your application has completed and exit. This is the same thing
that Java
by itself will do.
Cheers,
Leif
DAVID TURNER wrote:
>
> I have a monitoring program that uses java.util.Timer and
> java.util.TimerTask that I wrapped and installed as a NT service. The
> service starts up OK, but my monitor program runs the TimerTask once
> and then the wrapper stops.
>
> If I run the wrapper from the console it works fine -- the wrapper
> stays up and the TimerTask continually gets executed every minute.
>
> Does anybody have any suggestions as to why the wrapper is stopping
> prematurely when installed as a service?
>
>
>
> STATUS | wrapper | 2005/12/14 16:06:50 | Connection Monitor installed.
> STATUS | wrapper | 2005/12/14 16:07:10 | --> Wrapper Started as Service
> STATUS | wrapper | 2005/12/14 16:07:11 | Launching a JVM...
> INFO | jvm 1 | 2005/12/14 16:07:11 | Wrapper (Version 3.1.2)
> http://wrapper.tanukisoftware.org
> INFO | jvm 1 | 2005/12/14 16:07:11 |
> STATUS | wrapper | 2005/12/14 16:07:21 | <-- Wrapper Stopped
>
>
> Thanks,
> David
|