You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2010/06/27 19:13:04 UTC
DO NOT REPLY [Bug 49509] New: JULI does not read logging config from
Java home dir
https://issues.apache.org/bugzilla/show_bug.cgi?id=49509
Summary: JULI does not read logging config from Java home dir
Product: Tomcat 5
Version: 5.5.23
Platform: Macintosh
Status: NEW
Severity: normal
Priority: P2
Component: Unknown
AssignedTo: dev@tomcat.apache.org
ReportedBy: jsb_apache@360works.com
Changes that I am making to /Library/Java/Home/lib/logging.properties (
/Library/Java/Home is always the Java home directory on OS X ) are not having
any effect on logging.
It works correctly if I take the logging.properties file from that directory
and copy it into the compiled classes directory. This gives me the impression
that JULI is only reading the config file from the classloader, and not from
the Java home directory as documented.
The Tomcat docs at http://tomcat.apache.org/tomcat-5.5-doc/logging.html state:
logging can be configured at the following layers: In the JDK's
logging.properties file. Check your JAVA_HOME environment setting to see which
JDK Tomcat is using (or maybe JRE 5.0 as Tomcat can now run on a JRE from
version 5.5). The file will be in $JAVA_HOME/jre/lib. Alternately, it can also
use a global configuration file located elsewhere by using the system property
java.util.logging.config.file, or programmatic configuration using
java.util.logging.config.class.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 49509] JULI does not read logging config from Java
home dir
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49509
--- Comment #2 from Jesse Barnum <js...@360works.com> 2010-06-27 14:18:20 EDT ---
Thanks for the fast response. I'm embedding Tomcat inside my application, so
I'm not using the standard startup script. Why not just have it read from
$JAVA_HOME/lib/logging.properties by default, like any other Java application?
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 49509] JULI does not read logging config from Java
home dir
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49509
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #4 from Mark Thomas <ma...@apache.org> 2010-07-01 16:06:30 EDT ---
This is a configuration issue that belongs on the users mailing list
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 49509] JULI does not read logging config from Java
home dir
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49509
--- Comment #3 from Konstantin Kolinko <kn...@gmail.com> 2010-06-27 22:28:55 EDT ---
> Why not just have it read from
> $JAVA_HOME/lib/logging.properties by default, like any other Java application?
It does, from $JRE_HOME/lib/logging.properties. There is a rule in the
conf/catalina.policy to allow reading that file.
There are chances that your logging is misconfigured.
Tomcat JULI is just an implementation of java.util.logging (JUL), and unless
JUL is configured to use JULI when the application starts (using those
java.util.logging.* properties passed by catalina.sh) it will not be used.
Moreover, Tomcat does not use it directly, but through the commons-logging
library.
That would be a question for the users@ mailing list.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 49509] JULI does not read logging config from Java
home dir
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49509
Konstantin Kolinko <kn...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|Unknown |Webapps:Documentation
OS/Version| |All
--- Comment #1 from Konstantin Kolinko <kn...@gmail.com> 2010-06-27 13:39:46 EDT ---
The documentation is incomplete there. Actually, the standard startup script,
bin/catalina.sh, passes the following argument when launching the JVM:
-Djava.util.logging.config.file="$CATALINA_BASE/conf/logging.properties
thus you can find the configuration file in the "conf" directory.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 49509] JULI does not read logging config from Java
home dir
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49509
--- Comment #5 from Jesse Barnum <js...@360works.com> 2010-07-01 17:07:52 EDT ---
(In reply to comment #4)
> This is a configuration issue that belongs on the users mailing list
At a minimum, it seems as if the documentation is incorrect and should be
fixed.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org