Re: Running more than one instance of Tomcat on the same machine

2001-07-03 Thread Alberto Torna Jr.

Check the paths of your new instance. Ensure you're running Tomcat/Catalina 2 on another port besides 8080. Also, it uses 8007 to communicate with Apache if you're doing that as well. You'll need to change the port on the second instance that communicates with 8007 to something else. 

What I did was simply this
Copy new instance. the JDK path does not change. If you have some custom classes within Tomcat's path, that will also have to change in startup.bat or tomcat.bat. Use the command Tomcat env to verify the classpath. You should not have to change any other variables. The JAVA02 might not be necessary because it will be a variable running in a separate instance. You're safe. If all this was done, what error did you get?

From: "Albretch Mueller" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED] 
To: [EMAIL PROTECTED] 
Subject: Running more than one instance of Tomcat on the same machine 
Date: Mon, 02 Jul 2001 15:41:27 - 
 
Hi, 
 
I am trying to run another instance of tomcat on the same machine, 
listening 
to another port, ... 
 
I copy the whole content of the "jakarta" folder into a second 
directory and 
run the startup script from there but it did not work (the rationale 
being 
that you may run the same java program in two different directories, 
since 
they will startup on their own JVM) 
 
I was tinkering with the startup script and came up with the 
following that 
- did not work- (Notice the "\prjct02\" folder): 
 
- - - - - - - - - - - - - - - - - - - - - - - - - 
SET _RUNJAVA02="%JAVA_HOME%\bin\java" 
 
SET _CATALINA_OPTS02=%CATALINA_OPTS02% 
SET _CATALINA_HOME02=%CATALINA_HOME02% 
 
SET CATALINA_OPTS02=" " 
SET CATALINA_HOME02= "C:\tomcat\prjct02\jakarta-tomcat-4.0-b5\" 
 
%_RUNJAVA02% %CATALINA_OPTS02% -Dcatalina.home="%CATALINA_HOME02%" 
org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8 %9 start 
 
 
- - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
How do you run a totally separate instance of tomcat in the same 
machine 
listening to incomming requests from another port, ...? 
 
Thanks 
_ 
Get your FREE download of MSN Explorer at http://explorer.msn.com 
 
Get your FREE download of MSN Explorer at http://explorer.msn.com


Running more than one instance of Tomcat on the same machine

2001-07-02 Thread Albretch Mueller

Hi,

I am trying to run another instance of tomcat on the same machine, listening 
to another port, ...

I copy the whole content of the jakarta folder into a second directory and 
run the startup script from there but it did not work (the rationale being 
that you may run the same java program in two different directories, since 
they will startup on their own JVM)

I was tinkering with the startup script and came up with the following that 
- did not work- (Notice the \prjct02\ folder):

- - - - - - - - - - - - - - - - - - - - - - - - -
SET _RUNJAVA02=%JAVA_HOME%\bin\java

SET _CATALINA_OPTS02=%CATALINA_OPTS02%
SET _CATALINA_HOME02=%CATALINA_HOME02%

SET CATALINA_OPTS02= 
SET CATALINA_HOME02= C:\tomcat\prjct02\jakarta-tomcat-4.0-b5\

%_RUNJAVA02% %CATALINA_OPTS02% -Dcatalina.home=%CATALINA_HOME02% 
org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8 %9 start


- - - - - - - - - - - - - - - - - - - - - - - - - - -

How do you run a totally separate instance of tomcat in the same machine 
listening to incomming requests from another port, ...?

Thanks
_
Get your FREE download of MSN Explorer at http://explorer.msn.com




Re: Running more than one instance of Tomcat on the same machine

2001-07-02 Thread D. Jay Newman

 I am trying to run another instance of tomcat on the same machine, listening 
 to another port, ...
 
 I copy the whole content of the jakarta folder into a second directory and 
 run the startup script from there but it did not work (the rationale being 
 that you may run the same java program in two different directories, since 
 they will startup on their own JVM)

One caveat: I've only done this under linux, and not NT.

I copy the entire tomcat folder.

I change server.xml so that every port mentioned is changed to a different
port (8080 - 9080 and so forth).

I run the startup script:

/usr/local/tomcat2/bin/startup.sh

Everything works fine for me. The *most* crucial step is modifying server.xml.

I hope this helps.
-- 
D. Jay Newman   ! For the pleasure and the profit it derives
[EMAIL PROTECTED]  ! I arrange things, like furniture, and
http://www.sprucegrove.com/~jay/   ! daffodils, and ...lives.  -- Hello Dolly



Re: Running more than one instance of Tomcat on the same machine

2001-07-02 Thread Jason Koeninger

On the 3.x series, there's a command line switch to tell Tomcat 
where it should look for its configuration file.  That way, you just 
keep everything in the same directory and have multiple server.xml 
files.  You just have to switch some directories and such in server.xml 
to keep the instances independent of one another.

Hope that helps.  Sorry...no experience with 4.x yet.

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com

On Mon, 02 Jul 2001 15:41:27 -, Albretch Mueller wrote:

Hi,

I am trying to run another instance of tomcat on the same machine, listening 
to another port, ...

I copy the whole content of the jakarta folder into a second directory and 
run the startup script from there but it did not work (the rationale being 
that you may run the same java program in two different directories, since 
they will startup on their own JVM)

I was tinkering with the startup script and came up with the following that 
- did not work- (Notice the \prjct02\ folder):

- - - - - - - - - - - - - - - - - - - - - - - - -
SET _RUNJAVA02=%JAVA_HOME%\bin\java

SET _CATALINA_OPTS02=%CATALINA_OPTS02%
SET _CATALINA_HOME02=%CATALINA_HOME02%

SET CATALINA_OPTS02= 
SET CATALINA_HOME02= C:\tomcat\prjct02\jakarta-tomcat-4.0-b5\

%_RUNJAVA02% %CATALINA_OPTS02% -Dcatalina.home=%CATALINA_HOME02% 
org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8 %9 start


- - - - - - - - - - - - - - - - - - - - - - - - - - -

How do you run a totally separate instance of tomcat in the same machine 
listening to incomming requests from another port, ...?

Thanks
_
Get your FREE download of MSN Explorer at http://explorer.msn.com