RE: Tomcat7w.exe
-Original Message- From: Leo Donahue [mailto:donahu...@gmail.com] Sent: Friday, March 07, 2014 11:10 AM To: users@tomcat.apache.org Subject: Tomcat7w.exe Did I miss something in the documentation about renaming this if one is running multiple windows services of Tomcat? ex: #Prod port 80 c:\apache-tomcat c:\apache-tomcat\apache-tomcat-7.0.52 service install Tomcat7 (from bin directory here) #Dev port 8080 c:\apache-tomcat-dev c:\apache-tomcat-dev\apache-tomcat-7.0.52 service install Tomcat7dev (from bin directory here) If I run the Tomcat7w.exe from #Dev, all of those settings point to #Prod. Unless I change the name of Tomcat7w.exe in #Dev to Tomcat7devw.exe, then everything is fine. Was that listed in the docs somewhere and I missed it? Leo, If you use the Windows installer that the foundation thoughtfully provides, you'll see that the installer actually renames the executables to whatever you put in the Windows Service Name field. So, if you use it to install one instance with the service name Prod, then in the bin directory, you will have Prod.exe and Prodw.exe. If you second instance uses the service name Dev, then the bin directory will have Dev.exe and Devw.exe. And when you go to look for those processes using Task Manager, or Process Explorer, or whatever tool you use, they will actually show up as those names. No more trying to figure out which Tomcat.exe is which. Jeff - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat7w.exe
On Sun, Mar 9, 2014 at 3:53 PM, Leo Donahue donahu...@gmail.com wrote: On Fri, Mar 7, 2014 at 12:43 PM, Howard W. Smith, Jr. smithh032...@gmail.com wrote: Actually, i hate clicking on things... I use Windows keyboard shortcuts as much as possible. Even when you run the following command, you still get a GUI. Tomcat7w //ES/Tomcat7 okay/true. Do you Ctrl + Tab your way through that dialog? yes. Plus, I don't know what this is supposed to edit, but it doesn't change the values in the Tomcat7w.exe dialog: Tomcat7 //ES//Tomcat7 --Startup=Auto (or Automatic) Running that command still shows Manual in the Startup type on the General tab. okay. i never used/tried --Startup=..., because after creating the Windows Service, I /simply/ use tomcat7w.exe (or Windows Start button Administratives Tools Services) to change the value to 'Automatic'.
Re: Tomcat7w.exe
On Mon, Mar 10, 2014 at 10:37 AM, Jeffrey Janner jeffrey.jan...@polydyne.com wrote: -Original Message- From: Leo Donahue [mailto:donahu...@gmail.com] Sent: Friday, March 07, 2014 11:10 AM To: users@tomcat.apache.org Subject: Tomcat7w.exe Did I miss something in the documentation about renaming this if one is running multiple windows services of Tomcat? ex: #Prod port 80 c:\apache-tomcat c:\apache-tomcat\apache-tomcat-7.0.52 service install Tomcat7 (from bin directory here) #Dev port 8080 c:\apache-tomcat-dev c:\apache-tomcat-dev\apache-tomcat-7.0.52 service install Tomcat7dev (from bin directory here) If I run the Tomcat7w.exe from #Dev, all of those settings point to #Prod. Unless I change the name of Tomcat7w.exe in #Dev to Tomcat7devw.exe, then everything is fine. Was that listed in the docs somewhere and I missed it? Leo, If you use the Windows installer that the foundation thoughtfully provides, you'll see that the installer actually renames the executables to whatever you put in the Windows Service Name field. So, if you use it to install one instance with the service name Prod, then in the bin directory, you will have Prod.exe and Prodw.exe. If you second instance uses the service name Dev, then the bin directory will have Dev.exe and Devw.exe. And when you go to look for those processes using Task Manager, or Process Explorer, or whatever tool you use, they will actually show up as those names. No more trying to figure out which Tomcat.exe is which. Jeff +1 that's good to know, as I may have a need to have multiple tomcat/tomee instances. Thanks! - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat7w.exe
On Fri, Mar 7, 2014 at 12:43 PM, Howard W. Smith, Jr. smithh032...@gmail.com wrote: Actually, i hate clicking on things... I use Windows keyboard shortcuts as much as possible. Even when you run the following command, you still get a GUI. Tomcat7w //ES/Tomcat7 Do you Ctrl + Tab your way through that dialog? Plus, I don't know what this is supposed to edit, but it doesn't change the values in the Tomcat7w.exe dialog: Tomcat7 //ES//Tomcat7 --Startup=Auto (or Automatic) Running that command still shows Manual in the Startup type on the General tab.
Re: Tomcat7w.exe
Leo Donahue wrote: Did I miss something in the documentation about renaming this if one is running multiple windows services of Tomcat? ex: #Prod port 80 c:\apache-tomcat c:\apache-tomcat\apache-tomcat-7.0.52 service install Tomcat7 (from bin directory here) #Dev port 8080 c:\apache-tomcat-dev c:\apache-tomcat-dev\apache-tomcat-7.0.52 service install Tomcat7dev (from bin directory here) If I run the Tomcat7w.exe from #Dev, all of those settings point to #Prod. Unless I change the name of Tomcat7w.exe in #Dev to Tomcat7devw.exe, then everything is fine. Was that listed in the docs somewhere and I missed it? Well, kind of : http://tomcat.apache.org/tomcat-7.0-doc/windows-service-howto.html#Tomcat7w_monitor_application says : //ES// Edit service configuration This is the default operation. It is called if the no option is provided but the executable is renamed to servicenameW.exe and further down somewhere it says : To modify the service settings, you can run tomcat7w //ES//instance1. So I guess that what this means is : If you run tomcat7W.exe without parameters, by default it starts in edit service parameters mode, and it looks for the Service Tomcat7. You /can/ override this by starting it as : tomcat7W.exe //ES//tomcat7prod (for instance), in which case it would edit the parameters of the service tomcat7prod. OR by renaming tomcat7W.exe to tomcat7prodW.exe, in which case by default (when started without parameters) it would start in edit parameters mode, for the service named tomcat7prod. or something like that... ;-) - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat7w.exe
From: Leo Donahue [mailto:donahu...@gmail.com] Subject: Tomcat7w.exe Did I miss something in the documentation about renaming this if one is running multiple windows services of Tomcat? Besides the doc André pointed out, it's discussed briefly at the end of RUNNING.txt in the Tomcat installation directory. - 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-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat7w.exe
On Fri, Mar 7, 2014 at 10:58 AM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Leo Donahue [mailto:donahu...@gmail.com] Subject: Tomcat7w.exe Did I miss something in the documentation about renaming this if one is running multiple windows services of Tomcat? Besides the doc André pointed out, it's discussed briefly at the end of RUNNING.txt in the Tomcat installation directory. I re-read that article André listed, again. I blame my lack of command line upbringing for not catching that. Windows people click on things. Bad habits. As for RUNNING.txt, I missed that. And, it is a good idea to rename those files, BEFORE, you issue: service install Tomcat7(whatever) Otherwise, you just need to rename the 'w binary.
Re: Tomcat7w.exe
On Fri, Mar 7, 2014 at 1:11 PM, Leo Donahue donahu...@gmail.com wrote: I blame my lack of command line upbringing for not catching that. I love my MS-DOS command-line days/upbringing (dating back to my first computer, 1986 Tandy 1000 SX, MS-DOS 5.0, maybe, and I don't remember using Windows way back at that time). Windows people click on things. Bad habits. Actually, i hate clicking on things... I use Windows keyboard shortcuts as much as possible.
Re: tomcat7w.exe
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Markward, On 9/2/13 12:22 PM, Markward Schubert wrote: I have a short question. Does the monitor exe do anything magical when a tomcat service is started the first time with it, in contrast to starting the already installed service with the windows service manager? In fact our application would not start until we start the service from the monitor exe. Of course this is something in our app, but there must be some external parameter, being fixed by running the exe first. Monitor and servicemanagement both would be started As Administrator, but with different results. After the Monitor was run once, the box seems to be in a working mode, so after that, we can uninstall the service and delete the folder and do a reinstall and everything would work, even without calling tomcat7w.exe. This also makes debugging for me a bit hard at the moment, as the only windows server 2012 box I currently have, is in fixed mode now. Consider installing guest-VM software such as VirtualBox, VMWare, etc. with a disk snapshot taken while you are in broken mode. Then, you can play with the configuration, launching, etc. and roll-back at any time back into the broken state in order to try something else (or verify that your last effort was correct). I do this kind of thing all the time, and it is very effective. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.14 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJSJyDQAAoJEBzwKT+lPKRYoOwP/RcwIXqcHt6LoGk5Obnw42k3 /OfmNLATPVaAkvd8MTzQAM4GVJinnQjziSYPMNZqHy/trOjpuGk7tQI++NxsTnv5 VhvxUUQ++uX5xBad1E6QwA3D0NScAAvYIS4Z27O2/w0Fe2SjYIaUcIvCBvWJk6qO CgSE65A+BCE4OAoavzsDgp3aqNZlQhxlPjYaot2mGREff4Sbh1EkNW1DDB9z29ug qavBD+sCf0NonOO2p7EGZbTkABCAW1InRIz630RvF1UW26Q6x9e0wCQlrL1G7HsV JbRue06slztIIQsI7h9hnL28f/nKUrZb/5hZrV24UjUUhI3lyiQwn3uuqRnZKw7a WUMwhaLGnMFBczFsdPqqkd7duZ/wlJi8hm0nNHPotBhOWQ7mXZaUz1fMGecasalO gwmRTOk/BSUDUJcDVuLItT2bn6t6UO58THqo7UvzS+jhBEABiLL/A+YytdRQVViE AOZJwXlbWTbRdIFwgmssOD7mRniFQWHmNA3sUTbq8yVtfN+q9z6R3AHXqMvqSPsn IGGVJ25FzFtev5axnKvyGgfI8R68ha6tXPd+ZlLtxQ2gfa+xB+BexhvnDSYlPZ77 PSpYj4UlwuHm/aMnB3ySSh0QEcbCS1aCwdosQBLgbKWD40zD9Cxlt+Z86OAA0YGK mNe4jk53U8EL/7Eu5jJB =4PjX -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat7w.exe
Christopher, On 9/2/13 12:22 PM, Markward Schubert wrote: I have a short question. Does the monitor exe do anything magical when a tomcat service is started the first time with it, in contrast to starting the already installed service with the windows service manager? In fact our application would not start until we start the service from the monitor exe. Of course this is something in our app, but there must be some external parameter, being fixed by running the exe first. Monitor and servicemanagement both would be started As Administrator, but with different results. After the Monitor was run once, the box seems to be in a working mode, so after that, we can uninstall the service and delete the folder and do a reinstall and everything would work, even without calling tomcat7w.exe. This also makes debugging for me a bit hard at the moment, as the only windows server 2012 box I currently have, is in fixed mode now. Consider installing guest-VM software such as VirtualBox, VMWare, etc. with a disk snapshot taken while you are in broken mode. Then, you can play with the configuration, launching, etc. and roll-back at any time back into the broken state in order to try something else (or verify that your last effort was correct). I do this kind of thing all the time, and it is very effective. Thanks a lot for the advice, also to you other folks! I thought about using some vm-boxes, but we decided to not invest further into this issue at the moment. If this happens again in some setup, I will digg into the problem again and will report, if I have any new information or a solution. Regards, Markward
Re: tomcat7w.exe
On 9/2/2013 12:22 PM, Markward Schubert wrote: I have a short question. Does the monitor exe do anything magical when a tomcat service is started the first time with it, in contrast to starting the already installed service with the windows service manager? In fact our application would not start until we start the service from the monitor exe. Of course this is something in our app, but there must be some external parameter, being fixed by running the exe first. Did you maybe modify some of the Java parameters through tomcat7w? It can do more than just start and stop the service; it can also modify the service startup parameters. HTH! Monitor and servicemanagement both would be started As Administrator, but with different results. After the Monitor was run once, the box seems to be in a working mode, so after that, we can uninstall the service and delete the folder and do a reinstall and everything would work, even without calling tomcat7w.exe. This also makes debugging for me a bit hard at the moment, as the only windows server 2012 box I currently have, is in fixed mode now. Any help is very much appreciated! Regards, Markward - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat7w.exe
Hi David, well my colleagues claimed, they did not change any parameter, wich I have to believe until I create a fresh windows 2012 image to test myself, but if they were wrong and they DID CHANGE something, would this not be reset, as soon as we uninstall the service with the service.bat? As far as I understand, these settings, being managed by the tomcat7w.exe stick to a specific windows service and would be lost as soon as I remove the service. Or are there any parameters, manipulating the OS' settings? The funny thing is in fact, that after a complete uninstall subsequent installs works from then on. Markward 2013/9/2 David Kerber dcker...@verizon.net On 9/2/2013 12:22 PM, Markward Schubert wrote: I have a short question. Does the monitor exe do anything magical when a tomcat service is started the first time with it, in contrast to starting the already installed service with the windows service manager? In fact our application would not start until we start the service from the monitor exe. Of course this is something in our app, but there must be some external parameter, being fixed by running the exe first. Did you maybe modify some of the Java parameters through tomcat7w? It can do more than just start and stop the service; it can also modify the service startup parameters. HTH! Monitor and servicemanagement both would be started As Administrator, but with different results. After the Monitor was run once, the box seems to be in a working mode, so after that, we can uninstall the service and delete the folder and do a reinstall and everything would work, even without calling tomcat7w.exe. This also makes debugging for me a bit hard at the moment, as the only windows server 2012 box I currently have, is in fixed mode now. Any help is very much appreciated! Regards, Markward --**--**- To unsubscribe, e-mail: users-unsubscribe@tomcat.**apache.orgusers-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat7w.exe
Please do not top post. It makes it difficult to follow the flow of the conversation. 2013/9/2 David Kerber dcker...@verizon.net On 9/2/2013 12:22 PM, Markward Schubert wrote: I have a short question. Does the monitor exe do anything magical when a tomcat service is started the first time with it, in contrast to starting the already installed service with the windows service manager? In fact our application would not start until we start the service from the monitor exe. Of course this is something in our app, but there must be some external parameter, being fixed by running the exe first. Did you maybe modify some of the Java parameters through tomcat7w? It can do more than just start and stop the service; it can also modify the service startup parameters. HTH! Monitor and servicemanagement both would be started As Administrator, but with different results. After the Monitor was run once, the box seems to be in a working mode, so after that, we can uninstall the service and delete the folder and do a reinstall and everything would work, even without calling tomcat7w.exe. This also makes debugging for me a bit hard at the moment, as the only windows server 2012 box I currently have, is in fixed mode now. Any help is very much appreciated! Regards, Markward Markward Schubert wrote: Hi David, well my colleagues claimed, they did not change any parameter, wich I have to believe until I create a fresh windows 2012 image to test myself, but if they were wrong and they DID CHANGE something, would this not be reset, as soon as we uninstall the service with the service.bat? As far as I understand, these settings, being managed by the tomcat7w.exe stick to a specific windows service and would be lost as soon as I remove the service. Or are there any parameters, manipulating the OS' settings? The funny thing is in fact, that after a complete uninstall subsequent installs works from then on. And hi. I do not know if this is the explanation to your particular issue, but consider the following : 1) what an uninstall procedure really removes and doesn't remove, is one of these Windows mysteries that are only accessible to wizards of the 7th circle, and mere mortals like you and I can only ever hope to wonder at the results. 2) when you/they initially installed the Service, was it installed so that the service would run under the LocalService (or LocalSystem) special account, or was it installed so that the service would run under another user-id ? If it was installed to run under another user-id, then one of the things that would happen in the background, is that this other user-id would have auto-magically received the permission to run as a service on the local machine, which is not granted to mere mortal users. And this would not un-happen auto-magically when you remove Tomcat from the machine. That is just an example of one of the things which are not symmetrical between installing and de-installing. There are probably a lot more. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org