You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Christopher Schultz <ch...@christopherschultz.net> on 2016/05/16 20:01:29 UTC

Unable to update or delete Windows Service

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

All,

I've got a Windows service called "foo" and I'm able to edit the
configuration successfully by running the following command:

C:\> %CATALINA_HOME%\bin\tomcat8w.exe //ES//foo

But if I try to update the service from the command-line, or update
the service, I get an error "Error parsing command line" with no
further information.

I've tried using quotes around the command-and-service-name argument,
and I've tried copying tomcat8w.exe to "foo.exe" to see if it could
work with the default, and it doesn't.

Oddly enough, the "service.bat remove foo" does work. So something is
wrong in the documentation or maybe I missed something. I have yet to
trace-through the service.bat file to see what is different.

Just a heads-up. This is with Tomcat 8.0.33 ZIP distro package, btw.

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJXOicZAAoJEBzwKT+lPKRYxtcP/04HdvrDH6KOxFqGyOEoY+YV
fYl405bBNDuH8mlLyowWfnVb1A2kSe5/uU3cV/kbS5bVA55f3YRLzbT0e7bcZGz+
CXGfL6bVeGIDqhZ6CDdRWGjYEm+XKrPzUZiAeyH1b8I3DSDYJCaXbgkUzSPtItUT
aBcr5w/r6st3wJWY2c7dSeq+thCYKO/2G4Y6pQ0Hkd+c/zhL0JKvWtmlLlFBajLz
riq/fpiVLCxNZHfwfLxTSXxmTBLRelo94IqxL+oTrs9emhgUi2/iwgIQIiSxUkBi
Pvm2VzfuRA6udrIQ5lef0gQPDLv2oSLIiFA9S9iECx1fCsMzCg+Qf7kaxIUc6WOg
czUcduR8q+gKTtTGykj6W7i56p1Mc2ME9bK8+NiCcxfl52GzJEHus8tWEC6+z2V2
5n7ZfAZv2BJI3Xf5nyivFMeZwkktcXb1i7yaqth9TAz7RwnZBzKag6Rkle3AJQkn
SLtSnZqEdUEvn1XxOkzLueVyXdQvIYZAoNrDMVGUbnMWf/mBLinCg1BUhRsdiCO/
eJSoTpfDwzTrEdan2NMXr5cbRs3HasB2nOCWaxylpYCL+hM4a9EpnOR+YPx1Q7SP
3bwkDULNIXefcTF96Qx0yIZbqOkBQSsvNwm7IoOMav+k/cgjnNmcTuA7nr9yyV/j
4vZfDWc2ilhGPgyKTzHc
=WSo6
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Unable to update or delete Windows Service

Posted by Leo Donahue <do...@gmail.com>.
Chris,

On Mon, May 16, 2016 at 3:22 PM, Christopher Schultz <
chris@christopherschultz.net> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Chuck,
>
> On 5/16/16 4:11 PM, Caldarale, Charles R wrote:
> >> From: Christopher Schultz [mailto:chris@christopherschultz.net]
> >> Subject: Unable to update or delete Windows Service
> >
> >> I've got a Windows service called "foo" and I'm able to edit the
> >> configuration successfully by running the following command:
> >
> >> C:\> %CATALINA_HOME%\bin\tomcat8w.exe //ES//foo
> >
> >> But if I try to update the service from the command-line, or
> >> update the service, I get an error "Error parsing command line"
> >> with no further information.
> >
> > Example of the command line that's failing?
>
> Hah, that would have been good information, eh?
>
> C:\> %CATALINA_HOME%\bin\tomcat8w.exe //DS/foo
>

The command is just:  tomcat8 //DS//foo


>
> I get a pop-up window with the message "Error parsing command line".
> Same thing when running "//US//foo" with no additional arguments.
>
> - -chris
>

Re: Unable to update or delete Windows Service

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Chuck,

On 5/16/16 4:11 PM, Caldarale, Charles R wrote:
>> From: Christopher Schultz [mailto:chris@christopherschultz.net] 
>> Subject: Unable to update or delete Windows Service
> 
>> I've got a Windows service called "foo" and I'm able to edit the 
>> configuration successfully by running the following command:
> 
>> C:\> %CATALINA_HOME%\bin\tomcat8w.exe //ES//foo
> 
>> But if I try to update the service from the command-line, or
>> update the service, I get an error "Error parsing command line"
>> with no further information.
> 
> Example of the command line that's failing?

Hah, that would have been good information, eh?

C:\> %CATALINA_HOME%\bin\tomcat8w.exe //DS/foo

I get a pop-up window with the message "Error parsing command line".
Same thing when running "//US//foo" with no additional arguments.

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJXOivwAAoJEBzwKT+lPKRYzfIP/RsDQ6Mwq4AnS38BMXCoc9is
JS/M9Uid3e3RtYQvqFk4//KMwKVt6VJD/M6kcQsTY3PHBflazS4RZXjZNrVRyYz9
apzJeKHS82ntt+q+GjH1QpdhDBtkoC9oWWVEUIam094CJhByhZTExGrSsLLUhNMR
2QSepo79VCVw9wpSaTR5uS0b2zHrcTdh41JI7a0EWe/jJa9Z0yPi5eSGmgdKHMvJ
BtJIQyyOSxfghnim8dKvyMEAxUEpdvUiyj2VZ18wT6nan+1DgOVfo8A2auKXhh2P
nQXCQ5Giwuqgx5603CRmTBlsjpFFViMfA4B4p6NCx3H1UJSTQfTKihfO2tBPKu9z
E3vubAPMSe1qhK5OPa5LwT8FBbjiZ/EvUph7jtHT3u5QwHGJ8i7wfOc1007X3n2F
C5Hdy+fgmLdWWfHeDtdyyjotyMP9NYfZZkKBmmSpjkmpsyf+WPgeRgxoBlnH8kq3
GW9HJH1cauTQBBaiK5WshY9Uuz3ILtpKqbdbvrFkeTRUhNp1qvuBlw2CvRn58Stp
KZKBe1wlap6VhAU0MnthmHw9zRd5hojn0fELN9V0SnM7LdjbrdOAGklFdpBd/gV1
zfQxdIZ9grltbJI/zi7Lqk7fOCPV7AiBr29d93/iojD+P64fSUpieQ9z9/vTa2k9
rwtBb9pXR/7b+Ffmkqrm
=85KS
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Unable to update or delete Windows Service

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Christopher Schultz [mailto:chris@christopherschultz.net] 
> Subject: Unable to update or delete Windows Service

> I've got a Windows service called "foo" and I'm able to edit the
> configuration successfully by running the following command:

> C:\> %CATALINA_HOME%\bin\tomcat8w.exe //ES//foo

> But if I try to update the service from the command-line, or update
> the service, I get an error "Error parsing command line" with no
> further information.

Example of the command line that's failing?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org