Hi,

I'm having problem configuring Eclipse OpenEJB plugin to use log4j logging
rather than JDK logging OpenEJB ships with. I was able to configure stand
alone OpenEJB to use log4j by adding the following to openejb startup
script:

-Dopenejb.log.factory=log4j"
"-Dlog4j.configuration=$OPENEJB_HOME/conf/log4j.properties

and making the following JAR changes in the lib directory:

-- removed --
slf4j-api-1.7.7.jar
slf4j-jdk14-1.7.7.jar

-- replaced with --
slf4j-api-1.6.1.jar
slf4j-log4j12-1.6.1.jar
log4j-1.2.16.jar

Furthermore, in Eclipse server configuration, when I edit launch
configuration for my EAR and add -Dopenejb.log.factory and
-Dlog4j.configuration it does use log4j logging, however, that
configuration is instantly overriden by original plugin setup and on
subsequent invocations my changes are gone and therefore reverting back to
JDK logging.

I am certain log4j / OpenEJB is a common configuration and I am missing
something. Could anybody help to point me out what I may be missing?

Thanks
Adam

Reply via email to