CATALINA_BASE and multiple instances

2006-04-19 Thread David Rush
I'm trying to get Tomcat 5.5.16 set up for multiple independent 
instances (for use by multiple developers w/out stepping on each others' 
toes) in Windows XP (and eventually 2003 Server).


I've got the binaries installed in c:\Apache\Tomcat5, and this is where 
the environment variable CATALINA_HOME points.


I've got one instance set up in c:\arcims-tomcat, and this is where 
CATALINA_BASE points.


However, when I tried to install log4j, I had to put the .jar files and 
log4j.properties files under CATALINA_HOME/common in order for it to 
work.  Putting them under CATALINA_BASE/common did not work.  Obviously 
this is a problem because then multiple instances, which all share 
CATALINA_HOME would be intermixed in one log file.  It also points to 
the bigger problem of all instances sharing CATALINA_HOME/common for 
everything.


Is there a way to get each instance of tomcat to use its own 
CATALINA_BASE/common directory?


There's also the problem of getting multiple service-based tomcat 
instances to have their own idea of what CATALINA_BASE points to.


David

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



RE: CATALINA_BASE and multiple instances

2006-04-19 Thread Allistair Crossley
Don't know much about the BASE property, but all 6 of our devs have
local Tomcats on their machine, and CATALINA_HOME suffices. Ant is used
to push to a staging server. Perhaps your problem is solved by thinking
in a different way?

Allistair. 

-Original Message-
From: David Rush [mailto:[EMAIL PROTECTED] 
Sent: 19 April 2006 15:25
To: Tomcat Users List
Subject: CATALINA_BASE and multiple instances

I'm trying to get Tomcat 5.5.16 set up for multiple independent
instances (for use by multiple developers w/out stepping on each others'

toes) in Windows XP (and eventually 2003 Server).

I've got the binaries installed in c:\Apache\Tomcat5, and this is where
the environment variable CATALINA_HOME points.

I've got one instance set up in c:\arcims-tomcat, and this is where
CATALINA_BASE points.

However, when I tried to install log4j, I had to put the .jar files and
log4j.properties files under CATALINA_HOME/common in order for it to
work.  Putting them under CATALINA_BASE/common did not work.  Obviously
this is a problem because then multiple instances, which all share
CATALINA_HOME would be intermixed in one log file.  It also points to
the bigger problem of all instances sharing CATALINA_HOME/common for
everything.

Is there a way to get each instance of tomcat to use its own
CATALINA_BASE/common directory?

There's also the problem of getting multiple service-based tomcat
instances to have their own idea of what CATALINA_BASE points to.

David

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





FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
Disclaimer:  The information contained within this e-mail is confidential and 
may be privileged. This email is intended solely for the named recipient only; 
if you are not authorised you must not disclose, copy, distribute, or retain 
this message or any part of it. If you have received this message in error 
please contact the sender at once so that we may take the appropriate action 
and avoid troubling you further.  Any views expressed in this message are those 
of the individual sender.  QAS Limited has the right lawfully to record, 
monitor and inspect messages between its employees and any third party.  Your 
messages shall be subject to such lawful supervision as QAS Limited deems to be 
necessary in order to protect its information, its interests and its 
reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
Limited cannot guarantee that attachments are virus free or compatible with 
your systems and does not accept any liability in respect of viruses or 
computer problems experienced.
/FONT


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



Re: CATALINA_BASE and multiple instances

2006-04-19 Thread Markus Schönhaber
David Rush wrote:
 However, when I tried to install log4j, I had to put the .jar files and
 log4j.properties files under CATALINA_HOME/common in order for it to
 work.  Putting them under CATALINA_BASE/common did not work.  Obviously
 this is a problem because then multiple instances, which all share
 CATALINA_HOME would be intermixed in one log file. 

That doesn't seem obvious to me.

 It also points to 
 the bigger problem of all instances sharing CATALINA_HOME/common for
 everything.

As I understand it, the whole point in setting CATALINA_BASE and CATALINA_HOME 
to different values is to have multiple Tomcat instances running from the 
*same* set of binaries and libs. So, to me this seems to be exactly the way 
it's meant to be.

 Is there a way to get each instance of tomcat to use its own
 CATALINA_BASE/common directory?

If there is a way, I know nothing of it.
But, as already suggested, you could run multiple Tomcat instances from 
multiple installation directories. Or you could bundle log4j with the webapps 
that need it instead of putting it in common/lib.

Regards
  mks

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



Re: CATALINA_BASE and multiple instances

2006-04-19 Thread David Rush


Is there a way to get each instance of tomcat to use its own 
CATALINA_BASE/common directory?



Yes.  Clone the entire installation several times.  This has the
advantage that developers can upgrade 'their' instances as they require.
  
Okay, that looks like it will work for me.  I was hoping for a more 
elegant solution, but now what works beats elegant.


Thanks.

David

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



RE: CATALINA_BASE and multiple instances

2006-04-19 Thread Allistair Crossley
It's not *that* unelegant really. You could still manage a centralised
Tomcat if you really wanted to in a source control system for example. 

A.

-Original Message-
From: David Rush [mailto:[EMAIL PROTECTED] 
Sent: 19 April 2006 16:36
To: Tomcat Users List
Subject: Re: CATALINA_BASE and multiple instances


 Is there a way to get each instance of tomcat to use its own 
 CATALINA_BASE/common directory?
 

 Yes.  Clone the entire installation several times.  This has the 
 advantage that developers can upgrade 'their' instances as they
require.
   
Okay, that looks like it will work for me.  I was hoping for a more
elegant solution, but now what works beats elegant.

Thanks.

David

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





FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
Disclaimer:  The information contained within this e-mail is confidential and 
may be privileged. This email is intended solely for the named recipient only; 
if you are not authorised you must not disclose, copy, distribute, or retain 
this message or any part of it. If you have received this message in error 
please contact the sender at once so that we may take the appropriate action 
and avoid troubling you further.  Any views expressed in this message are those 
of the individual sender.  QAS Limited has the right lawfully to record, 
monitor and inspect messages between its employees and any third party.  Your 
messages shall be subject to such lawful supervision as QAS Limited deems to be 
necessary in order to protect its information, its interests and its 
reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
Limited cannot guarantee that attachments are virus free or compatible with 
your systems and does not accept any liability in respect of viruses or 
computer problems experienced.
/FONT


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



Re: CATALINA_BASE and multiple instances

2006-04-19 Thread Rainer Jung

No help for Win services from me, but:

you can configure the tomcat classloaders via catalina.properties. Look 
for the entries named common.loader etc. There you will find the reason, 
why the common loader finds code in CATALINA_HOME/common/lib/*.jar, but 
not in the analogous CATALINA_BASE directory. You can extend that 
configuration using the property ${catalina.base}. You can even 
configure the class loaders differently for various instances using the 
startup option:


-Dcatalina.config=file://${CATALINA_BASE}/conf/catalina.properties

That way you will be able to shrink a tomcat instance in your file 
system to a couple of kilobytes (plus webapps, logs etc.). Al the libs 
will be shared from CATALINA_HOME.


--
Rainer

David Rush wrote:
I'm trying to get Tomcat 5.5.16 set up for multiple independent 
instances (for use by multiple developers w/out stepping on each others' 
toes) in Windows XP (and eventually 2003 Server).


I've got the binaries installed in c:\Apache\Tomcat5, and this is where 
the environment variable CATALINA_HOME points.


I've got one instance set up in c:\arcims-tomcat, and this is where 
CATALINA_BASE points.


However, when I tried to install log4j, I had to put the .jar files and 
log4j.properties files under CATALINA_HOME/common in order for it to 
work.  Putting them under CATALINA_BASE/common did not work.  Obviously 
this is a problem because then multiple instances, which all share 
CATALINA_HOME would be intermixed in one log file.  It also points to 
the bigger problem of all instances sharing CATALINA_HOME/common for 
everything.


Is there a way to get each instance of tomcat to use its own 
CATALINA_BASE/common directory?


There's also the problem of getting multiple service-based tomcat 
instances to have their own idea of what CATALINA_BASE points to.


David

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