Re: Two Tomcat installations on one server in Windows 2K3
Hi, as far as I know you can't run the installer twice. To run several identical instances of tomcat you can use the information of the follwoing url: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/RUNNING.txt It helped me a lot. Tino footh wrote: I have a server with several IP addresses and I'd like to have two separate instances of Tomcat listening on two of the IP addresses. I want both of these instances to be a separate service as well. I already had one Tomcat installation on the server and I attempted to run the installer again under a different directory. Then I modified the service.bat file to give the service a different name and I tried to install this new instance. However, I received an error. Additionally, it seems both installations point to the same registry configuration entries which has directory-specific values (pointing the the directory of the last installion of Tomcat I performed). So, I'm thinking I'm not doing this the right way. I read the RUNNING.txt file and searched the mailing list but I can't seem to find information specific to what I need to do. Could someone possibly offer a suggestion for setting this up? Regards, JF __ Do you Yahoo!? Yahoo! Mail - 250MB free storage. Do more. Manage less. http://info.mail.yahoo.com/mail_250 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Two Tomcat installations on one server in Windows 2K3
Thanks, I already read that but didn't quite understand how I could use that information for my setup. First off, I want to run Tomcat as a service and that seems to talk about running multiple instances with the startup script. Second, item number 4 more or less says for multiple instances you can use CATALINA_BASE as an argument but doesn't really explain CATALINA_BASE. Is it the install directory of Tomcat? Or is it a directory where I have another set up webapps and context configuration files. I can't quite visualize what it means to use CATALINA_BASE and how to set up the directories. --- Tino Schöllhorn [EMAIL PROTECTED] wrote: Hi, as far as I know you can't run the installer twice. To run several identical instances of tomcat you can use the information of the follwoing url: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/RUNNING.txt It helped me a lot. Tino footh wrote: I have a server with several IP addresses and I'd like to have two separate instances of Tomcat listening on two of the IP addresses. I want both of these instances to be a separate service as well. I already had one Tomcat installation on the server and I attempted to run the installer again under a different directory. Then I modified the service.bat file to give the service a different name and I tried to install this new instance. However, I received an error. Additionally, it seems both installations point to the same registry configuration entries which has directory-specific values (pointing the the directory of the last installion of Tomcat I performed). So, I'm thinking I'm not doing this the right way. I read the RUNNING.txt file and searched the mailing list but I can't seem to find information specific to what I need to do. Could someone possibly offer a suggestion for setting this up? Regards, JF __ Do you Yahoo!? Yahoo! Mail - 250MB free storage. Do more. Manage less. http://info.mail.yahoo.com/mail_250 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail - now with 250MB free storage. Learn more. http://info.mail.yahoo.com/mail_250 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Two Tomcat installations on one server in Windows 2K3
footh wrote: [running more than one Tomcat on a single machine] First off, I want to run Tomcat as a service and that seems to talk about running multiple instances with the startup script. It is likely that you want to use one version of Tomcat to run your web sites. So, I assume you have downloaded a distribution and put it somewhere on your server. This location is called CATALINA_HOME. For a single instance CATALINA_HOME = CATALINA_BASE, i.e. no need to care about. Second, item number 4 more or less says for multiple instances you can use CATALINA_BASE as an argument but doesn't really explain CATALINA_BASE. Is it the install directory of Tomcat? Or is it a directory where I have another set up webapps and context configuration files. I can't quite visualize what it means to use CATALINA_BASE and how to set up the directories. If you want to have more than one operating system service, you must copy certain parts (mostly configuration files) from your CATALINA_HOME directory to a new location. This new directory is called CATALINA_BASE. A CATALINA_BASE is a directory containing configuration files etc. that are individual to an OS service. The executable files do not need to be copied since they will be re-used. You need to call service.bat with appropriate parameters (CATALINA_BASE is the most important one) in order to install an OS service. The init-scripts (Unix) or registry settings (for Windows look around at HKEY_LOCAL_MACHINE\System\CurrentControlSet\SERVICES\Apache Tomcat) for the service always call the same tomcat executables. The service parameters determine wich config files to use. So for each Tomcat instance, you need to change the server.xml in the specific CATALINA_BASE to have your services listening to different IP addresses and/or TCP ports (same changes for shutdown port and AJP connectors necessary). I hope this helps. If it is not sufficient, I could provide you with a screenshot of my directory layout. Wolfgang - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Two Tomcat installations on one server in Windows 2K3
Update - the problem I had with installing the second service is that I was first using a dash (-) in the name, and then an underscore (_) both of which were giving a strange error. Then, I hadn't realized that you can only have one port 80 per NIC so that was obviously causing problems for a while. So, I got the second service installed and I changed the configure start menu item to point to the new service. All the directories were correctly pointing to the new install directory (and a new registry entry was created for the new Tomcat service). Things seems to be working fine now. --- footh [EMAIL PROTECTED] wrote: Thanks, I already read that but didn't quite understand how I could use that information for my setup. First off, I want to run Tomcat as a service and that seems to talk about running multiple instances with the startup script. Second, item number 4 more or less says for multiple instances you can use CATALINA_BASE as an argument but doesn't really explain CATALINA_BASE. Is it the install directory of Tomcat? Or is it a directory where I have another set up webapps and context configuration files. I can't quite visualize what it means to use CATALINA_BASE and how to set up the directories. --- Tino Schöllhorn [EMAIL PROTECTED] wrote: Hi, as far as I know you can't run the installer twice. To run several identical instances of tomcat you can use the information of the follwoing url: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/RUNNING.txt It helped me a lot. Tino footh wrote: I have a server with several IP addresses and I'd like to have two separate instances of Tomcat listening on two of the IP addresses. I want both of these instances to be a separate service as well. I already had one Tomcat installation on the server and I attempted to run the installer again under a different directory. Then I modified the service.bat file to give the service a different name and I tried to install this new instance. However, I received an error. Additionally, it seems both installations point to the same registry configuration entries which has directory-specific values (pointing the the directory of the last installion of Tomcat I performed). So, I'm thinking I'm not doing this the right way. I read the RUNNING.txt file and searched the mailing list but I can't seem to find information specific to what I need to do. Could someone possibly offer a suggestion for setting this up? Regards, JF __ Do you Yahoo!? Yahoo! Mail - 250MB free storage. Do more. Manage less. http://info.mail.yahoo.com/mail_250 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail - now with 250MB free storage. Learn more. http://info.mail.yahoo.com/mail_250 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The all-new My Yahoo! - Get yours free! http://my.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Two Tomcat installations on one server in Windows 2K3
Thanks for the response Wolfgang...this helps a lot. I did finally get this to work by running the installer a second time and installing in a different directory. I mentioned this in a post that I wrote before I read your post. Basically the problem I was having was using an improper name for the service. However, this new service does point to the libraries in the new install directory as opposed to one single install. I might try doing what you described and get everything to run with one main home but for now, I'm happy that I finally have it working. --- Wolfgang Hackl [EMAIL PROTECTED] wrote: footh wrote: [running more than one Tomcat on a single machine] First off, I want to run Tomcat as a service and that seems to talk about running multiple instances with the startup script. It is likely that you want to use one version of Tomcat to run your web sites. So, I assume you have downloaded a distribution and put it somewhere on your server. This location is called CATALINA_HOME. For a single instance CATALINA_HOME = CATALINA_BASE, i.e. no need to care about. Second, item number 4 more or less says for multiple instances you can use CATALINA_BASE as an argument but doesn't really explain CATALINA_BASE. Is it the install directory of Tomcat? Or is it a directory where I have another set up webapps and context configuration files. I can't quite visualize what it means to use CATALINA_BASE and how to set up the directories. If you want to have more than one operating system service, you must copy certain parts (mostly configuration files) from your CATALINA_HOME directory to a new location. This new directory is called CATALINA_BASE. A CATALINA_BASE is a directory containing configuration files etc. that are individual to an OS service. The executable files do not need to be copied since they will be re-used. You need to call service.bat with appropriate parameters (CATALINA_BASE is the most important one) in order to install an OS service. The init-scripts (Unix) or registry settings (for Windows look around at HKEY_LOCAL_MACHINE\System\CurrentControlSet\SERVICES\Apache Tomcat) for the service always call the same tomcat executables. The service parameters determine wich config files to use. So for each Tomcat instance, you need to change the server.xml in the specific CATALINA_BASE to have your services listening to different IP addresses and/or TCP ports (same changes for shutdown port and AJP connectors necessary). I hope this helps. If it is not sufficient, I could provide you with a screenshot of my directory layout. Wolfgang - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Send holiday email and support a worthy cause. Do good. http://celebrity.mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Two Tomcat installations on one server in Windows 2K3
I have a server with several IP addresses and I'd like to have two separate instances of Tomcat listening on two of the IP addresses. I want both of these instances to be a separate service as well. I already had one Tomcat installation on the server and I attempted to run the installer again under a different directory. Then I modified the service.bat file to give the service a different name and I tried to install this new instance. However, I received an error. Additionally, it seems both installations point to the same registry configuration entries which has directory-specific values (pointing the the directory of the last installion of Tomcat I performed). So, I'm thinking I'm not doing this the right way. I read the RUNNING.txt file and searched the mailing list but I can't seem to find information specific to what I need to do. Could someone possibly offer a suggestion for setting this up? Regards, JF __ Do you Yahoo!? Yahoo! Mail - 250MB free storage. Do more. Manage less. http://info.mail.yahoo.com/mail_250 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]