You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Zbynek Vavros <Zb...@cz.ibm.com> on 2011/03/09 15:33:22 UTC
console with when running as service
Hi,
is it possible to setup Tomcat service in a way that it will display
console window after service start, same as when started using bat file?
I mean window to which standart outputs and errors are redirected....
Thanks
Kind Regards / Mit
freundlichen Grüßen /
Üdvözlettel / S
pozdravem:
Zbynek VAVROS (Embedded
Development image moved
to file:
pic04171.gif)
Delivery Centre 616 00, Brno
Central Europe Technicka 21
Brno SITE Czech Republic
(Embedded image moved to
file: pic00024.gif) Phone: 420-53341- x6283
Mobile:
E-mail: Zbynek_Vavros@cz.ibm.com
IBM Global Services
Delivery Center Czech
Republic, s.r.o.
Registered address:
Brno, Technicka 2995/21,
Zip code: 61600, Company
ID: 26244535
Entered in the
Commercial Register
maintained by the
Regional Court in Brno
(Part C, Entry 39922)
IBM Global Services
Delivery Center Czech
Republic, s.r.o.
Sídlo: Brno, Technická
2995/21, PSČ 61600 IČ:
26244535
Zapsaná v obchodním
rejstříku, vedeném
Krajským soudem v Brně
oddíl C, vlozka 39922
RE: console with when running as service
Posted by Mikolaj Rydzewski <mi...@ceti.pl>.
On Wed, 9 Mar 2011 09:05:30 -0600, "Caldarale, Charles R"
<Ch...@unisys.com> wrote:
> And what happens when there's no Windows user logged on (the normal
> condition for a server) - just the services are running?
I've seen sa called 'servers' where admin has to login in order to box
operate correctly.
--
Mikolaj Rydzewski <mi...@ceti.pl>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: console with when running as service
Posted by Zbynek Vavros <Zb...@cz.ibm.com>.
Exactly !
And it works just fine.
Kind Regards / Mit
freundlichen Grüßen /
Üdvözlettel / S
pozdravem:
Zbynek VAVROS (Embedded
Development image moved
to file:
pic02615.gif)
Delivery Centre 616 00, Brno
Central Europe Technicka 21
Brno SITE Czech Republic
(Embedded image moved to
file: pic10824.gif) Phone: 420-53341- x6283
Mobile:
E-mail: Zbynek_Vavros@cz.ibm.com
IBM Global Services
Delivery Center Czech
Republic, s.r.o.
Registered address:
Brno, Technicka 2995/21,
Zip code: 61600, Company
ID: 26244535
Entered in the
Commercial Register
maintained by the
Regional Court in Brno
(Part C, Entry 39922)
IBM Global Services
Delivery Center Czech
Republic, s.r.o.
Sídlo: Brno, Technická
2995/21, PSČ 61600 IČ:
26244535
Zapsaná v obchodním
rejstříku, vedeném
Krajským soudem v Brně
oddíl C, vlozka 39922
|------------>
| From: |
|------------>
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|"Caldarale, Charles R" <Ch...@unisys.com> |
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| To: |
|------------>
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|Tomcat Users List <us...@tomcat.apache.org> |
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Date: |
|------------>
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|03/09/2011 04:07 PM |
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Subject: |
|------------>
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|RE: console with when running as service |
>--------------------------------------------------------------------------------------------------------------------------------------------------|
> From: Zbynek Vavros [mailto:Zbynek_Vavros@cz.ibm.com]
> Subject: RE: console with when running as service
> Im sorry to keep asking the same question becase we have
> services that have console windows!
> For example Domino server does that by default :
> - install it as service
> - start the service
> - boom, nice console window is displayed (on local and even
> when running on remote, I can see it using Remote Desktop)
> - when service is shut down, console window disappears
And what happens when there's no Windows user logged on (the normal
condition for a server) - just the services are running?
- 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
RE: console with when running as service
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Zbynek Vavros [mailto:Zbynek_Vavros@cz.ibm.com]
> Subject: RE: console with when running as service
> Im sorry to keep asking the same question becase we have
> services that have console windows!
> For example Domino server does that by default :
> - install it as service
> - start the service
> - boom, nice console window is displayed (on local and even
> when running on remote, I can see it using Remote Desktop)
> - when service is shut down, console window disappears
And what happens when there's no Windows user logged on (the normal condition for a server) - just the services are running?
- 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
Re: console with when running as service
Posted by Mladen Turk <mt...@apache.org>.
On 03/09/2011 03:59 PM, Zbynek Vavros wrote:
>
> Im sorry to keep asking the same question becase we have services that have
> console windows!
> For example Domino server does that by default :
>
What happens on 2008R2 and UAC enabled?
Services run in Session 0, With Vista and up there is a
clear separation between services and GUI.
You can not even share file handles or named objects
between them unless you do some tricks.
No service(daemon) should ever interact with desktop. Period.
Not on windows, not on unix.
Domino is just an archaic peace of ... :)
Like someone said, you can use some auto tail to display
the real-time logs.
Regards
--
^TM
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: console with when running as service
Posted by Zbynek Vavros <Zb...@cz.ibm.com>.
Im sorry to keep asking the same question becase we have services that have
console windows!
For example Domino server does that by default :
- install it as service
- start the service
- boom, nice console window is displayed (on local and even when running on
remote, I can see it using Remote Desktop)
- when service is shut down, console window disappears
So I guess this is not functionality that Tomcat would support....
Kind Regards / Mit
freundlichen Grüßen /
Üdvözlettel / S
pozdravem:
Zbynek VAVROS (Embedded
Development image moved
to file:
pic15060.gif)
Delivery Centre 616 00, Brno
Central Europe Technicka 21
Brno SITE Czech Republic
(Embedded image moved to
file: pic02068.gif) Phone: 420-53341- x6283
Mobile:
E-mail: Zbynek_Vavros@cz.ibm.com
IBM Global Services
Delivery Center Czech
Republic, s.r.o.
Registered address:
Brno, Technicka 2995/21,
Zip code: 61600, Company
ID: 26244535
Entered in the
Commercial Register
maintained by the
Regional Court in Brno
(Part C, Entry 39922)
IBM Global Services
Delivery Center Czech
Republic, s.r.o.
Sídlo: Brno, Technická
2995/21, PSČ 61600 IČ:
26244535
Zapsaná v obchodním
rejstříku, vedeném
Krajským soudem v Brně
oddíl C, vlozka 39922
|------------>
| From: |
|------------>
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|"Caldarale, Charles R" <Ch...@unisys.com> |
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| To: |
|------------>
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|Tomcat Users List <us...@tomcat.apache.org> |
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Date: |
|------------>
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|03/09/2011 03:42 PM |
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Subject: |
|------------>
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|RE: console with when running as service |
>--------------------------------------------------------------------------------------------------------------------------------------------------|
> From: Zbynek Vavros [mailto:Zbynek_Vavros@cz.ibm.com]
> Subject: console with when running as service
> is it possible to setup Tomcat service in a way that it will display
> console window after service start, same as when started using bat file?
> I mean window to which standart outputs and errors are redirected....
You keep asking the same question, and you apparently don't understand what
a Windows service is for. Services are meant to run in the background, and
normally start *before any user logs in*. Unless there's a logged-in user,
there cannot be any console windows. On newer versions of Windows (Vista
and later), having a service interact with the desktop is mind-bogglingly
painful experience.
If you want a console window, run Tomcat from the startup.bat script.
- 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
Re: [OT] console with when running as service
Posted by Mark Eggers <it...@yahoo.com>.
----- Original Message (begin) ----
From: Christopher Schultz <ch...@christopherschultz.net>
To: Tomcat Users List <us...@tomcat.apache.org>
Sent: Wed, March 9, 2011 12:34:13 PM
Subject: Re: [OT] console with when running as service
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Robert,
On 3/9/2011 9:54 AM, Robert.Jenkin@surecomp.com wrote:
> There is a window version of tail tailforwin32.sourceforge.net
If you want more than just tail, why not get all the handy GNU utilities?
http://gnuwin32.sourceforge.net/
GNU/Windows, anyone? RMS would probably have to smile at that, then get
angry that Microsoft doesn't provide source code. ;)
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk135EUACgkQ9CaO5/Lv0PCyagCeOf4icsI0PEk7q9T127URUK7I
KlEAoJ07JhY/8mDsUYKv5TfagIajPRa+
=2bQc
-----END PGP SIGNATURE-----
----- Original Message (end) ----
Or cygwin: http://www.cygwin.com/
. . . . just my two cents
/mde/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: [OT] console with when running as service
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Robert,
On 3/9/2011 9:54 AM, Robert.Jenkin@surecomp.com wrote:
> There is a window version of tail tailforwin32.sourceforge.net
If you want more than just tail, why not get all the handy GNU utilities?
http://gnuwin32.sourceforge.net/
GNU/Windows, anyone? RMS would probably have to smile at that, then get
angry that Microsoft doesn't provide source code. ;)
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk135EUACgkQ9CaO5/Lv0PCyagCeOf4icsI0PEk7q9T127URUK7I
KlEAoJ07JhY/8mDsUYKv5TfagIajPRa+
=2bQc
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: console with when running as service
Posted by Ro...@surecomp.com.
There is a window version of tail tailforwin32.sourceforge.net
Sincerely,
Robert Jenkin
Surecomp Services, Inc.
2 Hudson Place, 4th Floor
Hoboken, NJ 07030
Skype: robert.jenkin
Office: 201 217 1437 | Direct: 201 716 1219 | Mobile: 908 251 0537
http://www.Surecomp.com
-----Original Message-----
From: Caldarale, Charles R [mailto:Chuck.Caldarale@unisys.com]
Sent: Wednesday, March 09, 2011 9:52 AM
To: Tomcat Users List
Subject: RE: console with when running as service
> From: Robert.Jenkin@surecomp.com [mailto:Robert.Jenkin@surecomp.com]
> Subject: RE: console with when running as service
> You can have the startup.bat registered as a service and
> redirect output to a text file.
Somewhat pointless, since that's exactly what the Tomcat service does by default.
> This will give you a text file showing the console window output
It's always possible to use some Windows equivalent of tail (is there one?) to look at any text-formatted log file.
- 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
This mail was sent via Mail-SeCure System.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: console with when running as service
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Robert.Jenkin@surecomp.com [mailto:Robert.Jenkin@surecomp.com]
> Subject: RE: console with when running as service
> You can have the startup.bat registered as a service and
> redirect output to a text file.
Somewhat pointless, since that's exactly what the Tomcat service does by default.
> This will give you a text file showing the console window output
It's always possible to use some Windows equivalent of tail (is there one?) to look at any text-formatted log file.
- 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
RE: console with when running as service
Posted by Ro...@surecomp.com.
I have not tried this... but I will give it a try..
You can have the startup.bat registered as a service and redirect output to a text file. This will give you a text file showing the console window output
Sincerely,
Robert Jenkin
Surecomp Services, Inc.
2 Hudson Place, 4th Floor
Hoboken, NJ 07030
Skype: robert.jenkin
Office: 201 217 1437 | Direct: 201 716 1219 | Mobile: 908 251 0537
http://www.Surecomp.com
-----Original Message-----
From: Caldarale, Charles R [mailto:Chuck.Caldarale@unisys.com]
Sent: Wednesday, March 09, 2011 9:41 AM
To: Tomcat Users List
Subject: RE: console with when running as service
> From: Zbynek Vavros [mailto:Zbynek_Vavros@cz.ibm.com]
> Subject: console with when running as service
> is it possible to setup Tomcat service in a way that it will display
> console window after service start, same as when started using bat file?
> I mean window to which standart outputs and errors are redirected....
You keep asking the same question, and you apparently don't understand what a Windows service is for. Services are meant to run in the background, and normally start *before any user logs in*. Unless there's a logged-in user, there cannot be any console windows. On newer versions of Windows (Vista and later), having a service interact with the desktop is mind-bogglingly painful experience.
If you want a console window, run Tomcat from the startup.bat script.
- 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
This mail was sent via Mail-SeCure System.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: console with when running as service
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Robert,
On 3/9/2011 9:49 AM, Robert.Jenkin@surecomp.com wrote:
> Also as a possible enhancement to tomcat.. add a service command to the service app to show is output window
I don't think the service can do this... I think the service runner has
to do it.
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk135G0ACgkQ9CaO5/Lv0PBybACfb39TDDu0ZxJkSFZ69HmpxcPM
8d4AoK/mylQ0c7VuXL0mzoseTQpTGarA
=opW+
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: console with when running as service
Posted by Ro...@surecomp.com.
Also as a possible enhancement to tomcat.. add a service command to the service app to show is output window
Sincerely,
Robert Jenkin
Surecomp Services, Inc.
2 Hudson Place, 4th Floor
Hoboken, NJ 07030
Skype: robert.jenkin
Office: 201 217 1437 | Direct: 201 716 1219 | Mobile: 908 251 0537
http://www.Surecomp.com
-----Original Message-----
From: Caldarale, Charles R [mailto:Chuck.Caldarale@unisys.com]
Sent: Wednesday, March 09, 2011 9:41 AM
To: Tomcat Users List
Subject: RE: console with when running as service
> From: Zbynek Vavros [mailto:Zbynek_Vavros@cz.ibm.com]
> Subject: console with when running as service
> is it possible to setup Tomcat service in a way that it will display
> console window after service start, same as when started using bat file?
> I mean window to which standart outputs and errors are redirected....
You keep asking the same question, and you apparently don't understand what a Windows service is for. Services are meant to run in the background, and normally start *before any user logs in*. Unless there's a logged-in user, there cannot be any console windows. On newer versions of Windows (Vista and later), having a service interact with the desktop is mind-bogglingly painful experience.
If you want a console window, run Tomcat from the startup.bat script.
- 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
This mail was sent via Mail-SeCure System.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: console with when running as service
Posted by Mikolaj Rydzewski <mi...@ceti.pl>.
On Wed, 9 Mar 2011 08:41:09 -0600, "Caldarale, Charles R"
<Ch...@unisys.com> wrote:
> If you want a console window, run Tomcat from the startup.bat script.
If you want just console output look at commons-daemon documentation.
There's everything you need to redirect output to any file.
--
Mikolaj Rydzewski <mi...@ceti.pl>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: console with when running as service
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Zbynek Vavros [mailto:Zbynek_Vavros@cz.ibm.com]
> Subject: console with when running as service
> is it possible to setup Tomcat service in a way that it will display
> console window after service start, same as when started using bat file?
> I mean window to which standart outputs and errors are redirected....
You keep asking the same question, and you apparently don't understand what a Windows service is for. Services are meant to run in the background, and normally start *before any user logs in*. Unless there's a logged-in user, there cannot be any console windows. On newer versions of Windows (Vista and later), having a service interact with the desktop is mind-bogglingly painful experience.
If you want a console window, run Tomcat from the startup.bat script.
- 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