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
l
Well, if I was not clear enough:
My goal was: to catch the logs from the environment (tomcat and
hivemind) and from applications too. My problem was: I didn't know where
to put log4j.jar and log4j.properties...
I tried many combinations:
commons -- logs only tomcat inner logs
shared -- logs fo
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 t
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 En
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'
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' config
> 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 no
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 log4j.
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
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 addition
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
> 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]
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 u
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.properti
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 differen
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 copies (with the required
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
J
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
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 ini
19 matches
Mail list logo