Re: HOW TO install/setup 2 instances of tomcat on same server

2008-09-21 Thread buzzterrier
Here is a walk through on setting tomcat and Apache HTTP with catalina base instances. http://buzzterrier.blogspot.com/2008/08/apache-tomcat-apache-webserver.html edponce wrote: I know this question has been asked a lot but I've read different solutions depending on the needs of the

Re: HOW TO install/setup 2 instances of tomcat on same server

2008-08-27 Thread edponce
that is on windows... I am working on linux via ssh! I dont have anything installed on my PC... David Smith-2 wrote: If you installed tomcat using the .exe installer, go get the .zip download and grab the service.bat file from it's bin directory. If you installed .zip version of

Re: HOW TO install/setup 2 instances of tomcat on same server

2008-08-27 Thread edponce
ive created this start script in the /usr/bin/ folder...what i did is modified the previous path of the original tomcat instance to the new one... wich was /etc/tomcat5 (where i have the catalina policies and jkproperties, etc) for /etc/tomcat5-testbut that raised other questions should i be

Re: HOW TO install/setup 2 instances of tomcat on same server

2008-08-27 Thread David Smith
[EMAIL PROTECTED] rc5.d]# tomcat5-test start -bash: /usr/bin/tomcat5-test: Permission denied You need to add the execute privilege to your tomcat5-test script. Take a look at the man page for chmod. ... wich was /etc/tomcat5 (where i have the catalina policies and jkproperties, etc) for

Re: HOW TO install/setup 2 instances of tomcat on same server

2008-08-27 Thread edponce
is that something like this... ln -s /etc/tomcat5-test S71tomcat5-test? David Smith-2 wrote: [EMAIL PROTECTED] rc5.d]# tomcat5-test start -bash: /usr/bin/tomcat5-test: Permission denied You need to add the execute privilege to your tomcat5-test script. Take a look at the man page

Re: HOW TO install/setup 2 instances of tomcat on same server

2008-08-27 Thread edponce
david... my only problem now is [EMAIL PROTECTED] ~]# tomcat5-test start In the config file Starting tomcat5-test: [ FAILED ] i cant find what is the problem in the config file? any ideas? David Smith-2 wrote: [EMAIL PROTECTED] rc5.d]#

Re: HOW TO install/setup 2 instances of tomcat on same server

2008-08-27 Thread edponce
ive duplicated my folder...modified the specif files created a script for starting up the 2nd instance and when i start it i get this error, but cant debut it... any ideas anybody? [EMAIL PROTECTED] ~]# tomcat5-test start In the config file Starting tomcat5-test:

Re: HOW TO install/setup 2 instances of tomcat on same server

2008-08-27 Thread edponce
Tom, ive done everything as youve indicated and when i run my script i get this error that cant debug, any ideas? [EMAIL PROTECTED] ~]# tomcat5-test start In the config file Starting tomcat5-test: [ FAILED ] this is my script

Re: HOW TO install/setup 2 instances of tomcat on same server

2008-08-27 Thread David Smith
Anything in catalina.out related to the failed startup? --David edponce wrote: david... my only problem now is [EMAIL PROTECTED] ~]# tomcat5-test start In the config file Starting tomcat5-test: [ FAILED ] i cant find what is the problem in the

Re: HOW TO install/setup 2 instances of tomcat on same server

2008-08-27 Thread edponce
just that -sh: line 0: export: `In the config file': not a valid identifier /bin/bash: /usr/bin/tomcat5-test: Permission denied -sh: line 0: export: `In the config file': not a valid identifier /bin/bash: /usr/bin/tomcat5-test: Permission denied David Smith-2 wrote: Anything in

Re: HOW TO install/setup 2 instances of tomcat on same server

2008-08-27 Thread David Smith
This error looks like an error in your shell script. Maybe someone else can offer up some help with this. I use jsvc in my environment. --David edponce wrote: just that -sh: line 0: export: `In the config file': not a valid identifier /bin/bash: /usr/bin/tomcat5-test: Permission denied

RE: HOW TO install/setup 2 instances of tomcat on same server

2008-08-27 Thread Martin Gainty
make sure you have the full path for bash on the first line you have #!/bin/bash i have #!/usr/bin/bash also.. set -vset -o verbosePrints shell input lines as they are read.set -xset -o xtracePrint command traces before executing command. take every opportunity to debug your bash script with

Re: HOW TO install/setup 2 instances of tomcat on same server

2008-08-26 Thread edponce
DAvid I am on windows, but i connect to the server via ssh so all the commands are just like in Linux. I've tried tomcat5 start, but i think that just works for the original tomcat, also, how can i check that when i start the 2nd instsance of tomcat it start with no errors. Thank you Eduardo

Re: HOW TO install/setup 2 instances of tomcat on same server

2008-08-26 Thread David Smith
If you installed tomcat using the .exe installer, go get the .zip download and grab the service.bat file from it's bin directory. If you installed .zip version of tomcat, you should have a file in the bin directory named service.bat. Service.bat can help you create new tomcat services in the

Re: HOW TO install/setup 2 instances of tomcat on same server

2008-08-26 Thread edponce
Tom, ive created this start script...what i did is modified the previous path of the original tomcat instance to the new one... wich was /etc/tomcat5 (where i have the catalina policies and jkproperties, etc) for /etc/tomcat5but that raised other questions should i be duplicating that folder

Re: HOW TO install/setup 2 instances of tomcat on same server

2008-08-25 Thread edponce
Tom, Thanks for the aclarations and I just have one last question. How do I start the second instance withough affecting the 1st one? becuase if i do tomcat5 start/stop that will kill both instances right? Thank you, Eduardo Thomas Haines-2 wrote: Hi edponce so if i understood everything

Re: HOW TO install/setup 2 instances of tomcat on same server

2008-08-25 Thread edponce
one last question tom, do i need to rename the other tomcat5 archives to whatever name I choose for my 2nd instance. Eduardo edponce wrote: Tom, Thanks for the aclarations and I just have one last question. How do I start the second instance withough affecting the 1st one? becuase if i do

Re: HOW TO install/setup 2 instances of tomcat on same server

2008-08-25 Thread edponce
David, Thanks for replying. I've duplicated my tomcat folder and renamed it and ive changed the 2 connector and the server shut down port. But i dunno how to start the duplicate instance. how can i do that! Thank you, Eduardo David Smith-2 wrote: Can any one please guide me on the correct

Re: HOW TO install/setup 2 instances of tomcat on same server

2008-08-25 Thread David Smith
Ok ... forgive me if this was posted already, but what OS do you have and how are you starting the production instance? Windows systems starting the production tomcat as a service is different than Linux/Unix systems starting tomcat with jsvc or a service script. --David edponce wrote:

Re: HOW TO install/setup 2 instances of tomcat on same server

2008-08-24 Thread Thomas Haines
Hi edponce so if i understood everything i just need to duplicate the tomcat folder, do i need to rename it or something? Yes, you just need to duplicate it. You can call the duplicate folder whatever you like. Then On the duplicated tomcat directory, you need to edit the server.xml

Re: HOW TO install/setup 2 instances of tomcat on same server

2008-08-22 Thread edponce
Thank you Tom, I think the other repliers were going to far on what they wanted to do. this exactly why i want 2 different sessions, It can also be useful for evaluating a new version before you unleash it to production. so if i understood everything i just need to duplicate the tomcat folder,

Re: HOW TO install/setup 2 instances of tomcat on same server

2008-08-21 Thread David Smith
Can any one please guide me on the correct direction so that i don't mess up anything! I've never worked with Tomcat that is why i have no idea on how to do it. Yes. Just open the server.xml file in tomcat's conf directory and look for the Connector ... / elements that aren't wrapped in xml

Re: HOW TO install/setup 2 instances of tomcat on same server

2008-08-21 Thread Mark H. Wood
On Thu, Aug 21, 2008 at 02:31:41AM +0200, André Warnier wrote: Markus Schönhaber wrote: [snip] Furthermore, if I understand the OP's statement above correctly, he wants to be able to restart the development Tomcat without affecting the production Tomcat. That's not possible with either of

Re: HOW TO install/setup 2 instances of tomcat on same server

2008-08-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ed, edponce wrote: I know this question has been asked a lot but I've read different solutions depending on the needs of the problem. I need to have 2 instances of tomcat on the same server for the same application. One would be for production and

HOW TO install/setup 2 instances of tomcat on same server

2008-08-20 Thread edponce
I know this question has been asked a lot but I've read different solutions depending on the needs of the problem. I need to have 2 instances of tomcat on the same server for the same application. One would be for production and the other for development (which can be start and stopped whenever

Re: HOW TO install/setup 2 instances of tomcat on same server

2008-08-20 Thread André Warnier
edponce wrote: I know this question has been asked a lot but I've read different solutions depending on the needs of the problem. I need to have 2 instances of tomcat on the same server for the same application. One would be for production and the other for development (which can be start and

Re: HOW TO install/setup 2 instances of tomcat on same server

2008-08-20 Thread André Warnier
André Warnier wrote: edponce wrote: I know this question has been asked a lot but I've read different solutions depending on the needs of the problem. I need to have 2 instances of tomcat on the same server for the same application. One would be for production and the other for development

Re: HOW TO install/setup 2 instances of tomcat on same server

2008-08-20 Thread Markus Schönhaber
André Warnier wrote: edponce wrote: depending on the needs of the problem. I need to have 2 instances of tomcat on the same server for the same application. One would be for production and the other for development (which can be start and stopped whenever without affecting the production

Re: HOW TO install/setup 2 instances of tomcat on same server

2008-08-20 Thread André Warnier
Markus Schönhaber wrote: André Warnier wrote: edponce wrote: depending on the needs of the problem. I need to have 2 instances of tomcat on the same server for the same application. One would be for production and the other for development (which can be start and stopped whenever without

Re: HOW TO install/setup 2 instances of tomcat on same server

2008-08-20 Thread Thomas Haines
edponce wrote: I know this question has been asked a lot but I've read different solutions depending on the needs of the problem. I need to have 2 instances of tomcat on the same server for the same application. One would be for production and the other for development (which can be start