Take a look at the draft logging chapter in my upcoming struts book. I cover Struts and log4j.
You can find it here: http://www.theserverside.com/resources/strutsreview.jsp chuck > Craig, > > I did and it didnīt tell me very much. Anyway, as I explained later there > appeared to be a mix-up with older and newer jars which led to this error. > > Of course it seems like a trivial error and I donīt want to waste your time > with such things, but it just seemed so strange what was happening. > > Thanks, > > Michael > > > ----- Original Message ----- > From: "Craig R. McClanahan" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Saturday, August 03, 2002 7:01 PM > Subject: Re: strusts + log4j > > > > > > > > On Sat, 3 Aug 2002, Michael Delamere wrote: > > > > > Date: Sat, 3 Aug 2002 14:53:19 +0200 > > > From: Michael Delamere <[EMAIL PROTECTED]> > > > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > > > To: Struts Users Mailing List <[EMAIL PROTECTED]> > > > Subject: Re: strusts + log4j > > > > > > Of course Iīm using my controller servlet ;-). > > > > > > I will try that although I still find it a bit strange that struts > suddenly > > > stops working just because I dropped the log4j jar into my lib > directory! I > > > mean if I wasnīt logging in a servlet but say in a normal java class, > why > > > would I do the "log4j initialization servlet entry in web.xml". > > > > > > Maybe thereīs something Iīm not understanding here..... > > > > > > > The very first thing you should do when strange things like this happen is > > check the log files produced by your servlet container. There will > > generally be some message or stack trace that can give you a clue about > > what is going wrong. > > > > > Regards, > > > > > > Michael > > > > Craig > > > > > > > > > > > > > ----- Original Message ----- > > > From: "Tarun Sainanee" <[EMAIL PROTECTED]> > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > > Sent: Saturday, August 03, 2002 2:44 PM > > > Subject: Re: strusts + log4j > > > > > > > > > log4j initialization servlet entry in web.xml. and a corresponding java > > > file > > > I hope u r also using a controller servlet!!! > > > Regards, > > > Tarun Sainanee > > > TCS Delhi > > > > -------------------------------------------------------------------------- > -- > > > -------------------------------------------------------------- > > > Nothing gives one person so much advantage over another as to remain > > > always cool and > > > unruffled under all circumstances. > > > -- Thomas Jefferson > > > > > > > > > > > > > > > > > > > > > "Michael Delamere" <[EMAIL PROTECTED]> > > > 08/03/2002 05:43 PM > > > Please respond to "Struts Users Mailing List" > > > > > > > > > To: "Struts Users Mailing List" > <[EMAIL PROTECTED]> > > > cc: > > > Subject: Re: strusts + log4j > > > > > > > > > What do you mean exactly with the following sentence: > > > > > > > Have u configured log4j initialization servlet? > > > > > > Thanks for your reply, > > > > > > Michael > > > > > > > > > ----- Original Message ----- > > > From: "Tarun Sainanee" <[EMAIL PROTECTED]> > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > > Sent: Saturday, August 03, 2002 2:10 PM > > > Subject: Re: strusts + log4j > > > > > > > > > No, Struts and Log4j gel well together. > > > Have u configured log4j initialization servlet? > > > Regards, > > > Tarun Sainanee > > > TCS Delhi > > > > -------------------------------------------------------------------------- > -- > > > -------------------------------------------------------------- > > > Nothing gives one person so much advantage over another as to remain > > > always cool and > > > unruffled under all circumstances. > > > -- Thomas Jefferson > > > > > > > > > > > > > > > > > > > > > "Michael Delamere" <[EMAIL PROTECTED]> > > > 08/03/2002 05:37 PM > > > Please respond to "Struts Users Mailing List" > > > > > > > > > To: "Struts Users Mailing List" > > > <[EMAIL PROTECTED]> > > > cc: > > > Subject: strusts + log4j > > > > > > > > > Hi, > > > > > > Iīm trying to use log4j for logging in my application. The problem Iīm > > > facing though, is that as soon as I drop the log4j jar into any lib > > > directory, struts doesnīt load anymore. I get the folowing message: > > > > > > The requested service (Servlet struts is currently unavailable) is not > > > currently available. > > > > > > Does struts have a problem with log4j or what could I be doing wrong? > > > > > > Thanks, > > > > > > Michael > > > > > > > > > -- > > > To unsubscribe, e-mail: > > > <mailto:[EMAIL PROTECTED]> > > > For additional commands, e-mail: > > > <mailto:[EMAIL PROTECTED]> > > > > > > > > > > > > > > > > > > > > > -- > > > To unsubscribe, e-mail: > > > <mailto:[EMAIL PROTECTED]> > > > For additional commands, e-mail: > > > <mailto:[EMAIL PROTECTED]> > > > > > > > > > > > > > > > > > > > > > -- > > > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > > > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > > > > > > > > > > -- > > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>