Well, I've tried, but I have some bugs...
I deployed two applications, both with their own log4j.jar, and
properties file, and I put an other to ${catalina.home}/common/classes,
and ${catalina.home}/common/lib. It seems to be working except the
following bugs:
1.
INFO: Starting Servlet
On 8/17/06, Takacs Bence [EMAIL PROTECTED] wrote:
Well, I've tried, but I have some bugs...
I deployed two applications, both with their own log4j.jar, and
properties file, and I put an other to ${catalina.home}/common/classes,
and ${catalina.home}/common/lib. It seems to be working except the
To clarify for James, it is absolutely ok for log4j.jar to be in *both*
common/lib and each app's WEB-INF/lib... at least in the case of Tomcat where
it implements child-first classloading behavior. Child-first classloading
makes it so that WEB-INF/lib/log4j.jar gets loaded in preference to any
Try running with -Dlog4j.debug. That should give you more info about
the problem.
Where should I put this switch?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
No log4j.xml, and only the two log4j.properties:
- one in the /tomcat/shared/classes for tomcat inner logs
- one in the /tomcat/common/classes for tomcat applications logs
I make both of them after the error message...
Thanks:
Bence
Jacob Kjome wrote:
Is there a log4j.xml anywhere on
Takacs Bence wrote:
Try running with -Dlog4j.debug. That should give you more info about
the problem.
Where should I put this switch? Maybe when I run Catalina?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
It is a command line option so that depends on how you run Tomcat. I
put it in the Java tab of the Configure Tomcat applicaton.
On 8/15/06, Takacs Bence [EMAIL PROTECTED] wrote:
Try running with -Dlog4j.debug. That should give you more info about
the problem.
Where should I put this
I don't think it will work to have log4j.jar under
webapps/app/WEB-INF/lib and expect those locations of log4j.properties
to be used.
You have 2 choices that I know will work:
1. Only have log4j.properties and log4j.jar under tomcat/shared or tomcat/common
2. Only have log4j.properties and
1. Only have log4j.properties and log4j.jar under tomcat/shared or
tomcat/common
What do you mean 'or'???
Two directories for two different functions. One for tomcat 'inner'
configuration (tomcat/common), and one for 'applications' configuration
(tomcat/shared). As far as I know they are not
On 8/15/06, Takacs Bence [EMAIL PROTECTED] wrote:
1. Only have log4j.properties and log4j.jar under tomcat/shared or
tomcat/common
What do you mean 'or'???
Two directories for two different functions. One for tomcat 'inner'
configuration (tomcat/common), and one for 'applications'
Quoting James Stauffer [EMAIL PROTECTED]:
On 8/15/06, Takacs Bence [EMAIL PROTECTED] wrote:
1. Only have log4j.properties and log4j.jar under tomcat/shared or
tomcat/common
What do you mean 'or'???
Two directories for two different functions. One for tomcat 'inner'
configuration
Hello
James Stauffer wrote:
I meant different config files. If you move the lib/log4j.jar and
classes/log4j.properties from the shared classpath (i.e.
tomcat/common) to each webapp (i.e. webapps/app/WEB-INF) then each app
will use a separate config file.
I deleted the common
Well, sometimes neither of them writes the log, sometimes both of them
uses the SocketAppender...
As if in every tomcat restart it would have throw a dice...
the only message:
log4j:WARN No appenders could be found for logger
(org.apache.commons.digester.D igester.sax).
log4j:WARN Please
Did you move log4j.properties also? You will need to do that too.
On 8/14/06, Takacs Bence [EMAIL PROTECTED] wrote:
Hello
James Stauffer wrote:
I meant different config files. If you move the lib/log4j.jar and
classes/log4j.properties from the shared classpath (i.e.
tomcat/common) to each
I _only_ moved log4j.properties from shared/classes to two different
webapps/app/WEB-INF/classes directory. In other words I deleted the
original file and made two different copies (with the required
modifications of course).
Both projects has it's own log4j.jar too.
Thanks:
Bence
No
James Stauffer wrote:
Is there a log4j.jar under shared or common?
On 8/14/06, Takacs Bence [EMAIL PROTECTED] wrote:
I _only_ moved log4j.properties from shared/classes to two different
webapps/app/WEB-INF/classes directory. In other words I deleted the
original file and made two different
Try running with -Dlog4j.debug. That should give you more info about
the problem.
On 8/14/06, Takacs Bence [EMAIL PROTECTED] wrote:
No
James Stauffer wrote:
Is there a log4j.jar under shared or common?
On 8/14/06, Takacs Bence [EMAIL PROTECTED] wrote:
I _only_ moved log4j.properties from
Is there a log4j.xml anywhere on the classpath (in the default package, that
is)? Look in directories and jars. I would suggest changing to an XML config
file because Log4j looks for it first. If it doesn't find log4j.xml, then it
looks for log4j.properties. I've seen this happen so often to
18 matches
Mail list logo