Re: setenv.sh in an individual tomcat catalina base

2010-11-10 Thread André Warnier

Hi Ziggy.
Sorry then. I was too lazy to go back to check, and I must have confused your post with 
another one.




Ziggy wrote:

Hi Andre,

I am using a standard Tomcat installation downloaded from tomcat.apache.org.

I am confused as to how you determined that am using a packaged version of
Tomcat :)

--
D

On Tue, Nov 9, 2010 at 3:55 PM, André Warnier a...@ice-sa.com wrote:


Hi.

As I recall, you are using a packaged version of Tomcat (meaning not the
original one from the tomcat website download, but one already packaged by
the people who do such things for your OS version).

You should then look carefully at what scripts are used to start/stop
Tomcat on your particular system (starting with /etc/init.d/tomcat e.g.),
what they invoke and when, to determine what you can put into
CATALINA_HOME/x and CATALINA_BASE/y.
For example, these packages often use a file /etc/default/tomcat that sets
some environment values, which are later used to determine what other
scripts do.

What Konstantin indicates below is based on the standard catalina.sh as
provided in the standard Tomcat download, but there is no guarantee that
this script has not been modified (or is even used) in your particular
package.



Ziggy wrote:


I am using Tomcat v5.5

Do you mean that for newer versions of Tomcat, if i want to move some of
the
scripts from $CATALINA_HOME/bin to $CATALINA_BASE/bin i will not be able
to?


Thanks

On Tue, Nov 9, 2010 at 1:38 PM, Konstantin Kolinko
knst.koli...@gmail.comwrote:

 2010/11/9 Ziggy zigg...@gmail.com:

Are there any side effects to doing this? Can tomcat use both
$CATALINA_BASE/bin/ and $CATALINA_HOME/bin during startup?

 From catalina.sh:

if [ -r $CATALINA_BASE/bin/setenv.sh ]; then
 . $CATALINA_BASE/bin/setenv.sh
elif [ -r $CATALINA_HOME/bin/setenv.sh ]; then
 . $CATALINA_HOME/bin/setenv.sh
fi

i.e. it takes setenv.sh from $CATALINA_BASE if it exists, otherwise
from $CATALINA_HOME.

All the other script files are supposed to remain in $CATALINA_HOME/bin.

I am talking about the latest version of those scripts. I do not know
how old your Tomcat version is. You may look at your catalina.sh for
yourself.

Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org







-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



setenv.sh in an individual tomcat catalina base

2010-11-09 Thread Ziggy
Hi guys,

At the moment i have several catalina bases configured with the following
directories,

conf logs server webapps work

The bin, lib and common directories are all still in $CATALINA_HOME.

I now need to add a setenv.sh file in the bin directory but i dont want it
to be used by all the catalina bases. I only want 2 out of the 4 catalina
bases to use the setenv.sh file.

To do this i am thinking of adding a bin directory on the catalina_base/bin
that i want to pick up the setenv.sh file. The bin directory will only
contain the setenv.sh file and nothing else. Everything else will still be
in $CATALINA_HOME/bin/ (ie. startup.sh catalina.sh shutdown.sh etc). This
means that some catalina bases will have /bin directories and some wont.

Are there any side effects to doing this? Can tomcat use both
$CATALINA_BASE/bin/ and $CATALINA_HOME/bin during startup?


Re: setenv.sh in an individual tomcat catalina base

2010-11-09 Thread Konstantin Kolinko
2010/11/9 Ziggy zigg...@gmail.com:
 Are there any side effects to doing this? Can tomcat use both
 $CATALINA_BASE/bin/ and $CATALINA_HOME/bin during startup?


From catalina.sh:

if [ -r $CATALINA_BASE/bin/setenv.sh ]; then
  . $CATALINA_BASE/bin/setenv.sh
elif [ -r $CATALINA_HOME/bin/setenv.sh ]; then
  . $CATALINA_HOME/bin/setenv.sh
fi

i.e. it takes setenv.sh from $CATALINA_BASE if it exists, otherwise
from $CATALINA_HOME.

All the other script files are supposed to remain in $CATALINA_HOME/bin.

I am talking about the latest version of those scripts. I do not know
how old your Tomcat version is. You may look at your catalina.sh for
yourself.

Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: setenv.sh in an individual tomcat catalina base

2010-11-09 Thread Ziggy
I am using Tomcat v5.5

Do you mean that for newer versions of Tomcat, if i want to move some of the
scripts from $CATALINA_HOME/bin to $CATALINA_BASE/bin i will not be able to?


Thanks

On Tue, Nov 9, 2010 at 1:38 PM, Konstantin Kolinko
knst.koli...@gmail.comwrote:

 2010/11/9 Ziggy zigg...@gmail.com:
  Are there any side effects to doing this? Can tomcat use both
  $CATALINA_BASE/bin/ and $CATALINA_HOME/bin during startup?
 

 From catalina.sh:

 if [ -r $CATALINA_BASE/bin/setenv.sh ]; then
  . $CATALINA_BASE/bin/setenv.sh
 elif [ -r $CATALINA_HOME/bin/setenv.sh ]; then
  . $CATALINA_HOME/bin/setenv.sh
 fi

 i.e. it takes setenv.sh from $CATALINA_BASE if it exists, otherwise
 from $CATALINA_HOME.

 All the other script files are supposed to remain in $CATALINA_HOME/bin.

 I am talking about the latest version of those scripts. I do not know
 how old your Tomcat version is. You may look at your catalina.sh for
 yourself.

 Best regards,
 Konstantin Kolinko

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Re: setenv.sh in an individual tomcat catalina base

2010-11-09 Thread André Warnier

Hi.

As I recall, you are using a packaged version of Tomcat (meaning not the original one from 
the tomcat website download, but one already packaged by the people who do such things for 
your OS version).


You should then look carefully at what scripts are used to start/stop Tomcat on your 
particular system (starting with /etc/init.d/tomcat e.g.), what they invoke and when, to 
determine what you can put into CATALINA_HOME/x and CATALINA_BASE/y.
For example, these packages often use a file /etc/default/tomcat that sets some 
environment values, which are later used to determine what other scripts do.


What Konstantin indicates below is based on the standard catalina.sh as provided in the 
standard Tomcat download, but there is no guarantee that this script has not been modified 
(or is even used) in your particular package.



Ziggy wrote:

I am using Tomcat v5.5

Do you mean that for newer versions of Tomcat, if i want to move some of the
scripts from $CATALINA_HOME/bin to $CATALINA_BASE/bin i will not be able to?


Thanks

On Tue, Nov 9, 2010 at 1:38 PM, Konstantin Kolinko
knst.koli...@gmail.comwrote:


2010/11/9 Ziggy zigg...@gmail.com:

Are there any side effects to doing this? Can tomcat use both
$CATALINA_BASE/bin/ and $CATALINA_HOME/bin during startup?


From catalina.sh:

if [ -r $CATALINA_BASE/bin/setenv.sh ]; then
 . $CATALINA_BASE/bin/setenv.sh
elif [ -r $CATALINA_HOME/bin/setenv.sh ]; then
 . $CATALINA_HOME/bin/setenv.sh
fi

i.e. it takes setenv.sh from $CATALINA_BASE if it exists, otherwise
from $CATALINA_HOME.

All the other script files are supposed to remain in $CATALINA_HOME/bin.

I am talking about the latest version of those scripts. I do not know
how old your Tomcat version is. You may look at your catalina.sh for
yourself.

Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org







-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: setenv.sh in an individual tomcat catalina base

2010-11-09 Thread Ziggy
Hi Andre,

I am using a standard Tomcat installation downloaded from tomcat.apache.org.

I am confused as to how you determined that am using a packaged version of
Tomcat :)

--
D

On Tue, Nov 9, 2010 at 3:55 PM, André Warnier a...@ice-sa.com wrote:

 Hi.

 As I recall, you are using a packaged version of Tomcat (meaning not the
 original one from the tomcat website download, but one already packaged by
 the people who do such things for your OS version).

 You should then look carefully at what scripts are used to start/stop
 Tomcat on your particular system (starting with /etc/init.d/tomcat e.g.),
 what they invoke and when, to determine what you can put into
 CATALINA_HOME/x and CATALINA_BASE/y.
 For example, these packages often use a file /etc/default/tomcat that sets
 some environment values, which are later used to determine what other
 scripts do.

 What Konstantin indicates below is based on the standard catalina.sh as
 provided in the standard Tomcat download, but there is no guarantee that
 this script has not been modified (or is even used) in your particular
 package.



 Ziggy wrote:

 I am using Tomcat v5.5

 Do you mean that for newer versions of Tomcat, if i want to move some of
 the
 scripts from $CATALINA_HOME/bin to $CATALINA_BASE/bin i will not be able
 to?


 Thanks

 On Tue, Nov 9, 2010 at 1:38 PM, Konstantin Kolinko
 knst.koli...@gmail.comwrote:

  2010/11/9 Ziggy zigg...@gmail.com:

 Are there any side effects to doing this? Can tomcat use both
 $CATALINA_BASE/bin/ and $CATALINA_HOME/bin during startup?

  From catalina.sh:

 if [ -r $CATALINA_BASE/bin/setenv.sh ]; then
  . $CATALINA_BASE/bin/setenv.sh
 elif [ -r $CATALINA_HOME/bin/setenv.sh ]; then
  . $CATALINA_HOME/bin/setenv.sh
 fi

 i.e. it takes setenv.sh from $CATALINA_BASE if it exists, otherwise
 from $CATALINA_HOME.

 All the other script files are supposed to remain in $CATALINA_HOME/bin.

 I am talking about the latest version of those scripts. I do not know
 how old your Tomcat version is. You may look at your catalina.sh for
 yourself.

 Best regards,
 Konstantin Kolinko

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org





 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Re: setenv.sh in an individual tomcat catalina base

2010-11-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ziggy,

On 11/9/2010 9:55 AM, Ziggy wrote:
 I am using Tomcat v5.5

Which 5.5? Most apps that work under 5.5 should enjoy a seamless upgrade
to 6.0. Do you have a plan to upgrade? I would recommend one.

 Do you mean that for newer versions of Tomcat, if i want to move some of the
 scripts from $CATALINA_HOME/bin to $CATALINA_BASE/bin i will not be able to?

Which scripts were you thinking about? There should be no reason to
duplicate catalina.sh and friends, as they know how to operate under
CATALINA_BASE conditions. Everything else should be configurable. If you
find something that isn't appropriately configurable, please let us know.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkzZpPcACgkQ9CaO5/Lv0PBUuwCgtUp0u5N81qlug+YvMb6kOlB7
c+cAnjQbacWLX87TGAZp8g2J4arQ116I
=sTMe
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org