Problably a simple problem - two instances of tomcat running at the same time
This is probably a simple question to answer, but as I haven't found very much material on setting up and running two separate instances of tomcat on one machine, I thought I'd put it to the list. We are running Apache 2.0.48 mod-jk2, and Tomcat 5.0.28 on Red Hat 9. We'd like to set up two instances of tomcat 5.0 running simultaneously on one computer, so that we have separate environments to work with. I followed some instructions on setting up tomcat 4.0 so it could run two instances simultaneously, setting the $CATALINA_BASE variable and creating two startup scripts and splitting up the directory tree. However, when I start up one instance of tomcat and then attempted to start the second instance, it would appear to start and then shut down silently. This indicates to me that there is something going on, like tomcat is attempting to lock on to a unix socket or port thats already in use by the first tomcat instance, or using files that the first tomcat instance is using. I've gone throught the server.xml files and the worker2.properties files to make sure that the two tomcat instances are not using the same port to communicate with the apache server. I don't know if I have everything configured correctly however, especially in the workers2.properties file yet. I'm wondering if anyone else has succesfully set up two simultaneous instances of tomcat 5.0 and if the workers2.properties file would look almost the same as one for tomcat 4. Any help will be apreciated, and I will post my current configuration files on request. Patricia
Re: Problably a simple problem - two instances of tomcat running at the same time
On Sun, 12 Sep 2004 14:53:43 -0600, Patricia Swarbrick [EMAIL PROTECTED] wrote: I've gone throught the server.xml files and the worker2.properties files to make sure that the two tomcat instances are not using the same port to communicate with the apache server. I think you're on the right track regarding ports. You need to also make sure that the 2 server.xml files aren't specifiying duplicate ports anywhere else - not just for communicating to Apache. An out-of-the-box Tomcat server.xml specifies a number of ports besides the jk2 connector. Especially make sure all the http connectors are different (or commented out or deleted, since you shouldn't need them). It's very common to run multiple Tomcat instances on 1 server. An easy way to tell whether a port conflict is causing your problem is to shut down the one that's working and then start up the failing one by itself. If it now works, you can be pretty sure it's a port conflict. There should be an error message somewhere - if not in a log file then in stdout or stderr. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
documentation on installing two instances of tomcat
Is there any documentation on running two instances of tomcat on the same Win2000 server and same IP but different ports? Joon Yoo Systems Administrator Ladas Parry LLC 26 West 61st Street New York, NY 10023 tel: (212) 708-1854 fax: (212) 246-8959
RE: documentation on installing two instances of tomcat
Hi, Here's some: - Download tomcat .zip - Unpack first installation to a directory of your choice, ports will be 8080 and 8005 by default - Unpack second installation to a different directory of your choice - Edit conf/server.xml of the second installation to something other than 8005 and 8080, say 8006 and 8081. - That's it. Yoav Shapira Millennium Research Informatics -Original Message- From: Yoo, Joon [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 10:55 AM To: ([EMAIL PROTECTED]) Subject: documentation on installing two instances of tomcat Is there any documentation on running two instances of tomcat on the same Win2000 server and same IP but different ports? Joon Yoo Systems Administrator Ladas Parry LLC 26 West 61st Street New York, NY 10023 tel: (212) 708-1854 fax: (212) 246-8959 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: documentation on installing two instances of tomcat
You could also check out item (4) in RUNNING.txt under your Tomcat install: Advanced Configuration - Multiple Tomcat 5 Instances. Benjamin J. Armintor Operations Systems Specialist ITS-Systems: Mainframe Group University of Texas - Austin tele: (512) 232-6562 email: [EMAIL PROTECTED] -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 10:03 AM To: Tomcat Users List Subject: RE: documentation on installing two instances of tomcat Hi, Here's some: - Download tomcat .zip - Unpack first installation to a directory of your choice, ports will be 8080 and 8005 by default - Unpack second installation to a different directory of your choice - Edit conf/server.xml of the second installation to something other than 8005 and 8080, say 8006 and 8081. - That's it. Yoav Shapira Millennium Research Informatics -Original Message- From: Yoo, Joon [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 10:55 AM To: ([EMAIL PROTECTED]) Subject: documentation on installing two instances of tomcat Is there any documentation on running two instances of tomcat on the same Win2000 server and same IP but different ports? Joon Yoo Systems Administrator Ladas Parry LLC 26 West 61st Street New York, NY 10023 tel: (212) 708-1854 fax: (212) 246-8959 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Two instances of Tomcat
Remember that with 2 Tomcats, you need DOUBLE the memory. You may be attempting to use more memory then you have in the box. Use 'top' to watch the memory utilization and see if you are filling up on memory to create the spreadsheet thingy. You can control the memory usage of Tomcat using the -Xmx and -Xms to control heap size. The settings you list would mean that you would need, at least, 1.1gig of memory in the box to utilize both Tomcats to their potential. HTH, Ben Ricker On Tue, 2002-12-10 at 17:19, Mohbe, Sameer wrote: Hi Folks , Need some urgent help regarding setting up two instances of Tomcat .Here goes the details .We used to have Apache 1.3.23 + Tomcat 4.0.2 configuration running on Red hat 7.0.We were running two web apps under Single instance of tomcat. To make them independent we are moving towards Two instances of tomcat .So we installed second instance residing in /opt/tomcat2 directory ,first being in the directory called /opt/tomcat.Changes on server.xml were made for two different port nos.Now Everything works ok till the point when we try to generate a report in second web application it gives a Java.lang Out of Memory error.This Final report feature uses the Formula 1 Software which is a e-spreadsheet.Can any one please tell me what all settings are required for the TWO instances of tomcat.do we need TWO copies of Worker.properties files (Coz we have only one ) and if yes then what changes need to be done .Is the Java error related to JVM memory settings .We have set TOMCAT_OPTS in /etc/profile for -Xms64 and -Xmx512. Regards Sameer -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Ben Ricker [EMAIL PROTECTED] Wellinx.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Two instances of Tomcat with Formula 1 Software(E-spreadsheet)
Hi Folks, Thanks to Ben and John on their inputs,But second instance of Tomcat(tomcat2) still errors out when it tries to create a report with Formula 1 software with Java.Lang.Out.Of.Memory error --though i increased the Heap size upto upper limit of 1 GB.The system has total 2GB of Memory .Everything else in the application in tomcat2 instance works fine.But that Report part is a Crucial part of the Apps. Is anyone using Two Instances of Tomcat on the same server with Formula1 s/w.Guys any help on this will be greatly APPRECIATED. Configuration : Red Hat Linux 7.0 Apache 1.3.12 Tomcat 4.0.4 -Two instances i.e tomcat and tomcat2 Regards Sameer -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Two instances of Tomcat with Formula 1 Software(E-spreadsheet)
On Wednesday 11 December 2002 23:38, Mohbe, Sameer wrote: Thanks to Ben and John on their inputs,But second instance of Tomcat(tomcat2) still errors out when it tries to create a report with Formula 1 software with Java.Lang.Out.Of.Memory error --though i increased the Heap size upto upper limit of 1 GB.The system has total 2GB of Memory Tim Funk wrote on this list on dec 05 2002: === OutOfMemoryError is a bad error description in java. It can mean any of the following: - Actually ran out of memory - Hit max # of threads allowed to run - Ran out of file handles - File handles include open files AND sockets - (?) Your JVM is bigger than the max process size allowed - Other things I don;t know There are tons of messages about dealing with all the above in the archives or google. === Regards, Cees. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Two instances of Tomcat with Formula 1 Software(E-spreadsheet)
Sounds to me like that application isn't a very well-behaved application. We have many Tomcat instances (more than 10) on 2GB of RAM with no problems. Frankly, with Dell selling IDE-based servers around the $400 mark (tower, not rack), the easiest and cheapest thing to do might be to just buy another piece of hardware and throw some RAM at it...for less than 10 hours of time at $100/hour, you can be done with this. Especially if you have no control over this other application's behavior. If you've spent more than 6 or 7 hours trying to fix this, I know which choice I would make. John -Original Message- From: Cees van de Griend [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 11, 2002 5:55 PM To: Tomcat Users List Subject: Re: Two instances of Tomcat with Formula 1 Software(E-spreadsheet) On Wednesday 11 December 2002 23:38, Mohbe, Sameer wrote: Thanks to Ben and John on their inputs,But second instance of Tomcat(tomcat2) still errors out when it tries to create a report with Formula 1 software with Java.Lang.Out.Of.Memory error --though i increased the Heap size upto upper limit of 1 GB.The system has total 2GB of Memory Tim Funk wrote on this list on dec 05 2002: === OutOfMemoryError is a bad error description in java. It can mean any of the following: - Actually ran out of memory - Hit max # of threads allowed to run - Ran out of file handles - File handles include open files AND sockets - (?) Your JVM is bigger than the max process size allowed - Other things I don;t know There are tons of messages about dealing with all the above in the archives or google. === Regards, Cees. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.419 / Virus Database: 235 - Release Date: 11/13/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.419 / Virus Database: 235 - Release Date: 11/13/2002 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Two instances of Tomcat with Formula 1 Software(E-spreadsheet)
I haven't any experience with this particular scenario, but I'm not going to let that stop me! I guess the two instances must be running in separate java processes (and that's probably fine, since I seem to be able to start up two JDevelopers at once!), so a) Does Tomcat2 give the same failure if Tomcat1 isn't running? Or if you try and run the report in Tomcat2 first, does Tomcat1 then fail? b) Is there any chance they're configured differently? Does this formula1 thing have a config file or setting that you've forgotten to copy across? Maybe a spill-to-disk / virtual-memory setting? Do any relative paths in both instances resolve correctly? c) Is there any chance that they're conflicting when trying to access the same (absolute) resource? Files? Databases? Okay, I'll stop helping and get some sleep... Mike. - Original Message - From: Mohbe, Sameer [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Cc: Mohbe, Sameer [EMAIL PROTECTED] Sent: Wednesday, December 11, 2002 10:38 PM Subject: Two instances of Tomcat with Formula 1 Software(E-spreadsheet) Hi Folks, Thanks to Ben and John on their inputs,But second instance of Tomcat(tomcat2) still errors out when it tries to create a report with Formula 1 software with Java.Lang.Out.Of.Memory error --though i increased the Heap size upto upper limit of 1 GB.The system has total 2GB of Memory .Everything else in the application in tomcat2 instance works fine.But that Report part is a Crucial part of the Apps. Is anyone using Two Instances of Tomcat on the same server with Formula1 s/w.Guys any help on this will be greatly APPRECIATED. Configuration : Red Hat Linux 7.0 Apache 1.3.12 Tomcat 4.0.4 -Two instances i.e tomcat and tomcat2 Regards Sameer -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Two instances of Tomcat
Hi Folks , Need some urgent help regarding setting up two instances of Tomcat .Here goes the details .We used to have Apache 1.3.23 + Tomcat 4.0.2 configuration running on Red hat 7.0.We were running two web apps under Single instance of tomcat. To make them independent we are moving towards Two instances of tomcat .So we installed second instance residing in /opt/tomcat2 directory ,first being in the directory called /opt/tomcat.Changes on server.xml were made for two different port nos.Now Everything works ok till the point when we try to generate a report in second web application it gives a Java.lang Out of Memory error.This Final report feature uses the Formula 1 Software which is a e-spreadsheet.Can any one please tell me what all settings are required for the TWO instances of tomcat.do we need TWO copies of Worker.properties files (Coz we have only one ) and if yes then what changes need to be done .Is the Java error related to JVM memory settings .We have set TOMCAT_OPTS in /etc/profile for -Xms64 and -Xmx512. Regards Sameer -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Two instances of Tomcat
To use multiple instances of Tomcat, you don't need to install it in a different directory. You use CATALINA_HOME to represent Tomcat's main installation (like /usr/local/tomcat) and then you use CATALINA_BASE to represent the Catalina home for each of your Tomcat instances. There are others on the list that know more about JVM memory settings, but I wanted to point out that you don't need a completely separate install of Tomcat to run multiple instances. One of my servers has about 15 Tomcat instances running, but Tomcat is only installed once. John -Original Message- From: Mohbe, Sameer [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 10, 2002 6:19 PM To: '[EMAIL PROTECTED]' Subject: Two instances of Tomcat Hi Folks , Need some urgent help regarding setting up two instances of Tomcat .Here goes the details .We used to have Apache 1.3.23 + Tomcat 4.0.2 configuration running on Red hat 7.0.We were running two web apps under Single instance of tomcat. To make them independent we are moving towards Two instances of tomcat .So we installed second instance residing in /opt/tomcat2 directory ,first being in the directory called /opt/tomcat.Changes on server.xml were made for two different port nos.Now Everything works ok till the point when we try to generate a report in second web application it gives a Java.lang Out of Memory error.This Final report feature uses the Formula 1 Software which is a e-spreadsheet.Can any one please tell me what all settings are required for the TWO instances of tomcat.do we need TWO copies of Worker.properties files (Coz we have only one ) and if yes then what changes need to be done .Is the Java error related to JVM memory settings .We have set TOMCAT_OPTS in /etc/profile for -Xms64 and -Xmx512. Regards Sameer -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.419 / Virus Database: 235 - Release Date: 11/13/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.419 / Virus Database: 235 - Release Date: 11/13/2002 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: two instances of tomcat (in diferent ports) on the same machi ne
We install different versions of tomcat like this: /usr/local/java/tomcat-4.0.3 /usr/local/java/tomcat-4.1.10 For each site we have something like this: /www/online/site /log dirctory for the log file /conf web.xml server.xml and other files that contain the site specific setup for tomcat (tailored versions of the files that are provided by tomcat) make shure that the combination of IP and port are unique for each instance of tomcat. ... /work Directory where tomcat stores the genared files and classes /webapps Directories for the contexts /bin start.sh Script that calls the tomcat version that we want to use for this site with the environment for this site: JAVA_HOME=/usr/local/java/jdk/sun1.3.1 CATALINA_HOME=/usr/local/java/tomcat-4.0.3 CATALINA_BASE=/www/online/site -Ursprüngliche Nachricht- Von: Ben Ricker [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 19. September 2002 23:58 An: 'Tomcat Users List' Betreff: RE: two instances of tomcat (in diferent ports) on the same machi ne On Thu, 2002-09-19 at 14:52, Turner, John wrote: Yes, this is absolutely possible. I have 13 instances (Tomcat 3.1) running on a single server at the moment. You will need a different server.xml for each, a different work directory for each, and each must be on its own connector port (whichever connector you choose to use). At least, that is how it is set up on my server. John How do you have multiple server.xmls? Do you use the same startup script? Did you use a specific How-To? Thanks, Ben Ricker Wellinx.com -Original Message- From: Christian J. Dechery [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 3:48 PM To: [EMAIL PROTECTED] Subject: two instances of tomcat (in diferent ports) on the same machine How can I achieve this? Is it possible? .:| Christian J. Dechery .:| FINEP - Depto. de Sistemas .:| [EMAIL PROTECTED] .:| (21) 2555-0332 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: two instances of tomcat (in diferent ports) on the same machi ne
Separate everything...separate startup scripts, separate classpaths, separate work directories, separate server.xml. So I have things like tomcat-host1 and tomcat-host2 startup scripts, and server-host1.xml and server-host2.xml, and work-host1 and work-host2 directories, etc. Only one CATALINA_HOME directory. Apache runs on port 80, so as long as the connector ports are kept straight (no conflicts) everything runs fine. John -Original Message- From: Ben Ricker [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 5:58 PM To: 'Tomcat Users List' Subject: RE: two instances of tomcat (in diferent ports) on the same machi ne On Thu, 2002-09-19 at 14:52, Turner, John wrote: Yes, this is absolutely possible. I have 13 instances (Tomcat 3.1) running on a single server at the moment. You will need a different server.xml for each, a different work directory for each, and each must be on its own connector port (whichever connector you choose to use). At least, that is how it is set up on my server. John How do you have multiple server.xmls? Do you use the same startup script? Did you use a specific How-To? Thanks, Ben Ricker Wellinx.com -Original Message- From: Christian J. Dechery [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 3:48 PM To: [EMAIL PROTECTED] Subject: two instances of tomcat (in diferent ports) on the same machine How can I achieve this? Is it possible? .:| Christian J. Dechery .:| FINEP - Depto. de Sistemas .:| [EMAIL PROTECTED] .:| (21) 2555-0332 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
two instances of tomcat (in diferent ports) on the samemachine
How can I achieve this? Is it possible? .:| Christian J. Dechery .:| FINEP - Depto. de Sistemas .:| [EMAIL PROTECTED] .:| (21) 2555-0332
RE: two instances of tomcat (in diferent ports) on the same machine
Yes, this is absolutely possible. I have 13 instances (Tomcat 3.1) running on a single server at the moment. You will need a different server.xml for each, a different work directory for each, and each must be on its own connector port (whichever connector you choose to use). At least, that is how it is set up on my server. John -Original Message- From: Christian J. Dechery [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 3:48 PM To: [EMAIL PROTECTED] Subject: two instances of tomcat (in diferent ports) on the same machine How can I achieve this? Is it possible? .:| Christian J. Dechery .:| FINEP - Depto. de Sistemas .:| [EMAIL PROTECTED] .:| (21) 2555-0332 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: two instances of tomcat (in diferent ports) on the samemachine
I tried that... but I get some kind of conflict with CATALINA_HOME... .:| Christian J. Dechery .:| FINEP - Depto. de Sistemas .:| [EMAIL PROTECTED] .:| (21) 2555-0332 [EMAIL PROTECTED] 09/19 4:52 pm Yes, this is absolutely possible. I have 13 instances (Tomcat 3.1) running on a single server at the moment. You will need a different server.xml for each, a different work directory for each, and each must be on its own connector port (whichever connector you choose to use). At least, that is how it is set up on my server. John -Original Message- From: Christian J. Dechery [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 3:48 PM To: [EMAIL PROTECTED] Subject: two instances of tomcat (in diferent ports) on the same machine How can I achieve this? Is it possible? .:| Christian J. Dechery .:| FINEP - Depto. de Sistemas .:| [EMAIL PROTECTED] .:| (21) 2555-0332 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: two instances of tomcat (in diferent ports) on the samemachine
We have several developers using the same Solaris machine. Each has their own install of tomcat in their home directory, and of course their own setting for CATALINA_HOME in their .profile file. We have no problems with it. - Dan I tried that... but I get some kind of conflict with CATALINA_HOME... -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: two instances of tomcat (in diferent ports) on the same machine
You have to set CATALINA_HOME for each instance. A batch/shell script can export/set parent directory ( assuming you are in bin directory ) as CATALINA_HOME and then call startup/shutdown. -- padhu Christian J. Dechery wrote: I tried that... but I get some kind of conflict with CATALINA_HOME... .:| Christian J. Dechery .:| FINEP - Depto. de Sistemas .:| [EMAIL PROTECTED] .:| (21) 2555-0332 [EMAIL PROTECTED] 09/19 4:52 pm Yes, this is absolutely possible. I have 13 instances (Tomcat 3.1) running on a single server at the moment. You will need a different server.xml for each, a different work directory for each, and each must be on its own connector port (whichever connector you choose to use). At least, that is how it is set up on my server. John -Original Message- From: Christian J. Dechery [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 3:48 PM To: [EMAIL PROTECTED] Subject: two instances of tomcat (in diferent ports) on the same machine How can I achieve this? Is it possible? .:| Christian J. Dechery .:| FINEP - Depto. de Sistemas .:| [EMAIL PROTECTED] .:| (21) 2555-0332 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: two instances of tomcat (in diferent ports) on the same machi ne
On Thu, 2002-09-19 at 14:52, Turner, John wrote: Yes, this is absolutely possible. I have 13 instances (Tomcat 3.1) running on a single server at the moment. You will need a different server.xml for each, a different work directory for each, and each must be on its own connector port (whichever connector you choose to use). At least, that is how it is set up on my server. John How do you have multiple server.xmls? Do you use the same startup script? Did you use a specific How-To? Thanks, Ben Ricker Wellinx.com -Original Message- From: Christian J. Dechery [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 3:48 PM To: [EMAIL PROTECTED] Subject: two instances of tomcat (in diferent ports) on the same machine How can I achieve this? Is it possible? .:| Christian J. Dechery .:| FINEP - Depto. de Sistemas .:| [EMAIL PROTECTED] .:| (21) 2555-0332 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: two instances of tomcat (in diferent ports) on the samemachine
On Thu, Sep 19, 2002 at 01:06:40PM -0700, Dan Lipofsky wrote: We have several developers using the same Solaris machine. Each has their own install of tomcat in their home directory, and of course their own setting for CATALINA_HOME in their .profile file. We have no problems with it. - Dan I tried that... but I get some kind of conflict with CATALINA_HOME... How to do this in the docs. You don't use CATALINE_HOME, you use CATALINA_BASE. And have your own conf, logs, temp, webapps, work under CATALINA_BASE. Mat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
SSL between two instances of tomcat
Hello, I am trying to set up a secure connection between two instances of tomcat. I need to ensure that the back instance will only take connections from the front instance. This needs to be done over a SSL. So far I have created a separate certificate for each instance and exported the public part of it to the other instance. I have also set a separate keystore for each instance and modified the server.xml file accordingly. What I would like to know is how do I tell the back tomcat to authenticate the server its passing data to (the front tomcat). I've tried to use client authentication but this simply prompts the user to submit a certificate. I'm guessing it's a setting in a security file somewhere but I've yet to find it! Thanks Ian Anderson -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Two instances of tomcat
Hi Mark, Indeed, we modified more than one line in the code, here they are : #define VERSION_STRING "Jakarta/ISAPI/1.0" replaced by : #define VERSION_STRING "Jakarta/ISAPI/1.0_bis" #define REGISTRY_LOCATION ("Software\\Apache Software Foundation\\Jakarta Isapi Redirector\\1.0") replaced by : #define REGISTRY_LOCATION ("Software\\Apache Software Foundation\\Jakarta Isapi Redirector\\1.0_bis") static char extension_uri[INTERNET_MAX_URL_LENGTH] = "/jakarta/isapi_redirect.dll"; replaced by : static char extension_uri[INTERNET_MAX_URL_LENGTH] = "/jakarta_bis/isapi_redirect_bis.dll"; You then need to recompile the sources and go to the windows registry to add entries for the recompiled version. Please notice that you will need to use 1.0_bis as version number (as used in the above example). In IIS, you will also need to create an additional virtual directory called jakarta_bis and you will need to make active as filter the file isapi_redirect_bis.dll (the jakarta_bis virtual directory must point to the physical folder that contains the isapi_redirect_bis.dll file). Compare to the iis_redirect.regauto file generated by tomcat (this file is automatically generated by tomcat 3.2.1, it allow you to automate the windows registration of the default instance of the isapi filter), your registry entries should look like this : [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\1.0_bis] "extension_uri"="/jakarta_bis/isapi_redirect_bis.dll" "log_file"="C:\\jakarta-tomcat2\\logs\\iis_redirect_bis.log" "log_level"="debug" "worker_file"="C:\\jakarta-tomcat2\\conf\\workers.properties" "worker_mount_file"="C:\\jakarta-tomcat2\\conf\\uriworkermap.properties" Don't hesitate to contact me if you need further information, Etienne -Original Message- From: Mark Parish [mailto:[EMAIL PROTECTED]] Sent: mardi 23 janvier 2001 6:41 To: [EMAIL PROTECTED] Subject: Two instances of tomcat Hi Etienne, Thanks for your excellent help, however am still having problem which I think is close to being solved. You might be able to sort it out. Have managed to compile the source for the isapi redirect and only discovered one place to change the registry key from 1.0 to 2.0, and noticed that you said there were (multiple ???) lines referring to reg keys, have I missed one ? Also when I start the second tomcat service , a file iis_redirect.regauto is created as per attached file. it looks incorrect because it is still saying 1.0 for reg key, yet the other values are correct, I am certian I am compiling the source ok but must have missed a reg entry in the source somewhere... What do your iis_redirect.regauto files look like for each instance of tomcat ? Do they specify different reg values because mine do not and I think they should. Also do you know what this file is used for ? Thanks again for your help ... Many cheers Mark Mark Parish Network Manager Elizabeth College Email : [EMAIL PROTECTED] Land Mail : 256 Elizabeth Street, Hobart Tasmania 7000 Phone : (03) 6235 6519 Fax : (03) 6231 2242 Web : http://www.eliz.tased.edu.au - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]