I'm running JBoss EAP 5.1 as a service on Windows 7 (32-bit). I used service.bat to install/uninstall the service. I use the Windows Control Panel Services dialog to start and stop the service. JBoss starts up cleanly and JBoss itself shuts down cleanly when I stop the service (as reported by the shutdown.log). The jbosssvc.exe process and the java.exe process also disappear from Task Manager. However, Task Manager continues to show the two cmd.exe processes presumably spawned by jbosssvc.exe, for example:
Image Name PID User Name Command Line
cmd.exe 7148 SYSTEM C:\Windows\system32\cmd.exe /E:ON /S /C "SET JSERVICE_PPID=6344&&SET JSERVICE_NAME=JBEAP5SVC&&CALL service.bat start"
cmd.exe 8322 SYSTEM C:\Windows\system32\cmd.exe /E:ON /S /C "SET JSERVICE_PPID=6344&&SET JSERVICE_NAME=JBEAP5SVC&&CALL service.bat stop"
These processes have to be manually killed. Shouldn't jbosssvc.exe be able to shut these two processes down automatically? The PPID parameter in the lines above is the same as the PID for jbosssvc.exe in Task Manager. I had to tweak my bat files to match my file system paths, so I'm attaching them, along with my run.log and shutdown.log.
For reference: while the JBoss service is running, Task Manager displays these lines (before I stop the service):
Image Name PID User Name Command Line
cmd.exe 7148 SYSTEM C:\Windows\system32\cmd.exe /E:ON /S /C "SET JSERVICE_PPID=6344&&SET JSERVICE_NAME=JBEAP5SVC&&CALL service.bat start"
java.exe 3492 SYSTEM "C:\Program Files\Java\jdk1.6.0_22\bin\java" Xms512m Xmx1024m XX:PermSize=512m XX:MaxPermSize=512m Xrs Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dsun.lang.ClassLoader.allowArraySyntax=true
jbosssvc.exe 6344 SYSTEM "C:\JBoss510\native32\sbin\jbosssvc.exe" r JBEAP5SVC
Any help is greatly appreciated!
Chris