running multiple tomcat instances as windows service

2005-04-21 Thread Jaynika Barot
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  
  set CATALINA_BASE=C:\TC2
 c:\TC1\bin>service.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]



RE: Multiple tomcat instances

2005-04-15 Thread Fritz Schneider
Steve,

In the Host definition you specify an appBase for the applications directory
(which will have a new ROOT under it), a Valve for the AccessLog, and
whatever else you want to split off. The applications in the appBase
directory will have their own WEB-INFO where you specify Servlet mappings,
etc. The only restriction that I can think of is that the servlets in
WEB-INF/web.xml must have different Servlet-names from those in conf/web.xml

Fritz

-Original Message-
From: Kelly, Steve [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 15, 2005 7:41 AM
To: Tomcat Users List
Subject: RE: Multiple tomcat instances

Can you expand a bit more how this would work. I understand how you can
have two domains pointing to the same ip address but how do I split my
logs, servlet mapping and web apps.

Steve.  

-Original Message-
From: Fritz Schneider [mailto:[EMAIL PROTECTED] 
Sent: 15 April 2005 12:10
To: 'Tomcat Users List'
Subject: RE: Multiple tomcat instances

Another option which uses fewer resources but doesn't provide quite the
same degree of isolation is to run two hosts in the same Catalina
service. If your DNS maps www.mydomain.com and test.mydomain.com to the
same IP address, they can share the same ports. Each one can have its
own logs, Servlet mappings, and set of apps.

Fritz

-Original Message-
From: Peter Crowther [mailto:[EMAIL PROTECTED]
Sent: Friday, April 15, 2005 2:55 AM
To: Tomcat Users List
Subject: RE: Multiple tomcat instances

> From: Kelly, Steve [mailto:[EMAIL PROTECTED]
> Is it possible to run multiple instances of tomcat on the same server,

> for example to support production and test environments ?

Yes.  I run up to four on this machine - two (one 4.1, one 5.0) are
running as I type this.

Here's a Windows script that works (give or take the HOME path) for
Tomcat 4 and 5.0 - untested on 5.5, but I can't see why it should fail.
The UNIX equivalent is pretty obvious.  Check out CATALINA_HOME - where
Tomcat is installed - versus CATALINA_BASE - where this instance stores
its files.  Note the JAVA_OPTS for increased stack and heap sizes, too;
this line is optional.

C:\cattery is where I store the data for the four instances.

-- snip --
set CATALINA_HOME=C:\Program Files\Apache Group\Tomcat 4.1 set
CATALINA_BASE=c:\cattery\instance1
set JAVA_OPTS=-Xms64m -Xmx256m
cd %CATALINA_HOME%\bin
startup
-- snip --

Under CATALINA_BASE for each instance, you'll need conf, logs, temp,
webapps, and work directories.  The easiest way to create these is to
copy them from CATALINA_HOME.  You'll then need to modify
conf/server.xml to make sure each instance is running on its own ports -
don't forget to change the shutdown port!

Good luck, yell if you have any problems getting this to work.

- Peter

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



-
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 tomcat instances

2005-04-15 Thread Kelly, Steve
Can you expand a bit more how this would work. I understand how you can
have two domains pointing to the same ip address but how do I split my
logs, servlet mapping and web apps.

Steve.  

-Original Message-
From: Fritz Schneider [mailto:[EMAIL PROTECTED] 
Sent: 15 April 2005 12:10
To: 'Tomcat Users List'
Subject: RE: Multiple tomcat instances

Another option which uses fewer resources but doesn't provide quite the
same degree of isolation is to run two hosts in the same Catalina
service. If your DNS maps www.mydomain.com and test.mydomain.com to the
same IP address, they can share the same ports. Each one can have its
own logs, Servlet mappings, and set of apps.

Fritz

-Original Message-
From: Peter Crowther [mailto:[EMAIL PROTECTED]
Sent: Friday, April 15, 2005 2:55 AM
To: Tomcat Users List
Subject: RE: Multiple tomcat instances

> From: Kelly, Steve [mailto:[EMAIL PROTECTED]
> Is it possible to run multiple instances of tomcat on the same server,

> for example to support production and test environments ?

Yes.  I run up to four on this machine - two (one 4.1, one 5.0) are
running as I type this.

Here's a Windows script that works (give or take the HOME path) for
Tomcat 4 and 5.0 - untested on 5.5, but I can't see why it should fail.
The UNIX equivalent is pretty obvious.  Check out CATALINA_HOME - where
Tomcat is installed - versus CATALINA_BASE - where this instance stores
its files.  Note the JAVA_OPTS for increased stack and heap sizes, too;
this line is optional.

C:\cattery is where I store the data for the four instances.

-- snip --
set CATALINA_HOME=C:\Program Files\Apache Group\Tomcat 4.1 set
CATALINA_BASE=c:\cattery\instance1
set JAVA_OPTS=-Xms64m -Xmx256m
cd %CATALINA_HOME%\bin
startup
-- snip --

Under CATALINA_BASE for each instance, you'll need conf, logs, temp,
webapps, and work directories.  The easiest way to create these is to
copy them from CATALINA_HOME.  You'll then need to modify
conf/server.xml to make sure each instance is running on its own ports -
don't forget to change the shutdown port!

Good luck, yell if you have any problems getting this to work.

- Peter

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



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



RE: Multiple tomcat instances

2005-04-15 Thread Fritz Schneider
Another option which uses fewer resources but doesn't provide quite the same
degree of isolation is to run two hosts in the same Catalina service. If
your DNS maps www.mydomain.com and test.mydomain.com to the same IP address,
they can share the same ports. Each one can have its own logs, Servlet
mappings, and set of apps.

Fritz

-Original Message-
From: Peter Crowther [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 15, 2005 2:55 AM
To: Tomcat Users List
Subject: RE: Multiple tomcat instances

> From: Kelly, Steve [mailto:[EMAIL PROTECTED] 
> Is it possible to run multiple instances of tomcat on the same server,
> for example to support production and test environments ?

Yes.  I run up to four on this machine - two (one 4.1, one 5.0) are
running as I type this.

Here's a Windows script that works (give or take the HOME path) for
Tomcat 4 and 5.0 - untested on 5.5, but I can't see why it should fail.
The UNIX equivalent is pretty obvious.  Check out CATALINA_HOME - where
Tomcat is installed - versus CATALINA_BASE - where this instance stores
its files.  Note the JAVA_OPTS for increased stack and heap sizes, too;
this line is optional.

C:\cattery is where I store the data for the four instances.

-- snip --
set CATALINA_HOME=C:\Program Files\Apache Group\Tomcat 4.1
set CATALINA_BASE=c:\cattery\instance1
set JAVA_OPTS=-Xms64m -Xmx256m
cd %CATALINA_HOME%\bin
startup
-- snip --

Under CATALINA_BASE for each instance, you'll need conf, logs, temp,
webapps, and work directories.  The easiest way to create these is to
copy them from CATALINA_HOME.  You'll then need to modify
conf/server.xml to make sure each instance is running on its own ports -
don't forget to change the shutdown port!

Good luck, yell if you have any problems getting this to work.

- Peter

-
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 tomcat instances

2005-04-15 Thread Anto Paul
On 4/15/05, Peter Crowther <[EMAIL PROTECTED]> wrote:
> > From: Kelly, Steve [mailto:[EMAIL PROTECTED]
> > Is it possible to run multiple instances of tomcat on the same server,
> > for example to support production and test environments ?
> 
> Yes.  I run up to four on this machine - two (one 4.1, one 5.0) are
> running as I type this.
> 
> Here's a Windows script that works (give or take the HOME path) for
> Tomcat 4 and 5.0 - untested on 5.5, but I can't see why it should fail.
> The UNIX equivalent is pretty obvious.  Check out CATALINA_HOME - where
> Tomcat is installed - versus CATALINA_BASE - where this instance stores
> its files.  Note the JAVA_OPTS for increased stack and heap sizes, too;
> this line is optional.
> 
> C:\cattery is where I store the data for the four instances.
> 
> -- snip --
> set CATALINA_HOME=C:\Program Files\Apache Group\Tomcat 4.1
> set CATALINA_BASE=c:\cattery\instance1
> set JAVA_OPTS=-Xms64m -Xmx256m
> cd %CATALINA_HOME%\bin
> startup
> -- snip --
> 
> Under CATALINA_BASE for each instance, you'll need conf, logs, temp,
> webapps, and work directories.  The easiest way to create these is to
> copy them from CATALINA_HOME.  You'll then need to modify
> conf/server.xml to make sure each instance is running on its own ports -
> don't forget to change the shutdown port!
> 
> Good luck, yell if you have any problems getting this to work.
> 
>- Peter
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

If you have more than one IP address you can run more than one
instances on same machine on same port but different IP addresses. You
have to specify the IP address in the address attribute of
 element.

-- 
Anto Paul

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



RE: Multiple tomcat instances

2005-04-15 Thread Peter Crowther
> From: Kelly, Steve [mailto:[EMAIL PROTECTED] 
> Is it possible to run multiple instances of tomcat on the same server,
> for example to support production and test environments ?

Yes.  I run up to four on this machine - two (one 4.1, one 5.0) are
running as I type this.

Here's a Windows script that works (give or take the HOME path) for
Tomcat 4 and 5.0 - untested on 5.5, but I can't see why it should fail.
The UNIX equivalent is pretty obvious.  Check out CATALINA_HOME - where
Tomcat is installed - versus CATALINA_BASE - where this instance stores
its files.  Note the JAVA_OPTS for increased stack and heap sizes, too;
this line is optional.

C:\cattery is where I store the data for the four instances.

-- snip --
set CATALINA_HOME=C:\Program Files\Apache Group\Tomcat 4.1
set CATALINA_BASE=c:\cattery\instance1
set JAVA_OPTS=-Xms64m -Xmx256m
cd %CATALINA_HOME%\bin
startup
-- snip --

Under CATALINA_BASE for each instance, you'll need conf, logs, temp,
webapps, and work directories.  The easiest way to create these is to
copy them from CATALINA_HOME.  You'll then need to modify
conf/server.xml to make sure each instance is running on its own ports -
don't forget to change the shutdown port!

Good luck, yell if you have any problems getting this to work.

- Peter

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



RE: Multiple tomcat instances

2005-04-15 Thread Dale, Matt
yes, just modify the server.xml on the 2nd instance so it runs on different 
ports.

Ta
Matt

-Original Message-
From: Kelly, Steve [mailto:[EMAIL PROTECTED]
Sent: 15 April 2005 10:33
To: tomcat-user@jakarta.apache.org
Subject: Multiple tomcat instances


Hi,
 
Is it possible to run multiple instances of tomcat on the same server,
for example to support production and test environments ?
 
Thanks in advance,
 
Steve. 

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



Multiple tomcat instances

2005-04-15 Thread Kelly, Steve
Hi,
 
Is it possible to run multiple instances of tomcat on the same server,
for example to support production and test environments ?
 
Thanks in advance,
 
Steve. 


Re: The number of tomcat directory for multiple tomcat instances

2005-02-17 Thread Wolfgang Hackl
Terry Chung wrote:
I'm running APACHE 2.0.48 with Tomcat 4.1.29 on HP box/os.
I'm running multiple tomcats that are connected to Apache using round-robin
load balancing.  All tomcat instances and apache is running on the same HP
box.
 

This configuration seems a bit strange. If you have only one machine, I  
see no need to balance load between instances. There is always the 
maximum load on this machine.

The document I read states that I need a unique CATALINA_HOME for each
tomcat instance.  Is there a way  to have one CATALINA_HOME and have
multiple server.xml file in the conf directory?
If I need individual catalina_home for each tomcat instance, than what is
the minimum sub-directories needed for each catalina_home? i.e., do we need
all of /logs, /webapps, /work, and /temp?
 

There must only be one unique CATALINA_HOME but individual CATALINA_BASE 
for each instance. Please read the section "Advanced Configuration" in 
the file RUNNING.txt which comes with tomcat for instructions.

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


The number of tomcat directory for multiple tomcat instances

2005-02-17 Thread Terry Chung
Hi,

I'm running APACHE 2.0.48 with Tomcat 4.1.29 on HP box/os.
I'm running multiple tomcats that are connected to Apache using round-robin
load balancing.  All tomcat instances and apache is running on the same HP
box.

The document I read states that I need a unique CATALINA_HOME for each
tomcat instance.  Is there a way  to have one CATALINA_HOME and have
multiple server.xml file in the conf directory?

If I need individual catalina_home for each tomcat instance, than what is
the minimum sub-directories needed for each catalina_home? i.e., do we need
all of /logs, /webapps, /work, and /temp?

Thanks in advance


-
This message and its attachments may contain  privileged and confidential
information.  If you are not the intended recipient(s), you are prohibited
from printing, forwarding, saving or copying this email.  If you have
received this e-mail in error, please immediately notify the sender and
delete this e-mail and its attachments from your computer.


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



RE: isapi_redirector2.dll - IIS redirecting to multiple Tomcat instances

2004-08-10 Thread Alex

i have.  took a lot of fighting.

On Thu, 5 Aug 2004, Matt Krevs wrote:

> Date: Thu, 5 Aug 2004 08:41:56 +1000
> From: Matt Krevs <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: RE: isapi_redirector2.dll - IIS redirecting to multiple Tomcat
> instances
>
> I'd be interested to hear if anyone has successfully configured a single
> instance of IIS directing requests to multiple Tomcat instances at all


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



Re: isapi_redirector2.dll - IIS redirecting to multiple Tomcat instances

2004-08-10 Thread Alex

Matt, incase no one has helped out -- You don't need to use the lb
stuff if you don't want.  Enjoy.

[shm:]
info=Shared memory file. Required for multiprocess servers
file=E:\\Apache\\Tomcat5\\work\\jk2.shm
size=1048576

[lb:lb]
info=Default load balancer 0.
sticky_session=1

[lb:lb1]
info=Default load balancer 1.
sticky_session=1

[channel.socket:spprod1]
info=Ajp13 forwarding over socket - spprod1
port=8009
host=10.99.116.1
lb_factor=100
tomcatId=10.99.116.1:8009
group=lb
type=ajp13

[channel.socket:spprod2]
info=Ajp13 forwarding over socket - spprod2
port=8009
host=10.99.116.2
lb_factor=100
tomcatId=10.99.116.2:8009
group=lb1
type=ajp13

[uri:/test1/*]
info=hi mom
worker=lb:lb
context=/somecontext

[uri:/test2/*]
info=hi mom
worker=lb:lb1
context=/someothercontext



On Tue, 3 Aug 2004, Matt Krevs wrote:

> Date: Tue, 3 Aug 2004 15:32:30 +1000
> From: Matt Krevs <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: isapi_redirector2.dll - IIS redirecting to multiple Tomcat
> instances
>
> Hi all,
>
> I'm using isapi_redirector2.dll to redirect webapp requests on my IIS
> server to tomcat.
>
> Is it possible to make this single redirector redirect requests to
> different
> instances of tomcat (depending on uri)?
>
> For example, a request to IIS for "/app1/" should go to localhost:8080
> and a request for "/app2/" should go to localhost:8081.
>
> I'm using Windows, so if this is possible, what would my registry
> entries look
> like (ie: serverRoot key), and what would my workers2.properties look
> like?


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



RE: isapi_redirector2.dll - IIS redirecting to multiple Tomcat instances

2004-08-04 Thread Matt Krevs
I'd be interested to hear if anyone has successfully configured a single
instance of IIS directing requests to multiple Tomcat instances at all

-Original Message-
From: Matt Krevs [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 3 August 2004 3:33 PM
To: '[EMAIL PROTECTED]'
Subject: isapi_redirector2.dll - IIS redirecting to multiple Tomcat
instances


Hi all,

I'm using isapi_redirector2.dll to redirect webapp requests on my IIS
server to tomcat.

Is it possible to make this single redirector redirect requests to
different instances of tomcat (depending on uri)?

For example, a request to IIS for "/app1/" should go to localhost:8080
and a request for "/app2/" should go to localhost:8081.

I'm using Windows, so if this is possible, what would my registry
entries look like (ie: serverRoot key), and what would my
workers2.properties look like?

Thanks
Matt


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



isapi_redirector2.dll - IIS redirecting to multiple Tomcat instances

2004-08-02 Thread Matt Krevs
Hi all,

I'm using isapi_redirector2.dll to redirect webapp requests on my IIS
server to tomcat.

Is it possible to make this single redirector redirect requests to
different
instances of tomcat (depending on uri)?

For example, a request to IIS for "/app1/" should go to localhost:8080
and a request for "/app2/" should go to localhost:8081.

I'm using Windows, so if this is possible, what would my registry
entries look
like (ie: serverRoot key), and what would my workers2.properties look
like?

Thanks
Matt


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



Re: Multiple Tomcat Instances with Linux

2004-06-22 Thread shiv juluru
start the server,after that change the port#  in conf file and start the server 
again,i think this may helpful for u

Dan Barron <[EMAIL PROTECTED]> wrote:Jon,

I have used the CATALINA_HOME/common/lib to share jar files among different 
instances. Not sure if that answers your question though.

Dan

At 10:54 AM 6/21/2004, you wrote:
>Dan,
>
>Thanks for the post, good ideas I'm going to try them.
> One thing I'm still not clear on. My application is
>configured to deploy shared modules (jar files) under
>CATALINA_HOME/shared/lib.
>
>If I create multiple instances, how do I configure the
>apps to share the correct version of
>CATALINA_HOME/shared/lib?
>
>Do you create a separate document root that contains a
>shared/lib for each entry in the server.xml
>configuration?
>
>Jon
>
>
>--- Dan Barron wrote:
> > Jon,
> >
> > I run multiple tomcat services on a Linux box with
> > Apache for various
> > development and distributions. The way I went about
> > it is to setup
> > multiple configurations within the
> > server.xml file. Each service
> > has it own port for connectivity and its own worker
> > for mod_jk. I create a
> > virtual host entry in mod_jk.conf file which mounts
> > the assigned worker
> > which in turn points to the specific tomcat service.
> > Here's the three
> > files I touch to make it work and an example entry.
> > My environment is
> > Tomcat 4.1.29, mod_jk, and Apache 1.3.27.
> >
> > Hope this helps.
> >
> > Dan
> >
> > *FILE:mod_jk.conf
> >
>#~~~
> > # domain.com Virtual Host Definition
> >
>#~~~
> >
> > 
> > ServerName www.domain.com
> > DocumentRoot /usr/www/domain.com
> > ErrorLog logs/domain.com/error_log
> > CustomLog logs/domain.com/access_log common
> >
> > ScriptAlias /cgi-bin/
> > "/usr/www/domain.com/cgi-bin/"
> >
> > 
> > AllowOverride None
> > Options None
> > Order allow,deny
> > Allow from all
> > 
> >
> > JkMount /servlet/* domain_worker
> > JkMount /alpha/*.jsp domain_worker
> > JkMount /*.jsp domain_worker
> >
> > 
> >
> > **FILE: workers.properties
> >
> > worker.list=ajp13, domain_worker
> >
> > worker.ajp13.port=8009
> > worker.ajp13.host=localhost
> > worker.ajp13.type=ajp13
> >
> > worker.ajp13.lbfactor=20
> > worker.ajp13.cachesize=20
> >
> > worker.domain_worker.port=8010
> > worker.domain_worker.host=localhost
> > worker.domain_worker.type=ajp13
> >
> > worker.domain_worker.lbfactor=20
> > worker.domain_worker.cachesize=20
> >
> >
> > *FILE:server.xml
> >
> > 
> > ...
> >
> > 
> >
> > > > port 8081 -->
> > > >
>className="org.apache.catalina.connector.http.HttpConnector"
> > port="8081" minProcessors="5"
> > maxProcessors="75"
> > enableLookups="true"
> > redirectPort="8443"
> > acceptCount="10" debug="0"
> > connectionTimeout="6"/>
> >
> > > > -->
> > > > className="org.apache.ajp.tomcat4.Ajp13Connector"
> > port="8010" minProcessors="5"
> > maxProcessors="75"
> > acceptCount="10" debug="0"/>
> >
> > > > container hierarchy -->
> > > > defaultHost="www.domain.com" debug="0">
> >
> > > > levels -->
> > > > className="org.apache.catalina.logger.FileLogger"
> > prefix="catalina_domain_log."
> > suffix=".txt"
> > timestamp="true"/>
> >
> > > > will be shared globally -->
> > > > className="org.apache.catalina.realm.MemoryRealm" />
> >
> > 
> > > > appBase="webapps/domain.com"
> > unpackWARs="true" autoDeploy="true">
> >
> > > >
>className="org.apache.catalina.valves.AccessLogValve"
> > directory="logs"
> > prefix="domain_access_log." suffix=".txt"
> > pattern="common"/>
> >
> > > > className="org.apache.catalina.logger.FileLogger"
> > directory="logs"
> > prefix="domain_log." suffix=".txt"
> > timestamp="true"/>
> >
> > 
> > 
> >
> > 
> >
> > 
> >
> >
> > 
> >
> > 
> >
> >
> > At 05:26 PM 6/18/2004, Jon Feauto wrote:
> > >I see this question posted quite often, but rarely
> > >answers abound. Is it because this is too complex
> > a
> > >topic to explain in a user group?
> > >
> > >I would think it is fairly common, anyone have
> > ideas?
> > >
> > >Jon
> > >
> > >
> > >--- Jon Feauto wrote:
> > > > Hello,
> > > >
> > > > I'm certain I am behind the curve on this one,
> > but
> > > > I've been looking around for several days now
> > and
> > > > haven't found the answers I need.
> > > >
> > > > I'm looking to setup multiple environments for
> > > > Tomcat
> > > > 4x on a single linux server. One for each
> > developer
> > > > and several others for different versions of
> > test.
> > > >
> > > > From the mail list archives I've come to
> > understand
> > > > that CATALINA_BASE can be used to configure
> > multiple
> > > > instances. However, most examples I've seen use
> > > > this
> > > > in coordination with multiple server.xml files.
> > > >
> > > > I'm hoping there is a trick to this that I'm
> > > > missing.
> > > > I don't mind the extra configuration as long as
> > that
> > > > is the recommended approach.
> > >

Re: Multiple Tomcat Instances with Linux

2004-06-21 Thread Jon Feauto
Dan,

That is essentially the situation I am trying to
avoid.  There are several applications within an
instance of Tomcat that share resources from
shared/lib, but those shared/lib resources should not
be shared between instances.

My goal is to have the separate instances represent
independent environments.

Jon


--- Dan Barron <[EMAIL PROTECTED]> wrote:
> Jon,
> 
> I have used the CATALINA_HOME/common/lib to share
> jar files among different 
>  instances.  Not sure if that answers your
> question though.
> 
> Dan
> 
> At 10:54 AM 6/21/2004, you wrote:
> >Dan,
> >
> >Thanks for the post, good ideas I'm going to try
> them.
> >  One thing I'm still not clear on.  My application
> is
> >configured to deploy shared modules (jar files)
> under
> >CATALINA_HOME/shared/lib.
> >
> >If I create multiple instances, how do I configure
> the
> >apps to share the correct version of
> >CATALINA_HOME/shared/lib?
> >
> >Do you create a separate document root that
> contains a
> >shared/lib for each  entry in the
> server.xml
> >configuration?
> >
> >Jon
> >
> >
> >--- Dan Barron <[EMAIL PROTECTED]> wrote:
> > > Jon,
> > >
> > > I run multiple tomcat services on a Linux box
> with
> > > Apache for various
> > > development and distributions.  The way I went
> about
> > > it is to setup
> > > multiple  configurations within the
> > > server.xml file. Each service
> > > has it own port for connectivity and its own
> worker
> > > for mod_jk.  I create a
> > > virtual host entry in mod_jk.conf file which
> mounts
> > > the assigned worker
> > > which in turn points to the specific tomcat
> service.
> > >  Here's the three
> > > files I touch to make it work and an example
> entry.
> > > My environment is
> > > Tomcat 4.1.29, mod_jk, and Apache 1.3.27.
> > >
> > > Hope this helps.
> > >
> > > Dan
> > >
> > > *FILE:mod_jk.conf
> > >
>
>#~~~
> > > # domain.com Virtual Host Definition
> > >
>
>#~~~
> > >
> > > 
> > >  ServerName www.domain.com
> > >  DocumentRoot /usr/www/domain.com
> > >  ErrorLog logs/domain.com/error_log
> > >  CustomLog logs/domain.com/access_log common
> > >
> > > ScriptAlias /cgi-bin/
> > > "/usr/www/domain.com/cgi-bin/"
> > >
> > > 
> > >  AllowOverride None
> > >  Options None
> > >  Order allow,deny
> > >  Allow from all
> > >  
> > >
> > > JkMount /servlet/* domain_worker
> > > JkMount /alpha/*.jsp domain_worker
> > > JkMount /*.jsp domain_worker
> > >
> > > 
> > >
> > > **FILE: workers.properties
> > >
> > > worker.list=ajp13, domain_worker
> > >
> > > worker.ajp13.port=8009
> > > worker.ajp13.host=localhost
> > > worker.ajp13.type=ajp13
> > >
> > > worker.ajp13.lbfactor=20
> > > worker.ajp13.cachesize=20
> > >
> > > worker.domain_worker.port=8010
> > > worker.domain_worker.host=localhost
> > > worker.domain_worker.type=ajp13
> > >
> > > worker.domain_worker.lbfactor=20
> > > worker.domain_worker.cachesize=20
> > >
> > >
> > > *FILE:server.xml
> > >
> > > 
> > >  ...
> > >
> > >
> > >
> > >   
> > >   > >
>
>className="org.apache.catalina.connector.http.HttpConnector"
> > > port="8081" minProcessors="5"
> > > maxProcessors="75"
> > > enableLookups="true"
> > > redirectPort="8443"
> > > acceptCount="10" debug="0"
> > > connectionTimeout="6"/>
> > >
> > >  
> > >   > >
> className="org.apache.ajp.tomcat4.Ajp13Connector"
> > > port="8010" minProcessors="5"
> > > maxProcessors="75"
> > > acceptCount="10" debug="0"/>
> > >
> > > 
> > >   > > defaultHost="www.domain.com" debug="0">
> > >
> > >
> > > > >
> className="org.apache.catalina.logger.FileLogger"
> > >prefix="catalina_domain_log."
> > > suffix=".txt"
> > >timestamp="true"/>
> > >
> > >
> > > > >
> className="org.apache.catalina.realm.MemoryRealm" />
> > >
> > >
> > > > > appBase="webapps/domain.com"
> > > unpackWARs="true" autoDeploy="true">
> > >
> > >   > >
>
>className="org.apache.catalina.valves.AccessLogValve"
> > >   directory="logs"
> > > prefix="domain_access_log." suffix=".txt"
> > >   pattern="common"/>
> > >
> > >   > >
> className="org.apache.catalina.logger.FileLogger"
> > >   directory="logs"
> > > prefix="domain_log." suffix=".txt"
> > >  timestamp="true"/>
> > >
> > >  
> > >  
> > >
> > >
> > >
> > >  
> > >
> > >
> > >
> > >
> > > 
> > >
> > >
> > > At 05:26 PM 6/18/2004, Jon Feauto wrote:
> > > >I see this question posted quite often, but
> rarely
> > > >answers abound.  Is it because this is too
> complex
> > > a
> 
=== message truncated ===


__
Do You 

Re: Multiple Tomcat Instances with Linux

2004-06-21 Thread Dan Barron
Jon,
I have used the CATALINA_HOME/common/lib to share jar files among different 
 instances.  Not sure if that answers your question though.

Dan
At 10:54 AM 6/21/2004, you wrote:
Dan,
Thanks for the post, good ideas I'm going to try them.
 One thing I'm still not clear on.  My application is
configured to deploy shared modules (jar files) under
CATALINA_HOME/shared/lib.
If I create multiple instances, how do I configure the
apps to share the correct version of
CATALINA_HOME/shared/lib?
Do you create a separate document root that contains a
shared/lib for each  entry in the server.xml
configuration?
Jon
--- Dan Barron <[EMAIL PROTECTED]> wrote:
> Jon,
>
> I run multiple tomcat services on a Linux box with
> Apache for various
> development and distributions.  The way I went about
> it is to setup
> multiple  configurations within the
> server.xml file. Each service
> has it own port for connectivity and its own worker
> for mod_jk.  I create a
> virtual host entry in mod_jk.conf file which mounts
> the assigned worker
> which in turn points to the specific tomcat service.
>  Here's the three
> files I touch to make it work and an example entry.
> My environment is
> Tomcat 4.1.29, mod_jk, and Apache 1.3.27.
>
> Hope this helps.
>
> Dan
>
> *FILE:mod_jk.conf
>
#~~~
> # domain.com Virtual Host Definition
>
#~~~
>
> 
>  ServerName www.domain.com
>  DocumentRoot /usr/www/domain.com
>  ErrorLog logs/domain.com/error_log
>  CustomLog logs/domain.com/access_log common
>
> ScriptAlias /cgi-bin/
> "/usr/www/domain.com/cgi-bin/"
>
> 
>  AllowOverride None
>  Options None
>  Order allow,deny
>  Allow from all
>  
>
> JkMount /servlet/* domain_worker
> JkMount /alpha/*.jsp domain_worker
> JkMount /*.jsp domain_worker
>
> 
>
> **FILE: workers.properties
>
> worker.list=ajp13, domain_worker
>
> worker.ajp13.port=8009
> worker.ajp13.host=localhost
> worker.ajp13.type=ajp13
>
> worker.ajp13.lbfactor=20
> worker.ajp13.cachesize=20
>
> worker.domain_worker.port=8010
> worker.domain_worker.host=localhost
> worker.domain_worker.type=ajp13
>
> worker.domain_worker.lbfactor=20
> worker.domain_worker.cachesize=20
>
>
> *FILE:server.xml
>
> 
>  ...
>
>
>
>   
>  
className="org.apache.catalina.connector.http.HttpConnector"
> port="8081" minProcessors="5"
> maxProcessors="75"
> enableLookups="true"
> redirectPort="8443"
> acceptCount="10" debug="0"
> connectionTimeout="6"/>
>
>  
>   className="org.apache.ajp.tomcat4.Ajp13Connector"
> port="8010" minProcessors="5"
> maxProcessors="75"
> acceptCount="10" debug="0"/>
>
> 
>   defaultHost="www.domain.com" debug="0">
>
>
> className="org.apache.catalina.logger.FileLogger"
>prefix="catalina_domain_log."
> suffix=".txt"
>timestamp="true"/>
>
>
> className="org.apache.catalina.realm.MemoryRealm" />
>
>
> appBase="webapps/domain.com"
> unpackWARs="true" autoDeploy="true">
>
>  
className="org.apache.catalina.valves.AccessLogValve"
>   directory="logs"
> prefix="domain_access_log." suffix=".txt"
>   pattern="common"/>
>
>   className="org.apache.catalina.logger.FileLogger"
>   directory="logs"
> prefix="domain_log." suffix=".txt"
>  timestamp="true"/>
>
>  
>  
>
>
>
>  
>
>
>
>
> 
>
>
> At 05:26 PM 6/18/2004, Jon Feauto wrote:
> >I see this question posted quite often, but rarely
> >answers abound.  Is it because this is too complex
> a
> >topic to explain in a user group?
> >
> >I would think it is fairly common, anyone have
> ideas?
> >
> >Jon
> >
> >
> >--- Jon Feauto <[EMAIL PROTECTED]> wrote:
> > > Hello,
> > >
> > > I'm certain I am behind the curve on this one,
> but
> > > I've been looking around for several days now
> and
> > > haven't found the answers I need.
> > >
> > > I'm looking to setup multiple environments for
> > > Tomcat
> > > 4x on a single linux server.  One for each
> developer
> > > and several others for different versions of
> test.
> > >
> > > From the mail list archives I've come to
> understand
> > > that CATALINA_BASE can be used to configure
> multiple
> > > instances.  However, most examples I've seen use
> > > this
> > > in coordination with multiple server.xml files.
> > >
> > > I'm hoping there is a trick to this that I'm
> > > missing.
> > > I don't mind the extra configuration as long as
> that
> > > is the recommended approach.
> > >
> > > For an installation supporting a linux service,
> does
> > > the /etc/init.d/tomcat4 script need to be
> modified
> > > to
> > > set the CATALINA_BASE for each instance started?
> > >
> > 

Re: Multiple Tomcat Instances with Linux

2004-06-21 Thread Jon Feauto
Dan,

Thanks for the post, good ideas I'm going to try them.
 One thing I'm still not clear on.  My application is
configured to deploy shared modules (jar files) under
CATALINA_HOME/shared/lib.

If I create multiple instances, how do I configure the
apps to share the correct version of
CATALINA_HOME/shared/lib?

Do you create a separate document root that contains a
shared/lib for each  entry in the server.xml
configuration?

Jon


--- Dan Barron <[EMAIL PROTECTED]> wrote:
> Jon,
> 
> I run multiple tomcat services on a Linux box with
> Apache for various 
> development and distributions.  The way I went about
> it is to setup 
> multiple  configurations within the
> server.xml file. Each service 
> has it own port for connectivity and its own worker
> for mod_jk.  I create a 
> virtual host entry in mod_jk.conf file which mounts
> the assigned worker 
> which in turn points to the specific tomcat service.
>  Here's the three 
> files I touch to make it work and an example entry. 
> My environment is 
> Tomcat 4.1.29, mod_jk, and Apache 1.3.27.
> 
> Hope this helps.
> 
> Dan
> 
> *FILE:mod_jk.conf
>
#~~~
> # domain.com Virtual Host Definition
>
#~~~
> 
> 
>  ServerName www.domain.com
>  DocumentRoot /usr/www/domain.com
>  ErrorLog logs/domain.com/error_log
>  CustomLog logs/domain.com/access_log common
> 
> ScriptAlias /cgi-bin/
> "/usr/www/domain.com/cgi-bin/"
> 
> 
>  AllowOverride None
>  Options None
>  Order allow,deny
>  Allow from all
>  
> 
> JkMount /servlet/* domain_worker
> JkMount /alpha/*.jsp domain_worker
> JkMount /*.jsp domain_worker
> 
> 
> 
> **FILE: workers.properties
> 
> worker.list=ajp13, domain_worker
> 
> worker.ajp13.port=8009
> worker.ajp13.host=localhost
> worker.ajp13.type=ajp13
> 
> worker.ajp13.lbfactor=20
> worker.ajp13.cachesize=20
> 
> worker.domain_worker.port=8010
> worker.domain_worker.host=localhost
> worker.domain_worker.type=ajp13
> 
> worker.domain_worker.lbfactor=20
> worker.domain_worker.cachesize=20
> 
> 
> *FILE:server.xml
> 
> 
>  ...
> 
>
> 
>   
>  
className="org.apache.catalina.connector.http.HttpConnector"
> port="8081" minProcessors="5"
> maxProcessors="75"
> enableLookups="true"
> redirectPort="8443"
> acceptCount="10" debug="0"
> connectionTimeout="6"/>
> 
>  
>   className="org.apache.ajp.tomcat4.Ajp13Connector"
> port="8010" minProcessors="5"
> maxProcessors="75"
> acceptCount="10" debug="0"/>
> 
> 
>   defaultHost="www.domain.com" debug="0">
> 
>
> className="org.apache.catalina.logger.FileLogger"
>prefix="catalina_domain_log."
> suffix=".txt"
>timestamp="true"/>
> 
>
> className="org.apache.catalina.realm.MemoryRealm" />
> 
>
> appBase="webapps/domain.com"
> unpackWARs="true" autoDeploy="true">
> 
>  
className="org.apache.catalina.valves.AccessLogValve"
>   directory="logs" 
> prefix="domain_access_log." suffix=".txt"
>   pattern="common"/>
> 
>   className="org.apache.catalina.logger.FileLogger"
>   directory="logs" 
> prefix="domain_log." suffix=".txt"
>  timestamp="true"/>
> 
>  
>  
> 
>
> 
>  
> 
> 
>
> 
> 
> 
> 
> At 05:26 PM 6/18/2004, Jon Feauto wrote:
> >I see this question posted quite often, but rarely
> >answers abound.  Is it because this is too complex
> a
> >topic to explain in a user group?
> >
> >I would think it is fairly common, anyone have
> ideas?
> >
> >Jon
> >
> >
> >--- Jon Feauto <[EMAIL PROTECTED]> wrote:
> > > Hello,
> > >
> > > I'm certain I am behind the curve on this one,
> but
> > > I've been looking around for several days now
> and
> > > haven't found the answers I need.
> > >
> > > I'm looking to setup multiple environments for
> > > Tomcat
> > > 4x on a single linux server.  One for each
> developer
> > > and several others for different versions of
> test.
> > >
> > > From the mail list archives I've come to
> understand
> > > that CATALINA_BASE can be used to configure
> multiple
> > > instances.  However, most examples I've seen use
> > > this
> > > in coordination with multiple server.xml files.
> > >
> > > I'm hoping there is a trick to this that I'm
> > > missing.
> > > I don't mind the extra configuration as long as
> that
> > > is the recommended approach.
> > >
> > > For an installation supporting a linux service,
> does
> > > the /etc/init.d/tomcat4 script need to be
> modified
> > > to
> > > set the CATALINA_BASE for each instance started?
> > >
> > > Do I need to use different port numbers to
> access
> > > those instances?
> > >
> > > Is the CATALINA_HOME/shared/lib actually

Re: Multiple Tomcat Instances with Linux

2004-06-18 Thread Dan Barron
Jon,
I run multiple tomcat services on a Linux box with Apache for various 
development and distributions.  The way I went about it is to setup 
multiple  configurations within the server.xml file. Each service 
has it own port for connectivity and its own worker for mod_jk.  I create a 
virtual host entry in mod_jk.conf file which mounts the assigned worker 
which in turn points to the specific tomcat service.  Here's the three 
files I touch to make it work and an example entry.  My environment is 
Tomcat 4.1.29, mod_jk, and Apache 1.3.27.

Hope this helps.
Dan
*FILE:mod_jk.conf
#~~~
# domain.com Virtual Host Definition
#~~~

ServerName www.domain.com
DocumentRoot /usr/www/domain.com
ErrorLog logs/domain.com/error_log
CustomLog logs/domain.com/access_log common
   ScriptAlias /cgi-bin/ "/usr/www/domain.com/cgi-bin/"
   
AllowOverride None
Options None
Order allow,deny
Allow from all

   JkMount /servlet/* domain_worker
   JkMount /alpha/*.jsp domain_worker
   JkMount /*.jsp domain_worker

**FILE: workers.properties
worker.list=ajp13, domain_worker
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=20
worker.ajp13.cachesize=20
worker.domain_worker.port=8010
worker.domain_worker.host=localhost
worker.domain_worker.type=ajp13
worker.domain_worker.lbfactor=20
worker.domain_worker.cachesize=20
*FILE:server.xml

...
  
 



   

  
  
  
  
  
  




  

  

At 05:26 PM 6/18/2004, Jon Feauto wrote:
I see this question posted quite often, but rarely
answers abound.  Is it because this is too complex a
topic to explain in a user group?
I would think it is fairly common, anyone have ideas?
Jon
--- Jon Feauto <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I'm certain I am behind the curve on this one, but
> I've been looking around for several days now and
> haven't found the answers I need.
>
> I'm looking to setup multiple environments for
> Tomcat
> 4x on a single linux server.  One for each developer
> and several others for different versions of test.
>
> From the mail list archives I've come to understand
> that CATALINA_BASE can be used to configure multiple
> instances.  However, most examples I've seen use
> this
> in coordination with multiple server.xml files.
>
> I'm hoping there is a trick to this that I'm
> missing.
> I don't mind the extra configuration as long as that
> is the recommended approach.
>
> For an installation supporting a linux service, does
> the /etc/init.d/tomcat4 script need to be modified
> to
> set the CATALINA_BASE for each instance started?
>
> Do I need to use different port numbers to access
> those instances?
>
> Is the CATALINA_HOME/shared/lib actually "shared"
> across instances or can it be unique to an instance
> according to CATALINA_BASE?
>
> Is virtual hosting required to support this type of
> environment?
>
> Any help is appreciated.
>
> Thanks,
> Jon
>
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam
> protection around
> http://mail.yahoo.com
>
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>

__
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail
-
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 Tomcat Instances with Linux

2004-06-18 Thread Jon Feauto
I see this question posted quite often, but rarely
answers abound.  Is it because this is too complex a
topic to explain in a user group?

I would think it is fairly common, anyone have ideas?

Jon


--- Jon Feauto <[EMAIL PROTECTED]> wrote:
> Hello,
> 
> I'm certain I am behind the curve on this one, but
> I've been looking around for several days now and
> haven't found the answers I need.
> 
> I'm looking to setup multiple environments for
> Tomcat
> 4x on a single linux server.  One for each developer
> and several others for different versions of test.
> 
> From the mail list archives I've come to understand
> that CATALINA_BASE can be used to configure multiple
> instances.  However, most examples I've seen use
> this
> in coordination with multiple server.xml files.
> 
> I'm hoping there is a trick to this that I'm
> missing. 
> I don't mind the extra configuration as long as that
> is the recommended approach.
> 
> For an installation supporting a linux service, does
> the /etc/init.d/tomcat4 script need to be modified
> to
> set the CATALINA_BASE for each instance started?
> 
> Do I need to use different port numbers to access
> those instances?
> 
> Is the CATALINA_HOME/shared/lib actually "shared"
> across instances or can it be unique to an instance
> according to CATALINA_BASE?
> 
> Is virtual hosting required to support this type of
> environment?
> 
> Any help is appreciated.
> 
> Thanks,
> Jon
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> http://mail.yahoo.com 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 




__
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 

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



Multiple Tomcat Instances with Linux

2004-06-18 Thread Jon Feauto
Hello,

I'm certain I am behind the curve on this one, but
I've been looking around for several days now and
haven't found the answers I need.

I'm looking to setup multiple environments for Tomcat
4x on a single linux server.  One for each developer
and several others for different versions of test.

>From the mail list archives I've come to understand
that CATALINA_BASE can be used to configure multiple
instances.  However, most examples I've seen use this
in coordination with multiple server.xml files.

I'm hoping there is a trick to this that I'm missing. 
I don't mind the extra configuration as long as that
is the recommended approach.

For an installation supporting a linux service, does
the /etc/init.d/tomcat4 script need to be modified to
set the CATALINA_BASE for each instance started?

Do I need to use different port numbers to access
those instances?

Is the CATALINA_HOME/shared/lib actually "shared"
across instances or can it be unique to an instance
according to CATALINA_BASE?

Is virtual hosting required to support this type of
environment?

Any help is appreciated.

Thanks,
Jon

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Apache 2, Tomcat 5, mod_jk2 with virtual hosts and multiple Tomcat instances

2004-06-08 Thread John Martin
Hi All,

I'm having problems integrating Apache 2.0.46, Tomcat 5.0.24 using connectors JK2 
2.0.2 on linux for multiple Tomcat instances.

I'm trying to run seperate instances of Tomcat for development environments that also 
correspond to different virtual hosts. I have managed to get the different instances 
of Tomcat working on there own, "browsing" to them using the relevant port numbers. If 
i then use mod_jk2 to connect to either instance seperately (without the other 
instance being configured), it all works ok, however when i try to run both (and 
configured) i get an "Internal Server error" for dev2, and the error in the Apache log 
file is:
 
[Mon Jun 07 22:26:13 2004] [error] channelSocket.open() connect failed 127.0.0.1:9109 
111 Connection refused
[Mon Jun 07 22:26:13 2004] [error] ajp13.connect() failed ajp13:localhost:9109
[Mon Jun 07 22:26:13 2004] [error] ajp13.service() failed to connect endpoint 
errno=111 Connection refused
[Mon Jun 07 22:26:13 2004] [error] ajp13.service() Error  forwarding 
ajp13:localhost:9109 1 1
[Mon Jun 07 22:26:13 2004] [notice] ajp13.done() close endpoint ajp13:localhost:9109 
error_state 1
[Mon Jun 07 22:26:13 2004] [error] lb.service() worker failed 12 for 
ajp13:localhost:9109
[Mon Jun 07 22:26:13 2004] [notice] lb.getWorker() All workers in error state, use the 
one with oldest error
[Mon Jun 07 22:26:13 2004] [notice] lb.getWorker() We tried all possible workers 5
[Mon Jun 07 22:26:13 2004] [error] lb_worker.service() all workers in error or 
disabled state
[Mon Jun 07 22:26:13 2004] [error] mod_jk.handler() Error connecting to tomcat 12

The development environments are dev2, dev3 etc and are different virtual hosts on 
server, server:

Workers2.properties
[logger.apache2]
level=DEBUG

[shm]
file=/usr/local/apache/logs/shm.file
size=1048576

# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1

# define the server worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

# Added for dev2
[channel.socket:localhost:9109]
port=9109
host=127.0.0.1
group=dev2

# define the worker
[ajp13:localhost:9109]
channel=channel.socket:localhost:9109
group=dev2

# new worker
[uri:dev2/*]
group=dev2

The "mod_jk-server.conf"


  ServerName server
  ServerAlias server.company.co.uk
  DocumentRoot /usr/local/tomcat/webapps/server
  ErrorLog logs/server-error_log
  TransferLog logs/server-access_log
  ScriptAlias /cgi-bin /usr/local/tomcat/webapps/server/cgi-bin
  
JkUriSet worker ajp13:localhost:8009
  
  
JkUriSet worker ajp13:localhost:8009
  
  
JkUriSet worker ajp13:localhost:8009
  
  
JkUriSet worker ajp13:localhost:8009
  


The "mod_jk-dev2.conf"

  ServerName dev2
  ServerAlias dev2.company.co.uk
  DocumentRoot /usr/local/home/dev2/BUILD/htdocs
  ErrorLog logs/dev2-error_log
  TransferLog logs/dev2-access_log
  ScriptAlias /cgi-bin /usr/local/home/dev2/BUILD/htdocs/cgi-bin
  
JkUriSet group dev2
  
  
JkUriSet group dev2
  
  
JkUriSet group dev2
  


Any help would be appreciated as i have trawled the mail archives and googled and 
haven't come up with much to help solve the problem.

Many thanks,
John




Mod_jk2/unix socket/multiple Tomcat instances: Do I need more than one socket file?

2004-05-18 Thread Clute, Andrew
I am attempting to set up on one box with two separate Tomcat instances,
one for dev, and one for stage, all using Unix Sockets. 

In configuring this, I am wondering if I need to specify a separate
socket file for each Tomcat instance, or can they share the same one? Is
there a better performance out of either pattern?

For reference, here is my workers2.properites file that I used to
finally get what I want (two separate virtual host to not load-balance,
using Unix Sockets). I would also love any suggestions on a better way
to do this:

[shm:]
info=Scoreboard. Required for reconfiguration and status with
multiprocess servers
file=/usr/local/apache2/logs/jk2.shm
size=100
debug=0
disabled=0

[channel.un:/usr/local/apache2/modules/jk2_dev.socket]
group=devlbgroup
[channel.un:/usr/local/apache2/modules/jk2_stage.socket]
group=stagelbgroup

[uri:192.168.1.152/*]
channel=channel.un:/usr/local/apache2/modules/jk2_dev.socket
group=devlbgroup

[uri:192.168.1.153/*]
channel=channel.un:/usr/local/apache2/modules/jk2_stage.socket
group=stagelbgroup


RE: multiple tomcat instances cause user logout

2004-03-26 Thread Carlton Lo
They are installed int different directories ...

-Original Message-
From: Antonio Fiol Bonnín [mailto:[EMAIL PROTECTED]
Sent: Friday, March 26, 2004 3:48 PM
To: Tomcat Users List
Subject: Re: multiple tomcat instances cause user logout


Carlton Lo wrote:

>I have installed 2 instances of tomcat on my machine. I've user 1 login to tomcat 1, 
>when user 2 login to tomcat 2, it automatically logout user 1 in tomcat 1???
>
>tomcat 4.0.6 on win 2000
>  
>

Using the same working directory for both? --Avoid it.

Other than that, no idea.

Antonio Fiol

-
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 tomcat instances cause user logout

2004-03-26 Thread Antonio Fiol Bonnín
Carlton Lo wrote:

I have installed 2 instances of tomcat on my machine. I've user 1 login to tomcat 1, when user 2 login to tomcat 2, it automatically logout user 1 in tomcat 1???

tomcat 4.0.6 on win 2000
 

Using the same working directory for both? --Avoid it.

Other than that, no idea.

Antonio Fiol

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


Re: Session sharing/load balancing multiple tomcat instances W/O Apache Web Server

2004-03-26 Thread Antonio Fiol Bonnín
Jeremy Nix wrote:

I've misphrased.  What documentation I've come across indicates that
Apache (or IIS) is necessary to configure tomcat as a cluster.  It very
well may be possible, which is why I'm asking the list.  The main
feature that I'm looking for in this configuration is the session
failover ability.  I have a hardware load-balancer, so load-balancing is
not exactly what I was looking for...just the session sharing.
 

Does your hardware load balancer support sticky sessions?

If it does, you can use Tomcat's HTTP connector, and configure your 
balancer as if Tomcat were a web server (which it is, when you use that 
connector).

If it doesn't I personally recommend getting one that does ;-) or using 
Apache + mod_jk / mod_jk2. Use the hardware balancer and 2 Apache for 
high availability.

Other than that, there is in-memory or JDBC session clustering 
(uncomment two elements from your server.xml, and you are mostly done). 
That implies that objects stored in sessions need to be Serializable. 
Performance impact will depend on your webapp design, so YMMV. I only 
tried in-memory a few months ago, and performance dropped seriously, but 
it worked without problem. Most likely our webapp's fault. You may 
encounter issues with frames and similar constructs. See the docs.

HTH,

Antonio Fiol

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


multiple tomcat instances cause user logout

2004-03-26 Thread Carlton Lo
I have installed 2 instances of tomcat on my machine. I've user 1 login to tomcat 1, 
when user 2 login to tomcat 2, it automatically logout user 1 in tomcat 1???

tomcat 4.0.6 on win 2000
Carlton Lo
Pluris
550 Cochituate Road
Framingham, MA 01701
Tel:   (508) 663-1089
Fax:  (508) 663-1060
mailto:[EMAIL PROTECTED]


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



RE: Session sharing/load balancing multiple tomcat instances W/O Apache Web Server

2004-03-26 Thread Tony Requist

> That doesn't exactly accomplish what I'm looking to do.  Like I said, I
> need session replication amongst the tomcat instances...I guess theres
> always the idea of managing session data in some other medium (DB).

Coincidentally, I just got that working -- but it required a full day of
writing code to get around bugs in PersistentValve (I'm going to describe
this soon).  So unless you want to hack Tomcat, I would suggest avoiding
session replication via DB right now (with coding changes it does seem to
work great).

- tony



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



RE: Session sharing/load balancing multiple tomcat instances W/O Apache Web Server

2004-03-26 Thread Jeremy Nix
That doesn't exactly accomplish what I'm looking to do.  Like I said, I
need session replication amongst the tomcat instances...I guess theres
always the idea of managing session data in some other medium (DB).


_
Jeremy Nix
Senior Application Developer
Southwest Financial Services, LTD.
(513) 621-6699 x1158
www.sfsltd.com



-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 26, 2004 11:42 AM
To: Tomcat Users List
Subject: RE: Session sharing/load balancing multiple tomcat instances
W/O Apache Web Server



Hi,
One alternative to balancing traffic without Apache, using only a tomcat
cluster, is to use the balancer webapp that ships with tomcat 5.  It's
not a load balancer in the strict sense of the definition, as it doesn't
replicate anything or allow for sticky sessions, but defacto it works.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Adam Fowler [mailto:[EMAIL PROTECTED]
>Sent: Friday, March 26, 2004 11:40 AM
>To: 'Tomcat Users List'
>Subject: RE: Session sharing/load balancing multiple tomcat instances
W/O
>Apache Web Server
>
>I think (hope) he means one apache httpd instance load balancing to
several
>tomcat instances. Your guess as to what he means is as good as mine
tho!
>8o)
>
>Adam.
>
>-Original Message-
>From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
>Sent: 26 March 2004 16:36
>To: Tomcat Users List
>Subject: RE: Session sharing/load balancing multiple tomcat instances 
>W/O Apache Web Server
>
>
>
>Hola,
>
>>Is this possible to do?  I've configured load balancing with apache
and
>>that worked as desired, but since then I've determined that the apache

>>server was unnecessary in my configuration.  If it is possible, can
you
>>please provide a sample jk2.properties file, or at least step me in
the
>>right direction.
>
>How did you determine Apache is not necessary when you're
load-balancing
>with mod_jk2 which requires Apache? ;)
>
>Yoav Shapira
>
>
>
>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]
>
>
>_
>
>This email and any files attached is intended for the addressee only
and
>may contain information that is confidential and/or legally privileged.

>Unauthorised use is strictly prohibited and may be unlawful. If you are
not
>the addressee, you should not read, copy, disclose or otherwise use
this
>message, including any attachment, except for the purpose of delivery
to
>the addressee.
>
>We make every effort to keep our network free from viruses. However,
you do
>need to verify this e-mail and any attachments to it to be virus free
as we
>can take no responsibility for any computer virus which might be 
>transferred by way of this e-mail.
>
>Scanning of this message and addition of this footer is performed by 
>SurfControl E-mail Filter software in conjunction with virus detection 
>software. 
>
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an)
intended recipient, please immediately delete this e-mail from your
computer system and notify the sender.  Thank you.


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


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



RE: Session sharing/load balancing multiple tomcat instances W/O Apache Web Server

2004-03-26 Thread Shapira, Yoav

Hi,
One alternative to balancing traffic without Apache, using only a tomcat
cluster, is to use the balancer webapp that ships with tomcat 5.  It's
not a load balancer in the strict sense of the definition, as it doesn't
replicate anything or allow for sticky sessions, but defacto it works.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Adam Fowler [mailto:[EMAIL PROTECTED]
>Sent: Friday, March 26, 2004 11:40 AM
>To: 'Tomcat Users List'
>Subject: RE: Session sharing/load balancing multiple tomcat instances
W/O
>Apache Web Server
>
>I think (hope) he means one apache httpd instance load balancing to
several
>tomcat instances. Your guess as to what he means is as good as mine
tho!
>8o)
>
>Adam.
>
>-Original Message-
>From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
>Sent: 26 March 2004 16:36
>To: Tomcat Users List
>Subject: RE: Session sharing/load balancing multiple tomcat instances
>W/O Apache Web Server
>
>
>
>Hola,
>
>>Is this possible to do?  I've configured load balancing with apache
and
>>that worked as desired, but since then I've determined that the apache
>>server was unnecessary in my configuration.  If it is possible, can
you
>>please provide a sample jk2.properties file, or at least step me in
the
>>right direction.
>
>How did you determine Apache is not necessary when you're
load-balancing
>with mod_jk2 which requires Apache? ;)
>
>Yoav Shapira
>
>
>
>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]
>
>
>_
>
>This email and any files attached is intended for the addressee only
and
>may contain information that is confidential and/or legally privileged.
>Unauthorised use is strictly prohibited and may be unlawful. If you are
not
>the addressee, you should not read, copy, disclose or otherwise use
this
>message, including any attachment, except for the purpose of delivery
to
>the addressee.
>
>We make every effort to keep our network free from viruses. However,
you do
>need to verify this e-mail and any attachments to it to be virus free
as we
>can take no responsibility for any computer virus which might be
>transferred by way of this e-mail.
>
>Scanning of this message and addition of this footer is performed by
>SurfControl E-mail Filter software in conjunction with virus detection
>software.
>
>
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Session sharing/load balancing multiple tomcat instances W/O Apache Web Server

2004-03-26 Thread Jeremy Nix
I've misphrased.  What documentation I've come across indicates that
Apache (or IIS) is necessary to configure tomcat as a cluster.  It very
well may be possible, which is why I'm asking the list.  The main
feature that I'm looking for in this configuration is the session
failover ability.  I have a hardware load-balancer, so load-balancing is
not exactly what I was looking for...just the session sharing.


_
Jeremy Nix
Senior Application Developer
Southwest Financial Services, LTD.
(513) 621-6699 x1158
www.sfsltd.com



-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 26, 2004 11:36 AM
To: Tomcat Users List
Subject: RE: Session sharing/load balancing multiple tomcat instances
W/O Apache Web Server



Hola,

>Is this possible to do?  I've configured load balancing with apache and

>that worked as desired, but since then I've determined that the apache 
>server was unnecessary in my configuration.  If it is possible, can you

>please provide a sample jk2.properties file, or at least step me in the

>right direction.

How did you determine Apache is not necessary when you're load-balancing
with mod_jk2 which requires Apache? ;)  

Yoav Shapira



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an)
intended recipient, please immediately delete this e-mail from your
computer system and notify the sender.  Thank you.


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


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



RE: Session sharing/load balancing multiple tomcat instances W/O Apache Web Server

2004-03-26 Thread Adam Fowler
I think (hope) he means one apache httpd instance load balancing to several
tomcat instances. Your guess as to what he means is as good as mine tho! 8o)

Adam.

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: 26 March 2004 16:36
To: Tomcat Users List
Subject: RE: Session sharing/load balancing multiple tomcat instances
W/O Apache Web Server



Hola,

>Is this possible to do?  I've configured load balancing with apache and
>that worked as desired, but since then I've determined that the apache
>server was unnecessary in my configuration.  If it is possible, can you
>please provide a sample jk2.properties file, or at least step me in the
>right direction.

How did you determine Apache is not necessary when you're load-balancing
with mod_jk2 which requires Apache? ;)  

Yoav Shapira



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]


_

This email and any files attached is intended for the addressee only and may contain 
information that is confidential and/or legally privileged. Unauthorised use is 
strictly prohibited and may be unlawful. If you are not the addressee, you should not 
read, copy, disclose or otherwise use this message, including any attachment, except 
for the purpose of delivery to the addressee.

We make every effort to keep our network free from viruses. However, you do need to 
verify this e-mail and any attachments to it to be virus free as we can take no 
responsibility for any computer virus which might be transferred by way of this e-mail.

Scanning of this message and addition of this footer is performed by SurfControl 
E-mail Filter software in conjunction with virus detection software.





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



RE: Session sharing/load balancing multiple tomcat instances W/O Apache Web Server

2004-03-26 Thread Shapira, Yoav

Hola,

>Is this possible to do?  I've configured load balancing with apache and
>that worked as desired, but since then I've determined that the apache
>server was unnecessary in my configuration.  If it is possible, can you
>please provide a sample jk2.properties file, or at least step me in the
>right direction.

How did you determine Apache is not necessary when you're load-balancing
with mod_jk2 which requires Apache? ;)

Yoav Shapira



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]



Session sharing/load balancing multiple tomcat instances W/O Apache Web Server

2004-03-26 Thread Jeremy Nix
Is this possible to do?  I've configured load balancing with apache and
that worked as desired, but since then I've determined that the apache
server was unnecessary in my configuration.  If it is possible, can you
please provide a sample jk2.properties file, or at least step me in the
right direction.


_
Jeremy Nix
Senior Application Developer
Southwest Financial Services, LTD.
(513) 621-6699 x1158
www.sfsltd.com




RE: How can I configure multiple tomcat instances in workers2.properties file (separate web apps) (to developers of mod_jk2: please respond)

2003-10-08 Thread Boulatian, Misak
> take it easy man :)
> small question : what about using different virtual hosts in 
> your apache 
> config, then from these contexts , using different config files for 
> mod_jk which will be very simple (you have already validated 
> one of your 
> tomcat instances)
> my 2 cents
> Jerome

Hi Jerome,
Thanks for trying to help me. I have been working on this for several days
and I was too upset. Can you please tell me how can I specify different
workers2.properties file for each instance since workers2.properties file
must be in apache/conf? In the site
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/ there is nothing about
this.
Thanks,
Misak

_
This message and any attachments are intended only for the use of the addressee and
may contain information that is privileged and confidential. If the reader of the 
message is not the intended recipient or an authorized representative of the
intended recipient, you are hereby notified that any dissemination of this
communication is strictly prohibited. If you have received this communication in
error, please notify us immediately by e-mail and delete the message and any
attachments from your system.

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

Re: How can I configure multiple tomcat instances in workers2.properties file (separate web apps) (to developers of mod_jk2: please respond)

2003-10-08 Thread jerome moliere
Boulatian, Misak wrote:

Hi all,

It seems like mod_jk2 is a buggy connector. There is no way to set up more
than one instance of tomcat. It can connect on any port other than 8009 but
it is a first-come first-served basis (whichever port comes first). I need a
response from mod_jk2 developers themselves. Should I go back to mod_jk or
there is a way of doing this simple thing???
 

take it easy man :)
small question : what about using different virtual hosts in your apache 
config, then from these contexts , using different config files for 
mod_jk which will be very simple (you have already validated one of your 
tomcat instances)
my 2 cents
Jerome





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


How can I configure multiple tomcat instances in workers2.properties file (separate web apps) (to developers of mod_jk2: please respond)

2003-10-08 Thread Boulatian, Misak
Hi all,

It seems like mod_jk2 is a buggy connector. There is no way to set up more
than one instance of tomcat. It can connect on any port other than 8009 but
it is a first-come first-served basis (whichever port comes first). I need a
response from mod_jk2 developers themselves. Should I go back to mod_jk or
there is a way of doing this simple thing???

Thanks,
Misak

_
This message and any attachments are intended only for the use of the addressee and
may contain information that is privileged and confidential. If the reader of the 
message is not the intended recipient or an authorized representative of the
intended recipient, you are hereby notified that any dissemination of this
communication is strictly prohibited. If you have received this communication in
error, please notify us immediately by e-mail and delete the message and any
attachments from your system.

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

How can I configure multiple tomcat instances in workers2.properties file (separate web apps)

2003-10-08 Thread Boulatian, Misak
Hi all,
 
I need to configure multiple tomcat instances in workers2.properties file
running completely separate web apps. No matter what I do it doesn't work.
Can I even do this? I specify multiple channel sockets but all requests go
to the first one only.
I appreciate the response. Here is my simple workers2.properties file
(APP_SERVER_IP is an entry in /etc/hosts file).
 
# In production uncomment it out
[logger.apache2]
level=DEBUG
 
[shm]
file=${serverRoot}/logs/shm.file
size=1048576
 
###
#
# jk status
#
###
[status:status]
info=Status group, displays runtime information
 
[uri:/jkstatus/*]
group=status:status
 
###
#
# Setup volts
#
###
[channel.socket:APP_SERVER_IP:8109]
[channel.socket:APP_SERVER_IP:8009]

_
This message and any attachments are intended only for the use of the addressee and
may contain information that is privileged and confidential. If the reader of the 
message is not the intended recipient or an authorized representative of the
intended recipient, you are hereby notified that any dissemination of this
communication is strictly prohibited. If you have received this communication in
error, please notify us immediately by e-mail and delete the message and any
attachments from your system.


Re: Multiple Tomcat instances for virtual hosts

2003-09-06 Thread Sai Sivanesan
I really like the idea of setting up multiple instances of Tomcat per virtual
site - i have 2 questions:

1)  How does it affect memory usage, i.e.  if we are on a server with X
ammount of ram and there are 20 sites, does each site end up needing a minimum
of ~21 MB RAM for tomcat so we have a basic need of 420MB ram being used just
to keep tomcat up / site?

2)  If one site gets busier then will it slow down the other sites more so
than using mod_jk / mod_webapp?

sai

On Sat, 06 Sep 2003 21:05:38 -0400, Bob Langford wrote
> Your plan should work pretty well.  I do something similar myself. 
>  The major difference is that I use one installation of Tomcat for 
> all the sites. I have a script to start tomcat for each site, that 
> points CATALINA_HOME to the shared Tomcat binaries, and 
> CATALINA_BASE to the conf/, logs/, temp/, work/, and webapps/ 
> directories for the site:
> 
> file /home/site1/tomcat/catalina:
>#!/bin/sh
>CATALINA_BASE = "/home/site1/tomcat"
>CATALINA_HOME = "/usr/share/tomcat4"  (or whatever)
>CATALINA_OPTS = "-server"  (maybe others)
>export CATALINA_BASE CATALINA_HOME CATALINA_OPTS
>$CATALINA_BASE/bin/catalina.sh  $*
> 
> I can do   ./catalina start, ./catalina stop,etc to control each
> site.  It works pretty well, especially if you're developing one 
> site while others are in production.
> 
> Two things to watch for:
> 1)  You are correct that you have to use different ports for each 
> server.xml file.
> I declared that site one could have ports between 8100-8199, site 2 
> between 8200-8299, etc.  Each project can use whatever they want in 
> their range.
> 
> 2)  Since these Tomcat instances listen on ports above 1024, they 
> don't need to be started by the "root" user.  If they did, I'd be 
> very wary of putting the server.xml file (and other config files and 
> scripts) where the user could modify them.  Also, your system boot 
> procedures need to take some steps to start them using the correct username.
> 
> 3)  I use Apache as a front end for all these Tomcat instances,
>  using a proxy instead of JK or JK2.  In each virtual host, there's 
> something like this: ProxyPass /examples/
http://localhost:8181/examples/
>  ProxyPassReverse  /examples/ http://localhost:8181/examples/
> There are two nice things about this:  Apache logs everything, 
> making it easier to do usage reports.  And, all the connections to 
> Tomcat come from Apache and localhost, so I can block outside 
> connections to all ports except the ones Apache listens to.  However,
>  it's still possible for user A to change his server.xml file to 
> listen to a port that's being sent traffic for user B.  For my 
> purposes, that's not an issue; for others, it may be.
> 
> Good luck!
>  ...Bob Langford...
> 
> At 02:12 PM 9/6/2003, you wrote:
> >Hi,
> >
> >I have Apache 1.3 and Tomcat 4.1.8 on a Red Hat 9 machine.
> >
> >Apache serves several virutal hosts. We have one Tomcat instance running 
> >with several web contexts, one context for each virtual host.
> >
> >Now I would like to change this to have one Tomcat instance for each 
> >virtual host (this is necessary because Tomcat sometimes crashes, and I 
> >don't want all virtual hosts to be down then).
> >
> >I read a book about Tomcat and searched the Web, but could not find out 
> >how to do this. What I assume is:
> >
> >
> >In Apache's httpd.conf I have something (after the import of mod_jk):
> >
> >NameVirtualHost 200.200.200.200 (or whatever)
> >
> >
> >ServerName www.xxx.com
> >DocumentRoot /tomcat1/webapps/xxx
> >JkMount /servlet/* worker1
> >JkMount /*.jsp worker1
> >JkMount /*.do worker1
> >
> >
> >
> >ServerName www.yyy.com
> >DocumentRoot /tomcat2/webapps/yyy
> >JkMount /servlet/* worker2
> >JkMount /*.jsp worker2
> >JkMount /*.do worker2
> >
> >
> >
> >Then I will install Tomcat two times, in /tomcat1 and /tomcat2.
> >
> >The server.xml of each Tomcat contains different ports (for shutdown and 
> >for the connector for ajp13).
> >
> >
> >The workers.properties should look like:
> >
> >worker.list=worker1,worker2
> >...
> >worker.worker1.port=8009
> >worker.worker1.host=localhost
> >worker.worker1.type=ajp13
> >...
> >worker.worker1.port=8010
> >worker.worker1.host=localhost
> >worker.worker1.type=ajp13
> >
> >
> >Is this all correct? Should that work?
> >
> >Thomas
> >
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> 
> --
> Bob Langford
> Silicon Masters Consulting, Inc.8207 Stone River Court, Richmond,
>  VA  23235 phone:  804-674-1253  fax:  804-745-6650 
> http://www.silicon-masters.com/  
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



--
Open WebMail Project (http://openwebmail.org)


-

Re: Multiple Tomcat instances for virtual hosts

2003-09-06 Thread Bob Langford
Your plan should work pretty well.  I do something similar myself.  The major
difference is that I use one installation of Tomcat for all the sites.
I have a script to start tomcat for each site, that points CATALINA_HOME to 
the
shared Tomcat binaries, and CATALINA_BASE to the conf/, logs/, temp/, 
work/, and
webapps/ directories for the site:

file /home/site1/tomcat/catalina:
  #!/bin/sh
  CATALINA_BASE = "/home/site1/tomcat"
  CATALINA_HOME = "/usr/share/tomcat4"  (or whatever)
  CATALINA_OPTS = "-server"  (maybe others)
  export CATALINA_BASE CATALINA_HOME CATALINA_OPTS
  $CATALINA_BASE/bin/catalina.sh  $*
I can do   ./catalina start, ./catalina stop,etc to control each
site.  It works pretty well, especially if you're developing one site while
others are in production.
Two things to watch for:
1)  You are correct that you have to use different ports for each 
server.xml file.
I declared that site one could have ports between 8100-8199, site 2 between 
8200-8299,
etc.  Each project can use whatever they want in their range.

2)  Since these Tomcat instances listen on ports above 1024, they don't 
need to
be started by the "root" user.  If they did, I'd be very wary of putting the
server.xml file (and other config files and scripts) where the user could
modify them.  Also, your system boot procedures need to take some steps to
start them using the correct username.

3)  I use Apache as a front end for all these Tomcat instances, using a proxy
instead of JK or JK2.  In each virtual host, there's something like this:
ProxyPass /examples/ http://localhost:8181/examples/
ProxyPassReverse  /examples/ http://localhost:8181/examples/
There are two nice things about this:  Apache logs everything, making it
easier to do usage reports.  And, all the connections to Tomcat come
from Apache and localhost, so I can block outside connections to all
ports except the ones Apache listens to.  However, it's still possible for
user A to change his server.xml file to listen to a port that's being sent
traffic for user B.  For my purposes, that's not an issue; for others, it
may be.
Good luck!
...Bob Langford...
At 02:12 PM 9/6/2003, you wrote:
Hi,

I have Apache 1.3 and Tomcat 4.1.8 on a Red Hat 9 machine.

Apache serves several virutal hosts. We have one Tomcat instance running 
with several web contexts, one context for each virtual host.

Now I would like to change this to have one Tomcat instance for each 
virtual host (this is necessary because Tomcat sometimes crashes, and I 
don't want all virtual hosts to be down then).

I read a book about Tomcat and searched the Web, but could not find out 
how to do this. What I assume is:

In Apache's httpd.conf I have something (after the import of mod_jk):

NameVirtualHost 200.200.200.200 (or whatever)


ServerName www.xxx.com
DocumentRoot /tomcat1/webapps/xxx
JkMount /servlet/* worker1
JkMount /*.jsp worker1
JkMount /*.do worker1


ServerName www.yyy.com
DocumentRoot /tomcat2/webapps/yyy
JkMount /servlet/* worker2
JkMount /*.jsp worker2
JkMount /*.do worker2

Then I will install Tomcat two times, in /tomcat1 and /tomcat2.

The server.xml of each Tomcat contains different ports (for shutdown and 
for the connector for ajp13).

The workers.properties should look like:

worker.list=worker1,worker2
...
worker.worker1.port=8009
worker.worker1.host=localhost
worker.worker1.type=ajp13
...
worker.worker1.port=8010
worker.worker1.host=localhost
worker.worker1.type=ajp13
Is this all correct? Should that work?

Thomas



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Bob Langford
Silicon Masters Consulting, Inc.8207 Stone River Court, Richmond, VA  23235
phone:  804-674-1253  fax:  804-745-6650 
http://www.silicon-masters.com/  



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


Re: Multiple Tomcat instances for virtual hosts

2003-09-06 Thread Dhruva B. Reddy
This doesn't really answer your question, but we've found Tomcat to be
quite robust.  You may also want to find out (if you don't already
know) what's bringing the server down.

-d

--- Thomas Eichberger <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I have Apache 1.3 and Tomcat 4.1.8 on a Red Hat 9 machine.
> 
> Apache serves several virutal hosts. We have one Tomcat instance
> running 
> with several web contexts, one context for each virtual host.
> 
> Now I would like to change this to have one Tomcat instance for each 
> virtual host (this is necessary because Tomcat sometimes crashes, and
> I 
> don't want all virtual hosts to be down then).
> 
> I read a book about Tomcat and searched the Web, but could not find
> out how 
> to do this. What I assume is:
> 
> 
> In Apache's httpd.conf I have something (after the import of mod_jk):
> 
> NameVirtualHost 200.200.200.200 (or whatever)
> 
> 
> ServerName www.xxx.com
> DocumentRoot /tomcat1/webapps/xxx
> JkMount /servlet/* worker1
> JkMount /*.jsp worker1
> JkMount /*.do worker1
> 
> 
> 
> ServerName www.yyy.com
> DocumentRoot /tomcat2/webapps/yyy
> JkMount /servlet/* worker2
> JkMount /*.jsp worker2
> JkMount /*.do worker2
> 
> 
> 
> Then I will install Tomcat two times, in /tomcat1 and /tomcat2.
> 
> The server.xml of each Tomcat contains different ports (for shutdown
> and 
> for the connector for ajp13).
> 
> 
> The workers.properties should look like:
> 
> worker.list=worker1,worker2
> ...
> worker.worker1.port=8009
> worker.worker1.host=localhost
> worker.worker1.type=ajp13
> ...
> worker.worker1.port=8010
> worker.worker1.host=localhost
> worker.worker1.type=ajp13
> 
> 
> Is this all correct? Should that work?
> 
> Thomas
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



Multiple Tomcat instances for virtual hosts

2003-09-06 Thread Thomas Eichberger
Hi,

I have Apache 1.3 and Tomcat 4.1.8 on a Red Hat 9 machine.

Apache serves several virutal hosts. We have one Tomcat instance running 
with several web contexts, one context for each virtual host.

Now I would like to change this to have one Tomcat instance for each 
virtual host (this is necessary because Tomcat sometimes crashes, and I 
don't want all virtual hosts to be down then).

I read a book about Tomcat and searched the Web, but could not find out how 
to do this. What I assume is:

In Apache's httpd.conf I have something (after the import of mod_jk):

NameVirtualHost 200.200.200.200 (or whatever)


ServerName www.xxx.com
DocumentRoot /tomcat1/webapps/xxx
JkMount /servlet/* worker1
JkMount /*.jsp worker1
JkMount /*.do worker1


ServerName www.yyy.com
DocumentRoot /tomcat2/webapps/yyy
JkMount /servlet/* worker2
JkMount /*.jsp worker2
JkMount /*.do worker2

Then I will install Tomcat two times, in /tomcat1 and /tomcat2.

The server.xml of each Tomcat contains different ports (for shutdown and 
for the connector for ajp13).

The workers.properties should look like:

worker.list=worker1,worker2
...
worker.worker1.port=8009
worker.worker1.host=localhost
worker.worker1.type=ajp13
...
worker.worker1.port=8010
worker.worker1.host=localhost
worker.worker1.type=ajp13
Is this all correct? Should that work?

Thomas



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


Connecting Multiple Tomcat instances with Apache (mod_jk2)

2003-09-02 Thread "Pérez Velo, Pedro Isabelo"


Hello, 
I'm trying to connect by the jk2 connector, several Tomcat v4.1.18 instances
with one Apache v2.0. We have Suse 2.4.19 as O.S. The problem arise when we
connect several instances of Tomcat with Apache, note that we have changed
the CATALINA_BASE variable to enable multiple tomcat instances. I don't know
exactly what is happening, but it's looks like there are some problems
defining multiple workers.
Next I attach several configuration files both tomcat, as Apache and the
mod_jk2 connector.
This is a fragment of the server.xml file in which you define the connector.
/entornos/pds-pi/conf/server.xml

-


-
We have installed two Tomcats, one in /usr/local/jakarta-tomcat-4.1.18 owned
by root (which is normally stopped), and another in /usr/local/tomcat-4.1.18
owned by a specific user tomcat4118. We accomplished this without many
problems, however the connector don't work with these tomcat instances. We
need to have different Tomcat instances for not interfering distinct develop
equipments when we stop Tomcat.
/entornos/pds-pi/conf/jk2.properties

-
## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
## WHEN YOU EDIT THE FILE.
## COMMENTS WILL BE _LOST_
## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.
# Set the desired handler list
# handler.list=apr,request,channelJni
#
# Override the default port for the socketChannel
channelSocket.port=41809
# channelSocket.port=8019
# Default: 
# channelUnix.file=${jkHome}/work/jk2.socket
# Just to check if the the config is working
# shm.file=${jkHome}/work/jk2.shm
# In order to enable jni use any channelJni directive
# channelJni.disabled = 0
# And one of the following directives:
# apr.jniModeSo=/opt/apache2/modules/mod_jk2.so
# If set to inprocess the mod_jk2 will Register natives itself
# This will enable the starting of the Tomcat from mod_jk2
# apr.jniModeSo=inprocess

-
/usr/local/apache/conf/workers2.properties

-
# workers2.properties
worker.list=worker1,worker2
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
worker.worker2.type=ajp13
worker.worker2.host=localhost
worker.worker2.port=41809
[logger]
level=DEBUG
file=/usr/local/apache/logs/jk2.log 
[config]
file=/usr/local/apache/conf/workers2.properties
debug=0
debugEnv=0
# Shared memory handling. Needs to be set.
[shm]
file=/usr/local/apache/logs/shm.file
size=1048576
debug=0
disabled=0

[channel.socket.local_8009:localhost:8009]
port=8009
host=127.0.0.1
debug=0

[channel.socket.local_41809:localhost:41809]
port=41809
host=127.0.0.1
debug=0
# Example socket channel, explicitly set port and host.
# [channel.socket:localhost:8009]
# port=8009
# host=127.0.0.1
# Example UNIX domain socket
# [channel.un:/usr/local/tomcat/work/jk2.socket]
# tomcatId=localhost:8009
# debug=0
# define the worker
[ajp13:localhost:8009]
#channel=channel.un:/usr/local/pds/tomcat/work/jk2.socket
# To use the TCP/IP socket instead, just comment out the above
# line, and uncomment the one below
#channel=channel.socket:localhost:8009
channel=channel.socket.local_8009:localhost:8009
# define the worker
[ajp13:localhost:41809]
#channel=channel.un:/usr/local/pds/tomcat/work/jk2.socket
# To use the TCP/IP socket instead, just comment out the above
# line, and uncomment the one below
#channel=channel.socket:localhost:41809
channel=channel.socket.local_41809:localhost:41809
# Announce a "status" worker
[status:status]
# Uri mapping
[uri:/examples/*]
worker1=ajp13:localhost:8009
# worker=ajp13:/usr/local/pds/tomcat/work/jk2.socket
# Uri mapping
[uri:/pds-pi/*]
worker2=ajp13:localhost:41809
#worker=ajp13:localhost:8009
# worker=ajp13:/usr/local/pds/tomcat/work/jk2.socket
# Uri mapping
[uri:/pds-pi2/*]
worker1=ajp13:localhost:8009
# worker=ajp13:/usr/local/pds/tomcat/work/jk2.socket
# Uri mapping
[uri:/pds-mc/*]
worker1=ajp13:localhost:8009
# worker=ajp13:/usr/local/pds/tomcat/work/jk2.socket
# Uri mapping
[uri:/pdsinet/*]
worker1=ajp13:localhost:8009
# worker=ajp13:/usr/local/pds/tomcat/work/jk2.socket
[uri:/status/*]
worker=status:status
[uri:/TSWeb/*]
worker=ajp13:localhost:8009
# end of workers2.properties

-

Re: Multiple Tomcat instances

2003-08-14 Thread Christian Hauser
Angus Mezick wrote:

Can the developers have a tomcat instance running inside of eclipse on
their desktops?  This will allow them do use the debugger.
--Angus
I haven't yet thought about that. I guess it should be possible, in fact 
it would be great if that works. Do you know how simple that would be to 
set up?

  Christian



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


RE: Multiple Tomcat instances

2003-08-14 Thread Ralph Einfeldt
- Each port that is in use must be unique across the 
  instances of tomcat. So you have to change all ports
  that are used. (So the first task, is to throw out
  every thing you don't need)
  To be more precise each combination of port and IP 
  must be unique. It's possible to setup differenzt IP's 
  on one maschine and use the same port on each of them)

- What's the problem ? In my installation startup.sh
  etc. are readable and executable by anybody.
  If you don't like that, you can make local copies
  that are owned by the owner of the site.

> -Original Message-
> From: Christian Hauser [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 05, 2003 3:57 PM
> To: Tomcat Users List
> Subject: Multiple Tomcat instances
> 
> I'm new to Tomcat administration and would like to switch from 
> ServletExec to Tomcat 4.1.
> 
> However, I have some difficulty understanding how to set up different 
> Tomcat instances. I'd like to have different Tomcat instances 
> for each developer (to test web applications) and for each application.
> 
> Tomcat is installed into /usr/local/tomcat-4.1.24 
> (CATALINA_HOME). Every developer and web application 
> should now have its own instance somewhere (CATALINA_BASE).
> 
> For example: /home/chauser/tomcat in my case (CATALINA_BASE). This 
> directory contains some folders: logs, conf, work, webapps, bin.
> 
> Which port to change?
> In the conf directory I'd like to put a tailored versions of 
> web.xml and 
> server.xml, but I don't know which Port I have to change.
> 
> How to deal with user/root problems?
> When I have a start, stop or restart script in /bin, I 
> cannot startup or shutdown tomcat, because the startup.sh and 
> shutdown.sh (in /bin) belong to root.
> 

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



RE: Multiple Tomcat instances

2003-08-14 Thread Angus Mezick
Very simple.  Have them install eclipse from www.eclipse.org.
Have them get the Tomcat Sysdeo plugin from
http://eclipse-plugins.2y.net/eclipse/plugins.jsp?category=Whatsnew
(whenever the little bugger decides to come back up)
Have them install the latest non-LE tomcat package on their desktops and
then make sure it doesn't run as a service if they are on windows.

Here is a nice how to:
http://freeroller.net/page/ericfj/20030402#getting_started_with_eclipse
( I think )
--Angus

> -Original Message-
> From: Christian Hauser [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, August 05, 2003 10:30 AM
> To: Tomcat Users List
> Subject: Re: Multiple Tomcat instances
> 
> 
> Angus Mezick wrote:
> 
> > Can the developers have a tomcat instance running inside of 
> eclipse on
> > their desktops?  This will allow them do use the debugger.
> > --Angus
> 
> I haven't yet thought about that. I guess it should be 
> possible, in fact 
> it would be great if that works. Do you know how simple that 
> would be to 
> set up?
> 
>Christian
> 
> 
> 
> -
> 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 Tomcat instances

2003-08-09 Thread Angus Mezick
Can the developers have a tomcat instance running inside of eclipse on
their desktops?  This will allow them do use the debugger.
--Angus

> -Original Message-
> From: Christian Hauser [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, August 05, 2003 9:57 AM
> To: Tomcat Users List
> Subject: Multiple Tomcat instances
> 
> 
> Hello Tomcat cracks
> 
> I'm new to Tomcat administration and would like to switch from 
> ServletExec to Tomcat 4.1.
> 
> However, I have some difficulty understanding how to set up different 
> Tomcat instances. I'd like to have different Tomcat instances 
> for each 
> developer (to test web applications) and for each application.
> 
> Tomcat is installed into /usr/local/tomcat-4.1.24 
> (CATALINA_HOME). Every 
> developer and web application should now have its own 
> instance somewhere 
> (CATALINA_BASE).
> 
> For example: /home/chauser/tomcat in my case (CATALINA_BASE). This 
> directory contains some folders: logs, conf, work, webapps, bin.
> 
> Which port to change?
> In the conf directory I'd like to put a tailored versions of 
> web.xml and 
> server.xml, but I don't know which Port I have to change.
> 
> How to deal with user/root problems?
> When I have a start, stop or restart script in /bin, I 
> cannot startup or shutdown tomcat, because the startup.sh and 
> shutdown.sh (in /bin) belong to root.
> 
> Is there a good Tomcat 4.1 administration reference available online 
> (apart from the Tomcat documentation)? In about 2-3 weeks 
> I'll get the 
> book "Tomcat: The Definitive Guide (O'Reilly)", however, I'd like to 
> progress until then.
> 
> Thank you in advance for all your help.
> 
>Christian
> 
> 
> 
> -
> 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 Tomcat instances

2003-08-05 Thread Christian Hauser
Hello Tomcat cracks

I'm new to Tomcat administration and would like to switch from 
ServletExec to Tomcat 4.1.

However, I have some difficulty understanding how to set up different 
Tomcat instances. I'd like to have different Tomcat instances for each 
developer (to test web applications) and for each application.

Tomcat is installed into /usr/local/tomcat-4.1.24 (CATALINA_HOME). Every 
developer and web application should now have its own instance somewhere 
(CATALINA_BASE).

For example: /home/chauser/tomcat in my case (CATALINA_BASE). This 
directory contains some folders: logs, conf, work, webapps, bin.

Which port to change?
In the conf directory I'd like to put a tailored versions of web.xml and 
server.xml, but I don't know which Port I have to change.

How to deal with user/root problems?
When I have a start, stop or restart script in /bin, I 
cannot startup or shutdown tomcat, because the startup.sh and 
shutdown.sh (in /bin) belong to root.

Is there a good Tomcat 4.1 administration reference available online 
(apart from the Tomcat documentation)? In about 2-3 weeks I'll get the 
book "Tomcat: The Definitive Guide (O'Reilly)", however, I'd like to 
progress until then.

Thank you in advance for all your help.

  Christian



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


Re: Multiple Tomcat Instances

2003-04-02 Thread Serges N. Zubkoff
Hello dwightHugget,

Tuesday, April 1, 2003, 11:43:12 PM, you wrote:

d> Can anyone point me to how to get this type of setup.
d> I want to have multiple instance of tomcat running on the same machine under 
d> different ports, say 80, 8080, & .
d> Would I achieve this if I setup an env variable called CATALINA_BASE as 
d> described in the RUNNING.txt file ?

d> I have only one server box and want to have a production, development, and 
d> experiment capability.

d> Finally, how can I run 2 different release of Tomcat ?
d> Say, I want to run 4.1.24 and 5 on the same machine.

I think you could just add connectors on other ports in your
server.xml file.

I didn't try to run Tomcat 5 with tomcat 4, but I had Tomcat 3.3 and
Tomcat 4.0.3 running this way. I've just configured instances so that
they used different TCP ports.


-- 
Best regards,
 Sergesmailto:[EMAIL PROTECTED]


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



Multiple Tomcat Instances

2003-04-02 Thread dwightHugget
Can anyone point me to how to get this type of setup.
I want to have multiple instance of tomcat running on the same machine under 
different ports, say 80, 8080, & .
Would I achieve this if I setup an env variable called CATALINA_BASE as 
described in the RUNNING.txt file ?

I have only one server box and want to have a production, development, and 
experiment capability.

Finally, how can I run 2 different release of Tomcat ?
Say, I want to run 4.1.24 and 5 on the same machine.

-- 
Dwight Hugget

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



modjk and multiple tomcat instances

2003-03-31 Thread Ryan Courtnage
Hi all,

I'm using modjk2's isapi redirector (isapi_redirector2.dll) to redirect
webapp requests on my IIS server to tomcat.

Is it possible to make this single redirector redirect requests to different
instances of tomcat (depending on uri)?

For example, a request to IIS for "/webapp1/" should go to localhost:8080
and a request for "/webapp2/" should go to localhost:8081.

I'm on Windowz, so if this is possible, what would my registry entries look
like (ie: serverRoot key), and what would my workers2.properties look like?

Thanks
Ryan Courtnage


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



Re: multiple tomcat instances...

2002-10-14 Thread sonam singh

CREATE U'R OWN SHELL SCRIPTS TO CHECK THE STATUS OF
TOMCAT IF ANY ONE THEM FAIL IT WILL AUTOMATICALY MAIL
U 
REGARDS
SONAM SINGH
[EMAIL PROTECTED]

--- Raj Mettai <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I am running multiple tomcat instances with load
> balancing worker on solaris 8. How would you know,
> when one of the tomcat instances crashes other than
> doing "ps -ef|grep tomcat" or prstat quite often. Is
> there any automatic process to find that one of the
> tomcat process crashed.
> 
> (I am running tomcat4.1.12 and apache2.0.39 on
> solaris 8 using jdk1.3.1).
> 
> thanks
> 
> -Raj
> 


__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com

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




multiple tomcat instances...

2002-10-14 Thread Raj Mettai

Hi,

I am running multiple tomcat instances with load balancing worker on solaris 8. How 
would you know, when one of the tomcat instances crashes other than doing "ps -ef|grep 
tomcat" or prstat quite often. Is there any automatic process to find that one of the 
tomcat process crashed.

(I am running tomcat4.1.12 and apache2.0.39 on solaris 8 using jdk1.3.1).

thanks

-Raj



AW: Running multiple tomcat instances ?????

2002-09-25 Thread Ralph Einfeldt

We don't have tomcat in development or production. 

Our development and live servers are still using jserv + gnujsp. 
So I can't provide any tomcat numbers.

That's the layout we used to do a functional test with 
tomcat to see if our application also runs under tomcat.
We have done no load tests with tomcat.

> -Ursprüngliche Nachricht-
> Von: Ryszard Lach [mailto:[EMAIL PROTECTED]]
> Gesendet: Mittwoch, 25. September 2002 21:37
> An: Tomcat Users List
> Betreff: Re: Running multiple tomcat instances ?
> 
> Could you tell me how many instances do you have and how 
> strong is your machine (CPU's, RAM)?
> 

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




RE: Running multiple tomcat instances ?????

2002-09-25 Thread Turner, John


I have 13, soon to be 16, instances of Tomcat 3.1 running with apache
1.3.26.  The machine is a dual 1.2 GHz system with 1GB RAM and 72GB of
RAID-5 disk at 10,000RPM.  Average load for some fairly intensive processing
and traffic is about 45%.

John


> -Original Message-
> From: Ryszard Lach [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 25, 2002 3:37 PM
> To: Tomcat Users List
> Subject: Re: Running multiple tomcat instances ?
> 
> 
> On Mon, Sep 23, 2002 at 05:31:45PM +0200, Ralph Einfeldt wrote:
> > 
> > We install different versions of tomcat like this:
> > 
> > /usr/local/java/tomcat-4.0.3
> > /usr/local/java/tomcat-4.1.10
> > 
> > For each site we have something like this:
> > 
> > /www/online/
> 
> Could you tell me how many instances do you have and how 
> strong is your
> machine (CPU's, RAM)?
> 
> Richard.
> 
> -- 
> "First they ignore you. Then they laugh at you. Then they
> fight you. Then you win." - Mohandas Gandhi.
> 
> --
> 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: Running multiple tomcat instances ?????

2002-09-25 Thread Ryszard Lach

On Mon, Sep 23, 2002 at 05:31:45PM +0200, Ralph Einfeldt wrote:
> 
> We install different versions of tomcat like this:
> 
> /usr/local/java/tomcat-4.0.3
> /usr/local/java/tomcat-4.1.10
> 
> For each site we have something like this:
> 
> /www/online/

Could you tell me how many instances do you have and how strong is your
machine (CPU's, RAM)?

Richard.

-- 
"First they ignore you. Then they laugh at you. Then they
fight you. Then you win." - Mohandas Gandhi.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Running multiple tomcat instances ?????

2002-09-24 Thread Ben Ricker

If that script works, then great.

A less elegant way to do it would be to utilize pgrep. Do a man on it
(not sure what platform you are running on). You can pgrep for the
earliest PID that was run with a number of options. I use it for a Jserv
installation and it works quite nice.

I have not tested it with Tomcat, though.

Good luck,

Ben Ricker
Wellinx, Inc.

On Mon, 2002-09-23 at 15:17, Raj Mettai wrote:
> Hi John,
> 
> I have compiled the code and copied to $CATALINA_HOME$/bin
> then added the following snippet into server.xml
> 
>   
>   
> 
> 
> 
> 
> when I start the tomcat, I am not seeing any tomcat.pid and I am getting
> the following error in catalina.out
> 
> ERROR reading /opt/tomcat1/conf/server.xml
> At Line 28 /Server/Service/Listener/ className=PidLifeCycle 
> 
> Catalina.start: java.lang.ClassNotFoundException: PidLifeCycle
> java.lang.ClassNotFoundException: PidLifeCycle
> at
> 
>org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:1127)
> at
> 
>org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:992)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:120)
> at
> org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:616)
> at
> org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:412)
> at
> org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java:91)
> at
> org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.java:329)
> at
> org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
> at
> 
>org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1284)
> at
> 
>org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1806)
> at
> 
>org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1182)
> at
> org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
> at
> org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
> at
> org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:362)
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:301)
> at
> org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:725)
> at
> org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
> at
> org.apache.catalina.startup.Catalina.process(Catalina.java:179)
> at java.lang.reflect.Method.invoke(Native Method)
> at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
> 
> 
> thanks 
> 
> -Raj
> 
> 
> >>> [EMAIL PROTECTED] 09/23/02 12:50PM >>>
> 
> Well, in that case, I will include here the content of a message posted
> by
> Tim Funk on 6/13/2002, which has his solution for this, which I find
> pretty
> neat.  Hopefully Tim doesn't mind, and I should add that this would
> break
> portability, most notably on Windows machines.
> 
> On 6/13/2002, Tim Funk wrote:
> 
> For what its worth - I created (and use) a LifecycleListener that runs 
> on startup which logs the process ID into a file called tomcat.pid. 
> Which is created by a shell script called writepid.sh. Below is all the 
> code to get this to work. This code also assumes your current working 
> directory is $CATALINA_HOME.
> 
> --Begin code
> import org.apache.catalina.LifecycleEvent;
> 
> /**
>   * A helper for getting the PID of java so shutting down tomcat is MUCH
>   * easier.
>   */
> public class PidLifeCycle implements
> org.apache.catalina.LifecycleListener {
>   public void lifecycleEvent(LifecycleEvent event)  {
>  if ("start".equals(event.getType())) {
> try {
>  Runtime.getRuntime().exec("/bin/sh bin/writepid.sh");
> } catch(Throwable e) {
>e.printStackTrace();
> }
>  }
>   }
> }
> --End Code
> 
> The code above will launch the following shell script. Should be in the 
> bin/ directory of your tomcat installation.
> --Begin Shell script
> echo $PPID > logs/tomcat.pid
> --End Shell script
> 
> Then add the following into server.xml
> --Begin server.xml snippet
> 
> --End server.xml snippet
> 
> -Tim
> 
> == end ===
> 
> Thank

Re: Running multiple tomcat instances ?????

2002-09-24 Thread David Cassidy

Anthony

Another parameter you might want to try is 'f'

if it works for your ps it will show how the processes are related to
other processes - ie child processes siblings etc

/usr/ucb/ps -auxwwwf

David




Anthony Milbourne wrote:

>Hi
>
>Thanks for that - my sysadmins told me i couldn't have more than 80
>characters of process name.  My previous post was wrong, and that version of
>ps is much more useful.
>
>   Anthony.
>
>  
>
>>-Original Message-
>>From: Raj Mettai [SMTP:[EMAIL PROTECTED]]
>>Sent: 23 September 2002 21:49
>>To:   [EMAIL PROTECTED]
>>Subject:  RE: Running multiple tomcat instances ?
>>
>>Thanks John, I will read the doc and try to get that code working, 
>>meanwhile,  I have a found att version of ps under /usr/ucb/ps (solaris)
>>
>>which will give you a whole lot of information about the processes...
>>
>>example:
>>
>># /usr/ucb/ps -auxwww |grep tomcat   
>>root  5629  0.0  5.65760827824 ?S   Sep 20  0:27
>>/usr/java/bin/../bin/sparc/native_threads/java
>>-Djava.endorsed.dirs=/opt/tomcat2/bin:/opt/tomcat2/common/lib -classpath
>>/usr/java/lib/tools.jar:/opt/tomcat2/bin/bootstrap.jar
>>-Dcatalina.base=/opt/tomcat2 -Dcatalina.home=/opt/tomcat2
>>-Djava.io.tmpdir=/opt/tomcat2/temp org.apache.catalina.startup.Bootstrap
>>start
>>
>>-Raj
>>
>>
>>
>>
>>
>
>
>**
>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: Running multiple tomcat instances ?????

2002-09-24 Thread Anthony Milbourne

Hi

Thanks for that - my sysadmins told me i couldn't have more than 80
characters of process name.  My previous post was wrong, and that version of
ps is much more useful.

Anthony.

> -Original Message-
> From: Raj Mettai [SMTP:[EMAIL PROTECTED]]
> Sent: 23 September 2002 21:49
> To:   [EMAIL PROTECTED]
> Subject:  RE: Running multiple tomcat instances ?
> 
> Thanks John, I will read the doc and try to get that code working, 
> meanwhile,  I have a found att version of ps under /usr/ucb/ps (solaris)
> 
> which will give you a whole lot of information about the processes...
> 
> example:
> 
> # /usr/ucb/ps -auxwww |grep tomcat   
> root  5629  0.0  5.65760827824 ?S   Sep 20  0:27
> /usr/java/bin/../bin/sparc/native_threads/java
> -Djava.endorsed.dirs=/opt/tomcat2/bin:/opt/tomcat2/common/lib -classpath
> /usr/java/lib/tools.jar:/opt/tomcat2/bin/bootstrap.jar
> -Dcatalina.base=/opt/tomcat2 -Dcatalina.home=/opt/tomcat2
> -Djava.io.tmpdir=/opt/tomcat2/temp org.apache.catalina.startup.Bootstrap
> start
> 
> -Raj
> 
> 
> 


**
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: Running multiple tomcat instances ?????

2002-09-23 Thread Raj Mettai

Thanks John, I will read the doc and try to get that code working, 
meanwhile,  I have a found att version of ps under /usr/ucb/ps (solaris)

which will give you a whole lot of information about the processes...

example:

# /usr/ucb/ps -auxwww |grep tomcat   
root  5629  0.0  5.65760827824 ?S   Sep 20  0:27
/usr/java/bin/../bin/sparc/native_threads/java
-Djava.endorsed.dirs=/opt/tomcat2/bin:/opt/tomcat2/common/lib -classpath
/usr/java/lib/tools.jar:/opt/tomcat2/bin/bootstrap.jar
-Dcatalina.base=/opt/tomcat2 -Dcatalina.home=/opt/tomcat2
-Djava.io.tmpdir=/opt/tomcat2/temp org.apache.catalina.startup.Bootstrap
start

-Raj


>>> [EMAIL PROTECTED] 09/23/02 04:25PM >>>

Well, I can't really provide details, I was sharing something that I had
bookmarked, not something I've implemented.

Looking at the error, though, it would seem to me that you have to
declare
your class something like org.my.class.PidLifeCycle, not just
"PidLifeCycle".  Tim's post was an example, I don't know that he was
claiming that the code snippets he posted were exactly correct.

"ClassNotFoundException" is pretty basic, and self-explanatory.  Tomcat
is
just saying it can't find your class, and/or its declared incorrectly in
server.xml.

Check the docs:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/context.html
especially the section entitled "Lifecycle Listeners".

When you get it working, how about posting a HOWTO?

John

> -Original Message-
> From: Raj Mettai [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 23, 2002 4:18 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Running multiple tomcat instances ?
> 
> 
> Hi John,
> 
> I have compiled the code and copied to $CATALINA_HOME$/bin
> then added the following snippet into server.xml
> 
>   
>   
> 
> 
> 
> 
> when I start the tomcat, I am not seeing any tomcat.pid and I 
> am getting
> the following error in catalina.out
> 
> ERROR reading /opt/tomcat1/conf/server.xml
> At Line 28 /Server/Service/Listener/ className=PidLifeCycle 
> 
> Catalina.start: java.lang.ClassNotFoundException: PidLifeCycle
> java.lang.ClassNotFoundException: PidLifeCycle
> at
> org.apache.catalina.loader.StandardClassLoader.loadClass(Stand
> ardClassLoader.java:1127)
> at
> org.apache.catalina.loader.StandardClassLoader.loadClass(Stand
> ardClassLoader.java:992)
> at 
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:120)
> at
> org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:616)
> at
> org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:412)
> at
> org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java:91)
> at
> org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAda
> pter.java:329)
> at
> org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
> at
> org.apache.xerces.validators.common.XMLValidator.callStartElem
> ent(XMLValidator.java:1284)
> at
> org.apache.xerces.framework.XMLDocumentScanner.scanElement(XML
> DocumentScanner.java:1806)
> at
> org.apache.xerces.framework.XMLDocumentScanner$ContentDispatch
> er.dispatch(XMLDocumentScanner.java:1182)
> at
> org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDo
> cumentScanner.java:381)
> at
> org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
> at
> org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:362)
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:301)
> at
> org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228)
> at 
> org.apache.catalina.startup.Catalina.start(Catalina.java:725)
> at
> org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
> at
> org.apache.catalina.startup.Catalina.process(Catalina.java:179)
> at java.lang.reflect.Method.invoke(Native Method)
> at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
> 
> 
> thanks 
> 
> -Raj
> 
> 
> >>> [EMAIL PROTECTED] 09/23/02 12:50PM >>>
> 
> Well, in that case, I will include here the content of a 
> message posted
> by
> Tim Funk on 6/13/2002, which has his solution for this, which I find
> pretty
> neat.  Hopefully Tim doesn't mind, and I should add that this would
> break
> portability, most notably on Windows machines.
> 
> On 6/13/2002, Tim Funk wrote:
> 
> For what its worth - I created (and 

RE: Running multiple tomcat instances ?????

2002-09-23 Thread Turner, John


Well, I can't really provide details, I was sharing something that I had
bookmarked, not something I've implemented.

Looking at the error, though, it would seem to me that you have to declare
your class something like org.my.class.PidLifeCycle, not just
"PidLifeCycle".  Tim's post was an example, I don't know that he was
claiming that the code snippets he posted were exactly correct.

"ClassNotFoundException" is pretty basic, and self-explanatory.  Tomcat is
just saying it can't find your class, and/or its declared incorrectly in
server.xml.

Check the docs:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/context.html
especially the section entitled "Lifecycle Listeners".

When you get it working, how about posting a HOWTO?

John

> -Original Message-
> From: Raj Mettai [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 23, 2002 4:18 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Running multiple tomcat instances ?
> 
> 
> Hi John,
> 
> I have compiled the code and copied to $CATALINA_HOME$/bin
> then added the following snippet into server.xml
> 
>   
>   
> 
> 
> 
> 
> when I start the tomcat, I am not seeing any tomcat.pid and I 
> am getting
> the following error in catalina.out
> 
> ERROR reading /opt/tomcat1/conf/server.xml
> At Line 28 /Server/Service/Listener/ className=PidLifeCycle 
> 
> Catalina.start: java.lang.ClassNotFoundException: PidLifeCycle
> java.lang.ClassNotFoundException: PidLifeCycle
> at
> org.apache.catalina.loader.StandardClassLoader.loadClass(Stand
> ardClassLoader.java:1127)
> at
> org.apache.catalina.loader.StandardClassLoader.loadClass(Stand
> ardClassLoader.java:992)
> at 
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:120)
> at
> org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:616)
> at
> org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:412)
> at
> org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java:91)
> at
> org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAda
> pter.java:329)
> at
> org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
> at
> org.apache.xerces.validators.common.XMLValidator.callStartElem
> ent(XMLValidator.java:1284)
> at
> org.apache.xerces.framework.XMLDocumentScanner.scanElement(XML
> DocumentScanner.java:1806)
> at
> org.apache.xerces.framework.XMLDocumentScanner$ContentDispatch
> er.dispatch(XMLDocumentScanner.java:1182)
> at
> org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDo
> cumentScanner.java:381)
> at
> org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
> at
> org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:362)
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:301)
> at
> org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228)
> at 
> org.apache.catalina.startup.Catalina.start(Catalina.java:725)
> at
> org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
> at
> org.apache.catalina.startup.Catalina.process(Catalina.java:179)
> at java.lang.reflect.Method.invoke(Native Method)
> at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
> 
> 
> thanks 
> 
> -Raj
> 
> 
> >>> [EMAIL PROTECTED] 09/23/02 12:50PM >>>
> 
> Well, in that case, I will include here the content of a 
> message posted
> by
> Tim Funk on 6/13/2002, which has his solution for this, which I find
> pretty
> neat.  Hopefully Tim doesn't mind, and I should add that this would
> break
> portability, most notably on Windows machines.
> 
> On 6/13/2002, Tim Funk wrote:
> 
> For what its worth - I created (and use) a LifecycleListener 
> that runs 
> on startup which logs the process ID into a file called tomcat.pid. 
> Which is created by a shell script called writepid.sh. Below 
> is all the 
> code to get this to work. This code also assumes your current working 
> directory is $CATALINA_HOME.
> 
> --Begin code
> import org.apache.catalina.LifecycleEvent;
> 
> /**
>   * A helper for getting the PID of java so shutting down 
> tomcat is MUCH
>   * easier.
>   */
> public class PidLifeCycle implements
> org.apache.catalina.LifecycleListener {
>   public void lifecycleEvent(LifecycleEvent event)  {
>  if ("start".equals(ev

RE: Running multiple tomcat instances ?????

2002-09-23 Thread Raj Mettai

Hi John,

I have compiled the code and copied to $CATALINA_HOME$/bin
then added the following snippet into server.xml

  
  




when I start the tomcat, I am not seeing any tomcat.pid and I am getting
the following error in catalina.out

ERROR reading /opt/tomcat1/conf/server.xml
At Line 28 /Server/Service/Listener/ className=PidLifeCycle 

Catalina.start: java.lang.ClassNotFoundException: PidLifeCycle
java.lang.ClassNotFoundException: PidLifeCycle
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:1127)
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:992)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at
org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:616)
at
org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:412)
at
org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java:91)
at
org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.java:329)
at
org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
at
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1284)
at
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1806)
at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1182)
at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
at
org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:362)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:301)
at
org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228)
at org.apache.catalina.startup.Catalina.start(Catalina.java:725)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)


thanks 

-Raj


>>> [EMAIL PROTECTED] 09/23/02 12:50PM >>>

Well, in that case, I will include here the content of a message posted
by
Tim Funk on 6/13/2002, which has his solution for this, which I find
pretty
neat.  Hopefully Tim doesn't mind, and I should add that this would
break
portability, most notably on Windows machines.

On 6/13/2002, Tim Funk wrote:

For what its worth - I created (and use) a LifecycleListener that runs 
on startup which logs the process ID into a file called tomcat.pid. 
Which is created by a shell script called writepid.sh. Below is all the 
code to get this to work. This code also assumes your current working 
directory is $CATALINA_HOME.

--Begin code
import org.apache.catalina.LifecycleEvent;

/**
  * A helper for getting the PID of java so shutting down tomcat is MUCH
  * easier.
  */
public class PidLifeCycle implements
org.apache.catalina.LifecycleListener {
  public void lifecycleEvent(LifecycleEvent event)  {
 if ("start".equals(event.getType())) {
try {
 Runtime.getRuntime().exec("/bin/sh bin/writepid.sh");
} catch(Throwable e) {
   e.printStackTrace();
}
 }
  }
}
--End Code

The code above will launch the following shell script. Should be in the 
bin/ directory of your tomcat installation.
--Begin Shell script
echo $PPID > logs/tomcat.pid
--End Shell script

Then add the following into server.xml
--Begin server.xml snippet

--End server.xml snippet

-Tim

== end ===

Thanks, Tim!

John


> -Original Message-
> From: Anthony Milbourne [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 23, 2002 12:45 PM
> To: 'Tomcat Users List'
> Subject: RE: Running multiple tomcat instances ?
> 
> 
> Hi John
> 
> I don't think this option is available under Solaris :-(.
> 
> Anthony.
> 
> > -Original Message-
> > From:Turner, John [SMTP:[EMAIL PROTECTED]]
> > Sent:23 September 2002 16:17
> > To:'Tomcat Users List'
> > Subject:RE: Running multiple tomcat instances ?
> > 
> > 
> > Not sure about Solaris, but on Linux you can add 
> "--cols=XXX" to the "ps"
> > command, where "XXX" is a numeric column width.  So, while "ps -ef"
> > doesn't
> > show much, "ps -ef --cols=300" will show you everything you 
> need to know.
> > 
> > 
> > John
> > 
> > 
>

RE: Running multiple tomcat instances ?????

2002-09-23 Thread Turner, John


Well, in that case, I will include here the content of a message posted by
Tim Funk on 6/13/2002, which has his solution for this, which I find pretty
neat.  Hopefully Tim doesn't mind, and I should add that this would break
portability, most notably on Windows machines.

On 6/13/2002, Tim Funk wrote:

For what its worth - I created (and use) a LifecycleListener that runs 
on startup which logs the process ID into a file called tomcat.pid. 
Which is created by a shell script called writepid.sh. Below is all the 
code to get this to work. This code also assumes your current working 
directory is $CATALINA_HOME.

--Begin code
import org.apache.catalina.LifecycleEvent;

/**
  * A helper for getting the PID of java so shutting down tomcat is MUCH
  * easier.
  */
public class PidLifeCycle implements org.apache.catalina.LifecycleListener {
  public void lifecycleEvent(LifecycleEvent event)  {
 if ("start".equals(event.getType())) {
try {
 Runtime.getRuntime().exec("/bin/sh bin/writepid.sh");
} catch(Throwable e) {
   e.printStackTrace();
}
 }
  }
}
--End Code

The code above will launch the following shell script. Should be in the 
bin/ directory of your tomcat installation.
--Begin Shell script
echo $PPID > logs/tomcat.pid
--End Shell script

Then add the following into server.xml
--Begin server.xml snippet

--End server.xml snippet

-Tim

== end ===

Thanks, Tim!

John


> -Original Message-
> From: Anthony Milbourne [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 23, 2002 12:45 PM
> To: 'Tomcat Users List'
> Subject: RE: Running multiple tomcat instances ?
> 
> 
> Hi John
> 
> I don't think this option is available under Solaris :-(.
> 
>   Anthony.
> 
> > -Original Message-
> > From:   Turner, John [SMTP:[EMAIL PROTECTED]]
> > Sent:   23 September 2002 16:17
> > To: 'Tomcat Users List'
> > Subject:RE: Running multiple tomcat instances ?
> > 
> > 
> > Not sure about Solaris, but on Linux you can add 
> "--cols=XXX" to the "ps"
> > command, where "XXX" is a numeric column width.  So, while "ps -ef"
> > doesn't
> > show much, "ps -ef --cols=300" will show you everything you 
> need to know.
> > 
> > 
> > John
> > 
> > 
> > > -Original Message-----
> > > From: Raj Mettai [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, September 23, 2002 11:14 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Running multiple tomcat instances ?
> > > 
> > > 
> > > Hi,
> > > 
> > > what is the best way to run multiple tomcat instances on 
> > > single solaris
> > > box ? 
> > > 
> > > 1) Is it Installing multiple tomcats physically.
> > > 
> > > or else 
> > > 
> > > 2) Installing once and use different server.xml files to 
> > > start different
> > > instances.
> > > 
> > > any advantages for one over the other ?
> > > 
> > > Also, if I do use 2nd process, and if one of the tomcat 
> crashes, how
> > > would I know which tomcat is 
> > > running and which one crashed, because ps -ef|grep tomcat 
> listing is
> > > identical for both instances.
> > > 
> > > how do you know which instance is using which server.xml ?
> > > 
> > > 
> > > thanks 
> > > 
> > > -Raj
> > > 
> > 
> > --
> > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> 
> 
> **
> 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: Running multiple tomcat instances ?????

2002-09-23 Thread Anthony Milbourne

Hi John

I don't think this option is available under Solaris :-(.

Anthony.

> -Original Message-
> From: Turner, John [SMTP:[EMAIL PROTECTED]]
> Sent: 23 September 2002 16:17
> To:   'Tomcat Users List'
> Subject:      RE: Running multiple tomcat instances ?
> 
> 
> Not sure about Solaris, but on Linux you can add "--cols=XXX" to the "ps"
> command, where "XXX" is a numeric column width.  So, while "ps -ef"
> doesn't
> show much, "ps -ef --cols=300" will show you everything you need to know.
> 
> 
> John
> 
> 
> > -Original Message-
> > From: Raj Mettai [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, September 23, 2002 11:14 AM
> > To: [EMAIL PROTECTED]
> > Subject: Running multiple tomcat instances ?
> > 
> > 
> > Hi,
> > 
> > what is the best way to run multiple tomcat instances on 
> > single solaris
> > box ? 
> > 
> > 1) Is it Installing multiple tomcats physically.
> > 
> > or else 
> > 
> > 2) Installing once and use different server.xml files to 
> > start different
> > instances.
> > 
> > any advantages for one over the other ?
> > 
> > Also, if I do use 2nd process, and if one of the tomcat crashes, how
> > would I know which tomcat is 
> > running and which one crashed, because ps -ef|grep tomcat listing is
> > identical for both instances.
> > 
> > how do you know which instance is using which server.xml ?
> > 
> > 
> > thanks 
> > 
> > -Raj
> > 
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>


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




AW: Running multiple tomcat instances ?????

2002-09-23 Thread Ralph Einfeldt

See below:

> -Ursprüngliche Nachricht-
> Von: Raj Mettai [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 23. September 2002 17:14
> An: [EMAIL PROTECTED]
> Betreff: Running multiple tomcat instances ?
> 
> 
> what is the best way to run multiple tomcat instances on 
> single solaris box ? 
> 
> 1) Is it Installing multiple tomcats physically.
> 
> 2) Installing once and use different server.xml files to 
> start different instances.
> 

As long as the instances are the same version we take solution 2.

> 
> Also, if I do use 2nd process, and if one of the tomcat crashes, how
> would I know which tomcat is running and which one crashed, because 
> ps -ef|grep tomcat listing is identical for both instances.
> 

There at least two ways:
  - Check the ports (netstat, lsof) to see which server is down
  - Use a more powerfull version of ps that shows you also the 
command line. Then you can see the path to the server.xml
for very instance. (Don't know if the current ps for
solaris has this feature, my last contact to solaris is more 
than 3 years ago)

> how do you know which instance is using which server.xml ?

You define a startscript that starts each tomcat with the server.xml 
that you want for each instance: 

We install different versions of tomcat like this:

/usr/local/java/tomcat-4.0.3
/usr/local/java/tomcat-4.1.10

For each site we have something like this:

/www/online/
  /log
dirctory for the log file
  /conf
web.xml
server.xml
  and other files that contain the site specific setup for tomcat
  (tailored versions of the files that are provided by 
   tomcat)
  make shure that the combination of IP and port are unique for
  each instance of tomcat. 
...
  /work
Directory where tomcat stores the genared files and classes
  /webapps
 Directories for the contexts
  /bin
start.sh
  Script that calls the tomcat version that we want to use 
  for this site with the environment for this site:

  JAVA_HOME=/usr/local/java/jdk/sun1.3.1
  CATALINA_HOME=/usr/local/java/tomcat-4.0.3
  CATALINA_BASE=/www/online/

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




RE: Running multiple tomcat instances ?????

2002-09-23 Thread Turner, John


Not sure about Solaris, but on Linux you can add "--cols=XXX" to the "ps"
command, where "XXX" is a numeric column width.  So, while "ps -ef" doesn't
show much, "ps -ef --cols=300" will show you everything you need to know.  

John


> -Original Message-
> From: Raj Mettai [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 23, 2002 11:14 AM
> To: [EMAIL PROTECTED]
> Subject: Running multiple tomcat instances ?
> 
> 
> Hi,
> 
> what is the best way to run multiple tomcat instances on 
> single solaris
> box ? 
> 
> 1) Is it Installing multiple tomcats physically.
> 
> or else 
> 
> 2) Installing once and use different server.xml files to 
> start different
> instances.
> 
> any advantages for one over the other ?
> 
> Also, if I do use 2nd process, and if one of the tomcat crashes, how
> would I know which tomcat is 
> running and which one crashed, because ps -ef|grep tomcat listing is
> identical for both instances.
> 
> how do you know which instance is using which server.xml ?
> 
> 
> thanks 
> 
> -Raj
> 

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




Running multiple tomcat instances ?????

2002-09-23 Thread Raj Mettai

Hi,

what is the best way to run multiple tomcat instances on single solaris
box ? 

1) Is it Installing multiple tomcats physically.

or else 

2) Installing once and use different server.xml files to start different
instances.

any advantages for one over the other ?

Also, if I do use 2nd process, and if one of the tomcat crashes, how
would I know which tomcat is 
running and which one crashed, because ps -ef|grep tomcat listing is
identical for both instances.

how do you know which instance is using which server.xml ?


thanks 

-Raj



Controlling load on a a machine with multiple tomcat instances

2002-09-03 Thread Donie Kelly

Hi all
We are deploying multiple applications on single machine using multiple
tomcat instances. There are multiple machines with the same copy of each
application on each machine. The whole cluster is hardware load balanced.

The problem is the individual machines are not that powerful (Sun T1's) and
each application starts it's own thread to handle the request because it
take a long time to process. This way we are able to give a fast responses
back to the client while the request is actually still being processed.

However, this brings up the problem of what happens when the machine is
maxed out with all the background processing and lots of new requests
arrive. We want to ensure the VM does not die due to overload.

We are looking at using a CPU load average to decide whether we can start a
thread or not but I'm not sure how successful this can be. Has anybody got
any experience of controlling loads like this or point me at some
applications or code that can help in the design.

Regards
Donie 


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




RE: How to configure multiple tomcat instances connecting to apac he using thewarp connector

2002-08-28 Thread Turner, John


Agreed.

John


> -Original Message-
> From: Milt Epstein [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 28, 2002 12:25 PM
> To: Tomcat Users List
> Subject: RE: How to configure multiple tomcat instances connecting to
> apac he using thewarp connector
> 
> 
> On Wed, 28 Aug 2002, Turner, John wrote:
> 
> > While it will be interesting to see what the final solution is when
> > using WARP, I would say the consensus right now is that AJP13 is the
> > "preferred" connector.
> 
> While I can't really address all the issues regarding which connector
> to use, I will say that I had occasion to set up mod_webapp/WARP and
> it was dead simple.  I downloaded the stuff and within 15 minutes I
> had things running -- just a few lines of config (i.e. in Apache's
> httpd.conf file) was all I needed.  (Of course, being able to download
> the build mod_webapp.so I needed was a big help.)  This was to set up
> a demo site for a presentation I was giving, so having something
> running quickly/easily was the main concern.
> 
> So, if there aren't such concerns about having the maximum
> performance, and whether Tomcat is handling some of the static stuff,
> etc., mod_webapp/WARP may very well be a viable option.
> 
> Of course, another option is running Tomcat standalone -- then you
> don't have to deal with any Apache-Tomcat connector, and everything is
> that much simpler.  If a site is mostly dynamic stuff, this may very
> well be the best option.  (Note that people talk about the lower
> performance of Tomcat serving static stuff, but running Tomcat
> standalone will also improve the performance of Tomcat serving dynamic
> stuff; where the cutoff lies in terms of when this tradeoff is
> beneficial, in terms of proportion of static/dynamic stuff, I don't
> know.  But it's something to consider.)
> 
> 
> > > -Original Message-
> > > From: Jochen Schweflinghaus [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, August 28, 2002 11:38 AM
> > > To: Tomcat Users List
> > > Subject: RE: How to configure multiple tomcat instances 
> connecting to
> > > apac he using thewarp connector
> > >
> > >
> > > I got the environment I need working using the AJP13
> > > connector, but I read
> > > that the warp connector should be preferred.
> > > Can anybody tell why and what the main differences are ?
> > >
> >
> > --
> > To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>

Milt Epstein
Research Programmer
Systems and Technology Services (STS)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[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]>




RE: How to configure multiple tomcat instances connecting to apac he using thewarp connector

2002-08-28 Thread Milt Epstein

On Wed, 28 Aug 2002, Turner, John wrote:

> While it will be interesting to see what the final solution is when
> using WARP, I would say the consensus right now is that AJP13 is the
> "preferred" connector.

While I can't really address all the issues regarding which connector
to use, I will say that I had occasion to set up mod_webapp/WARP and
it was dead simple.  I downloaded the stuff and within 15 minutes I
had things running -- just a few lines of config (i.e. in Apache's
httpd.conf file) was all I needed.  (Of course, being able to download
the build mod_webapp.so I needed was a big help.)  This was to set up
a demo site for a presentation I was giving, so having something
running quickly/easily was the main concern.

So, if there aren't such concerns about having the maximum
performance, and whether Tomcat is handling some of the static stuff,
etc., mod_webapp/WARP may very well be a viable option.

Of course, another option is running Tomcat standalone -- then you
don't have to deal with any Apache-Tomcat connector, and everything is
that much simpler.  If a site is mostly dynamic stuff, this may very
well be the best option.  (Note that people talk about the lower
performance of Tomcat serving static stuff, but running Tomcat
standalone will also improve the performance of Tomcat serving dynamic
stuff; where the cutoff lies in terms of when this tradeoff is
beneficial, in terms of proportion of static/dynamic stuff, I don't
know.  But it's something to consider.)


> > -Original Message-
> > From: Jochen Schweflinghaus [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, August 28, 2002 11:38 AM
> > To: Tomcat Users List
> > Subject: RE: How to configure multiple tomcat instances connecting to
> > apac he using thewarp connector
> >
> >
> > I got the environment I need working using the AJP13
> > connector, but I read
> > that the warp connector should be preferred.
> > Can anybody tell why and what the main differences are ?
> >
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>

Milt Epstein
Research Programmer
Systems and Technology Services (STS)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


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




RE: How to configure multiple tomcat instances connecting to apac he using thewarp connector

2002-08-28 Thread Turner, John


While it will be interesting to see what the final solution is when using
WARP, I would say the consensus right now is that AJP13 is the "preferred"
connector.

John Turner
[EMAIL PROTECTED]

> -Original Message-
> From: Jochen Schweflinghaus [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 28, 2002 11:38 AM
> To: Tomcat Users List
> Subject: RE: How to configure multiple tomcat instances connecting to
> apac he using thewarp connector
> 
> 
> I got the environment I need working using the AJP13 
> connector, but I read
> that the warp connector should be preferred.
> Can anybody tell why and what the main differences are ?
> 

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




RE: How to configure multiple tomcat instances connecting to apac he usingthewarp connector

2002-08-28 Thread Jochen Schweflinghaus


Of course you are right. The problem was, that besides being tomcat-newby,
I'm also a mailing-list-newby. So I created the subject 'How to configure
multiple tomcat instances connecting to apac he using thewarp connector'
twice. My first mail contained the problem description. I'll append it
here. I am sorry for the inconvenience and apologize for my clumsyness, but
I'm learning continously ;-).

to set up a development environment, I try to map multiple instances of
tomcat to apache using the warp connector.
Tomcat instance 1 connects to virtual host tteflon3 and has CATALINA_BASE
set to absolute directory /prod. In /prod/webapps two applications exist
gtfn and soap.
Tomcat instance 2 connects to virtual host tctest1 and has CATALINA_BASE
set to absolute directory /home/tctest1/tomcat. In
/home/tctest1/tomcat/webapps only the application gtfn exists.

Each of the two instances will work fine with tomcat when running alone,
i.e. the WebApp... directives for the other instance are commented out in
the httpd.conf.

When tying to run both together, though, there is a repatingly entry in the
/var/log/httpd/error_log:
[error] Cannot deploy application soap

This error definitely comes from the connection to tomcat instance 2, since
everything is going well, when I put the application soap in the
/home/tctest1/tomcat/webapps folder (a link to /prod/webapps/soap will do).

Can anyone tell how to configure this with the warp connector, allowing
each tomcat instance to have its own applications ?

I got the environment I need working using the AJP13 connector, but I read
that the warp connector should be preferred.
Can anybody tell why and what the main differences are ?

httpd.conf:
...
LoadModule webapp_module   modules/mod_webapp.so
...
AddModule mod_webapp.c
...




DocumentRoot /var/www/html
ServerName tteflon3

WebAppConnection teflonConnection warp tteflon3:8108
WebAppDeploy gtfn teflonConnection /prod
WebAppDeploy soap teflonConnection /soap
WebAppInfo /web-inf



DocumentRoot /var/www/html
ServerName tctest1

   WebAppConnection test1Connection warp tctest1:8118
   WebAppDeploy gtfn test1Connection /tctest1


server.xml for tomcat instance 1 connecting to VirtualHost tteflon3:
...
  





  










  

  
...

server.xml for tomcat instance 2 connecting to VirtualHost tctest1:
...
  





  





  

  
...


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




RE: How to configure multiple tomcat instances connecting to apache using thewarp connector

2002-08-28 Thread Milt Epstein

On Wed, 28 Aug 2002, Andreas Mohrig wrote:

> Is using mod_jk a possibility? Because there is a way to connect
> multiple tomcat instances to apache using modd_jk. I always thought
> this was one of the differences between mod_jk and the warp
> connector, but don't take my word for it. Did you check the warp
> connector's documentation?

I'm quite sure you can have multiple tomcat instances with mod_warp
(I've done it).  The configuration is a a quite straightforward
extension of the single instance one, IIRC.  What did you (Jochen)
try?  (It's always best to be specific and give as much details as
possible, like what you tried and what happened when you tried it;
asking simply "How do you do XXX?" is not the best way to get people
to respond.)


> -Original Message-
> From: Jochen Schweflinghaus [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 28, 2002 9:21 AM
> To: [EMAIL PROTECTED]
> Subject: How to configure multiple tomcat instances connecting to apache
> using thewarp connector
>
>
> Forgot to mention the versions: RH Linux 7.1, apache-1.3.22-6,
> tomcat-4.0.4.
>
> No response so far ? Nobody have a clue ?
>
>
> --
> 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]>
>

Milt Epstein
Research Programmer
Systems and Technology Services (STS)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


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




RE: How to configure multiple tomcat instances connecting to apache using thewarp connector

2002-08-28 Thread Turner, John


The WARP connector itself is unfinished.  All due respect to the developers,
but if you want to make any progress towards rolling out stable, production
ready applications, you probably want mod_jk, or at least mod_jk2.
Mod_jserv and mod_jk have been around quite a bit, and many people are using
them and can provide advice and suggestions if you run into problems.

John Turner
[EMAIL PROTECTED]

> -Original Message-
> From: Jochen Schweflinghaus [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 28, 2002 4:06 AM
> To: [EMAIL PROTECTED]
> Subject: RE: How to configure multiple tomcat instances connecting to
> apache using thewarp connector
> 
> 
> Hi,
> 
> thank you for your input, I really appreciate !
> I just opened a new thread, to figure out the main 
> differences between warp
> and jk connctors ('Experience with connectors to connect 
> tomcat to apache ?
> ').
> The warp connector documentation I am aware of (at
> http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/warp.ht
> ml) is way
> short with 'FIXMEs' all over the place. Is there any better 
> documentatio
> source ?
> 
> 
> --
> 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: How to configure multiple tomcat instances connecting to apache usingthewarp connector

2002-08-28 Thread Jochen Schweflinghaus

Hi,

thank you for your input, I really appreciate !
I just opened a new thread, to figure out the main differences between warp
and jk connctors ('Experience with connectors to connect tomcat to apache ?
').
The warp connector documentation I am aware of (at
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/warp.html) is way
short with 'FIXMEs' all over the place. Is there any better documentatio
source ?


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: How to configure multiple tomcat instances connecting to apache using thewarp connector

2002-08-28 Thread Andreas Mohrig

Is using mod_jk a possibility? Because there is a way to connect multiple
tomcat instances to apache using modd_jk. I always thought this was one of
the differences between mod_jk and the warp connector, but don't take my
word for it. Did you check the warp connector's documentation?


Andreas Mohrig

-Original Message-
From: Jochen Schweflinghaus [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 28, 2002 9:21 AM
To: [EMAIL PROTECTED]
Subject: How to configure multiple tomcat instances connecting to apache
using thewarp connector


Forgot to mention the versions: RH Linux 7.1, apache-1.3.22-6,
tomcat-4.0.4.

No response so far ? Nobody have a clue ?


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




How to configure multiple tomcat instances connecting to apache usingthewarp connector

2002-08-28 Thread Jochen Schweflinghaus

Forgot to mention the versions: RH Linux 7.1, apache-1.3.22-6,
tomcat-4.0.4.

No response so far ? Nobody have a clue ?


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




How to configure multiple tomcat instances connecting to apache using thewarp connector

2002-08-27 Thread Jochen Schweflinghaus

Hi Group,

I'm quite a newby in the tomcat community, so please apologize any misuse
of the nomenclature.
to set up a development environment, I try to map multiple instances of
tomcat to apache using the warp connector.
Tomcat instance 1 connects to virtual host tteflon3 and has CATALINA_BASE
set to absolute directory /prod. In /prod/webapps two applications exist
gtfn and soap.
Tomcat instance 2 connects to virtual host tctest1 and has CATALINA_BASE
set to absolute directory /home/tctest1/tomcat. In
/home/tctest1/tomcat/webapps only the application gtfn exists.

Each of the two instances will work fine with tomcat when running alone,
i.e. the WebApp... directives for the other instance are commented out in
the httpd.conf.

When tying to run both together, though, there is a repatingly entry in the
/var/log/httpd/error_log:
[error] Cannot deploy application soap

This error definitely comes from the connection to tomcat instance 2, since
everything is going well, when I put the application soap in the
/home/tctest1/tomcat/webapps folder (a link to /prod/webapps/soap will do).

Can anyone tell how to configure this with the warp connector, allowing
each tomcat instance to have its own applications ?

I got the environment I need working using the AJP13 connector, but I read
that the warp connector should be preferred.
Can anybody tell why and what the main differences are ?

httpd.conf:
...
LoadModule webapp_module   modules/mod_webapp.so
...
AddModule mod_webapp.c
...




DocumentRoot /var/www/html
ServerName tteflon3

WebAppConnection teflonConnection warp tteflon3:8108
WebAppDeploy gtfn teflonConnection /prod
WebAppDeploy soap teflonConnection /soap
WebAppInfo /web-inf



DocumentRoot /var/www/html
ServerName tctest1

   WebAppConnection test1Connection warp tctest1:8118
   WebAppDeploy gtfn test1Connection /tctest1


server.xml for tomcat instance 1 connecting to VirtualHost tteflon3:
...
  





  










  

  
...

server.xml for tomcat instance 2 connecting to VirtualHost tctest1:
...
  





  





  

  
...



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Configuring multiple Tomcat instances

2002-06-18 Thread Brian Klock

I need to have multiple Tomcat instances running to have a test servlets for both me 
and a coworker.  This is the only way I can see to have multiple servlets running from 
the same Jar file.  Can someone describe how do accomplish this?  If possible, I'd 
like the URL mapping to look like this:

http://www.company.com/servlet/App_stage   ---> Tomcat instance 1, servlet named 
"App_stage"
http://www.company.com/servlet/App_1  ---> Tomcat instance 2, servlet 
named "App_1"
http://www.company.com/servlet/App_2  ---> Tomcat instance 3, servlet 
named "App_2"

This doesn't have to be a setup including Apache-Tomcat integration but that would be 
preferred.

Brian




AW: AW: unanswered questions: Multiple Tomcat Instances

2002-05-28 Thread Ralph Einfeldt

I placed all jar files that our application needs 
under ${CATALINA_HOME}/webapps//WEB-INF/lib

Class files are OK under 
${CATALINA_HOME}/webapps//WEB-INF/classes
(We don't have any)

AFAIK, if you have more than one context and want to use 
the same classes across all contexts, you can place them
under ${CATALINA_HOME}/lib and {CATALINA_HOME}/classes.
(Haven't tried this, we just need one context)

I deleted everything from web.xml hat we didn't need.
The only thing we changed in web.xml was the welcome-file-list 
element.

I deleted everything from server.xml hat we didn't need.
For the first instance you don't have to change anything.
I changed some setting that are not mandatory. (Set the log file 
names to our convention, rename the default context, ...)
For every following instance you have to change all ports
to a unique value. (You should list the port numbers in
/etc/services so it's easier to find out which ports are 
used)

Wether this changes are sufficient for an online server I'm
not shure, as we haven't used tomcat as an online server.

> -Ursprüngliche Nachricht-
> Von: Neil Zanella [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 28. Mai 2002 21:16
> An: Tomcat Users List
> Betreff: Re: AW: unanswered questions: Multiple Tomcat Instances

> Did you just copy the files under ${CATALINA_BASE}/conf from the
> corresponding ones in ${CATALINA_HOME}/conf or do these need to
> be altered in one way or another?
> Also, I am assuming that you are placing your java and class
> files under ${CATALINA_HOME}/webapps//WEB-INF/classes
> Is this the case or can it be done differently?
> Do any settings need to be modified under
> ${CATALINA_HOME}/conf/server.xml ?


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




Re: AW: unanswered questions: Multiple Tomcat Instances

2002-05-28 Thread Neil Zanella


Thanks!

Did you just copy the files under ${CATALINA_BASE}/conf from the
corresponding ones in ${CATALINA_HOME}/conf or do these need to
be altered in one way or another?
Also, I am assuming that you are placing your java and class
files under ${CATALINA_HOME}/webapps//WEB-INF/classes
Is this the case or can it be done differently?
Do any settings need to be modified under
${CATALINA_HOME}/conf/server.xml ?

Thanks,

Neil

On Tue, 28 May 2002, Ralph Einfeldt wrote:

> I don't know if it's the minimal set, but it works for me:
> 
> ${CATALINA_BASE}/conf
> ${CATALINA_BASE}/conf/server.xml
> ${CATALINA_BASE}/conf/tomcat-users.xml
> ${CATALINA_BASE}/conf/web.xml
> ${CATALINA_BASE}/conf/catalina.policy
> ${CATALINA_BASE}/webapps/
>   // Replace  with the name of your
>   // Context (Default=ROOT)
> 
> You access it with an url like
> localhost:8080 
> if you are browsing from the server.
> 
> :8080
> if you are browsing from your intranet
> 
> 8080 is the port you defined in server.xml for the http connector.
> 
> > -Ursprüngliche Nachricht-
> > Von: Neil Zanella [mailto:[EMAIL PROTECTED]]
> > Gesendet: Dienstag, 28. Mai 2002 01:47
> > An: Tomcat Users Mailing List
> > Betreff: unanswered questions: Multiple Tomcat Instances
> > 
> > 
> > 
> > Does anyone know what a minimal installation of files under 
> > ${CATALINA_BASE}
> > should consist of in order to allow the running of servlets and jsps?
> > Where should they be placed? How do I access them with a web browser?
> 
> --
> 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]>




AW: unanswered questions: Multiple Tomcat Instances

2002-05-27 Thread Ralph Einfeldt

I don't know if it's the minimal set, but it works for me:

${CATALINA_BASE}/conf
${CATALINA_BASE}/conf/server.xml
${CATALINA_BASE}/conf/tomcat-users.xml
${CATALINA_BASE}/conf/web.xml
${CATALINA_BASE}/conf/catalina.policy
${CATALINA_BASE}/webapps/
  // Replace  with the name of your
  // Context (Default=ROOT)

You access it with an url like
localhost:8080 
if you are browsing from the server.

:8080
if you are browsing from your intranet

8080 is the port you defined in server.xml for the http connector.

> -Ursprüngliche Nachricht-
> Von: Neil Zanella [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 28. Mai 2002 01:47
> An: Tomcat Users Mailing List
> Betreff: unanswered questions: Multiple Tomcat Instances
> 
> 
> 
> Does anyone know what a minimal installation of files under 
> ${CATALINA_BASE}
> should consist of in order to allow the running of servlets and jsps?
> Where should they be placed? How do I access them with a web browser?

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




unanswered questions: Multiple Tomcat Instances

2002-05-27 Thread Neil Zanella


Hello,

I am still trying to setup tomcat for multiple instances.
I read RUNNING.txt but it is rather incomplete
in section (4) as it does not describe what a
minimal set of files and their contents in
${CATALINA_BASE} would consist of in this
case...

As a regular user I created a new directory called ~/tomcat and added the
CATALINA_BASE directory to my ~/.bash_profile so that it looks like this:

export PATH=${PATH}:/usr/local/jdk/bin
export JAVA_HOME="/usr/local/j2sdk1.4.0"
export CLASSPATH=".:/usr/local/j2sdkee1.3.1/lib/j2ee.jar"
export CATALINA_HOME="/usr/local/jakarta-tomcat-4.0.3"
export CLASSPATH=${CLASSPATH}:/usr/local/saxon/saxon.jar
export CATALINA_BASE=${HOME}/tomcat

Then I created the four directories mentioned in RUNNING.txt (4) with:

mkdir ${CATALINA_BASE}/{conf,logs,webapps,work}

Now what? I can start tomcat but cannot shut it down:

Catalina.stop: java.lang.Exception: Can't open config file: 
/home/nzanella/tomcat/conf/server.xml due to: java.io.FileNotFoundException: 
/home/nzanella/tomcat/conf/server.xml (No such file or directory)

Does anyone know what a minimal installation of files under ${CATALINA_BASE}
should consist of in order to allow the running of servlets and jsps?
Where should they be placed? How do I access them with a web browser?

Thanks,

Neil


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Multiple Tomcat Instances on Linux Box : Binding exceptions galore : - fixed. My error

2002-05-19 Thread Webdesign

Not to worry. After a relaxing weekend I found the problem this morning. I'd
just forgotton to set a port right at the bottom of the server.xml files.

What a dofus. My apologies for adding unnessescary traffic to the list

Bert.

> -Original Message-
> From: Webdesign [mailto:[EMAIL PROTECTED]]
> Sent: Monday, 20 May 2002 9:36 a.m.
> To: Tomcat Users List
> Subject: RE: Multiple Tomcat Instances on Linux Box : Binding exceptions
> galore : No ideas left
>
>
> does tomcat bind to a particular port which is hardcoded in?
>
> Has anyone run multiple instances of tomcat on one machine or is
> it assumed
> that tomcat is run from client machines and not on a central server? If
> so,it seems to be a bit strange.
>
> Appreciate any help.
>
> Bert.
>
> >
> > Hi folks.
> >
> > I'm trying to setup tomcat on one of our servers so that multiple
> > developers
> > can have their own tomcat instance, but keep running into bind
> exceptions.
> > I've been fiddling with it for quite a few days but have come to a stage
> > where I can't figure out what more to do.
> >
> > ___
> > Here is the setup:
> >
> > We use redhat linux 7.2, tomcat rpm 4.0.3-1, j2sdk-1.4.0.
> Tomcat has been
> > installed in /var/tomcat4 on the server. For each developer I have set
> > CATALINA_BASE to point to their own tomcat directory (
> > /home/www//tomcat ) which contains the conf/webapps/temp/logs
> > directories. I have modified the server.xml file in each users
> > directory to
> > use unassigned ports ( eg ports 9620 to 9629 for user1, 9630 to 9639 for
> > user2 etc...). There are no other services running using any of
> > these ports.
> >
> > The server is assigned a whole heap of IP addresses, so IPs
> > 192.168.1.253-240, for instance, all point to the same physical
> > machine. All
> > ip addesses resolve to a name. ie 192.168.1.253=.domain.cxm,
> > 192.168.1.252=.domain.cxm etc... DNS works fine. These
> > names are used
> > in each users server.xml file (for engine and hosts). No two server.xml
> > files share the same hostname.
> >
> > Tomcat is started by calling '/usr/bin/tomcat4 start' This
> script has been
> > modified to run the '/usr/bin/dtomcat4' script as the user making
> > the call.
> >
> > Now, to start each instance, each user telnets into the server
> > and executes
> > the command '/usr/bin/tomcat4 start'. The directories tomcat
> uses are all
> > correct (it does use the correct CATALINA_BASE).
> >
> > _
> > The problem is this:
> >
> > Tomcat runs for each user if no other tomcat instance is
> running (I ensure
> > that by running gtop on the server and killing instances run by other
> > users). However, if one other instance of tomcat is running (by another
> > user), we get the error message below.
> >
> > I have tried commenting out all the connectors except for non-SSL
> > HTTP/1.1.
> > I have turned them all on and generated keystore files for SSL.
> >
> > I have replaced the hostnames with the IP addresses.
> >
> > Nothing seems to work. I am at a complete loss at what to do. If
> > anybody has
> > ANY idea where to go from here, I am open to suggestions.
> >
> > _
> > error message is:
> >
> > Catalina.start: LifecycleException:  Error creating server socket
> > (java.net.BindException):  java.net.BindException: Address
> already in use
> > LifecycleException:  Error creating server socket
> > (java.net.BindException):
> > java.net.BindException: Address already in use
> > at
> > org.apache.catalina.connector.warp.WarpConnector.initialize(WarpCo
> > nnector.ja
> > va:491)
> > at
> > org.apache.catalina.core.StandardService.initialize(StandardServic
> > e.java:454
> > )
> > at
> > org.apache.catalina.core.StandardServer.initialize(StandardServer.
> > java:553)
> > at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
> > at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
> > at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorIm
> > pl.java:39
> > )
> > at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc
> > cessorImpl
> > .java:25)
> > 

RE: Multiple Tomcat Instances on Linux Box : Binding exceptions galore : No ideas left

2002-05-19 Thread Webdesign

does tomcat bind to a particular port which is hardcoded in?

Has anyone run multiple instances of tomcat on one machine or is it assumed
that tomcat is run from client machines and not on a central server? If
so,it seems to be a bit strange.

Appreciate any help.

Bert.

>
> Hi folks.
>
> I'm trying to setup tomcat on one of our servers so that multiple
> developers
> can have their own tomcat instance, but keep running into bind exceptions.
> I've been fiddling with it for quite a few days but have come to a stage
> where I can't figure out what more to do.
>
> ___
> Here is the setup:
>
> We use redhat linux 7.2, tomcat rpm 4.0.3-1, j2sdk-1.4.0.  Tomcat has been
> installed in /var/tomcat4 on the server. For each developer I have set
> CATALINA_BASE to point to their own tomcat directory (
> /home/www//tomcat ) which contains the conf/webapps/temp/logs
> directories. I have modified the server.xml file in each users
> directory to
> use unassigned ports ( eg ports 9620 to 9629 for user1, 9630 to 9639 for
> user2 etc...). There are no other services running using any of
> these ports.
>
> The server is assigned a whole heap of IP addresses, so IPs
> 192.168.1.253-240, for instance, all point to the same physical
> machine. All
> ip addesses resolve to a name. ie 192.168.1.253=.domain.cxm,
> 192.168.1.252=.domain.cxm etc... DNS works fine. These
> names are used
> in each users server.xml file (for engine and hosts). No two server.xml
> files share the same hostname.
>
> Tomcat is started by calling '/usr/bin/tomcat4 start' This script has been
> modified to run the '/usr/bin/dtomcat4' script as the user making
> the call.
>
> Now, to start each instance, each user telnets into the server
> and executes
> the command '/usr/bin/tomcat4 start'. The directories tomcat uses are all
> correct (it does use the correct CATALINA_BASE).
>
> _
> The problem is this:
>
> Tomcat runs for each user if no other tomcat instance is running (I ensure
> that by running gtop on the server and killing instances run by other
> users). However, if one other instance of tomcat is running (by another
> user), we get the error message below.
>
> I have tried commenting out all the connectors except for non-SSL
> HTTP/1.1.
> I have turned them all on and generated keystore files for SSL.
>
> I have replaced the hostnames with the IP addresses.
>
> Nothing seems to work. I am at a complete loss at what to do. If
> anybody has
> ANY idea where to go from here, I am open to suggestions.
>
> _
> error message is:
>
> Catalina.start: LifecycleException:  Error creating server socket
> (java.net.BindException):  java.net.BindException: Address already in use
> LifecycleException:  Error creating server socket
> (java.net.BindException):
> java.net.BindException: Address already in use
>   at
> org.apache.catalina.connector.warp.WarpConnector.initialize(WarpCo
> nnector.ja
> va:491)
>   at
> org.apache.catalina.core.StandardService.initialize(StandardServic
> e.java:454
> )
>   at
> org.apache.catalina.core.StandardServer.initialize(StandardServer.
> java:553)
>   at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
>   at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
>   at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorIm
> pl.java:39
> )
>   at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc
> cessorImpl
> .java:25)
>   at java.lang.reflect.Method.invoke(Method.java:324)
>   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
> - Root Cause -
> java.net.BindException: Address already in use
>   at java.net.PlainSocketImpl.socketBind(Native Method)
>   at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:321)
>   at java.net.ServerSocket.bind(ServerSocket.java:308)
>   at java.net.ServerSocket.bind(ServerSocket.java:266)
>   at java.net.ServerSocket.(ServerSocket.java:182)
>   at java.net.ServerSocket.(ServerSocket.java:138)
>   at
> org.apache.catalina.net.DefaultServerSocketFactory.createSocket(De
> faultServe
> rSocketFactory.java:118)
>   at
> org.apache.catalina.connector.warp.WarpConnector.initialize(WarpCo
> nnector.ja
> va:485)
>   at
> org.apache.catalina.core.StandardService.initialize(StandardServic
> e.java:454
> )
>   at
> org.apache.catalina.core.StandardServer.initialize(StandardServer.
> java:553)
>   at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
>   at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
>   at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMet

Multiple Tomcat Instances on Linux Box : Binding exceptions galore : No ideas left

2002-05-19 Thread Webdesign

Hi folks.

I'm trying to setup tomcat on one of our servers so that multiple developers
can have their own tomcat instance, but keep running into bind exceptions.
I've been fiddling with it for quite a few days but have come to a stage
where I can't figure out what more to do.

___
Here is the setup:

We use redhat linux 7.2, tomcat rpm 4.0.3-1, j2sdk-1.4.0.  Tomcat has been
installed in /var/tomcat4 on the server. For each developer I have set
CATALINA_BASE to point to their own tomcat directory (
/home/www//tomcat ) which contains the conf/webapps/temp/logs
directories. I have modified the server.xml file in each users directory to
use unassigned ports ( eg ports 9620 to 9629 for user1, 9630 to 9639 for
user2 etc...). There are no other services running using any of these ports.

The server is assigned a whole heap of IP addresses, so IPs
192.168.1.253-240, for instance, all point to the same physical machine. All
ip addesses resolve to a name. ie 192.168.1.253=.domain.cxm,
192.168.1.252=.domain.cxm etc... DNS works fine. These names are used
in each users server.xml file (for engine and hosts). No two server.xml
files share the same hostname.

Tomcat is started by calling '/usr/bin/tomcat4 start' This script has been
modified to run the '/usr/bin/dtomcat4' script as the user making the call.

Now, to start each instance, each user telnets into the server and executes
the command '/usr/bin/tomcat4 start'. The directories tomcat uses are all
correct (it does use the correct CATALINA_BASE).

_
The problem is this:

Tomcat runs for each user if no other tomcat instance is running (I ensure
that by running gtop on the server and killing instances run by other
users). However, if one other instance of tomcat is running (by another
user), we get the error message below.

I have tried commenting out all the connectors except for non-SSL HTTP/1.1.
I have turned them all on and generated keystore files for SSL.

I have replaced the hostnames with the IP addresses.

Nothing seems to work. I am at a complete loss at what to do. If anybody has
ANY idea where to go from here, I am open to suggestions.

_
error message is:

Catalina.start: LifecycleException:  Error creating server socket
(java.net.BindException):  java.net.BindException: Address already in use
LifecycleException:  Error creating server socket (java.net.BindException):
java.net.BindException: Address already in use
at
org.apache.catalina.connector.warp.WarpConnector.initialize(WarpConnector.ja
va:491)
at
org.apache.catalina.core.StandardService.initialize(StandardService.java:454
)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:553)
at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:321)
at java.net.ServerSocket.bind(ServerSocket.java:308)
at java.net.ServerSocket.bind(ServerSocket.java:266)
at java.net.ServerSocket.(ServerSocket.java:182)
at java.net.ServerSocket.(ServerSocket.java:138)
at
org.apache.catalina.net.DefaultServerSocketFactory.createSocket(DefaultServe
rSocketFactory.java:118)
at
org.apache.catalina.connector.warp.WarpConnector.initialize(WarpConnector.ja
va:485)
at
org.apache.catalina.core.StandardService.initialize(StandardService.java:454
)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:553)
at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
_

Bert van Brakel

Web Design
Advance Enterprise Ltd (AEL)
email : [EMAIL PROTECTED]
Bus ph: +64 3 389 9411
fax   : +64 3 389 1411


--
To unsubscribe, e-mail:   

Multiple tomcat instances - disadvantages

2002-04-25 Thread Heart Prince

  
hi,
I am developing an application service provider site. different people can register 
there, and they will get their own homepage and data (sensitive data like credit card 
info etc). currently i have created different folders for each user and gave it names 
(DNS) like user1.mysite.com, user2.mysite.com etc. from that folders index page users 
will reach www.mysite.com:8080/login.jsp. (/var/tomcat4/web-apps/ROOT/login.jsp)
now i want to customize the code for each user, so i am planning to use multiple 
instances of tomcat. what are the disadvantages of using multiple instances of tomcat? 
later if i want to move one user to another server will there be any problem (because 
i don't want to change the url for that user, ie that should be user1.mysite.com 
always.)
and I need SSL also, how multiple instance of tomcat will effect SSl enabling of my 
site?
thanx in advance
Robert AndreaGet more from the Web.  FREE MSN Explorer download : 
http://explorer.msn.com



RE: multiple Tomcat-instances and a confused servlet...

2002-04-25 Thread Larry Isaacs

In server.xml, 
will automatically add subdirectories of TOMCAT_HOME/webapps
as contexts, using the subdirectory name as the context
name.  Context declarations in server.xml can override the
settings for the auto-added contexts.  If you don't want
a web application automatically served, move it outside of
the TOMCAT_HOME/webapps or remove the interceptor so no
contexts are automatically served.

Cheers,
Larry

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, April 25, 2002 6:06 AM
> To: [EMAIL PROTECTED]
> Subject: multiple Tomcat-instances and a confused servlet...
> 
> 
> Hi,
> 
> I'm using multiple instances of Tomcat 3.2.4. The problem is, 
> that I can
> access servlets of one instance even if the servlets is in the
> webapps-directory of another instance. This is very confusing 
> during the
> development of the servlet, because it still "lives" in the 
> other instances
> although I shut down the right instance.
> 
> The "main" instance of Tomcat lsitens on Port 8087:
> http://www.mydomain.com:8087/Community/Poll
> The servlet "Poll" ist configured to run this instance:
> server.xml:
>   docBase="webapps/Community"
>  crossContext="false"
>  debug="0"
>  reloadable="true" >
> 
> 
> web.xml:
>
> 
> Poll
> 
> 
> /Poll
> 
> 
> 
> and it is loaded correct during the startup of this TC-instance:
> tomcat.log:
> 2002-04-25 11:25:04 - Ctx( /Community ): Mapping with 
> unregistered servlet
> Poll
> 
> start-script of this instance:
> TOMCATLOG=/usr/local/jakarta-tomcat-3.2.4/logs/tomcat_start.log
> TOMCATLOG2=/usr/local/jakarta-tomcat-3.2.4/logs/tomcat_err.log
> export JAVA_HOME=/usr/local/jdk1.3.1_02
> export TOMCAT_HOME=/usr/local/jakarta-tomcat-3.2.4
> cd $TOMCAT_HOME
> /usr/local/jakarta-tomcat-3.2.4/bin/startup.sh -f
> /usr/local/jakarta-tomcat-3.2.4/conf/server.xml >$TOMCATLOG 
> 2>$TOMCATLOG2
> 
> so far, so good.
> 
> BUT:
> I can access this servlet with an other TC-instance, which 
> listens on Port
> 9015: http://www.mydomain.com:9015/Community/Poll
> 
> in this instance, there is NO entry in server.xml which points on the
> servlet "Poll". Even the directory "webapps/Community" does 
> not exist in
> this instance!
> ...and it is loaded during the startup :((
> 2002-04-25 11:24:16 - Ctx( /Community ): Mapping with 
> unregistered servlet
> Poll
> 
> start-script of this instance, which uses the same binaries 
> but an other
> server.xml:
> TOMCATLOG=/usr/local/tc-324-i2125/logs/i2125tomcat_start.log
> TOMCATLOG2=/usr/local/tc-324-i2125/logs/i2125tomcat_err.log
> export JAVA_HOME=/usr/local/jdk1.3.1_02
> export TOMCAT_HOME=/usr/local/jakarta-tomcat-3.2.4
> /usr/local/jakarta-tomcat-3.2.4/bin/startup.sh -f
> /usr/local/tc-324-i2125/conf/server.xml >$TOMCATLOG 2>$TOMCATLOG2
> 
> Any ideas how I can stop this behaviour ?
> 
> Many thanks !
> Kay
> 
> 
> --
> 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 Tomcat-instances and a confused servlet...

2002-04-25 Thread klingenauber

Hi,

I'm using multiple instances of Tomcat 3.2.4. The problem is, that I can
access servlets of one instance even if the servlets is in the
webapps-directory of another instance. This is very confusing during the
development of the servlet, because it still "lives" in the other instances
although I shut down the right instance.

The "main" instance of Tomcat lsitens on Port 8087:
http://www.mydomain.com:8087/Community/Poll
The servlet "Poll" ist configured to run this instance:
server.xml:



web.xml:
   

Poll


/Poll



and it is loaded correct during the startup of this TC-instance:
tomcat.log:
2002-04-25 11:25:04 - Ctx( /Community ): Mapping with unregistered servlet
Poll

start-script of this instance:
TOMCATLOG=/usr/local/jakarta-tomcat-3.2.4/logs/tomcat_start.log
TOMCATLOG2=/usr/local/jakarta-tomcat-3.2.4/logs/tomcat_err.log
export JAVA_HOME=/usr/local/jdk1.3.1_02
export TOMCAT_HOME=/usr/local/jakarta-tomcat-3.2.4
cd $TOMCAT_HOME
/usr/local/jakarta-tomcat-3.2.4/bin/startup.sh -f
/usr/local/jakarta-tomcat-3.2.4/conf/server.xml >$TOMCATLOG 2>$TOMCATLOG2

so far, so good.

BUT:
I can access this servlet with an other TC-instance, which listens on Port
9015: http://www.mydomain.com:9015/Community/Poll

in this instance, there is NO entry in server.xml which points on the
servlet "Poll". Even the directory "webapps/Community" does not exist in
this instance!
...and it is loaded during the startup :((
2002-04-25 11:24:16 - Ctx( /Community ): Mapping with unregistered servlet
Poll

start-script of this instance, which uses the same binaries but an other
server.xml:
TOMCATLOG=/usr/local/tc-324-i2125/logs/i2125tomcat_start.log
TOMCATLOG2=/usr/local/tc-324-i2125/logs/i2125tomcat_err.log
export JAVA_HOME=/usr/local/jdk1.3.1_02
export TOMCAT_HOME=/usr/local/jakarta-tomcat-3.2.4
/usr/local/jakarta-tomcat-3.2.4/bin/startup.sh -f
/usr/local/tc-324-i2125/conf/server.xml >$TOMCATLOG 2>$TOMCATLOG2

Any ideas how I can stop this behaviour ?

Many thanks !
Kay


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




servlet in multiple Tomcat-instances

2002-04-25 Thread it

Hi,

I'm using multiple instances of Tomcat 3.2.4. The problem is, that I can
access servlets of one instance even if the servlet is NOT in the
webapps-directory of another instance. This is very confusing during the
development of the servlet, because it still "lives" in the other instances
although I shut down the right instance.

The "main" instance of Tomcat lsitens on Port 8087:
http://www.mydomain.com:8087/Community/Poll
The servlet "Poll" ist configured to run this instance:
server.xml:



web.xml:
   

Poll


/Poll



and it is loaded correct during the startup of this TC-instance:
tomcat.log:
2002-04-25 11:25:04 - Ctx( /Community ): Mapping with unregistered servlet
Poll

start-script of this instance:
TOMCATLOG=/usr/local/jakarta-tomcat-3.2.4/logs/tomcat_start.log
TOMCATLOG2=/usr/local/jakarta-tomcat-3.2.4/logs/tomcat_err.log
export JAVA_HOME=/usr/local/jdk1.3.1_02
export TOMCAT_HOME=/usr/local/jakarta-tomcat-3.2.4
cd $TOMCAT_HOME
/usr/local/jakarta-tomcat-3.2.4/bin/startup.sh -f
/usr/local/jakarta-tomcat-3.2.4/conf/server.xml >$TOMCATLOG 2>$TOMCATLOG2

so far, so good.

BUT:
I can access this servlet with an other TC-instance, which listens on Port
9015: http://www.mydomain.com:9015/Community/Poll

in this instance, there is NO entry in server.xml which points on the
servlet "Poll". Even the directory "webapps/Community" does not exist in
this instance!
...and it is loaded during the startup :((
2002-04-25 11:24:16 - Ctx( /Community ): Mapping with unregistered servlet
Poll

start-script of this instance, which uses the same binaries but an other
server.xml:
TOMCATLOG=/usr/local/tc-324-i2125/logs/i2125tomcat_start.log
TOMCATLOG2=/usr/local/tc-324-i2125/logs/i2125tomcat_err.log
export JAVA_HOME=/usr/local/jdk1.3.1_02
export TOMCAT_HOME=/usr/local/jakarta-tomcat-3.2.4
/usr/local/jakarta-tomcat-3.2.4/bin/startup.sh -f
/usr/local/tc-324-i2125/conf/server.xml >$TOMCATLOG 2>$TOMCATLOG2

Any ideas how I can stop this behaviour ?

Many thanks !
Kay


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Multiple Tomcat instances

2002-03-26 Thread Vijay Kandy


Hello all,

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:


[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:   
For additional commands: 
Troubles with the list: 




HOWTO: Multiple tomcat instances: Apache 1.3.x - Tomcat 4.x - mod_webapp

2001-12-26 Thread Joseph Wagner

Hello everybody,

I recently spent some time setting up a server with a single apache instance and 
multiple tomcat instances - for use as a shared hosting environment. I wasn't able to 
find much official documentation on this topic, so I put together a short HOWTO on the 
subject:

http://www.javadyne.com/HOWTO-tomcat-shared.html

Please send any comments, suggestions, corrections, etc. to [EMAIL PROTECTED]

Joe



RE: load balancing Multiple Tomcat instances

2001-12-06 Thread Ing. Gabriel Gajdos

Hi!

I don't have good news for you.

The support for AJP 13 in Tomcat 4 should be considered as beta...

And Tomcat 4.0.1 does not support load balancing...
If you really need this feature, stat at 3.x.

GG

| Hi,
| Loadbalancer worker can be set in Worker.properties in 3.x, but in 4.x 
| there
| is no documentation as to how we can use loadbalancer worker for load
| balancing between multiple instances of Tomcat. Please point me to the 
| right
| documentation in case I missed it. If load balancing is native to 4.x, then
| is there anything we need to do from our side at all? Please give me some
| information regarding that.
| Thanks



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




load balancing Multiple Tomcat instances

2001-12-05 Thread Vijetha Vadlakonda

Hi,
Loadbalancer worker can be set in Worker.properties in 3.x, but in 4.x there
is no documentation as to how we can use loadbalancer worker for load
balancing between multiple instances of Tomcat. Please point me to the right
documentation in case I missed it. If load balancing is native to 4.x, then
is there anything we need to do from our side at all? Please give me some
information regarding that.
Thanks


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Multiple Tomcat Instances

2001-09-14 Thread Lester Balmaceda

I have 1 machine with two tomcat instance.

tomcat_worker.properties

worker.list=ajp12_1, ajp12_2

worker.ajp12_1.port=8007
worker.ajp12_1.host=localhost
worker.ajp12_1.type=ajp12
worker.ajp12_1.lbfactor=1

worker.ajp12_2.port=8009
worker.ajp12_2.host=localhost
worker.ajp12_2.type=ajp13
worker.ajp12_2.lbfactor=1


server1.xml
--





server2.xml
--





httpd.conf

JkMount /*.jsp ajp12_1
JkMount /tomcat_context_name/*.jsp ajp12_1

JkMount /*.jsp ajp12_2
JkMount /tomcat_context_name/*.jsp ajp12_2

that's all. Maybe this example help you.

PD: I'm working on shutdown tomcat problem, always shutdown the instance on
"8007".



- Original Message -
From: "Abhijat Thakur" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 14, 2001 4:59 PM
Subject: Multiple Tomcat Instances


>
>
> Hi,
>
> I am using apache and Tomcat 3.2.1. I am trying to have two instances of
> tomcat running. I have different server.xml for each tomcat instance.
> server1.xml
> AJP on Port 8007
> server2.xml
> AJP on port 8009
>
> I have no problem starting tomcat using the two server.xml files. Every
time
> i start tomcat with one of server.xml files i rename the mod_jk.conf-auto
> and then included the two static files in httpd.conf.I have context "test"
> in server1.xml and context "myapp" in server2.xml.
> When i do http://xxx.com/test or http://xxx.com/myapp i can see the
> index.html page for that context but when i try to run the servlet or the
> jsp for those context then it does work.
>
> How do i tell apache as to which context is to be serverd by which port or
> tomcat instance. I checked the archives and somebody was mentioning about
> adding new workers in worker.properties file to direct requests to  the
> different tomcats/jvms.I think i am missing this or some other step but do
> not know how to do it? Please advise.
>
>
> Thanks a lot
>
>
> Abhijat Thakur
>
> bDNA Corporation
>
>




Multiple Tomcat Instances

2001-09-14 Thread Abhijat Thakur



Hi,

I am using apache and Tomcat 3.2.1. I am trying to have two instances of
tomcat running. I have different server.xml for each tomcat instance.
server1.xml
AJP on Port 8007
server2.xml
AJP on port 8009

I have no problem starting tomcat using the two server.xml files. Every time
i start tomcat with one of server.xml files i rename the mod_jk.conf-auto
and then included the two static files in httpd.conf.I have context "test"
in server1.xml and context "myapp" in server2.xml.
When i do http://xxx.com/test or http://xxx.com/myapp i can see the
index.html page for that context but when i try to run the servlet or the
jsp for those context then it does work.

How do i tell apache as to which context is to be serverd by which port or
tomcat instance. I checked the archives and somebody was mentioning about
adding new workers in worker.properties file to direct requests to  the
different tomcats/jvms.I think i am missing this or some other step but do
not know how to do it? Please advise.


Thanks a lot


Abhijat Thakur

bDNA Corporation




RE: Multiple Tomcat Instances

2001-09-10 Thread Marjou Xavier

Hello,

You need a single mod_jk.conf and a single worker.properties. You need to write it 
yourself: you declare your two tomcats into workers.properties, and for getting your 
mod_jk.conf, you merge your 2 mod_jk.conf.auto, but when you make the mapping for the 
dynamic part of a webapp (servlets or jsps) you have to specify on which tomcat to 
sent the request.

For example, if you have a "foo" webapp in a tomcat1, and a "bar" webapp in a tomcat2:

in workers.properties, you need something like:
worker.list=ajp_tomcat1,ajp_tomcat2
worker.ajp_tomcat1.port=8007
worker.ajp_tomcat1.host=localhost
worker.ajp_tomcat1.type=ajp12
worker.ajp_tomcat2.port=8009
worker.ajp_tomcat2.host=localhost
worker.ajp_tomcat2.type=ajp12

and in mod_jk.conf, something like:
JkMount /foo/servlet/* ajp_tomcat1
JkMount /foo/*.jsp ajp_tomcat1
JkMount /bar/servlet/* ajp_tomcat2
JkMount /bar/*.jsp ajp_tomcat2

Xavier Marjou

> -Original Message-
> From: Abhijat Thakur [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, September 07, 2001 7:16 PM
> To:   [EMAIL PROTECTED]
> Subject:  RE: Multiple Tomcat Instances
> 
> I am using two tomcats
> server1.xml
>   AJP on Port 8007
> server2.xml
>   AJP on port 8009
> I am using Http via Apache.Every time i start tomcat with one of server.xml
> files i rename the mod_jk.conf-auto and the included the two static files in
> httpd.conf. Even after doing this i can only go to the contexts served by
> server1.xml file and not by server2.xml. How do i tell apache as to which
> context is to be serverd by which port. I think i am missing this step but
> do not know how to do it?
> 
> Thanks
> 
> Abhijat Thakur
> 
> 
> -Original Message-
> From: Marjou Xavier [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 07, 2001 4:37 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Multiple Tomcat Instances
> 
> 
> Hello,
> 
> Each Tomcat can be interfaced with a HTTP client with 2 different ways
> (defined in server.xml)
> - either with regular HTTP (eg: on port 8080)
> - or/and indirectly via Apache (AJP protocol is used, eg port 8007)
> If you use HTTP via Apache, Apache will need mod_jk.conf and
> worker.properties to know how to dialogue with Tomcat
> If you use only one instance of Tomcat, then the default files (server.xml,
> mod_jk.conf-auto and worker.properties) work well.
> 
> 
> Now if you use 2 Tomcats,  you can do:
> - in server1.xml
>   - HTTP on port 8080)
>   - AJP on port 8007)
> -in server2.xml
>   - HTTP on port 8081)
>   - AJP on port 8009)
> Each Tomcat will have its own socket for serving HTTP. It is not possible to
> share a socket (eg: 8080) between to Tomcats as you are trying to do.
> 
> If you use HTTP via Apache, Apache will need to write your own mod_jk.conf
> and worker.properties. (It is important to realize that the default ones are
> working only when there is the default configuration of Tomcat (ie: only one
> Tomcat)).
> 
> I hope this help,
> Xavier Marjou
> 
> 
> 
> 
> 



RE: Multiple Tomcat Instances

2001-09-07 Thread Abhijat Thakur

I am using two tomcats
server1.xml
AJP on Port 8007
server2.xml
AJP on port 8009
I am using Http via Apache.Every time i start tomcat with one of server.xml
files i rename the mod_jk.conf-auto and the included the two static files in
httpd.conf. Even after doing this i can only go to the contexts served by
server1.xml file and not by server2.xml. How do i tell apache as to which
context is to be serverd by which port. I think i am missing this step but
do not know how to do it?

Thanks

Abhijat Thakur


-Original Message-
From: Marjou Xavier [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 07, 2001 4:37 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Multiple Tomcat Instances


Hello,

Each Tomcat can be interfaced with a HTTP client with 2 different ways
(defined in server.xml)
- either with regular HTTP (eg: on port 8080)
- or/and indirectly via Apache (AJP protocol is used, eg port 8007)
If you use HTTP via Apache, Apache will need mod_jk.conf and
worker.properties to know how to dialogue with Tomcat
If you use only one instance of Tomcat, then the default files (server.xml,
mod_jk.conf-auto and worker.properties) work well.


Now if you use 2 Tomcats,  you can do:
- in server1.xml
- HTTP on port 8080)
- AJP on port 8007)
-in server2.xml
- HTTP on port 8081)
- AJP on port 8009)
Each Tomcat will have its own socket for serving HTTP. It is not possible to
share a socket (eg: 8080) between to Tomcats as you are trying to do.

If you use HTTP via Apache, Apache will need to write your own mod_jk.conf
and worker.properties. (It is important to realize that the default ones are
working only when there is the default configuration of Tomcat (ie: only one
Tomcat)).

I hope this help,
Xavier Marjou









RE: Multiple Tomcat Instances

2001-09-07 Thread Marjou Xavier

> If you use HTTP via Apache, Apache will need to write your own mod_jk.conf and 
>worker.properties
I wanted to say : "If you use HTTP via Apache, YOU will need to write your own 
mod_jk.conf and worker.properties"

Sorry about it




RE: Multiple Tomcat Instances

2001-09-07 Thread Marjou Xavier

Hello,

Each Tomcat can be interfaced with a HTTP client with 2 different ways (defined in 
server.xml)
- either with regular HTTP (eg: on port 8080)
- or/and indirectly via Apache (AJP protocol is used, eg port 8007)
If you use HTTP via Apache, Apache will need mod_jk.conf and worker.properties to know 
how to dialogue with Tomcat
If you use only one instance of Tomcat, then the default files (server.xml, 
mod_jk.conf-auto and worker.properties) work well.


Now if you use 2 Tomcats,  you can do:
- in server1.xml
- HTTP on port 8080)
- AJP on port 8007)
-in server2.xml
- HTTP on port 8081)
- AJP on port 8009)
Each Tomcat will have its own socket for serving HTTP. It is not possible to share a 
socket (eg: 8080) between to Tomcats as you are trying to do.

If you use HTTP via Apache, Apache will need to write your own mod_jk.conf and 
worker.properties. (It is important to realize that the default ones are working only 
when there is the default configuration of Tomcat (ie: only one Tomcat)).

I hope this help,
Xavier Marjou








  1   2   >