Re: ms sql server and log4j problems

2003-11-13 Thread donald larmee|ALTERthought
I believe the problem is with syntax of your SQL statement, not w/ log4j per se try putting commas between your VALUES in your SQL statement. -Don On Thu, 13 Nov 2003 09:55:45 -0500 [EMAIL PROTECTED] wrote: > > Howdy, > Can you rerun your system with -Dlog4j.debug=true as a java runtime > o

Re: Mapped Diagnostic Context in Struts Action Class

2003-10-22 Thread Donald Larmee | ALTERthought
I have done what you are attempting with no unexpected results... i.e., UserA maps to address 1 and UserB maps to address 2 just fine. The ability for this to work correctly really lies more with the Thread strategy employed by your servlet engine, and less on Struts in order for this to wo

RE: logging JDBC objects

2003-09-04 Thread Donald Larmee | ALTERTHOUGHT
utils of course ;)) A downside to both the above and I assume Senior Larmee's approach is that they only invoke public methods, so you don't get private state in your logging output. Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Donald Larmee | ALTERT

RE: logging JDBC objects

2003-09-04 Thread Donald Larmee | ALTERTHOUGHT
In the past I have used a generic bean-util style widget that uses reflection to introspect any passed Object, and dumps its contents into a formatted Stringwhich is then in turn logged. The DumpUtil (as I have implemented anyway) works well for reasonably simple/flat Objects, but does not

RE: Log file location

2003-08-29 Thread Donald Larmee | ALTERTHOUGHT
Re: Bug in jBoss Alas. Actually/unfortunately the 2.3 (and 2.4 proposed final draft) Servlet spec only 'suggests' that the Containers ClassLoader give preference to the WebApp (http://www.jcp.org/aboutJava/communityprocess/final/jsr053/): "SRV.9.7.2 Web Application Classloader ...It is

Re: Access to myJDBCAppender Class

2003-03-12 Thread donald larmee
Not sure I have entirely understood your issue correctly. By 'application scoped class' do you mean one that is created/loaded by the classloader associated only with the webapp itself (i.e., the class resides in your WEB-INF/classes or WEB-INF/lib, not in Tomcats CLASSPATH)? Is the class in

Re: Do people use log4j in J2EE applications?

2003-03-11 Thread donald larmee
socket client, but it does not allow it to be a network server. Allowing the instance to become a network server would conflict with the basic function of the enterprise bean-- to serve the EJB clients. //Nicholas --- donald larmee <[EMAIL PROTECTED]> wrote: > Hi Michael, > > Ye

Re: Do people use log4j in J2EE applications?

2003-03-11 Thread donald larmee
Hi Michael, Yes! I use log4j inside EJB containers all the time. You are correct about the EJB specs ... in fact you should not open a Socket directly either.. if you wanted to go this route you would need to make the Sockets obtainable from the container by implementing a construct in the J

RE: Reposting of Log4J Question

2003-02-26 Thread donald larmee
00, Corbin, James wrote: Thanks Don. I think what you describe is happening. I will search the forums further. So, what was your solution? It sounds like the custom ContextRepositorySelector did not work for you. I may have misinterpreted your email. Thanks, J.D. -Original Message----- From: don

Re: Reposting of Log4J Question

2003-02-25 Thread donald larmee
The problem w/ jBoss is that they 'get there first'.. in that they use log4j for their own internal logging log4j.jar exists in the Containers CLASSPATH and the first time an internal logging statement is hit log4j initializes itself w/ the log4j.xml configuration file located (by default)

Re: Multiple logfiles for multiple instances?

2003-02-22 Thread donald larmee
There are probably a dozen ways to do this, but here is a possible approach: - Push the IP of the client into the NDC. - Create a custom MultipleFileAppender that would examine the NDC contents against a Map of open files. If it finds the NDC in the map, it writes the message to the file ass

RE: Logging multiple strings

2003-02-07 Thread donald larmee
Well upon a bit of further investigation, it would appear to only be an issue when using the non-standard 'contrib' version of the JDBCAppender. The JDBCAppender that is part of the log4j distribution proper works just fine -d At 09:52 AM 2/7/2003 -0500, donald larmee w

RE: Logging multiple strings

2003-02-07 Thread donald larmee
Hmm... perhapsI am attempting to use the MDC incorrectly. I have tried to use this technique in the past (with Danko Mannhaupt's variant of Thomas Fenner's JDBCAppender that is included as part of the 'contrib' code in 1.2.7... available here-->http://www.dankomannhaupt.de/projects/index.html)

RE: Logging multiple strings

2003-02-06 Thread donald larmee
Sorry for the delay in response. If you plan to attach your JDBCAppdender to an AsynchronousAppender, be warned that the MDC style approach will not work as the context of the Thread that logs the message will be different from the Appender that actually writes the data. -D At 07:54 PM 1/27/2

Re: R: log4j in EJB

2002-12-05 Thread donald larmee
Also, if you don't mind having your application output munged in w/ the WebLogic's stuff. it is fairly trivial to write a custom appender that writes to the WebLogic proprietary logger facility. IAt 05:43 PM 12/3/2002 +0100, Ferrari Alberto wrote: Oks I'm using log4j in weblogic (only EJB tier)

RE: Getting junk messages in log file (Followup=null) while using struts

2002-11-20 Thread donald larmee
Can you pl let me know how to prevent strus classes from logging messages Thks --Venkat -Original Message- From: donald larmee [mailto:[EMAIL PROTECTED]] Sent: Wed 11/20/2002 12:54 PM To: Log4J Users List Cc: Subject:Re: Getting junk messages in log file (Followup=null

Re: JDBC Problem: Driver not found

2002-11-20 Thread donald larmee
I have not used the JDBC appender, so I am guessing here... but you need to load your JDBC driver into the JVM, either thru a connection pool mechanism, which should do it for you, or explicitly thru something like: Class.forName("fully.qualified.class.name.for.your.driver"); // lo

Re: Getting junk messages in log file (Followup=null) while using struts

2002-11-20 Thread donald larmee
Try putting the Logger(Category) in your pattern layout (via %c), so you can see who is doing the logging. I am assuming that the message is coming from struts (or another component/jar that it relies on), which uses the jakarta logging/commons package(which in turn will use log4j if it availa

RE: Log4J in EJBs

2002-11-19 Thread donald larmee
Re: Initialization Depending on your container, you can have startup class do your log4j initialization.. e.g., in WebLogic you can specify a (proprietary) startup class you want to have run via the console app. It is also technically possible (although I have not done it personally) to extend

Re: ?'s returned from call

2002-10-23 Thread donald larmee
Try compiling your code w/ the -g switch to include debugging information. Many JustInTime compilers lose locality information during runtime optimizations. However, if you are using a 3rd party jar, you may be out of luck. The ''?' results because the StackTrace being parsed to get the loca

Re: problem with log4j.properties file

2002-10-21 Thread donald larmee
Try setting -Dlog4j.debug=true on the java invocation command line to see what is going on... At 01:55 PM 10/21/2002 -0400, William R. Kreamer wrote: oops, I actually get the following output: [wkreamer@georgia wkreamer] java -Dlog4j.configuration=/home/wkreamer/log4j.properties -classpath log

Re: Questions re multiple configurations, multiple log files

2002-10-18 Thread donald larmee
Your situation might be a little different than mine (I am not using CATALINA, but rather a custom mini-AppServer...),so YMMV a bit... Well, you certainly could keep a handle to the original CRS object... but there are some other options as well: - I use a WeakHashMap to store the Hierarchies

Re: Questions re multiple configurations, multiple log files

2002-10-18 Thread donald larmee
Re: Multiple config files... I have recently had to solve the same problem.. i.e., I have an AppServer (of sorts) that needs its own log4j configuration, and then some number of applications that will run 'inside' the AppServer, each of which is to have its own configuration file. The solution