This is the mail archive of the
mailing list for the Cygwin project.
Cannot start service using cygrunsrv
- From: "Yasir Khalil Al Masri" <yalmasri at next dot jo>
- To: cygwin at cygwin dot com
- Date: Sat, 12 Jan 2002 11:13:08 +0200
- Subject: Cannot start service using cygrunsrv
I'm trying to run JBoss with embedded Tomcat under Win2000 server as an
NT service. I'm using cygrunsrv tool to do that following simple steps;
To install the service I typed this on my command shell:
cygrunsrv --install JBoss --path /cygdrive/d/JBoss-2.2.2_Tomcat-
"run_with_tomcat.bat" has the following script:
"run.bat" exists in the same directory and look like this:
@if not "%ECHO%" == "" echo %ECHO%
@if "%OS%" == "Windows_NT" setlocal
set JAXP=%JAXP% -
java %JAXP% -classpath "%JBOSS_CLASSPATH%" org.jboss.Main %1 %2 %3 %4 %
5 %6 %7 %8 %9
The service was installed successfully, but when I tried to start it
cygrunsrv --start JBoss
I got this error:
cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error
1062: The service has not been started.
Can anybody please help me identifying my problem. If I execute the
run_with_tomcat.bat, the server runs smoothly, I don't know why it
couldn't using the cygrunsrv. I tried to run Tomcat alone using this
tool, and it worked just fine.
Help is much appreciated.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html