running multiple instances of tomcat as windows service - service won't start

2005-04-22 Thread Jaynika Barot
hi all,

we are using tomcat 5.0.28 on windows server.  I have been trying to
install multiple tomcat instances . Our goal is to run multiple
instances on port 80 of virtual IPs. But for testing, i'm using
differnt port numbers instead of ips..

Here r the steps i performed,

(a) installed tomcat on c:\TC1
(b) copied conf,logs,shared,temp,webapps, work  folders from c:\TC1 into c:\TC2
(c) changed port entries into TC2\conf\server.xml
Server port=8006 , Connector port=8081
(d) on cmd prompt

c:\TC1\bin set CATALINA_BASE=C:\TC2
c:\TC1\binservice.bat install TC2

This will install the TC2 windows service, but the service won't start
. If i check the properites of the service, it's pointing to
C:\TC1\bin\tomcat5.exe //RS//tc2

What is wrong??

I couldn't find any step by step guide to setup multiple instances of
tomcat as windows service on Tomcat users list or any other web
resource.

Any pointers will be appreciated.

Thanks,
Jaynika

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



running multiple instances of tomcat as windows services - the service won't start

2005-04-22 Thread Jaynika Barot
hi all,

we are using tomcat 5.0.28 on windows server.  I have been trying to
install multiple tomcat instances . Our goal is to run multiple
instances on port 80 of virtual IPs. But for testing, i'm using
differnt port numbers instead of ips..

Here r the steps i performed,

(a) installed tomcat on c:\TC1
(b) copied conf,logs,shared,temp,webapps, work  folders from c:\TC1 into c:\TC2
(c) changed port entries into TC2\conf\server.xml
Server port=8006 , Connector port=8081
(d) on cmd prompt

c:\TC1\bin set CATALINA_BASE=C:\TC2
c:\TC1\binservice.bat install TC2

This will install the TC2 windows service, but the service won't start
. If i check the properites of the service, it's pointing to
C:\TC1\bin\tomcat5.exe //RS//tc2

What is wrong??

I couldn't find any step by step guide to setup multiple instances of
tomcat as windows service on Tomcat users list or any other web
resource.

Any pointers will be appreciated.

Thanks,
Jaynika

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Multiple instances of tomcat

2005-03-12 Thread Darek
 I have a tomcat 4-1-27 running on RedHat 2.4.21. Normally
when you startup tomcat it will create a single instance, I
have however about 28 created right away. I understand that
they all share the same memory, but I don?t think this is a
normal behavior. What can be causing this? 

DarekC

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Multiple instances of tomcat

2005-03-12 Thread QM
On Sat, Mar 12, 2005 at 12:21:10AM -0800, Darek wrote:
:  I have a tomcat 4-1-27 running on RedHat 2.4.21. Normally
: when you startup tomcat it will create a single instance, I
: have however about 28 created right away. I understand that
: they all share the same memory, but I don?t think this is a
: normal behavior. What can be causing this? 

1/ please post a *new* message when writing to the list.  Replying to
an old (unrelated) message confuses thread-aware mailers, which makes
your question harder to find (and thus answer).

2/ Are these separate Tomcat instances, or just PIDs?  Pre-NPTL Linux
kernels show threads as separate processes.  That's likely what you're
seeing.

-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]



Re: Multiple instances of tomcat

2005-03-12 Thread Darek
All those are threads; tomcat creates 2 at first and the
second forks the rest, if you kill either one tomcat will
exit. I am asking because another server with the same
configuration shows only one single thread.
There are some problems with applications on the first
server, which seem to be related to the memory.
Both servers are running on 2.4.21 kernel and only one of
them shows multiple threads when ps is executed, while both
have tomcat 4.1.27 and j2sdk1.4.2_04. i am not sure what
have I missed. Documentation mentions CATALINA_BASE that
when defined implies multiple virtual hosts. I am not sure
what I have done, while configuration files look exactly
same.

I appreciate your help.

DarekC







On Sat, 12 Mar 2005 07:17:28 -0600
 QM [EMAIL PROTECTED] wrote:
On Sat, Mar 12, 2005 at 12:21:10AM -0800, Darek wrote:
:  I have a tomcat 4-1-27 running on RedHat 2.4.21.
Normally
: when you startup tomcat it will create a single
instance, I
: have however about 28 created right away. I understand
that
: they all share the same memory, but I don?t think this
is a
: normal behavior. What can be causing this? 

1/ please post a *new* message when writing to the list.
 Replying to
an old (unrelated) message confuses thread-aware mailers,
which makes
your question harder to find (and thus answer).

2/ Are these separate Tomcat instances, or just PIDs?
 Pre-NPTL Linux
kernels show threads as separate processes.  That's likely
what you're
seeing.

-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]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Bootstrap.jar does not get released when starting multiple instances of Tomcat

2005-01-12 Thread Robert Lin
Hi, 

We have a project where we need 3 different Tomcat instances running 3 
different server.xml files, and we have that as part of our JUnit tests for our 
automated build process.  However, for some reason, the file bootstrap.jar will 
not get released on the every nth build, n~= 1 to 10.  And when that happens, 
we can't even find the process that is still using bootstrap.jar, so we're 
forced to restart the machine.

Anybody have any idea in which direction we should be looking for the bug?  
Thanks.

__
 
Robert Lin 
Eng. Intern | Blue Jungle | Redwood City, CA
[EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Multiple instances of Tomcat 5.0.28...

2005-01-10 Thread Troy Simpson
I have the following software packages and OS:
Apache 2.0.52
Tomcat 5.0.30
mod_jk 1.2.8
Sun Solaris 8

I am configuring a server to run multiple instances of Tomcat 5.0.28
under one instances of Apache 2.0.52 and one Virtual Host.  This
server is for development and I want to protect the developers from
each others boo-boos.  ;-)

I want to run the Tomcat instances under an Apache2 Virtual Host.  How
can I allow each group of developers to access the jsp-examples,
admin, manager for their respective Tomcat Instances?

For example, how could I set something up like this?

Developer One on Tomcat 1
http://www.domain.com/tomcat1/jsp-examples/
http://www.domain.com/tomcat1/admin/
etc.

Developer Two on Tomcat 2
http://www.domain.com/tomcat2/jsp-examples/
http://www.domain.com/tomcat1/admin/
etc.


Thanks,
Troy

-- 
Troy Simpson
  Applications Analyst/Programmer, OCPDBA, MCSE, SCSA
North Carolina State University Libraries
Campus Box 7111 | Raleigh | North Carolina
ph.919.515.3855 | fax.919.513.3330

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Multiple instances of Tomcat 5.0.28...

2005-01-10 Thread Troy Simpson
How do I change the context_path for all the Applications that come
with Tomcat 5 as displayed in the manager tool?

Thanks,
Troy


-- 
Troy Simpson
  Applications Analyst/Programmer, OCPDBA, MCSE, SCSA
North Carolina State University Libraries
Campus Box 7111 | Raleigh | North Carolina
ph.919.515.3855 | fax.919.513.3330

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



best way to setup multiple instances of tomcat

2004-12-23 Thread Greg Lappen
Hello-
I currently am using Tomcat 5.0.28 for both our production and test 
server.   Currently, I have one copy of the tomcat distribution in 
/usr/local/tomcat, two different server.xml files (server-prod.xml and 
server-test.xml) in /usr/local/tomcat/conf and two different scripts in 
/etc/init.d to start the prod and test servers.  Each server has its 
own directory under /usr/local/tomcat/conf/Catalina, and the ROOT.xml 
file in each case defines a different log file for the application.  
Everything seems to work fine, but both instances are writing to 
/usr/local/tomcat/logs/catalina.out.

My question is can the filename catalina.out be controlled so each 
instance writes to a different file?

Also, I'm thinking that I probably don't want them both running off the 
same install directory because what if I want to test a new version of 
Tomcat in the test environment?  The only thing I'm saving by having 
them both run from the same directory is a few megs of space right?

Greg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: best way to setup multiple instances of tomcat

2004-12-23 Thread Tim Funk
The easiest way is to run multiple copies. For example:
/usr/local/tomcat1/ ...
/usr/local/tomcat2/ ...
/usr/local/tomcat.../ ...
If the configurations are the same, then you can use the same copy of 
server.xml for all the instances. Then for items which need to be different 
such as port and ip address, use you pass system properties on startup and 
have them substitued in server.xml.

export JAVA_OPTS='-Dfoo=8080'
Connector ... port=${foo}/
-Tim
Greg Lappen wrote:
Hello-
I currently am using Tomcat 5.0.28 for both our production and test 
server.   Currently, I have one copy of the tomcat distribution in 
/usr/local/tomcat, two different server.xml files (server-prod.xml and 
server-test.xml) in /usr/local/tomcat/conf and two different scripts in 
/etc/init.d to start the prod and test servers.  Each server has its own 
directory under /usr/local/tomcat/conf/Catalina, and the ROOT.xml file 
in each case defines a different log file for the application.  
Everything seems to work fine, but both instances are writing to 
/usr/local/tomcat/logs/catalina.out.

My question is can the filename catalina.out be controlled so each 
instance writes to a different file?

Also, I'm thinking that I probably don't want them both running off the 
same install directory because what if I want to test a new version of 
Tomcat in the test environment?  The only thing I'm saving by having 
them both run from the same directory is a few megs of space right?
 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: best way to setup multiple instances of tomcat

2004-12-23 Thread Wolfgang Hackl
Greg Lappen wrote:
Also, I'm thinking that I probably don't want them both running off 
the same install directory because what if I want to test a new 
version of Tomcat in the test environment?  The only thing I'm saving 
by having them both run from the same directory is a few megs of space 
right?

Hi Greg,
you might search for the file RUNNING.txt in /usr/local/tomcat for more 
information. There were other threads on 9th and 13th December 2004 in 
this list discussing the same topic. Your particular problem can be 
solved by specifying the appropriate parameter (-outfile) when starting 
your tomcats using jsvc (the java commons daemon). I wrote a script and 
a short description for installation of multiple tomcat instances and 
put it to http://miti.sourceforge.net/ .

Wolfgang
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Multiple instances of Tomcat.

2004-08-09 Thread Bill Hughey
I am working on converting a standalone content management system that has embedded 
Tomcat and an admin servlet as one of its components.  My intent is to turn this 
application into a servlet itself running under a standalone Tomcat5.

My question: is it possible to run embedded Tomcat5 within a servlet that is itself 
running under Tomcat5?

Second question: would it be possible if this works for the inner servlet to access 
memory (objects) instanciated by the outer servlet?

Note: I have noticed that servlets within the same context have access to each others 
memory, while servlets of different contexts do not.  Anyone care to confirm, 
elaborate, explain, contradict?

Thanks for any help.

Re: Multiple instances of Tomcat.

2004-08-09 Thread QM
On Mon, Aug 09, 2004 at 10:04:56AM -0700, Bill Hughey wrote:
: Second question: would it be possible if this works for the inner servlet to access 
memory (objects) instanciated by the outer servlet?

Likely, no.  Read on:


: Note: I have noticed that servlets within the same context have access to each 
others memory, while servlets of different contexts do not.  Anyone care to confirm, 
elaborate, explain, contradict?

The Tomcat site has a doc on the product's layered classloader approach.
(This concept isn't unique to Tomcat, but that's another story.)

In short, each context (webapp) lives in its own classloader.

-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]



Multiple instances of tomcat and apache 2.0.48

2004-03-26 Thread Angelo Alerta - Mainfield
I'm trying to use two instances of tomcat 5.0.12 with apache 2.0.48.
One instance listen at port 8009 while other listen on port 50089.
Reading the output of error_log of apache it seems that 
channelSocket.open() try to connect always on port 8009...
All request are sent to instance listening at port 8009.
Where i'm wrong?

Follow my workers2.properties:

[shm]
file=${serverRoot}/logs/shm.file
size=1048576
[status:status]

[channel.socket:127.0.0.1:50089]
port=50089
host=127.0.0.1
tomcatId=tomcat_pz
debug=1
[ajp13:127.0.0.1:50089]
channel=channel.socket:127.0.0.1:50089
[uri:/pzmanager/*]
group=ajp13:127.0.0.1:50089
[uri:/pzadmin/*]
group=ajp13:127.0.0.1:50089
[channel.socket:127.0.0.1:8009]
port=8009
host=127.0.0.1
tomcatId=tomcat_mf
debug=1
[worker_mf]
channel=channel.socket:127.0.0.1:8009
Follow the output of error_log file of apache:

[notice] Apache/2.0.48 (Unix) mod_ssl/2.0.48 OpenSSL/0.9.6b 
mod_jk2/2.0.2 PHP/4.3.4 configured -- resuming normal operations
[error] channelSocket.open() connect failed 127.0.0.1:8009 111 
Connection refused
[error] ajp13.connect() failed ajp13:127.0.0.1:50089
[error] ajp13.service() failed to connect endpoint errno=111 Connection 
refused
[error] ajp13.service() Error  forwarding ajp13:127.0.0.1:50089 1 1
[error] mod_jk.handler() Error connecting to tomcat 12

Thanks in advance for your help/idea

--

Angelo Alerta
Mainfield srl
Via I. Rosellini 2
20124 Milano, Italy
[EMAIL PROTECTED]
www.mainfield.com
+39266800026
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Multiple instances of tomcat and apache 2.0.48

2004-03-26 Thread Emerson Cargnin
Why don't you create a different virtual IP for running the second 
instance??

Angelo Alerta - Mainfield wrote:
I'm trying to use two instances of tomcat 5.0.12 with apache 2.0.48.
One instance listen at port 8009 while other listen on port 50089.
Reading the output of error_log of apache it seems that 
channelSocket.open() try to connect always on port 8009...
All request are sent to instance listening at port 8009.
Where i'm wrong?

Follow my workers2.properties:

[shm]
file=${serverRoot}/logs/shm.file
size=1048576
[status:status]

[channel.socket:127.0.0.1:50089]
port=50089
host=127.0.0.1
tomcatId=tomcat_pz
debug=1
[ajp13:127.0.0.1:50089]
channel=channel.socket:127.0.0.1:50089
[uri:/pzmanager/*]
group=ajp13:127.0.0.1:50089
[uri:/pzadmin/*]
group=ajp13:127.0.0.1:50089
[channel.socket:127.0.0.1:8009]
port=8009
host=127.0.0.1
tomcatId=tomcat_mf
debug=1
[worker_mf]
channel=channel.socket:127.0.0.1:8009
Follow the output of error_log file of apache:

[notice] Apache/2.0.48 (Unix) mod_ssl/2.0.48 OpenSSL/0.9.6b 
mod_jk2/2.0.2 PHP/4.3.4 configured -- resuming normal operations
[error] channelSocket.open() connect failed 127.0.0.1:8009 111 
Connection refused
[error] ajp13.connect() failed ajp13:127.0.0.1:50089
[error] ajp13.service() failed to connect endpoint errno=111 Connection 
refused
[error] ajp13.service() Error  forwarding ajp13:127.0.0.1:50089 1 1
[error] mod_jk.handler() Error connecting to tomcat 12

Thanks in advance for your help/idea



--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Multiple instances of tomcat 4.1.30 with Win2K.

2004-03-08 Thread Kawthar Bt M Sulaiman
I'm trying to setup multiple instaces of tomcat with Win2K.
Here's my directory structure:

CATALINA_HOME == C:\programs\jakarta-tomcat-4.1.30
CATALINA_BASE == c:\programs\usr\mo

Inside CATALINA_BASE, I have the following directories (using port
8101):
conf
logs
temp
webapps
work

How do I setup 2nd (port 8201)  and 3rd (port 8301) instances?
Where should I put my startup/shutdown and server.xml files?

Thanks,
--Kawthar
Confidential information may be contained in this e-mail and any files transmitted 
with it ('Message'). If you are not the addressee indicated in this Message (or 
responsible for delivery of this Message to such person), you are hereby notified that 
any dissemination, distribution, printing or copying of this Message or any part 
thereof is strictly prohibited. In such a case, you should delete this Message 
immediately and advise the sender by return e-mail. Opinions, conclusions and other 
information in this Message that do not relate to the official business of Maxis shall 
be understood as neither given nor endorsed by Maxis.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: RE: Multiple instances of Tomcat - why would you do it ?

2004-02-12 Thread Carl Walker
We run several instances of Tomcat to keep users from affecting each other.  For 
example, since each Tomcat is a different process, if one app loaded in one of the 
Tomcat instances has a problem, we can bring that Tomcat instance down w/o affecting 
the others.  Also, the likelihood that one application in a Tomcat process will affect 
an app in a different process is diminished since they are distinct.

Also, each process can be started with different permissions.  For example, if there 
are a set of files (like digital certificates, etc), the different Tomcat instances 
will be prevented from -- at the OS level -- reading each other's files.

Also, can start one of the Tomcat's up with a very limiting java.policy file that 
constrains what users can do in a webapp.  The users are prohibited from calling % 
System.exit(1) %.

You may also want several Tomcat's to test different configurations or have different 
configurations tuned to production vs. development.  For example, in development you 
can limit the number of threads that a Connector uses since you aren't as concerned 
with # of concurrent users.
 

- Original Message -
From: Derek Clarkson [EMAIL PROTECTED]
Date: Thursday, February 12, 2004 0:22 am
Subject: RE: Multiple instances of Tomcat - why would you do it ?

 He he, thanks. By the looks of the code I'm seeing - I'm going 
 with the
 space bats reason ;-) 
 
 -Original Message-
 From: Josh Rehman [EMAIL PROTECTED] 
 Sent: Thursday, 12 February 2004 12:41 PM
 To: Tomcat Users List
 Subject: Re: Multiple instances of Tomcat - why would you do it ?
 
 If the instances talk to each other via RMI, it's likely that the 
 originaldevelopers intended each instance to be run on a different 
 box. 
 They may have thought this would positively affect scalability.
 
 It may also be that they partitioned the app such that each 
 container has
 different priveledges and responsibilities, and therefore it made 
 sense to
 seperate them and configure them seperately.
 
 It may also be that the original developer was testing a theory 
 and so did
 it that way.
 
 It may also be that the developers were being paid per CPU.
 
 It may also be that one of the architects was driven mad by alien 
 spacebats, and so designed this system to prepare himself for 
 leaving this
 planet.
 
 The last one seems most likely to me. However, I could be wrong, 
 so I'd ask
 the original developer.
 
 Derek Clarkson wrote:
  Hello everyone,
  I've just started a new job where I've been asked to be the tech
 lead 
  on a project. The software originated from an external company 
 who 
  designed it to run on 3 instances of tomcat. There is an 
 instance for 
  the main applications for our customers, an instance for the 
 admin 
  section and another for secure transactions. All running on the 
 same 
  PC. These instances also communicate between each other in order 
 to 
  pass information from one to the other via RMI.
  
  I've never worked on a mulit instance installation before and no-
 one 
  here knows why it was done this way (it's not documented). Can 
 you 
  guys give me any thoughts on why a multi-instance might be setup 
 like 
  this ? What are the advantages over a single tomcat instance, 
 etc ?
  
  Essentially I'm trying to understand whether this was a good 
 solution 
  for our use. Understanding the sorts of reasons for doing it 
 will help 
  me to work out any possible future changes.
  
  
  Ciao
  Derek.
  
  
  
 __ This email, 
 including attachments, is intended only for the addressee 
  and may be confidential, privileged and subject to copyright.  
 If you 
  have received this email in error, please advise the sender and 
 delete 
  it.  If you are not the intended recipient of this email, you 
 must not 
  use, copy or disclose its content to anyone.  You must not copy 
 or 
  communicate to others content that is confidential or subject to 
  copyright, unless you have the consent of the content owner.
  
 
 --
 Josh Rehman
 citysearch.com
 213.739.3559
 
 
 ---
 --
 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: Multiple instances of Tomcat - why would you do it ?

2004-02-12 Thread Shapira, Yoav

Howdy,
There's another reason: if any of the three crashes or is attacked for
whatever reason, the other two don't suffer.  That may or may not make
sense for your application.

For example, it's not unusual to have an admin console sit outside your
firewall so that developers/admins can do their job from home.  But you
don't want the main/secure servers outside the firewall.

Josh's scalability suggestion is also good.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Derek Clarkson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 11, 2004 8:25 PM
To: Tomcat Users List
Subject: Multiple instances of Tomcat - why would you do it ?


Hello everyone,
   I've just started a new job where I've been asked to be the tech
lead on a project. The software originated from an external company who
designed it to run on 3 instances of tomcat. There is an instance for
the
main applications for our customers, an instance for the admin section
and
another for secure transactions. All running on the same PC. These
instances
also communicate between each other in order to pass information from
one
to
the other via RMI.

I've never worked on a mulit instance installation before and no-one
here
knows why it was done this way (it's not documented). Can you guys give
me
any thoughts on why a multi-instance might be setup like this ? What
are
the
advantages over a single tomcat instance, etc ?

Essentially I'm trying to understand whether this was a good solution
for
our use. Understanding the sorts of reasons for doing it will help me
to
work out any possible future changes.


Ciao
Derek.


__
This email, including attachments, is intended only for the addressee
and may be confidential, privileged and subject to copyright.  If you
have received this email in error, please advise the sender and delete
it.  If you are not the intended recipient of this email, you must not
use, copy or disclose its content to anyone.  You must not copy or
communicate to others content that is confidential or subject to
copyright, unless you have the consent of the content owner.



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]



Multiple instances of Tomcat - why would you do it ?

2004-02-11 Thread Derek Clarkson

Hello everyone,
I've just started a new job where I've been asked to be the tech
lead on a project. The software originated from an external company who
designed it to run on 3 instances of tomcat. There is an instance for the
main applications for our customers, an instance for the admin section and
another for secure transactions. All running on the same PC. These instances
also communicate between each other in order to pass information from one to
the other via RMI. 

I've never worked on a mulit instance installation before and no-one here
knows why it was done this way (it's not documented). Can you guys give me
any thoughts on why a multi-instance might be setup like this ? What are the
advantages over a single tomcat instance, etc ? 

Essentially I'm trying to understand whether this was a good solution for
our use. Understanding the sorts of reasons for doing it will help me to
work out any possible future changes. 


Ciao
Derek.


__
This email, including attachments, is intended only for the addressee
and may be confidential, privileged and subject to copyright.  If you
have received this email in error, please advise the sender and delete
it.  If you are not the intended recipient of this email, you must not
use, copy or disclose its content to anyone.  You must not copy or 
communicate to others content that is confidential or subject to 
copyright, unless you have the consent of the content owner.

Re: Multiple instances of Tomcat - why would you do it ?

2004-02-11 Thread Josh Rehman
If the instances talk to each other via RMI, it's likely that the 
original developers intended each instance to be run on a different box. 
They may have thought this would positively affect scalability.

It may also be that they partitioned the app such that each container 
has different priveledges and responsibilities, and therefore it made 
sense to seperate them and configure them seperately.

It may also be that the original developer was testing a theory and so 
did it that way.

It may also be that the developers were being paid per CPU.

It may also be that one of the architects was driven mad by alien space 
bats, and so designed this system to prepare himself for leaving this 
planet.

The last one seems most likely to me. However, I could be wrong, so I'd 
ask the original developer.

Derek Clarkson wrote:
Hello everyone,
	I've just started a new job where I've been asked to be the tech
lead on a project. The software originated from an external company who
designed it to run on 3 instances of tomcat. There is an instance for
the
main applications for our customers, an instance for the admin section
and
another for secure transactions. All running on the same PC. These
instances
also communicate between each other in order to pass information from
one to
the other via RMI. 

I've never worked on a mulit instance installation before and no-one
here
knows why it was done this way (it's not documented). Can you guys give
me
any thoughts on why a multi-instance might be setup like this ? What are
the
advantages over a single tomcat instance, etc ? 

Essentially I'm trying to understand whether this was a good solution
for
our use. Understanding the sorts of reasons for doing it will help me to
work out any possible future changes. 

Ciao
Derek.
__
This email, including attachments, is intended only for the addressee
and may be confidential, privileged and subject to copyright.  If you
have received this email in error, please advise the sender and delete
it.  If you are not the intended recipient of this email, you must not
use, copy or disclose its content to anyone.  You must not copy or 
communicate to others content that is confidential or subject to 
copyright, unless you have the consent of the content owner.

--
Josh Rehman
citysearch.com
213.739.3559
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Multiple instances of Tomcat - why would you do it ?

2004-02-11 Thread Didier McGillis
One thing on this you dont want to hear is   ... The reason we did it that 
way was ...  :)  Most likely the response you will get is #1, althought I 
agree that it was probably #4.

From: Josh Rehman [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Multiple instances of Tomcat - why would you do it ?
Date: Wed, 11 Feb 2004 17:40:52 -0800
If the instances talk to each other via RMI, it's likely that the original 
developers intended each instance to be run on a different box. They may 
have thought this would positively affect scalability.

It may also be that they partitioned the app such that each container has 
different priveledges and responsibilities, and therefore it made sense to 
seperate them and configure them seperately.

It may also be that the original developer was testing a theory and so did 
it that way.

It may also be that the developers were being paid per CPU.

It may also be that one of the architects was driven mad by alien space 
bats, and so designed this system to prepare himself for leaving this 
planet.

The last one seems most likely to me. However, I could be wrong, so I'd ask 
the original developer.

Derek Clarkson wrote:
Hello everyone,
I've just started a new job where I've been asked to be the tech
lead on a project. The software originated from an external company who
designed it to run on 3 instances of tomcat. There is an instance for
the
main applications for our customers, an instance for the admin section
and
another for secure transactions. All running on the same PC. These
instances
also communicate between each other in order to pass information from
one to
the other via RMI.
I've never worked on a mulit instance installation before and no-one
here
knows why it was done this way (it's not documented). Can you guys give
me
any thoughts on why a multi-instance might be setup like this ? What are
the
advantages over a single tomcat instance, etc ?
Essentially I'm trying to understand whether this was a good solution
for
our use. Understanding the sorts of reasons for doing it will help me to
work out any possible future changes.
Ciao
Derek.
__
This email, including attachments, is intended only for the addressee
and may be confidential, privileged and subject to copyright.  If you
have received this email in error, please advise the sender and delete
it.  If you are not the intended recipient of this email, you must not
use, copy or disclose its content to anyone.  You must not copy or 
communicate to others content that is confidential or subject to 
copyright, unless you have the consent of the content owner.

--
Josh Rehman
citysearch.com
213.739.3559
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*   
http://join.msn.com/?page=dept/bcommpgmarket=en-caRU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Multiple instances of Tomcat - why would you do it ?

2004-02-11 Thread Derek Clarkson
He he, thanks. By the looks of the code I'm seeing - I'm going with the
space bats reason ;-) 

-Original Message-
From: Josh Rehman [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 12 February 2004 12:41 PM
To: Tomcat Users List
Subject: Re: Multiple instances of Tomcat - why would you do it ?

If the instances talk to each other via RMI, it's likely that the original
developers intended each instance to be run on a different box. 
They may have thought this would positively affect scalability.

It may also be that they partitioned the app such that each container has
different priveledges and responsibilities, and therefore it made sense to
seperate them and configure them seperately.

It may also be that the original developer was testing a theory and so did
it that way.

It may also be that the developers were being paid per CPU.

It may also be that one of the architects was driven mad by alien space
bats, and so designed this system to prepare himself for leaving this
planet.

The last one seems most likely to me. However, I could be wrong, so I'd ask
the original developer.

Derek Clarkson wrote:
 Hello everyone,
   I've just started a new job where I've been asked to be the tech
lead 
 on a project. The software originated from an external company who 
 designed it to run on 3 instances of tomcat. There is an instance for 
 the main applications for our customers, an instance for the admin 
 section and another for secure transactions. All running on the same 
 PC. These instances also communicate between each other in order to 
 pass information from one to the other via RMI.
 
 I've never worked on a mulit instance installation before and no-one 
 here knows why it was done this way (it's not documented). Can you 
 guys give me any thoughts on why a multi-instance might be setup like 
 this ? What are the advantages over a single tomcat instance, etc ?
 
 Essentially I'm trying to understand whether this was a good solution 
 for our use. Understanding the sorts of reasons for doing it will help 
 me to work out any possible future changes.
 
 
 Ciao
 Derek.
 
 
 __
 This email, including attachments, is intended only for the addressee 
 and may be confidential, privileged and subject to copyright.  If you 
 have received this email in error, please advise the sender and delete 
 it.  If you are not the intended recipient of this email, you must not 
 use, copy or disclose its content to anyone.  You must not copy or 
 communicate to others content that is confidential or subject to 
 copyright, unless you have the consent of the content owner.
 

--
Josh Rehman
citysearch.com
213.739.3559


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


multiple instances of tomcat (grouping webapps with a manager) with a single installation under linux

2003-07-14 Thread Karli Christoph (CSE)
hello world (haha, running gag)

i've installed and connected succesfully tomcat 4.1.24 with apache 2.0.45

now my problem is the following:
i'd like to get multiple instances of tomcat without installing tomcat 
another time (so just by configuring).

the goal is to achieve several webapp - 'containers' with each a 
different manager to start, stop, etc.. those webapps.

i won't do it with either virtual hosts nor with multiple installations
of tomcat.

does anyone now 'howto'?

thanks in advance and greetings from sunny switzerland



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: multiple instances of tomcat (grouping webapps with a manager) with a single installation under linux

2003-07-14 Thread Ralph Einfeldt
  Have a look at RUNNING.txt in the tomcat 4 distribution:

  (4) Advanced Configuration - Multiple Tomcat 4 Instances
  ...

(The exact text and number may vary in your distribution,
 my RUNNING.txt is quite old)

The following is for unix and tomcat standalone. But it
should be a good starting point for other environments.

We install different versions of jdk/tomcat like this:

/usr/local/java/jdk/ibm1.3
/usr/local/java/jdk/sun1.3
/usr/local/java/jdk/sun1.3.1
/usr/local/java/jdk/sun1.4

/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
directory 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

  export JAVA_HOME CATALINA_HOME CATALINA_BASE
  ${CATALINA_HOME}/bin/startup.sh

This way we can have different versions of tomcat at the same time, 
all sites that use the same tomcat version use the same 'executable'
but different processes and individual configuration. If we want to 
use another version of tomcat we just have to change CATALINA_HOME 
in start.sh (unless the config files are incompatible between these 
versions)

 -Original Message-
 From: Karli Christoph (CSE) [mailto:[EMAIL PROTECTED]
 Sent: Monday, July 14, 2003 5:04 PM
 To: '[EMAIL PROTECTED]'
 Subject: multiple instances of tomcat (grouping webapps with 
 a manager)
 with a single installation under linux
 
 
 hello world (haha, running gag)
 
 i've installed and connected succesfully tomcat 4.1.24 with 
 apache 2.0.45
 
 now my problem is the following:
 i'd like to get multiple instances of tomcat without 
 installing tomcat 
 another time (so just by configuring).
 
 the goal is to achieve several webapp - 'containers' with each a 
 different manager to start, stop, etc.. those webapps.
 
 i won't do it with either virtual hosts nor with multiple 
 installations
 of tomcat.
 
 does anyone now 'howto'?
 
 thanks in advance and greetings from sunny switzerland
 
 
 
 -
 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]



Multiple instances of tomcat in linux. Newbie question

2003-05-30 Thread Alejandro Arredondo
Hi,

I want to make tomcat to work for many users, so each
user can have their own developing enviroment. How do
install, configure, and run each instance? How can I
let them to manage their contexts?

Thanks in advance

__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: multiple instances of tomcat

2003-02-06 Thread Powell.Kris
You need to set the CATALINA_BASE environment variable for each instance, so
in the bin directory:

set CATALINA_BASE=c:\aa1
startup.bat

set CATALINA_BASE=c:\aa2
startup.bat

Make sure you also have the shutdown ports (8005) set to two different
values in the server.xml files.

You can add the debug attribute (Logger debug=9) in the server Logger
element and check the logs to see what is going wrong. Also, if the window
is closing sraight away and you can't see the messages, then open two
command prompts and start one instance in one, the other in the other with
the command:

catalina.bat run

This runs the instance in the same window so it stays open if it exits
prematurely.

Hope this helps.

Kris


-Original Message-
From: Henry Krasny [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 10:56 PM
To: [EMAIL PROTECTED]
Subject: multiple instances of tomcat


 

I'm having lots of trouble starting a second instance of tomcat on my
machine, Windows XP. I am able to start a single instance on port 8080
(the default installation). I can also start a single instance on port
8081 (C:\aa1) using the instructions in RUNNING.txt (section 4), but I
cannot get the second instance to start.

 

Instance1

Port: 8081

Location: C:\aa1

C:\aa1\conf\server.xml: (line 94) Connector port=8081

 

Instance2

Port: 8082

Location: C:\aa2

C:\aa2\conf\server.xml: (line 94) Connector port=8082

 

Both locations contain full copies of these directories: conf, logs,
temp, webapps, work

 

What should my CATALINA_BASE be set to to allow me to start both
instances?

What other changes should I be making to server.xml?

 

I assume the instances will be accessed this way:

http://localhost:8081/index.jsp http://localhost:8080/index.jsp 

http://localhost:8082/index.jsp http://localhost:8080/index.jsp 

 

What is the exact start command? (I try to use 'startup.bat' in bin of
the tomcat root.)

 

Also, from RUNNING.txt, I don't know what to do with the administration
and manager web applications as described in section 4.

 

Any help appreciated.

Henry

 




RE: multiple instances of tomcat

2003-02-06 Thread Henry Krasny
Thanks, your suggestions worked.

I altered the shutdown port for each instance and I started each
instance in a separate window (setting the CATALINA_BASE variable before
each startup).

I didn't try the logging thing.

Henry 

-Original Message-
From: Powell.Kris [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, February 06, 2003 2:57 AM
To: Tomcat Users List
Subject: RE: multiple instances of tomcat

You need to set the CATALINA_BASE environment variable for each
instance, so
in the bin directory:

set CATALINA_BASE=c:\aa1
startup.bat

set CATALINA_BASE=c:\aa2
startup.bat

Make sure you also have the shutdown ports (8005) set to two different
values in the server.xml files.

You can add the debug attribute (Logger debug=9) in the server
Logger
element and check the logs to see what is going wrong. Also, if the
window
is closing sraight away and you can't see the messages, then open two
command prompts and start one instance in one, the other in the other
with
the command:

catalina.bat run

This runs the instance in the same window so it stays open if it exits
prematurely.

Hope this helps.

Kris


-Original Message-
From: Henry Krasny [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 10:56 PM
To: [EMAIL PROTECTED]
Subject: multiple instances of tomcat


 

I'm having lots of trouble starting a second instance of tomcat on my
machine, Windows XP. I am able to start a single instance on port 8080
(the default installation). I can also start a single instance on port
8081 (C:\aa1) using the instructions in RUNNING.txt (section 4), but I
cannot get the second instance to start.

 

Instance1

Port: 8081

Location: C:\aa1

C:\aa1\conf\server.xml: (line 94) Connector port=8081

 

Instance2

Port: 8082

Location: C:\aa2

C:\aa2\conf\server.xml: (line 94) Connector port=8082

 

Both locations contain full copies of these directories: conf, logs,
temp, webapps, work

 

What should my CATALINA_BASE be set to to allow me to start both
instances?

What other changes should I be making to server.xml?

 

I assume the instances will be accessed this way:

http://localhost:8081/index.jsp http://localhost:8080/index.jsp 

http://localhost:8082/index.jsp http://localhost:8080/index.jsp 

 

What is the exact start command? (I try to use 'startup.bat' in bin of
the tomcat root.)

 

Also, from RUNNING.txt, I don't know what to do with the administration
and manager web applications as described in section 4.

 

Any help appreciated.

Henry

 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




multiple instances of tomcat

2003-02-05 Thread Henry Krasny
 

I'm having lots of trouble starting a second instance of tomcat on my
machine, Windows XP. I am able to start a single instance on port 8080
(the default installation). I can also start a single instance on port
8081 (C:\aa1) using the instructions in RUNNING.txt (section 4), but I
cannot get the second instance to start.

 

Instance1

Port: 8081

Location: C:\aa1

C:\aa1\conf\server.xml: (line 94) Connector port=8081

 

Instance2

Port: 8082

Location: C:\aa2

C:\aa2\conf\server.xml: (line 94) Connector port=8082

 

Both locations contain full copies of these directories: conf, logs,
temp, webapps, work

 

What should my CATALINA_BASE be set to to allow me to start both
instances?

What other changes should I be making to server.xml?

 

I assume the instances will be accessed this way:

http://localhost:8081/index.jsp http://localhost:8080/index.jsp 

http://localhost:8082/index.jsp http://localhost:8080/index.jsp 

 

What is the exact start command? (I try to use 'startup.bat' in bin of
the tomcat root.)

 

Also, from RUNNING.txt, I don't know what to do with the administration
and manager web applications as described in section 4.

 

Any help appreciated.

Henry

 




Multiple Instances of Tomcat as a Service

2003-01-03 Thread Jason Chambers
I am running multiple JVMs of Tomcat using the CATALINA_BASE environment
variables.   Currently, the only way I know of to start these is with the
start batch files.

Does anyone know of a way to start multiple instancs of tomcat as services?

Jason


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Multiple Instances of Tomcat as a Service

2003-01-03 Thread Turner, John

Not sure what you mean, but I have a start|stop script for each instance of
Tomcat.  The scripts aren't much, just a call to Tomcat's startup for start,
and a call to Tomcat's shutdown along with a cleanout of the work directory
for stop.  Then I have a start|stop superscript that can call all of the
individual scripts in sequence if needed.  So, I either use an individual
script, or if I need to take them all down (very rare) I use the
superscript.

John

-Original Message-
From: Jason Chambers [mailto:[EMAIL PROTECTED]] 
Sent: Friday, January 03, 2003 3:07 AM
To: [EMAIL PROTECTED]
Subject: Multiple Instances of Tomcat as a Service


I am running multiple JVMs of Tomcat using the CATALINA_BASE environment
variables.   Currently, the only way I know of to start these is with the
start batch files.

Does anyone know of a way to start multiple instancs of tomcat as services?

Jason


--
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.434 / Virus Database: 243 - Release Date: 12/25/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.434 / Virus Database: 243 - Release Date: 12/25/2002
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Multiple Instances of Tomcat as a Service

2003-01-03 Thread Jacob Kjome

I think he means something like an NT service.  Just follow the 
instructions here:
http://www.mattkelli.com/tech/tomcat/ntservice.htm

However, add on thing:

Dcatalina.base=[your custom CATALINA_BASE path here]

Also, make sure to name the service differently than one you may already 
have installed.

I haven't tested this, but I would think is should work.

Jake

At 04:26 AM 1/3/2003 -0500, you wrote:

Not sure what you mean, but I have a start|stop script for each instance of
Tomcat.  The scripts aren't much, just a call to Tomcat's startup for start,
and a call to Tomcat's shutdown along with a cleanout of the work directory
for stop.  Then I have a start|stop superscript that can call all of the
individual scripts in sequence if needed.  So, I either use an individual
script, or if I need to take them all down (very rare) I use the
superscript.

John

-Original Message-
From: Jason Chambers [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 3:07 AM
To: [EMAIL PROTECTED]
Subject: Multiple Instances of Tomcat as a Service


I am running multiple JVMs of Tomcat using the CATALINA_BASE environment
variables.   Currently, the only way I know of to start these is with the
start batch files.

Does anyone know of a way to start multiple instancs of tomcat as services?

Jason


--
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.434 / Virus Database: 243 - Release Date: 12/25/2002


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.434 / Virus Database: 243 - Release Date: 12/25/2002


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]



Re: How to set Multiple instances for tomcat?

2002-12-04 Thread Veniamin Fichin
Tushar Kulkarni wrote:


Hi I want to set multiple instances for tomcat4. How do I do that?
Thanks


In the Tomcat documentation there are some explanation about it. Mainly 
you have to set CATALINA_HOME to point to your Tomcat installation, and 
 CATALINA_BASE pointing to directory where you want to store your 
particular instance.

P.S. Fix your year settings -- it's 2002 now. ;-)


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]



RE: How to set Multiple instances for tomcat?

2002-12-02 Thread Jeremy Joslin
This is a pretty vague question so you're going to get a vague answer.
Look at http://jakarta.apache.org/tomcat/tomcat-4.0-doc/RUNNING.txt item
#4.

Jeremy

 -Original Message-
 From: Tushar Kulkarni [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, December 01, 2001 9:19 AM
 To: Tomcat Users List
 Subject: How to set Multiple instances for tomcat?
 
 Hi I want to set multiple instances for tomcat4. How do I do that?
 Thanks
 
 
 
 --
 To unsubscribe, e-mail:   mailto:tomcat-user-
 [EMAIL PROTECTED]
 For additional commands, e-mail: mailto:tomcat-user-
 [EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: How to set Multiple instances for tomcat?

2002-12-02 Thread Turner, John

Separate server.xml files (like server-1.xml, server-2.xml), separate work
directories.  Also set CATALINA_BASE to what would normally be CATALINA_HOME
in a single-intance configuration, then set CATALINA_HOME for each separate
instance to the correct directory.

John

 -Original Message-
 From: Tushar Kulkarni [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, December 01, 2001 12:19 PM
 To: Tomcat Users List
 Subject: How to set Multiple instances for tomcat?
 
 
 Hi I want to set multiple instances for tomcat4. How do I do that?
 Thanks
 
 
 
 --
 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]




Multiple instances of Tomcat

2002-11-05 Thread Pedro Igor Craveiro e Silva
Greetings 

A long, long time i´m trying to configure tomcat to run with multiple instances 
(tomcat+apache).
Has some one in this list that can help me to do this ? Or just give me the firt step 


Thanks a lot ...

Pedro Igor



RE: Multiple instances of Tomcat

2002-11-05 Thread Turner, John

One Apache.

Many Tomcats.

For many Tomcats, if you intend to delegate each Tomcat to a specific web
app, virtual host, or business client, you need a server.xml for each, and
you need to set CATALINA_BASE and things like appBase and docBase in each
server.xml accordingly. You will need to change the connector port as well.

If by multiple instances you mean that you want to load-balance Tomcat
requests, you need to set up a worker in workers.properties (assuming that
you are using JK) for each Tomcat.  Good load-balancing HOWTO:
http://www.ubeans.com/tomcat

John

 -Original Message-
 From: Pedro Igor Craveiro e Silva [mailto:pedroigor;aip.com.br]
 Sent: Tuesday, November 05, 2002 6:43 AM
 To: [EMAIL PROTECTED]
 Subject: Multiple instances of Tomcat
 
 
 Greetings 
 
 A long, long time i´m trying to configure tomcat to run with 
 multiple instances (tomcat+apache).
 Has some one in this list that can help me to do this ? Or 
 just give me the firt step 
 
 Thanks a lot ...
 
 Pedro Igor
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Multiple instances of Tomcat

2002-11-05 Thread Pedro Igor Craveiro e Silva
Thanks ...

The page that you have send me is what i was looking for ... Thanks a lot
 I 'll try it ...

Pedro Igor

- Original Message -
From: Turner, John [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, November 05, 2002 9:50 AM
Subject: RE: Multiple instances of Tomcat



One Apache.

Many Tomcats.

For many Tomcats, if you intend to delegate each Tomcat to a specific web
app, virtual host, or business client, you need a server.xml for each, and
you need to set CATALINA_BASE and things like appBase and docBase in each
server.xml accordingly. You will need to change the connector port as well.

If by multiple instances you mean that you want to load-balance Tomcat
requests, you need to set up a worker in workers.properties (assuming that
you are using JK) for each Tomcat.  Good load-balancing HOWTO:
http://www.ubeans.com/tomcat

John

 -Original Message-
 From: Pedro Igor Craveiro e Silva [mailto:pedroigor;aip.com.br]
 Sent: Tuesday, November 05, 2002 6:43 AM
 To: [EMAIL PROTECTED]
 Subject: Multiple instances of Tomcat


 Greetings 

 A long, long time i´m trying to configure tomcat to run with
 multiple instances (tomcat+apache).
 Has some one in this list that can help me to do this ? Or
 just give me the firt step 

 Thanks a lot ...

 Pedro Igor


--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Multiple instances of Tomcat

2002-09-11 Thread Santosh Kulkarni

Hi,
I have multiple instances of Tomcat4.0.3, say, TC1,
TC2, TC3 running on different m/c's and all these are
talking to the same database. I have some application
objects stored in each instance. My requirement: When
I refresh an app object say app1 in TC1, I want to
refresh this object in TC2 and TC3 too. These app
objects store same data from the DB, but are specific
to that tomcat instance. How do I achieve this ?
Any pointers to this are highly appreciated.
TIA
Santosh

__
Yahoo! - We Remember
9-11: A tribute to the more than 3,000 lives lost
http://dir.remember.yahoo.com/tribute

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Multiple instances of Tomcat

2002-09-11 Thread micael

The answer would depend upon what event, etc., is the occasion for the 
refresh[ing of] an app object.  If the objects store the same data, 
sounds as if you really don't want multiple objects.  Do you mean Value 
Objects?  You can do all this many, many, many different ways.  What do you 
mean when you say you have the application objects stored?  You have a 
common database but yet different storage for the application objects.  So, 
you must mean something other than database storage.  What kind of 
storage?  Serialized?  If you are serializiong three objects outside the 
database with the identical features and need to refresh them to be the 
same, why not just write them to the common database?  I probably don't 
understand what you have in mind.  I like this problems that sound like 
this though.

At 12:25 AM 9/11/2002 -0700, you wrote:
Hi,
I have multiple instances of Tomcat4.0.3, say, TC1,
TC2, TC3 running on different m/c's and all these are
talking to the same database. I have some application
objects stored in each instance. My requirement: When
I refresh an app object say app1 in TC1, I want to
refresh this object in TC2 and TC3 too. These app
objects store same data from the DB, but are specific
to that tomcat instance. How do I achieve this ?
Any pointers to this are highly appreciated.
TIA
Santosh

__
Yahoo! - We Remember
9-11: A tribute to the more than 3,000 lives lost
http://dir.remember.yahoo.com/tribute

--
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: Multiple instances of Tomcat

2002-09-11 Thread Vikramjit Singh

 -Original Message-
 From: Santosh Kulkarni [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, September 11, 2002 12:25 AM
 To: [EMAIL PROTECTED]
 Subject: Multiple instances of Tomcat
 
 
 Hi,
 I have multiple instances of Tomcat4.0.3, say, TC1,
 TC2, TC3 running on different m/c's and all these are
 talking to the same database. I have some application
 objects stored in each instance. My requirement: When
 I refresh an app object say app1 in TC1, I want to
 refresh this object in TC2 and TC3 too. These app
 objects store same data from the DB, but are specific
 to that tomcat instance. How do I achieve this ?
 Any pointers to this are highly appreciated.

My 2 cents.
You can run a daemon thread which shall check the values in your database
after a specified time gap say 2 mins, and if the database value has been
changed, then the corresponding value in the context can be refreshed.

 TIA
 Santosh
Vikram.
 
 __
 Yahoo! - We Remember
 9-11: A tribute to the more than 3,000 lives lost
 http://dir.remember.yahoo.com/tribute
 
 --
 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: Multiple instances of Tomcat

2002-09-11 Thread Rui Fernandes

If you really need this you can do in very different ways.
A file can be generated by one instance saying I (TC1) refreshed.
All tomcats are checking from time to time (you specifiy) if there's this
new file.
When there's each tomcat must write its line (I TCi refreshed). The last one
deletes the file.

When say a file, it can be a table on database.
Or you can send an email from each tomcat refreshing to all you want to be
warned. Each tomcat would be checking on its mail box.

Or even easier you have a servlet responsible for refreshing the object in
each tomcat which receives the request for refreshing its object. Each
toncat would then call the corresponding servlet through redirect for
warning them.

you can do by SMS too lol


- Original Message -
From: Santosh Kulkarni [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 11, 2002 9:25 AM
Subject: Multiple instances of Tomcat


 Hi,
 I have multiple instances of Tomcat4.0.3, say, TC1,
 TC2, TC3 running on different m/c's and all these are
 talking to the same database. I have some application
 objects stored in each instance. My requirement: When
 I refresh an app object say app1 in TC1, I want to
 refresh this object in TC2 and TC3 too. These app
 objects store same data from the DB, but are specific
 to that tomcat instance. How do I achieve this ?
 Any pointers to this are highly appreciated.
 TIA
 Santosh

 __
 Yahoo! - We Remember
 9-11: A tribute to the more than 3,000 lives lost
 http://dir.remember.yahoo.com/tribute

 --
 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: Multiple instances of Tomcat

2002-09-11 Thread Glenn Nielsen

Use Object Relational Bridge:

http://jakarta.apache.org/ojb/

You can run it on a seperate system and use it to persist objects
for all three instance of Tomcat.

Regards,

Glenn

Santosh Kulkarni wrote:
 Hi,
 I have multiple instances of Tomcat4.0.3, say, TC1,
 TC2, TC3 running on different m/c's and all these are
 talking to the same database. I have some application
 objects stored in each instance. My requirement: When
 I refresh an app object say app1 in TC1, I want to
 refresh this object in TC2 and TC3 too. These app
 objects store same data from the DB, but are specific
 to that tomcat instance. How do I achieve this ?
 Any pointers to this are highly appreciated.
 TIA
 Santosh
 
 __
 Yahoo! - We Remember
 9-11: A tribute to the more than 3,000 lives lost
 http://dir.remember.yahoo.com/tribute
 
 --
 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]




Multiple instances of Tomcat

2002-08-02 Thread Frank Diakovasilis

I have come across this topic many times in this mailing list, but never
paid attention since I never needed to but I now need to run multiple
instances of Tomcat on a single server (IIS).  The only docs I came across
say to set a CATALINA_BASE variable, and that is all they say.  What steps
need to be taken to use multiple instances of Tomcat? What directories need
to be duplicated, and what files need to be changed? also I am using the
isapi redirect, what has to be done there? 
 
I'd appreciate any help, Thanks.
 
-Frank



AW: Multiple instances of Tomcat

2002-08-02 Thread Ralph Einfeldt


Although the following is for unix and tomcat standalone, this 
should give you the right direction. We have a structure 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 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


  export JAVA_HOME CATALINA_HOME CATALINA_BASE
  ${CATALINA_HOME}/bin/startup.sh

/usr/local/java/jdk/ibm1.3
/usr/local/java/jdk/sun1.3
/usr/local/java/jdk/sun1.3.1
/usr/local/java/jdk/sun1.4

/usr/local/java/tomcat-4.0.3
/usr/local/java/tomcat-4.0.4

This way we can have different versions of tomcat at the same time, 
all sites that use the same tomcat version use the same 'executable'
but different processes and individual configuration. If we want to 
use an other version of tomcat we just have to change CATALINA_HOME 
in start.sh (unless the config files are incompatible between these 
versions)

Have a look at RUNNING.txt in the tomcat distribution:

(4) Advanced Configuration - Multiple Tomcat 4 Instances
...

Ralph Einfeldt
Uptime Internet Solution Center GmbH
Hamburg, Germany
Hosting, Content Management, Java Consulting
http://www.uptime-isc.de 

 -Ursprüngliche Nachricht-
 Von: Frank Diakovasilis [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 2. August 2002 16:26
 An: '[EMAIL PROTECTED]'
 Betreff: Multiple instances of Tomcat
 
 I have come across this topic many times in this mailing 
 list, but never paid attention since I never needed to 
 but I now need to run multiple instances of Tomcat on a 
 single server (IIS).  The only docs I came across say to 
 set a CATALINA_BASE variable, and that is all they say.
 What steps need to be taken to use multiple instances of 
 Tomcat? What directories need to be duplicated, and what 
 files need to be changed? also I am using the isapi redirect, 
 what has to be done there? 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Multiple instances of Tomcat

2002-08-02 Thread Frank Diakovasilis

Thank you Ralph, this should get me started.

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 02, 2002 10:31 AM
To: Tomcat Users List
Subject: AW: Multiple instances of Tomcat



Although the following is for unix and tomcat standalone, this 
should give you the right direction. We have a structure 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 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


  export JAVA_HOME CATALINA_HOME CATALINA_BASE
  ${CATALINA_HOME}/bin/startup.sh

/usr/local/java/jdk/ibm1.3
/usr/local/java/jdk/sun1.3
/usr/local/java/jdk/sun1.3.1
/usr/local/java/jdk/sun1.4

/usr/local/java/tomcat-4.0.3
/usr/local/java/tomcat-4.0.4

This way we can have different versions of tomcat at the same time, 
all sites that use the same tomcat version use the same 'executable'
but different processes and individual configuration. If we want to 
use an other version of tomcat we just have to change CATALINA_HOME 
in start.sh (unless the config files are incompatible between these 
versions)

Have a look at RUNNING.txt in the tomcat distribution:

(4) Advanced Configuration - Multiple Tomcat 4 Instances
...

Ralph Einfeldt
Uptime Internet Solution Center GmbH
Hamburg, Germany
Hosting, Content Management, Java Consulting
http://www.uptime-isc.de 

 -Ursprüngliche Nachricht-
 Von: Frank Diakovasilis [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 2. August 2002 16:26
 An: '[EMAIL PROTECTED]'
 Betreff: Multiple instances of Tomcat
 
 I have come across this topic many times in this mailing 
 list, but never paid attention since I never needed to 
 but I now need to run multiple instances of Tomcat on a 
 single server (IIS).  The only docs I came across say to 
 set a CATALINA_BASE variable, and that is all they say.
 What steps need to be taken to use multiple instances of 
 Tomcat? What directories need to be duplicated, and what 
 files need to be changed? also I am using the isapi redirect, 
 what has to be done there? 

--
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: Multiple instances of Tomcat

2002-08-02 Thread David Mossakowski

You need to go through the server.xml file and for whatever connectors 
that use ports that you have uncommente the following fashion:

item 
original port   tomcat 1tomcat 2
--
server 
8005 
11005   12005
ajp 
8009 
11009   12009
http 
8080 
11080   12080

the ubeans site recommends commenting http standalone out but I wanted 
to keep it for testing so I changed that too

d.

Frank Diakovasilis wrote:
 I have come across this topic many times in this mailing list, but never
 paid attention since I never needed to but I now need to run multiple
 instances of Tomcat on a single server (IIS).  The only docs I came across
 say to set a CATALINA_BASE variable, and that is all they say.  What steps
 need to be taken to use multiple instances of Tomcat? What directories need
 to be duplicated, and what files need to be changed? also I am using the
 isapi redirect, what has to be done there? 
  
 I'd appreciate any help, Thanks.
  
 -Frank
 


-- 
David Mossakowski  [EMAIL PROTECTED]
Instinet Corporation 212.310.7275



**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Multiple instances of Tomcat

2002-08-02 Thread Frank Diakovasilis

thanks

-Original Message-
From: David Mossakowski [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 02, 2002 1:45 PM
To: Tomcat Users List
Subject: Re: Multiple instances of Tomcat


You need to go through the server.xml file and for whatever connectors 
that use ports that you have uncommente the following fashion:

item 
original port   tomcat 1tomcat 2
--
server 
8005 
11005   12005
ajp 
8009 
11009   12009
http 
8080 
11080   12080

the ubeans site recommends commenting http standalone out but I wanted 
to keep it for testing so I changed that too

d.

Frank Diakovasilis wrote:
 I have come across this topic many times in this mailing list, but never
 paid attention since I never needed to but I now need to run multiple
 instances of Tomcat on a single server (IIS).  The only docs I came across
 say to set a CATALINA_BASE variable, and that is all they say.  What steps
 need to be taken to use multiple instances of Tomcat? What directories
need
 to be duplicated, and what files need to be changed? also I am using the
 isapi redirect, what has to be done there? 
  
 I'd appreciate any help, Thanks.
  
 -Frank
 


-- 
David Mossakowski  [EMAIL PROTECTED]
Instinet Corporation 212.310.7275



**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**


--
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: Multiple Instances of Tomcat 4.0.4

2002-07-15 Thread Vijay Kandy

Thank you for your reply. I am still not far from where I started last week!
When using Tomcat 3.2.3, my tomcat.conf read something like this:

[snip]
ApJServMount /alpha ajpv12://web:8995/alpha
ApJServMount /beta  ajpv12://web:8996/beta
[snip]

where web was the host machine and /alpha and /beta were applications on
two instances of tomcat. Now I am using Tomcat 4.0.4 and therefore mod_jk.
How should I change my tomcat.conf? I tried replacing ApJServMount with
JkMount but Apache(2.0.39) doesnt seem to redirect to tomcat :(

Anybody somebody please help!
-Vijay

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Saturday, July 13, 2002 12:51 PM
To: Tomcat Users List
Subject: Re: Multiple Instances of Tomcat 4.0.4


ubeans.com/tomcat - try that.

I haven't personally done this, so I can't help you.  The above assumes 
you're using Apache.  Hopefully someone else will respond that knows more.

Regards,

Eddie

Vijay Kandy wrote:

Hello All,

When I try to run %CATALINA_HOME%\bin\catalina start -f
%CATALINA_HOME%\conf\server1.xml for different server.xml's I get this
message:
usage: java org.apache.catalina.startup.Catalina [ -config {pathname} ] [
-debug
 ] [ -nonaming ] { start | stop }

From the docs, I made copies of Tomcat folder and added the paths to
CATALINA_BASE. Doesnt seem to work either. Can some one point me in the
right direction please? Is there a good documentation?

Thank you,
Vijay

--
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]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Multiple Instances of Tomcat 4.0.4

2002-07-13 Thread Vijay Kandy

Hello All,

When I try to run %CATALINA_HOME%\bin\catalina start -f
%CATALINA_HOME%\conf\server1.xml for different server.xml's I get this
message:
usage: java org.apache.catalina.startup.Catalina [ -config {pathname} ] [
-debug
 ] [ -nonaming ] { start | stop }

From the docs, I made copies of Tomcat folder and added the paths to
CATALINA_BASE. Doesnt seem to work either. Can some one point me in the
right direction please? Is there a good documentation?

Thank you,
Vijay

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Multiple Instances of Tomcat 4.0.4

2002-07-13 Thread Eddie Bush

ubeans.com/tomcat - try that.

I haven't personally done this, so I can't help you.  The above assumes 
you're using Apache.  Hopefully someone else will respond that knows more.

Regards,

Eddie

Vijay Kandy wrote:

Hello All,

When I try to run %CATALINA_HOME%\bin\catalina start -f
%CATALINA_HOME%\conf\server1.xml for different server.xml's I get this
message:
usage: java org.apache.catalina.startup.Catalina [ -config {pathname} ] [
-debug
 ] [ -nonaming ] { start | stop }

From the docs, I made copies of Tomcat folder and added the paths to
CATALINA_BASE. Doesnt seem to work either. Can some one point me in the
right direction please? Is there a good documentation?

Thank you,
Vijay

--
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]




Multiple instances of tomcat

2002-03-27 Thread Vijay Kandy


Hello all,

I have posted this once, but went unanswered. Can some one please help me?
Iam having problems configuring multiple instances of Tomcat with Apache. 
I have 7 instances of Tomcat talking to Apache. But Tomcat is serving both
HTML and Servlet content. I want Apache to serve HTML and Tomcat to serve
out Servlet content. I have a _server.xml file for each instance of
Tomcat and the Context goes like this:
Context path=/pboAlpha
docBase=webapps/pboAlpha
debug=0
reloadable=false 
crossContext=false 
/Context
[I have one context in each server.xml file so, each instance hosts just one
context.] Also I have 1 tomcat.conf and it goes this like:
ApJServMount /pboAlpha ajpv12://dev.server.com:8995/pboAlpha
ApJServMount /pboBeta  ajpv12://dev.server.com:8996/pboBeta
...and 5 more...

I think, as soon as Apache come across /pboAlpha in the URL, it forwards it
to Tomcat instance wether it be a HTML request or Servlet request. What am I
doing wrong? I would be grateful for any help.
Thank you,
Vijay.


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: problem with multiple instances on Tomcat 4.0.1

2001-12-31 Thread Mark . Donoghue

dj,

Did you change all of the port assignments?  I ran into the same problem and
found I hadn't changed the port for the tomcat server :
Server port=8005 shutdown=SHUTDOWN debug=0

I had just changed the HTTP connector port.

Search for port in the server.xml file and see where it's being assigned.

Good luck,
-Mark


-Original Message-
From: Dong Jiang [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 31, 2001 8:08 AM
To: [EMAIL PROTECTED]
Subject: problem with multiple instances on Tomcat 4.0.1


Hi,

I installed Tomcat4.0.1 on a Solaris box. I try to
start multiple instances on different port according
to the installation instruction. However, I found that
I can only start one instance at the one port, the
other instances, although set to start at different
ports by server.xml, has address in use error.
Anyone has the same experience or help me on this will
be greatly appreciated.

dj

__
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Multiple instances of tomcat 4

2001-11-01 Thread Hauck, Joe

I am trying to set up Tomcat 4 to run multiple instances.  I have set
the CATALINA_BASE variable to a different path than CATALINA_HOME and
have copied the server.xml file from $CATALINA_HOME/conf to
$CATALINA_BASE/conf.  I have changed the $CATALINA_BASE/conf/server.xml
file so that ports 8XXX are now 9XXX.  I try to run the following:
$CATALINA_HOME/bin/startup.sh -f $CATALINA_BASE/conf/server.xml

Tomcat is not started, and I get the following message in the
$CATALINA_BASE/logs/catalina.out:
usage: java org.apache.catalina.startup.Catalina [ -config {pathname} ]
[ -debug ] [ -nonaming ] { start | stop }

When I startup tomcat normally:
$CATALINA_HOME/bin/startup.sh
Everything works just fine.

If anyone else has been able to set up multiple instances of Tomcat 4,
would you please let me know how?

Thanks.

Joe.

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Multiple Instances of Tomcat

2001-09-06 Thread Abhijat Thakur


I am trying to configure multiple instances of tomcat under apache. I have
server1.xml(port 8007) and server2.xml(port 8009) files and everytime i
start tomcat with any of these files i rename the mod_jk.conf-auto file to
mod_jk.conf1-auto and mod_jk.conf2-auto. I have then included
mod_jk.conf1-auto and mod_jk.conf2-auto in apaches httpd.conf. After this
everything should be working fine.

I cannnot run servlets or jsp pages defined within the context of
server2.xml. However all the contexts defined withing server1.xml work fine.
Am i missing a step or something. In documentation they mention that in
apache configuration we have to instruct the web server adapter on how to
find the Tomcat process responsible for the context. They mention that these
have to be added
# Mounting the first context.
JkMount /abc ajpv12://localhost:8007/abc
# Mounting the second context.
JkMount /xyz ajpv12://localhost:8009/xyz

In which file i dont know?

Please advise.

Thanks
Abhijat Thakur

bDNA Corporation




Multiple Instances of Tomcat

2001-07-25 Thread Abhijat Thakur


Hi,

I am trying to run multiple instances of Tomcat. The documentation tells me
that i have to have two server.xml files and have to start Tomca with
bin/startup.sh -f /conf/server1.xml and bin/startup.sh -f /conf/server2.xml.
Depending on the tomcat instance to which a servlet in a particular
application has to be directed the context for that application has to be
defined in that particular server.xml file.

Now when i start my tomcat and try and start my second instnace of tomcat i
get an error. However the port on which i am starting the second tomcat
instance is free.

FATAL:java.net.BindException: Address already in use
java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:405)
at java.net.ServerSocket.init(ServerSocket.java:170)
at java.net.ServerSocket.init(ServerSocket.java:121)
at
org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(DefaultServerS
ocketFactory.java:97)
at
org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java
:239)
at
org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.java:188)
at
org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)


Any advice is highly appreciated.

Abhijat Thakur




RE: Multiple Instances of Tomcat

2001-07-25 Thread Abhijat Thakur

Hi,

i am actually using different ports. 8007(server1.xml) and
8009(server2.xml). but i still get the error message.

thanks


-Original Message-
From: Jason Koeninger [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 25, 2001 1:37 PM
To: [EMAIL PROTECTED]
Subject: Re: Multiple Instances of Tomcat


The http, ajp12, and/or ajp13 services can't bind to the same port on
the same IP address.  You need to modify server.xml to put things
on different ports or different IP addresses.

Best Regards,

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

On Wed, 25 Jul 2001 13:46:29 -0700, Abhijat Thakur wrote:


Hi,

I am trying to run multiple instances of Tomcat. The documentation tells me
that i have to have two server.xml files and have to start Tomca with
bin/startup.sh -f /conf/server1.xml and bin/startup.sh -f
/conf/server2.xml.
Depending on the tomcat instance to which a servlet in a particular
application has to be directed the context for that application has to be
defined in that particular server.xml file.

Now when i start my tomcat and try and start my second instnace of tomcat i
get an error. However the port on which i am starting the second tomcat
instance is free.

FATAL:java.net.BindException: Address already in use
java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:405)
at java.net.ServerSocket.init(ServerSocket.java:170)
at java.net.ServerSocket.init(ServerSocket.java:121)
at
org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(DefaultServer
S
ocketFactory.java:97)
at
org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.jav
a
:239)
at
org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.java:188)
at
org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)


Any advice is highly appreciated.

Abhijat Thakur







RE: Multiple Instances of Tomcat

2001-07-25 Thread Jason Koeninger

Those sound like they would be used for ajp12 or 13 port 
numbers.  Are you sure the http connector isn't still enabled 
on both server.xml files for port 8080?  I'd be happy to glance 
at the two files if you like.

Best Regards,

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

On Wed, 25 Jul 2001 13:52:21 -0700, Abhijat Thakur wrote:

Hi,

i am actually using different ports. 8007(server1.xml) and
8009(server2.xml). but i still get the error message.

thanks


-Original Message-
From: Jason Koeninger [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 25, 2001 1:37 PM
To: [EMAIL PROTECTED]
Subject: Re: Multiple Instances of Tomcat


The http, ajp12, and/or ajp13 services can't bind to the same port on
the same IP address.  You need to modify server.xml to put things
on different ports or different IP addresses.

Best Regards,

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

On Wed, 25 Jul 2001 13:46:29 -0700, Abhijat Thakur wrote:


Hi,

I am trying to run multiple instances of Tomcat. The documentation tells me
that i have to have two server.xml files and have to start Tomca with
bin/startup.sh -f /conf/server1.xml and bin/startup.sh -f
/conf/server2.xml.
Depending on the tomcat instance to which a servlet in a particular
application has to be directed the context for that application has to be
defined in that particular server.xml file.

Now when i start my tomcat and try and start my second instnace of tomcat i
get an error. However the port on which i am starting the second tomcat
instance is free.

FATAL:java.net.BindException: Address already in use
java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:405)
at java.net.ServerSocket.init(ServerSocket.java:170)
at java.net.ServerSocket.init(ServerSocket.java:121)
at
org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(DefaultServer
S
ocketFactory.java:97)
at
org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.jav
a
:239)
at
org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.java:188)
at
org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)


Any advice is highly appreciated.

Abhijat Thakur









Re: Multiple Instances of Tomcat

2001-07-25 Thread Pier P. Fumagalli

Abhijat Thakur at [EMAIL PROTECTED] wrote:

 Hi,
 
 i am actually using different ports. 8007(server1.xml) and
 8009(server2.xml). but i still get the error message.

I believe it's the control port of the tomcat server, the one used to
shutdown the VM.

Pier




RE: Multiple Instances of Tomcat

2001-07-25 Thread Abhijat Thakur


You were right the http connector was open in the second instance and was
trying to access the same port as the one in the first instance. Now it
works just fine.

Thanks a lot. Appreciate all the help.

Regards

Abhijat Thakur

-Original Message-
From: Jason Koeninger [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 25, 2001 1:43 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: Multiple Instances of Tomcat


Those sound like they would be used for ajp12 or 13 port
numbers.  Are you sure the http connector isn't still enabled
on both server.xml files for port 8080?  I'd be happy to glance
at the two files if you like.

Best Regards,

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

On Wed, 25 Jul 2001 13:52:21 -0700, Abhijat Thakur wrote:

Hi,

i am actually using different ports. 8007(server1.xml) and
8009(server2.xml). but i still get the error message.

thanks


-Original Message-
From: Jason Koeninger [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 25, 2001 1:37 PM
To: [EMAIL PROTECTED]
Subject: Re: Multiple Instances of Tomcat


The http, ajp12, and/or ajp13 services can't bind to the same port on
the same IP address.  You need to modify server.xml to put things
on different ports or different IP addresses.

Best Regards,

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

On Wed, 25 Jul 2001 13:46:29 -0700, Abhijat Thakur wrote:


Hi,

I am trying to run multiple instances of Tomcat. The documentation tells
me
that i have to have two server.xml files and have to start Tomca with
bin/startup.sh -f /conf/server1.xml and bin/startup.sh -f
/conf/server2.xml.
Depending on the tomcat instance to which a servlet in a particular
application has to be directed the context for that application has to be
defined in that particular server.xml file.

Now when i start my tomcat and try and start my second instnace of tomcat
i
get an error. However the port on which i am starting the second tomcat
instance is free.

FATAL:java.net.BindException: Address already in use
java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:405)
at java.net.ServerSocket.init(ServerSocket.java:170)
at java.net.ServerSocket.init(ServerSocket.java:121)
at
org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(DefaultServe
r
S
ocketFactory.java:97)
at
org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.ja
v
a
:239)
at
org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.java:188
)
at
org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)


Any advice is highly appreciated.

Abhijat Thakur










Multiple Instances of Tomcat

2001-07-25 Thread Abhijat Thakur

Hi,

I have multiple instances of Tomcat running on my server and i have
configured apache to work with tomcat. What i am not able to figure out is
which tomcat file needs modification so that different contexts can be
directed to different instances. In server.xml file for different instances
i do mention the different contexts related with the different instances.

According to Documentation i have to do something like this in
(Apache-Tomcat Configuration with per Context JVM)

# Mounting the first context.
ApJServMount /xyz ajpv12://xyz.corp.com:8007/xyz

# Mounting the second context.
ApJServMount /abc ajpv12://abc.corp.com:8007/abc


i am not sure which file needs this modification. At present which ever
instance i load in the end all the requests get directed to that instance.

Any help is highly appreciated.

Thanks a lot

Regards

Abhijat Thakur







multiple instances of tomcat

2001-05-04 Thread teh j

Hello all

I was just wondering whether it would be possible to
have two different tomcat processes (running on
different ports) simultaneously?

From looking at the 'Minimalistic Usres Guide' it
seems this can be done with Apache, but can it be done
with Tomcat as a standalond JSP server?

thanks!
Jason

_
http://store.yahoo.com.au - Yahoo! Store
- It's time you had your business online!



RE: multiple instances of tomcat

2001-05-04 Thread William Kaufman

For development, we're doing exactly that: starting five different Tomcat
processes, each with its own server.xml (specified with a -f command-line
flag) which specifies the set of ports to use.

Now, we're not using JSPs, but servlets.  There may be some issues with
recompilation of JSPs in one Tomcat instance confusing another one--you
might want to turn off class reloading to be safe.  But everything else
should work fine.

-- Bill K.


 -Original Message-
 From: teh j [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 04, 2001 12:05 AM
 To: [EMAIL PROTECTED]
 Subject: multiple instances of tomcat
 
 
 Hello all
 
 I was just wondering whether it would be possible to
 have two different tomcat processes (running on
 different ports) simultaneously?
 
 From looking at the 'Minimalistic Usres Guide' it
 seems this can be done with Apache, but can it be done
 with Tomcat as a standalond JSP server?
 
 thanks!
 Jason
 
 __
 ___
 http://store.yahoo.com.au - Yahoo! Store
 - It's time you had your business online!
 



Re: multiple instances of tomcat

2001-05-04 Thread Peter Hrastnik

It is possible: You must have two different server.xml files. In the
server.xml file you can configure that port in the http connector
element. You also need to have 2 startup-scripts that call tomcat with
the appropriate server.xml file. You don't need Apache to do this.

Bye,
Peter.

-- 
Mag. Peter Hrastnik
tele.ring Telekom Service GmbH
A-1030 Wien, Hainburgerstr. 33
Tel.: +43/1/931012/3277, Mobil: +43/650/6503277


teh j wrote:
 
 Hello all
 
 I was just wondering whether it would be possible to
 have two different tomcat processes (running on
 different ports) simultaneously?
 
 From looking at the 'Minimalistic Usres Guide' it
 seems this can be done with Apache, but can it be done
 with Tomcat as a standalond JSP server?
 
 thanks!
 Jason
 
 _
 http://store.yahoo.com.au - Yahoo! Store
 - It's time you had your business online!



Re: multiple instances of tomcat

2001-05-04 Thread Will England

Also, when you start tomcat, use the -r option to point to the correct
server.xml file.

ex:

tomcat-start -r /usr/local/tomcat/conf/server-2.xml
tomcat-start -r /usr/local/tomcat/conf/server-1.xml

Where server-1.xml defines tomcat on port 8001, and server-2 defines
tomcat on 8002.

Will

-- 
  If Al Gore invented the Internet, then I invented spellcheck!
  Dan Quayle, quoted at the National Press Club, 8/3/1999 
  [EMAIL PROTECTED] 
  Recovery  : http://will.mylanders.com/ PCS:  316-371-FOAD 

On Fri, 4 May 2001, Peter Hrastnik wrote:

 It is possible: You must have two different server.xml files. In the
 server.xml file you can configure that port in the http connector
 element. You also need to have 2 startup-scripts that call tomcat with
 the appropriate server.xml file. You don't need Apache to do this.
 
 Bye,
   Peter.
 
 




RE: multiple instances of tomcat

2001-05-04 Thread Wolfgang Stein

We run two tomcats on WinNT.
- Make Two tomcat directory trees e.g. Tomcat1, Tomcat2.
- in each tomcat.bat set a specific TOMCAT_HOME directly
  e.g.  set TOMCAT_HOME=D:\Tomcat1
set TOMCAT_HOME=D:\Tomcat2
  instead of using a predefined System var TOMCAT_HOME.
- modify each server.xml for the specific port.

If you start tomcat as a NT service you have to
modify in each wrapper.properties 
the var 'wrapper.tomcat_home' analogously

Good luck,
Wolfgang Stein


 -Original Message-
 From: Peter Hrastnik [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 04, 2001 4:05 PM
 To: [EMAIL PROTECTED]
 Subject: Re: multiple instances of tomcat
 
 
 It is possible: You must have two different server.xml files. In the
 server.xml file you can configure that port in the http connector
 element. You also need to have 2 startup-scripts that call tomcat with
 the appropriate server.xml file. You don't need Apache to do this.
 
 Bye,
   Peter.
 
 -- 
 Mag. Peter Hrastnik
 tele.ring Telekom Service GmbH
 A-1030 Wien, Hainburgerstr. 33
 Tel.: +43/1/931012/3277, Mobil: +43/650/6503277
 
 
 teh j wrote:
  
  Hello all
  
  I was just wondering whether it would be possible to
  have two different tomcat processes (running on
  different ports) simultaneously?
  
  From looking at the 'Minimalistic Usres Guide' it
  seems this can be done with Apache, but can it be done
  with Tomcat as a standalond JSP server?
  
  thanks!
  Jason
  
  
 __
 ___
  http://store.yahoo.com.au - Yahoo! Store
  - It's time you had your business online!




RE: multiple instances of tomcat

2001-05-04 Thread Sankaranarayanan Ganapathy

Hi,

I am not sure if it possible to run two instances of tomcat in standalone
mode with different versions of server.xml. Tomcat has this strong notion of
home built in to, the two tomcats should have different homes if they were
to work mutually exclusive of each other. For if the two instances were to
use the same home they both of them would see the same set of
webapplications, use common logs, work directory and other configuration
file in the conf directory.

Thanx
Ganesh

-Original Message-
From: Peter Hrastnik [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 04, 2001 7:05 AM
To: [EMAIL PROTECTED]
Subject: Re: multiple instances of tomcat


It is possible: You must have two different server.xml files. In the
server.xml file you can configure that port in the http connector
element. You also need to have 2 startup-scripts that call tomcat with
the appropriate server.xml file. You don't need Apache to do this.

Bye,
Peter.

-- 
Mag. Peter Hrastnik
tele.ring Telekom Service GmbH
A-1030 Wien, Hainburgerstr. 33
Tel.: +43/1/931012/3277, Mobil: +43/650/6503277


teh j wrote:
 
 Hello all
 
 I was just wondering whether it would be possible to
 have two different tomcat processes (running on
 different ports) simultaneously?
 
 From looking at the 'Minimalistic Usres Guide' it
 seems this can be done with Apache, but can it be done
 with Tomcat as a standalond JSP server?
 
 thanks!
 Jason
 


_
 http://store.yahoo.com.au - Yahoo! Store
 - It's time you had your business online!



RE: multiple instances of tomcat

2001-05-04 Thread Joshua Sharp

To seperate the JSP repositories for each instance, you can specify the jsp
compiled classfile directory in the ContextManager tag in Server.xml. Just
change the workDir variable to different directories. That way you don't
have to orry about reading the wrong JSP repository. 

Josh

-Original Message-
From: Sankaranarayanan Ganapathy [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 04, 2001 1:49 PM
To: '[EMAIL PROTECTED]'
Subject: RE: multiple instances of tomcat


Hi,

I am not sure if it possible to run two instances of tomcat in standalone
mode with different versions of server.xml. Tomcat has this strong notion of
home built in to, the two tomcats should have different homes if they were
to work mutually exclusive of each other. For if the two instances were to
use the same home they both of them would see the same set of
webapplications, use common logs, work directory and other configuration
file in the conf directory.

Thanx
Ganesh

-Original Message-
From: Peter Hrastnik [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 04, 2001 7:05 AM
To: [EMAIL PROTECTED]
Subject: Re: multiple instances of tomcat


It is possible: You must have two different server.xml files. In the
server.xml file you can configure that port in the http connector
element. You also need to have 2 startup-scripts that call tomcat with
the appropriate server.xml file. You don't need Apache to do this.

Bye,
Peter.

-- 
Mag. Peter Hrastnik
tele.ring Telekom Service GmbH
A-1030 Wien, Hainburgerstr. 33
Tel.: +43/1/931012/3277, Mobil: +43/650/6503277


teh j wrote:
 
 Hello all
 
 I was just wondering whether it would be possible to
 have two different tomcat processes (running on
 different ports) simultaneously?
 
 From looking at the 'Minimalistic Usres Guide' it
 seems this can be done with Apache, but can it be done
 with Tomcat as a standalond JSP server?
 
 thanks!
 Jason
 


_
 http://store.yahoo.com.au - Yahoo! Store
 - It's time you had your business online!
This electronic mail transmission
may contain confidential information and is intended only for the person(s)
named.  Any use, copying or disclosure by any other person is strictly
prohibited.  If you have received this transmission in error, please notify
the sender via e-mail. 



Multiple instances of Tomcat

2001-02-08 Thread Dan Kummer

Has anybody successfully gotten multiple instances of Tomcat running with a
single apache instance?
What I want is to be able to have different servlets served by different
tomcats to enable me to shutdown an instance with out killing the other
servlets.
I would also like to balance the load over multiple CPU's for obvious
reasons.

Background:
OS: FreeBSD 4.2
Apache: 1.3.14
Tomcat: 3.2.1
Functioning with multiple virtual servers and a single tomcat for example
http://server1 http://server1  an http://server2 http://server2  are
both being handed off to a single tomcat instance.
What I would like is for http://server1 http://server1  to be handled by
one tomcat instance and http://server2 http://server2  to be handled by
another.

I have seen some documentation on this but it is very limited.
Any help would be appreciated
Please cc me in replies.

Thanks

Dan Kummer
Requisite Technology
[EMAIL PROTECTED]
Office: (303) 474-2204
Office fax: (303) 474-2211
E-CONTENT SOLUTIONS THAT POWER B2B E-COMMERCE



CONFIDENTIALITY NOTICE
This electronic mail transmission and any accompanying documents contain
information belonging to the sender 
("Information") that may be confidential and legally privileged.  If you are
not the intended recipient, any disclosure, copying,
distribution or action taken in reliance on the Information is strictly
prohibited.  If you have received the Information in error,
please contact the sender by reply email and destroy all copies of the
original email.
 Thank you.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Multiple instances of Tomcat

2001-02-08 Thread guyr

Yes, I've done this.  You need to hand-tailor workers.properties (I copied
it to workers.https and then modified it.)  Your customized workers should
use the standard ports.  Set one virtual server to communicate using ajp12,
and the other using ajp13.  Then in your the ** original **
workers.properties for one of the tomcats, change ajp12 to use an unused
port, e.g. 8008, and also update server.xml to use this port. Now, start
both tomcats, then start apache.  Your apache will talk to one of the
tomcats on ajp12, and the other on ajp13.  You can still shut down the
tomcat under which you changed ajp12, since you have it running, just on a
different port.

-Original Message-
From: Dan Kummer [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 08, 2001 3:20 PM
To: '[EMAIL PROTECTED]'
Subject: Multiple instances of Tomcat


Has anybody successfully gotten multiple instances of Tomcat running with a
single apache instance?
What I want is to be able to have different servlets served by different
tomcats to enable me to shutdown an instance with out killing the other
servlets.
I would also like to balance the load over multiple CPU's for obvious
reasons.

Background:
OS: FreeBSD 4.2
Apache: 1.3.14
Tomcat: 3.2.1
Functioning with multiple virtual servers and a single tomcat for example
http://server1 http://server1  an http://server2 http://server2  are
both being handed off to a single tomcat instance.
What I would like is for http://server1 http://server1  to be handled by
one tomcat instance and http://server2 http://server2  to be handled by
another.

I have seen some documentation on this but it is very limited.
Any help would be appreciated
Please cc me in replies.

Thanks

Dan Kummer
Requisite Technology
[EMAIL PROTECTED]
Office: (303) 474-2204
Office fax: (303) 474-2211
E-CONTENT SOLUTIONS THAT POWER B2B E-COMMERCE



CONFIDENTIALITY NOTICE
This electronic mail transmission and any accompanying documents contain
information belonging to the sender 
("Information") that may be confidential and legally privileged.  If you are
not the intended recipient, any disclosure, copying,
distribution or action taken in reliance on the Information is strictly
prohibited.  If you have received the Information in error,
please contact the sender by reply email and destroy all copies of the
original email.
 Thank you.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: multiple instances of Tomcat

2001-01-03 Thread Craig R. McClanahan

Amy Roh wrote:

 Does tomcat allow multiple instances running on the same machine?

You can do this if you run Tomcat on different port numbers.

  What happens
 if you have different JSP files with same name on different ports?  Does it
 create one java file or two?  Will one overwrite the other one?


There's two different scenarios:

* Do you have separate TOMCAT_HOME directory hierarchies?
  If so, everything is independent of each other, and no overwrites
  will occur

* Are you sharing TOMCAT_HOME directories?  You are most
  likely going to have overwrite problems, because the work directories
  will be shared.


 - Amy


Craig McClanahan



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: multiple instances of Tomcat

2001-01-03 Thread Ed Gomolka



 -Original Message-
 From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 03, 2001 12:29 PM
 To: [EMAIL PROTECTED]
 Subject: Re: multiple instances of Tomcat


 Amy Roh wrote:

  Does tomcat allow multiple instances running on the same machine?

 You can do this if you run Tomcat on different port numbers.

   What happens
  if you have different JSP files with same name on different
 ports?  Does it
  create one java file or two?  Will one overwrite the other one?
 

 There's two different scenarios:

 * Do you have separate TOMCAT_HOME directory hierarchies?
   If so, everything is independent of each other, and no overwrites
   will occur

 * Are you sharing TOMCAT_HOME directories?  You are most
   likely going to have overwrite problems, because the work directories
   will be shared.

Do you truly need completely different TOMCAT_HOME directory trees?
I assumed that using different log and work hierarchies would be sufficient.
I have been experimenting with the following:

In TOMCAT_HOME, I have separate startup.sh files, which identify specific
server.xml files, as follows:
$BASEDIR/tomcat.sh start -security -config ../conf/server_tst.xml "$@"

The server.xml file (or, in this case, server_tst.xml file), then specifies
a specific log and work directory structure, as follows:

Logger name="tc_log"
path="logs/tst/tomcat.log"
verbosityLevel = "DEBUG"

/
. and later .
ContextManager debug="0" workDir="work/tst" showDebugInfo="true" 

server_tst.xml also has the the autosetup line commented out, and the
specific context
I want to use is identified:
!--
ContextInterceptor className="org.apache.tomcat.context.AutoSetup"
/
--
. and later .
Context path="/tst"

 docBase="webapps/tst"

 crossContext="false"

 debug="0"

 reloadable="true"

/Context


It seems to me that this, along with the port changes, should work, but I'm
getting
errors, like this:
2001-01-03 08:50:09 - ContextManager: Error reading request, ignored -
java.lang.NullPointerExceptio
n
at
org.apache.tomcat.core.ContextManager.handleError(ContextManager.java:1099)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:80
0)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHand
ler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




multiple instances of Tomcat

2001-01-02 Thread Amy Roh

Does tomcat allow multiple instances running on the same machine?  What happens
if you have different JSP files with same name on different ports?  Does it
create one java file or two?  Will one overwrite the other one?

- Amy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]