RE: location of tomcat-juli.jar

2017-03-24 Thread Jeffrey Janner
> -Original Message-
> From: Mark Thomas [mailto:ma...@apache.org]
> Sent: Friday, March 24, 2017 12:00 PM
> To: Tomcat Users List <users@tomcat.apache.org>
> Subject: Re: location of tomcat-juli.jar
> 
> On 24 March 2017 16:06:21 GMT+00:00, Jeffrey Janner
> <jeffrey.jan...@polydyne.com> wrote:
> >I was re-reading the RUNNING.txt  to see why I had to copy
> >tomcat-juli.jar to the CATALINA_BASE/bin directory instead of just
> >having it run out of CATALINA_HOME/bin.
> >It seemed annoying to me to have to copy it to all my  CATALINA_BASE
> >instances every time I upgraded, but I thought I ran into problems not
> >having it there.
> >Then I ran into this bit of documentation:
> >
> >In CATALINA_BASE:
> >
> >* bin  - Only the following files:
> >
> >   * setenv.sh (*nix) or setenv.bat (Windows),
> >   * tomcat-juli.jar
> >
> >
> >In CATALINA_BASE:
> >
> >* bin  - Only the following files:
> >
> >   * setenv.sh (*nix) or setenv.bat (Windows),
> >   * tomcat-juli.jar
> >
> >So I guess my question is, can I really just leave it out of my
> >CATALINA_BASE directory without causing any issues?
> >I want to say I had issues with it not being there, but cannot recall
> >what they were.
> >And if there is no difference, why make the suggestion in the
> >RUNNING.txt file at all?
> 
> You copied the wrong bits from RUNNING.txt
> 
> You can place the jar in CATALINA_HOME if you wish.
> 
> The historical reason for allowing both is if you want different
> implementations in different instances you need to put the right
> implementation JAR in CATALINA_BASE.
> 
> Mark
> 
Thanks Mark.  Thought I'd copied the right part for the second setting.  Here 
it is:

In CATALINA_HOME:

 * bin  - Startup and shutdown scripts

  The following files will be used only if they are absent in
  CATALINA_BASE/bin:

  setenv.sh (*nix), setenv.bat (Windows), tomcat-juli.jar

But, thanks for pointing out that if I don't need a specialized 
tomcat-juli.jar, it's OK to not copy to CATALINA_BASE.
It will make upgrades for my 100+ instances easier from now on.

Jeff



Re: location of tomcat-juli.jar

2017-03-24 Thread Mark Thomas
On 24 March 2017 16:06:21 GMT+00:00, Jeffrey Janner 
 wrote:
>I was re-reading the RUNNING.txt  to see why I had to copy
>tomcat-juli.jar to the CATALINA_BASE/bin directory instead of just
>having it run out of CATALINA_HOME/bin.
>It seemed annoying to me to have to copy it to all my  CATALINA_BASE
>instances every time I upgraded, but I thought I ran into problems not
>having it there.
>Then I ran into this bit of documentation:
>
>In CATALINA_BASE:
>
>* bin  - Only the following files:
>
>   * setenv.sh (*nix) or setenv.bat (Windows),
>   * tomcat-juli.jar
>
>
>In CATALINA_BASE:
>
>* bin  - Only the following files:
>
>   * setenv.sh (*nix) or setenv.bat (Windows),
>   * tomcat-juli.jar
>
>So I guess my question is, can I really just leave it out of my
>CATALINA_BASE directory without causing any issues?
>I want to say I had issues with it not being there, but cannot recall
>what they were.
>And if there is no difference, why make the suggestion in the
>RUNNING.txt file at all?

You copied the wrong bits from RUNNING.txt

You can place the jar in CATALINA_HOME if you wish.

The historical reason for allowing both is if you want different 
implementations in different instances you need to put the right implementation 
JAR in CATALINA_BASE.

Mark

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



Re: location of tomcat-juli.jar

2017-03-24 Thread Igal @ Lucee.org
I'm using different directories for CATALINA_HOME and CATALINA_BASE 
without copying the bin directory to BASE.  Never had an issue with it.


Be sure to have the full path of tomcat-juli.jar in the Java Classpath 
setting.  That's what matters to Java.  You can place the Jar file 
anywhere you want as long as the Classpath points to it and the user 
that runs Tomcat has read privileges to that file.  But obviously the 
easiest thing is to leave it in %CATALINA_HOME%/bin.


I've done that both on Windows and *nix systems.

Igal Sapir
Lucee Core Developer
Lucee.org 

On 3/24/2017 9:06 AM, Jeffrey Janner wrote:

I was re-reading the RUNNING.txt  to see why I had to copy tomcat-juli.jar to 
the CATALINA_BASE/bin directory instead of just having it run out of 
CATALINA_HOME/bin.
It seemed annoying to me to have to copy it to all my  CATALINA_BASE instances 
every time I upgraded, but I thought I ran into problems not having it there.
Then I ran into this bit of documentation:

In CATALINA_BASE:

* bin  - Only the following files:

* setenv.sh (*nix) or setenv.bat (Windows),
* tomcat-juli.jar


In CATALINA_BASE:

* bin  - Only the following files:

* setenv.sh (*nix) or setenv.bat (Windows),
* tomcat-juli.jar

So I guess my question is, can I really just leave it out of my CATALINA_BASE 
directory without causing any issues?
I want to say I had issues with it not being there, but cannot recall what they 
were.
And if there is no difference, why make the suggestion in the RUNNING.txt file 
at all?


Jeff