logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ronnie" <lormee2...@yahoo.com.sg>
Subject Re: Really Newbie Problem
Date Mon, 03 Mar 2003 10:06:49 GMT
Here's my batch file which sets the paths.

set JAVA_HOME=C:\jdk1.3.1_02
set CATALINA_HOME=c:\jakarta-tomcat-4.0.1
set ANT_HOME=c:\jakarta-ant-1.4.1
set JBOSS_HOME=c:\JBoss-2.4.4
set
path=%JAVA_HOME%\bin;%CATALINA_HOME%\bin;%ANT_HOME%\bin;C:\WINDOWS\system32;
C:\WINDOWS;C:\WINDOWS\system32\WBEM

The locations of the intallations are confirmed to be correct umpteen times
when I was trying to troubleshoot.
Everything works EXCEPT log4j...
I'm using Log4j-1.1.3 on both my laptop and my desktop...

----- Original Message -----
From: "Martin" <mgainty@hotmail.com>
To: "Log4J Users List" <log4j-user@jakarta.apache.org>
Sent: Monday, 03 March, 2003 12:54 PM
Subject: Re: Really Newbie Problem


> I am assuming that you confirmed that
> 1)Java JDK Installed
> 2)Java JRE Installed
> 3)JAVA_HOME points to location where both are installed
> 4)Apache HTTP Server Installed
> 5)TOMCAT_HOME points to Apache HTTP Server Install Directory
> 6)CATALINA_HOME points to Apache HTTP Server Install Directory
> ?????????
> -M
>
> ----- Original Message -----
> From: "Ronnie" <lormee2001@yahoo.com.sg>
> To: "Log4J Users List" <log4j-user@jakarta.apache.org>
> Sent: Sunday, March 02, 2003 9:15 PM
> Subject: Re: Really Newbie Problem
>
>
> > Problem is it has always been in Tomcats' "common\lib" folder in all my
> > applications but it just can't work on my laptop. Wierd...
> >
> > ----- Original Message -----
> > From: "Nicholas Orr" <Nicholas.Orr@mim.com.au>
> > To: "'Log4J Users List'" <log4j-user@jakarta.apache.org>
> > Sent: Monday, 03 March, 2003 12:11 PM
> > Subject: RE: Really Newbie Problem
> >
> >
> > > Log4j.jar "could" have been in another lib directory already.
> > > common\lib
> > > shared\lib
> > >
> > > That's why, or it could have been in the CLASSPATH environment
variable.
> > >
> > > Nicholas Orr
> > >
> > > -----Original Message-----
> > > From: Ronnie [mailto:lormee2001@yahoo.com.sg]
> > > Sent: Monday, 3 March 2003 1:54 PM
> > > To: Log4J Users List
> > > Subject: Re: Really Newbie Problem
> > >
> > >
> > > Oh. I should have spent more time on my reading up! But no mention of
> this
> > > was made in my study guide... Darn... Thanks for the info!
> > >
> > > But if it works on other PCs, including my desktop, without the jar
> files
> > in
> > > the WEB-INF/lib folder, why shouldn't it work on my laptop? The OS is
> the
> > > same and the software versions for implementing the application are
all
> > > identical! Except that my laptop has WinXP SP1 installed...
> > >
> > > ----- Original Message -----
> > > From: "Steve Ebersole" <steveebersole@austin.rr.com>
> > > To: "Log4J Users List" <log4j-user@jakarta.apache.org>
> > > Sent: Sunday, 02 March, 2003 1:53 AM
> > > Subject: Re: Really Newbie Problem
> > >
> > >
> > > > Glad you got it working.
> > > >
> > > > A note on your postscript.  All jar files required by a
servlet-based
> > > > application should be present in the web app's WEB-INF/lib directory
> > > > for automatic detection.  Thats not unique to Tomcat.
> > > >
> > > > Typically when using log4j in a web-app, place log4j.jar in the
> > > WEB-INF/lib
> > > > directory; place your config file in WEB-INF/classes...
> > > >
> > > >
> > > >
> > > > ----- Original Message -----
> > > > From: "Ronnie" <lormee2001@yahoo.com.sg>
> > > > To: "Log4J Users List" <log4j-user@jakarta.apache.org>
> > > > Sent: Saturday, March 01, 2003 9:59 AM
> > > > Subject: Re: Really Newbie Problem
> > > >
> > > >
> > > > > It's working at last!!! =) :-)
> > > > >
> > > > > I put the file log4j.jar into the "webapps/<appName>/WEB-INF/lib"
> > > > > folder
> > > > and
> > > > > it worked!
> > > > >
> > > > > I added the -Dlog4j.debug=true line into catalina.bat and found
that
> > > log4j
> > > > > initialization couldn't find log4j.properties file.
> > > > > So out of frustration I copied the files log4j.jar and
> > > > > log4j.properties
> > > > into
> > > > > every single folder in "webapps/<appName>" and started tomcat.
Got
a
> > > > > shock when it actually started initializing correctly! Went
through
> > > > > some trial and testing and found out the cause of all my
> > > woes
> > > > > for the past week...
> > > > >
> > > > > This is all thanks to you Mr Ebersole! I thank you very much! =)
> > > > >
> > > > >
> > > > > Gratefully,
> > > > > Ronnie
> > > > >
> > > > > P.S. Maybe this problem could be highlighted in the documentation?
I
> > > > > had thought Tomcat should be able to find all required libraries
in
> > > > "common/lib"
> > > > > but turned out to be false in my case.
> > > > > ----- Original Message -----
> > > > > From: "Steve Ebersole" <steveebersole@austin.rr.com>
> > > > > To: "Log4J Users List" <log4j-user@jakarta.apache.org>
> > > > > Sent: Saturday, 01 March, 2003 10:49 PM
> > > > > Subject: Re: Really Newbie Problem
> > > > >
> > > > >
> > > > > > Probabaly not.  I am assuming startup is the bat/cmd file to
start
> > > > tomcat?
> > > > > > You need to edit that file.  Somewhere in that file there will
be
> > > > > > a
> > > java
> > > > > > command to actually start tomcat.  Thats where you need to put
the
> > > > > > -D.
> > > > > >
> > > > > > java -D log4j.debug=true ...
> > > > > >
> > > > > > Also just noticed that you define a logger named
> > > > > > "edu.rmit.isys2049.EmployeeAccessBean", but then never attach
any
> > > > > appenders
> > > > > > to it.  Because of the "additivity" feature of log4j, statements
> > > > > > going
> > > > to
> > > > > > that logger will also be handled by the rootLogger, but root
has
> > > > > > WARN
> > > > set
> > > > > as
> > > > > > its level.  So in reality, statements sent to the
> > > > > > "edu.rmit.isys2049.EmployeeAccessBean" logger, will only shoe
up
> > > > > > if
> > > they
> > > > > are
> > > > > > WARN or above.  Not sure that is what you are intending.
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > __________________________________________________
> > > > > Do You Yahoo!?
> > > > > Promote your business from just $5 a month!
> > > > > http://sg.biztools.yahoo.com
> > > > >
> > > >
> --------------------------------------------------------------------
> > > > > -
> > > > > To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
> > > > > For additional commands, e-mail:
log4j-user-help@jakarta.apache.org
> > > > >
> > > >
> > > >
> > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail: log4j-user-help@jakarta.apache.org
> > > >
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Promote your business from just $5 a month!
http://sg.biztools.yahoo.com
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: log4j-user-help@jakarta.apache.org
> > >
> > >
> > > **********************************************************************
> > > The information contained in this e-mail is confidential and is
> > > intended only for the use of the addressee(s).
> > > If you receive this e-mail in error, any use, distribution or
> > > copying of this e-mail is not permitted. You are requested to
> > > forward unwanted e-mail and address any problems to the
> > > MIM Holdings Limited Support Centre.
> > > For general enquires: ++61 7 3833 8000
> > > Support Centre e-mail: supportcentre@mim.com.au
> > > Support Centre phone:  Australia 1800500646
> > >         International ++61 7 38338042
> > > **********************************************************************
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: log4j-user-help@jakarta.apache.org
> > >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Promote your business from just $5 a month!
> > http://sg.biztools.yahoo.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: log4j-user-help@jakarta.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: log4j-user-help@jakarta.apache.org
>

__________________________________________________
Do You Yahoo!?
Promote your business from just $5 a month!
http://sg.biztools.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org


Mime
View raw message