Hi all,
I am running my JBoss 3.0 as a Win32 Service using JavaService. When I do that, none of my Timers work. But when I start the same on the console, everything seems to work fine. I am not sure why this is happening or how I can approach this problem.
The error I see printed to my log file is: "17:00:30,353 ERROR [STDERR] Jun 2, 2003 5:00:30 PM engine.event.TimerListener run
WARNING: The handle is invalid".
The command I use to install JBoss is pasted below:
C:\JBoss3\bin\srvc\bin\JavaService.exe -install JBoss3Service C:\j2sdk1.4.1_01\jre\bin\client\jvm.dll -Djava.class.path=C:\j2sdk1.4.1_01\lib\tools.jar;C:\JBoss3\bin\run.jar -start org.jboss.Main -stop org.jboss.Main -method systemExit -out C:\JBoss3\server\default\log\serviceOutput.log -current C:\JBoss3\bin
Any ideas would be very much appreciated.
Thanks in advance.
Sridhar.
Okay. Found the problem. It was a code bug. I had tried to read from System.in and forgot the fact that Win32 Service does not directly have a System.in.
My humble apologies.
Sridhar.