RE: openEJB log4j

2014-07-23 Thread Keith Williams
Sent: Wednesday, July 23, 2014 11:47 AM To: Keith Williams Subject: Re: openEJB log4j ok thikn the easiest is to add in conf/system.properties openejb.external.logger=true and put log4j.properties in lib/ otherwise log4j config is split accross conf/logging.properties for tomee and

Re: openEJB log4j

2014-07-23 Thread Keith Williams
Here is the pom.xml where I've tried to have TomEE use log4j throughout. Simply run: mvn package tomee:run to see the issues. No ejb log messages and I am getting an error from slf4j which I don;t understand since I believe I have an implementation. I would GREATLY appreciate a pom.xml that work

Re: openEJB log4j

2014-07-22 Thread Keith Williams
I've created a pom which demonstrates the problem. Before I send it to you, could you just send me a logging.properties file that works with log4j configured? -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/openEJB-log4j-tp4670622p4670660.html Sent from the TomEE User

Re: openEJB log4j

2014-07-22 Thread Keith Williams
Our setup is a mess so it isn't possible to give you a simple maven or ant build (I wish it were). -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/openEJB-log4j-tp4670622p4670657.html Sent from the TomEE Users mailing list archive at Nabble.com.

Re: openEJB log4j

2014-07-21 Thread Keith Williams
I have also followed the tomcat instructions for using log4j with tomcat http://tomcat.apache.org/tomcat-7.0-doc/logging.html#Using_Log4j Specifically I've implemented step 4: If you want to configure Tomcat to use log4j globally: Put log4j.jar and tomcat-juli-adapters.jar from "extras" into $C

Re: openEJB log4j

2014-07-21 Thread Keith Williams
OK. So my system.properties has the logger set to log4j. logging.properties (not log4j.properties) looks like my previous post. Here is my output: No openejb messages at all. Listening for transport dt_socket at address: 5589 log4j: Parsing for [root] with value=[INFO, CATALINA, CONSOLE]. log4j:

Re: openEJB log4j

2014-07-21 Thread Keith Williams
So is this a valid/useful logging.properties file: log4j.debug = true log4j.rootLogger = INFO, CATALINA, CONSOLE # Define all the appenders log4j.appender.CATALINA = org.apache.log4j.DailyRollingFileAppender log4j.appender.CATALINA.File = ${catalina.base}/logs/catalina log4j.appender.CATALINA.App

Re: openEJB log4j

2014-07-21 Thread Keith Williams
What do mean by put log4j config in logging.properties? log4j config goes in log4j.properties. Do you have an example of logging.properties with log4j? -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/openEJB-log4j-tp4670622p4670630.html Sent from the TomEE Users

Re: openEJB log4j

2014-07-21 Thread Keith Williams
I forgot: this is Tomcat 7.0.47 and TomEE 1.6.0 -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/openEJB-log4j-tp4670622p4670625.html Sent from the TomEE Users mailing list archive at Nabble.com.

Re: openEJB log4j

2014-07-21 Thread Keith Williams
Here is my system.properties: # all this properties are added at JVM system properties at startup # here some default Apache TomEE system properties # for more information please see http://openejb.apache.org/properties-listing.html # openejb.check.classloader = false # openejb.check.classloader.

openEJB log4j

2014-07-21 Thread Keith Williams
I have been banging my head repeatedly trying to get openEJB to log using log4j. Catalina is logging with log4j, as are my applications. But I cannot figure out how to get openEJB to use log4j. It either does not log at all or it uses Juli. I would appreciate detailed instructions from someone who