Chris, I was looking at the log4j.xml file in ${jboss_home}/server/default/conf directory. It is generating a server.log file and I don't see any of the logging from my action classes there!
As Chuck suggested in his Logging chapter I placed the log4j.properties and commons-logging.properties files in the WEB-INF/classes directory. I have attached the two files. If JBoss initializes a server-wide Log4j, how do I get around this? Thanks, Chandra. ----- Original Message ----- From: "Assenza, Chris" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Friday, August 09, 2002 9:28 AM Subject: RE: strusts + log4j Chandra, It may be that your problems are related to the fact that JBoss 3 initializes a server-wide Log4j service on startup [at least that's what I've observed...their documentation is less then tolerable]. At any rate, you will notice a log4j.xml file in the ${jboss_home}/server/default/conf directory. That is probably what has been controlling the logging you've seen thus far. Chris -----Original Message----- From: Chandra Gottipati [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 08, 2002 4:24 PM To: Struts Users Mailing List Subject: Re: strusts + log4j Chuck, I went through the logging chapter and configured log4j to implement logging in my action classes and JSPs. My problem is I can see the logging in my stdout but the log file I specified in my log4j.properties file is not being created. I am using jboss-3.0.0 that has it's own web container. I went through the log files for JBoss and didn't find any error messages there. I placed, commons-logging.jar, log4j.jar in my WEB-INF/lib directory and commons-logging.properties, log4j.properties in my WEB-INF/classes directory It looks like the server is not finding the log4.j.properties file. What am I missing? Thanks, Chandra. ----- Original Message ----- From: <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Saturday, August 03, 2002 12:43 PM Subject: Re: strusts + log4j > 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]> > -- 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]>
log4j.properties
Description: Binary data
commons-logging.properties
Description: Binary data
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>