You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by "Robertson, Jason" <Ja...@acs-inc.com> on 2002/05/02 19:25:51 UTC

Log4J Issues

I'm having a bear of a time getting my log4j setup working with the final
1.3 that was working fine with my dev build of a couple months ago. Some of
it was me not updating my property files, but I have found a few issues:

1. On the server side, I need cactus.properties in the classpath. This is
necessary so that LogService can find the 'cactus.enableLogging = true'
property and enable the logging. The docs say this is only necessary on the
client side.

2. The docs also say that default log_client.properties and
log_server.properties files are in cactus.jar, but they are not.

3. I'm getting duplicate entries for each log line. I doubt this is a Cactus
problem, anyone else seeing this? A log4j-1.2rc1 issue?

4. I no longer see my EJB's log statements (I'm testing EJBs via
ServletRedirector). I also don't see any errors (e.g., 'please initialize
the log4j subsystem properly') - I just don't see anything. This worked fine
before. 

If anyone has ideas, please let me know!

Jason

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Log4J Issues

Posted by Vincent Massol <vm...@octo.com>.
Hi Jason,

> -----Original Message-----
> From: Robertson, Jason [mailto:Jason.Robertson@acs-inc.com]
> Sent: 02 May 2002 18:26
> To: 'Cactus Users List'
> Subject: Log4J Issues
> 
> I'm having a bear of a time getting my log4j setup working with the
final
> 1.3 that was working fine with my dev build of a couple months ago.
Some
> of
> it was me not updating my property files, but I have found a few
issues:
> 
> 1. On the server side, I need cactus.properties in the classpath. This
is
> necessary so that LogService can find the 'cactus.enableLogging =
true'
> property and enable the logging. The docs say this is only necessary
on
> the
> client side.
> 

Not true. Check the doc. It says (referring to cactus.properties) :

"
First and foremost, this file is completely optional on the server side
(whereas it is mandatory on the client side). It is only used to turn on
Cactus internal logging on the server side.
"

> 2. The docs also say that default log_client.properties and
> log_server.properties files are in cactus.jar, but they are not.
> 

That's right ... It was previously and for some reason I removed them
(still don't know if I did this on purpose !). In the end it is better
this way I think. But I'd like to know what others think. Should we put
it back in the jar file ? Anyway, I've just modified the doc.

> 3. I'm getting duplicate entries for each log line. I doubt this is a
> Cactus
> problem, anyone else seeing this? A log4j-1.2rc1 issue?
> 

this, you solved yourself I believe.

> 4. I no longer see my EJB's log statements (I'm testing EJBs via
> ServletRedirector). I also don't see any errors (e.g., 'please
initialize
> the log4j subsystem properly') - I just don't see anything. This
worked
> fine
> before.

Same.

> 
> If anyone has ideas, please let me know!
> 
> Jason
> 


-Vincent



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>