Re: Correct location for log4j2.xml file in war?

2012-11-03 Thread Pat Farrell
It goes in the classes directory under your WEB-INF directory, inside the WAR -- Pat Farrell http://www.pfarrell.com/ - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-u

Re: bizarre NPE exception

2009-11-19 Thread Pat Farrell
Brett Randall wrote: > Is this only occurring during hot-redeploys of a WAR-file? What ultimate > impact is it having on the production webapp? I'm still developing the code, its not yet in production. It also happens on occasion spontaneously when the app is quiescent. The code in question is

Re: bizarre NPE exception

2009-11-18 Thread Pat Farrell
at java.lang.Thread.run(Thread.java:619) Exception in thread "DbC:Person" -- Pat Farrell http://www.pfarrell.com/ - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org

Re: bizarre NPE exception

2009-11-16 Thread Pat Farrell
ce I've found the log4j extras, I've changed my log4j.properties to use the EnhancedPatternLayout If I have more problems, I'll be back. Thanks pat -- Pat Farrell http://www.pfarrell.com/ - To unsubscr

Re: how to use EnhancedPatternLayout

2009-11-16 Thread Pat Farrell
engineers to decide if they need it for their actual deployment. In a web server, typically deployed with gigabytes of ram and multiple cores, the size can't matter, but for something embedded, it makes sense to give folks a choice. Thanks pat -- Pat Farrell http:/

Re: bizarre NPE exception

2009-11-16 Thread Pat Farrell
r the covers. This makes zero sense. Its glassfish. Or are you claiming that bad code from Tomcat was imported into Glassfish? -- Pat Farrell http://www.pfarrell.com/ - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.ap

Re: bizarre NPE exception

2009-11-16 Thread Pat Farrell
mailing list. Uncaught exceptions are handled as serious bugs requiring immediate attention. " I think I'm seeing an uncaught exception. If there is really going to be "immediate attention" what do I do to help? -- P

Re: how to use EnhancedPatternLayout

2009-11-16 Thread Pat Farrell
Yair Ogen wrote: > do you have log4j extras jar in your classpath? Did know I needed it, so no Where do I find it? Slightly OT, but why not just include the classes in the standard distribution? Is it that big? -- Pat Farrell http://www.pfarrell.

how to use EnhancedPatternLayout

2009-11-16 Thread Pat Farrell
libraries that contain the backported enhancements? Thanks Pat -- Pat Farrell http://www.pfarrell.com/ - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h

Re: bizarre NPE exception

2009-11-15 Thread Pat Farrell
Linux 32/ubuntu It typically occurs after a while, or when I load up a new WAR file as I do the edit/compile/deploy/debug cycle -- Pat Farrell http://www.pfarrell.com/ - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.a

Re: bizarre NPE exception

2009-11-15 Thread Pat Farrell
admit that my understanding of the log4j.properties is pretty weak, I usually just cut and paste from examples until it works. Pat -- Pat Farrell http://www.pfarrell.com/ - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.

Re: bizarre NPE exception

2009-11-14 Thread Pat Farrell
calling code, just because I've kept adding more guards to make sure than none of the things I pass or use are null. More once I try the sun JVM Pat -- Pat Farrell http://www.pfarrell.com/ - To unsubscribe, e-mail: log4j-

Re: bizarre NPE exception

2009-11-13 Thread Pat Farrell
al format line: log4j.appender.fnfbookfile.layout.ConversionPattern= %d{ABSOLUTE} %5p %c{1}:%L - %m%n Where should I begin to debug this? thanks pat -- Pat Farrell http://www.pfarrell.com/ - To unsubscribe, e-mail: log4j

bizarre NPE exception

2009-11-13 Thread Pat Farrell
All(DatabaseCache.java:124) at com.pfarrell.utils.collections.WorkingSetCache.run(WorkingSetCache.java:145) at java.lang.Thread.run(Thread.java:619) -- Pat Farrell http://www.pfarrell.com/ - To un

Re: Multithreading issues - doAppend is synchronised?

2009-11-08 Thread Pat Farrell
;m very interested in this, and if its close, might be able to help. -- Pat Farrell http://www.pfarrell.com/ - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org

Re: everything is logged to "root" as well as where I want it.

2009-09-28 Thread Pat Farrell
on your child loggers and > see how things go before attempting to use additivity. I'll try that, thanks -- Pat Farrell http://www.pfarrell.com/ - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org

Re: everything is logged to "root" as well as where I want it.

2009-09-28 Thread Pat Farrell
Brett Randall wrote: > On Mon, Sep 28, 2009 at 9:23 AM, Pat Farrell wrote: >> I think my configuration is a bit off. While the loggers for the >> specific classes work fine, everything is also being logged to the root >> logger, and I have "additivity" off. > Wh

everything is logged to "root" as well as where I want it.

2009-09-27 Thread Pat Farrell
otLogger.layout=org.apache.log4j.PatternLayout log4j.rootLogger.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n log4j.logger.com.fnfbook=DEBUG, stdout, fnfbookfile log4j.logger.com.pfarrell=DEBUG, stdout, pat log4j.logger.org.bibeault=DEBUG, stdout, pat #log4j.logger.org.bibeault=INFO, stdout

Re: sending output from separate java packages to separate files

2009-02-16 Thread Pat Farrell
imple properties. Even the Wiki seems to not have much (or much I can find) on properties files. Where possible, I much prefer good ol Java properties files. Thanks Pat -- Pat Farrell http://www.pfarrell.com/ - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org

sending output from separate java packages to separate files

2009-02-16 Thread Pat Farrell
is an error"); 5. Logger cLog = Logger.getLogger("com.foo.busobj.Address"); 6. cLog.error("this is an error address"); 7. Logger dLog = Logger.getLogger("com.baz.database.DBConnectionPool"); 8. dLog.error("