Windows service and multiple instances
Hi, I've read enough about having multiple tomcat instances. However when using windows, the installer won't create a second windows service for starting and stopping the second tomcat installation. Has anyone have a solution/suggestion for this? Regards, Wouter de Vaal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Windows service and multiple instances
You need to install the second service manually. How you do this depends on which version of Tomcat you're running. Chris -Original Message- From: Wouter De Vaal [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 01, 2004 10:38 AM To: [EMAIL PROTECTED] Subject: Windows service and multiple instances Hi, I've read enough about having multiple tomcat instances. However when using windows, the installer won't create a second windows service for starting and stopping the second tomcat installation. Has anyone have a solution/suggestion for this? Regards, Wouter de Vaal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Windows service and multiple instances
Wouter De Vaal wrote: Hi, I've read enough about having multiple tomcat instances. However when using windows, the installer won't create a second windows service for starting and stopping the second tomcat installation. Has anyone have a solution/suggestion for this? cd %TOMCAT1_HOME%\bin service install Instance1 cd %TOMCAT2_HOME%\bin service install Instance2 MT. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Windows service and multiple instances
Hi, You can use the service.bat wrapper to install as many copies of the Tomcat windows service as you'd like. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Wouter De Vaal [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 01, 2004 10:38 AM To: [EMAIL PROTECTED] Subject: Windows service and multiple instances Hi, I've read enough about having multiple tomcat instances. However when using windows, the installer won't create a second windows service for starting and stopping the second tomcat installation. Has anyone have a solution/suggestion for this? Regards, Wouter de Vaal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Windows service and multiple instances
that not entirely the case, as the service.bat examines CATALINA_HOME. if the env variable is set to 1 installation, teh 2nd service install will use that value also. modify service.bat in each installation. you could try remarking out this part rem if not %CATALINA_HOME% == goto gotHome which will force the wrapper to use the current directory, Allistair. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 01 December 2004 15:48 To: Tomcat Users List; Wouter De Vaal Subject: RE: Windows service and multiple instances Hi, You can use the service.bat wrapper to install as many copies of the Tomcat windows service as you'd like. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Wouter De Vaal [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 01, 2004 10:38 AM To: [EMAIL PROTECTED] Subject: Windows service and multiple instances Hi, I've read enough about having multiple tomcat instances. However when using windows, the installer won't create a second windows service for starting and stopping the second tomcat installation. Has anyone have a solution/suggestion for this? Regards, Wouter de Vaal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Service and Multiple Instances
Hi, QM's thoughts are valid and worth consideration. I'd add that IMHO this approach is a waste of time. The best upgrade path for the long term is to keep your webapp as one WAR file in one place, and have versioning on that file in your source code control system. But that's just my two cents. Tomcat does support multiple Services in one server.xml: it's only Server, the root element, that's one per, well, server ;) Yoav Shapira http://www.yoavshapira.com -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 20, 2004 8:16 PM To: Tomcat Users List Subject: Re: Service and Multiple Instances On Wed, Oct 20, 2004 at 10:02:57AM -0400, Kyle Adams wrote: : I'd like to do the same thing with Tomcat using CATALINA_BASE, like : so: : : CATALINA_HOME - */apps/tomcat : CATALINA_BASE - */data/tomcat/${service.name} : [snip] : Would there be : times when you'd want more than one Service defined in a server.xml? None that I can think of. (Is that even permitted?) : Any thoughts on this directory structure in general? Yes: separate CATALINA_HOME from CATALINA_BASE. You'll have a cleaner upgrade and management path that way, not to mention your directory structure as-is implies the webapps are bound to Tomcat (which isn't necessarily true). There are other benefits, too. I use something along these lines: ## Tomcat binaries /opt/./tomcat-version ## latest Tomcat, symlink to tomcat-version; ## referenced by per-instance scripts as CATALINA_HOME /opt/./tomcat ## per-app dir, aka CATALINA_BASE. Each of these gets its own ## server.xml, work dir, etc. /somewhere/else/webapps/app1/ /somewhere/else/webapps/app1/bin ## management scripts /somewhere/else/webapps/app1/webapps ## web apps /somewhere/else/webapps/app1/ ## etc, etc, etc This structure lets me migrate between several Tomcat versions without touching the app itself, except perhaps the definition of CATALINA_HOME in the start script. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Service and Multiple Instances
BACKGROUND: We're investigating migration from WebLogic 7 to Tomcat 5. As of WebLogic 7, BEA separates out configuration info, their equivalent of webapps, and other data into a separate directory, much like setting CATALINA_BASE to a different directory does for Tomcat. BEA did this to isolate patches and upgrades to the application code (in one directory) from the web apps running on the server (in the other directory). The nice thing is that this approach fit right in with the directory standards for our servers, which separates out the application (the server), the data (the webapps in this case), and the logs into three separate directories: */apps/*, */data/*, */logs/*. THE SETUP: I'd like to do the same thing with Tomcat using CATALINA_BASE, like so: CATALINA_HOME - */apps/tomcat CATALINA_BASE - */data/tomcat/${service.name} I'd use the Service name=* attribute to differentiate between different Tomcat instances. THE PROBLEM: The only problem I can see with that approach is that it would limit me to one Service per instance. Is that even problem? Would there be times when you'd want more than one Service defined in a server.xml? Any thoughts on this directory structure in general? Thanks, Kyle _ Kyle Adams | Java Developer | Gordon Food Service | 616-717-6162 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]