Repost: newbie problem

2003-03-26 Thread Denis Avdic


Denis Avdic wrote:

> Hello,
>
> This is probably a very simple problem with a blindingly obvious
> solution but I am stumped:
>
> I am trying to use log4j in my developing environment which also relies
> on jUnit and Cactus for testing.  Now, Cactus already uses log4j for its
> own logging and I figured I can just add my own appenders and
> definitions to the current log4j.properties file.
> Ok, so i did and so my loggers instantiate correctly with the correct
> appenders attached to them (I am using an old, write-directly-to-file
> logging system I wrote, and I just checked all the appenders and params
> that my logger has...)
>
> In any case, when I do try to log NOTHING shows up in my log file (which
> has the same config as the cactus log file).  However, when I run the
> cactus test, the main function (which I suspect just runs the root
> logger) does log to the file.
>
> I am stumped, please help.  I suspect that the config file
> is not the problem

To give a few more details:

I initialize my logger using PropertyConfigurator.
I set up a logger using Logger log = Logger.getLogger(this.class)

There is no output from my logger but there is output from cactus logger.  I
cannot make this work so a hint or two would be appreciated.

Thank you in advance,

Denis



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Newbie problem

2003-03-24 Thread Denis Avdic
Hello,

This is probably a very simple problem with a blindingly obvious
solution but I am stumped:

I am trying to use log4j in my developing environment which also relies
on jUnit and Cactus for testing.  Now, Cactus already uses log4j for its
own logging and I figured I can just add my own appenders and
definitions to the current log4j.properties file.
Ok, so i did and so my loggers instantiate correctly with the correct
appenders attached to them (I am using an old, write-directly-to-file
logging system I wrote, and I just checked all the appenders and params
that my logger has...)

In any case, when I do try to log NOTHING shows up in my log file (which
has the same config as the cactus log file).  However, when I run the
cactus test, the main function (which I suspect just runs the root
logger) does log to the file.

I am stumped, please help.  The config file follows but I suspect that
is not the problem (PS I added the console logger later to see if
anything would happen but nothing does.)

--

# Properties for configuring Log4j
# This is the configuring for logging on the JUnit side (i.e. the client
side)

log4j.appender.cactus = org.apache.log4j.FileAppender
log4j.appender.cactus.File = cactus_client.log
log4j.appender.cactus.Append = false
log4j.appender.cactus.layout = org.apache.log4j.PatternLayout
log4j.appender.cactus.layout.ConversionPattern = %d{ABSOLUTE} [%t] %-5p
%-30.30c{2} %x - %m %n

# Any application log which uses Log4J will be logged to the Cactus and
ResumeMom log file
log4j.rootCategory=DEBUG, cactus, ResumeMom

# By default we don't log at the DEBUG level for Cactus log, in order
not to generate too
# many logs. However, should a problem arise and logs need to be sent to
the Cactus dev team,
# then we will ask you to change this to DEBUG.
log4j.category.org.apache.cactus = WARN, cactus
log4j.additivity.org.apache.cactus=false

# Don't show debug logs for HttpClient
log4j.category.org.apache.commons.httpclient = WARN, cactus
log4j.additivity.org.apache.commons.httpclient=false
log4j.category.httpclient = WARN, cactus
log4j.additivity.httpclient=false
log4j.logger.com.careerfile.ResumeMom.actions.LogonAction=DEBUG,
ResumeMom, cactus
log4j.appender.ResumeMom=org.apache.log4j.FileAppender
log4j.appender.ResumeMom.File=Resumemom.log
log4j.appender.ResumeMom.layout=org.apache.log4j.PatternLayout
log4j.appender.ResumeMom.layout.ConversionPattern=%d{ABSOLUTE} [%t] %-5p
%-30.30c{2} %x - %m %n
log4j.additivity.com.careerfile.ResumeMom.actions.LogonAction=false
log4j.appender.console=org.apache.log4j.ConsoleAppender




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Really Newbie Problem

2003-03-03 Thread Ronnie Choo

Ah... I like magic! Especially when it can save me from pulling out all my
hair...
I'll go try it now.

Thanks for the info!


Ronnie
- Original Message -
From: "Nicholas Orr" <[EMAIL PROTECTED]>
To: "'Log4J Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, March 04, 2003 3:37 PM
Subject: RE: Really Newbie Problem


> Oops, sorry in my blissful ignorance I forgot about the .zip version :P
> Oh well, grab the .exe version and you'll see what I mean, I like auto
> installers, do exactly the same as the .zip versions, except does all the
> manual stuff automagically.
>
> Nicholas
>
> -Original Message-
> From: Ronnie Choo [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, 4 March 2003 4:26 PM
> To: Log4J Users List
> Subject: Re: Really Newbie Problem
>
>
>
> Oh, I don't think I have installed TC the way you said.
> I am only using the standalone version where I just unzipped the binary
> files to a location and run the startup.bat from %CATALINA_HOME%\bin.
>
> Thanks for your help and suggestions!
>
> Ronnie
>
> - Original Message -
> From: "Nicholas Orr" <[EMAIL PROTECTED]>
> To: "'Log4J Users List'" <[EMAIL PROTECTED]>
> Sent: Tuesday, March 04, 2003 1:13 PM
> Subject: RE: Really Newbie Problem
>
>
> > Did you install TC as a service when you installed TC? Ie did you
> > "tick"
> the
> > bax that said "NT Service (NT/2k/XP only)".
> >
> > If you didn't then uninstall, then reinstall and "tick" that box. But
> > to find out if you have go to Start > Control Panel > Admin Tools >
> Services -
> > then look through the list for something that looks like "Apache
> > Tomcat
> 4.1"
> >
> > If you still can't figure this out (service), then just stick with the
> > scripts you all ready have.
> >
> > As for your log4j issue, I think it is one of those really obvious
> > errors that you don't look at because "it should be correct" type of
> > error, u
> know
> > the one I mean, and I can't advise anything else, cause it's working
> > here
> on
> > my machine with lg4j.jar in the /commons/lib dir.
> >
> > Nicholas Orr
> >
> >
> > -Original Message-
> > From: Ronnie Choo [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, 4 March 2003 2:53 PM
> > To: Log4J Users List
> > Subject: Re: Really Newbie Problem
> >
> >
> >
> > Yup, everything works on my desktop but log4j fails to initialize on
> > my laptop using the same settings as my desktop. I have only ever used
> > one version of Log4j and that's 1.1.3. What I don't understand is why
> > it can't work on my laptop when all installations are the same and the
> > config files are in the same locations.
> >
> > Following your suggestions,
> > I tried typing the following where I usually type "startup":
> >
> > D:\Studies\Systems Implementation II\Codes\84105_Ex1>net start
> > "Apache Tomcat 4.1"
> >
> > The system returns to me:
> >
> > The service name is invalid.
> >
> > I looked at the help msg and this is what it said:
> > EXPLANATION
> >
> > You tried to start a service that is not configured on this
> > system.
> >
> > ACTION
> >
> > Check the spelling of the service name or check the configuration
> > information for the service using the Services option from Server
> > Manager.
> >
> > Sorry, I'm not really familiar with the XP Pro OS, or any other OS in
> fact,
> > so I don't know where to configure this.
> >
> >
> > - Original Message -
> > From: "Nicholas Orr" <[EMAIL PROTECTED]>
> > To: "'Log4J Users List'" <[EMAIL PROTECTED]>
> > Sent: Tuesday, March 04, 2003 7:19 AM
> > Subject: RE: Really Newbie Problem
> >
> >
> > > Hey, do a search for your log4j*.jar file and see exactly where it
> > > is, delete all of them. Then copy log4j*.jar to /common/lib.
> > >
> > > May help may not, everything looks good in your script. Haven't you
> > > all ready said you got it working? It would be a good idea to make
> > > sure there is only 1 log4j*.jar file, so when the next version comes
> > > out you *know* which version your using, not what you *think* your
> > > using.
> > >
> > > Also how come you not running it as a service, you said you had 

RE: Really Newbie Problem

2003-03-03 Thread Nicholas Orr
Yeah it is, and Ronnie is running windowze . . . . 

-Original Message-
From: Martin [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 4 March 2003 3:04 PM
To: Log4J Users List
Subject: Re: Really Newbie Problem


net start is specific to Windoze
try
go to MenuBar
programs
Apache HTTP Server 2.0.44
Control Apache Server
Start Apache in Console

or drop to command line
SYSTEM_DRIVE=(location of drive where system files are kept) "\Program
Files\Apache Group\Apache2\bin\Apache.exe" -w -f "\Program Files\Apache
Group\Apache2\conf\httpd.conf" -d "\Program Files\Apache Group\Apache2\."

- Original Message -
From: "Ronnie Choo" <[EMAIL PROTECTED]>
To: "Log4J Users List" <[EMAIL PROTECTED]>
Sent: Monday, March 03, 2003 9:53 PM
Subject: Re: Really Newbie Problem


>
> Yup, everything works on my desktop but log4j fails to initialize on 
> my laptop using the same settings as my desktop. I have only ever used 
> one version of Log4j and that's 1.1.3. What I don't understand is why 
> it can't work on my laptop when all installations are the same and the 
> config files are in the same locations.
>
> Following your suggestions,
> I tried typing the following where I usually type "startup":
>
> D:\Studies\Systems Implementation II\Codes\84105_Ex1>net start 
> "Apache Tomcat 4.1"
>
> The system returns to me:
>
> The service name is invalid.
>
> I looked at the help msg and this is what it said:
> EXPLANATION
>
> You tried to start a service that is not configured on this 
> system.
>
> ACTION
>
> Check the spelling of the service name or check the configuration 
> information for the service using the Services option from Server 
> Manager.
>
> Sorry, I'm not really familiar with the XP Pro OS, or any other OS in
fact,
> so I don't know where to configure this.
>
>
> - Original Message -
> From: "Nicholas Orr" <[EMAIL PROTECTED]>
> To: "'Log4J Users List'" <[EMAIL PROTECTED]>
> Sent: Tuesday, March 04, 2003 7:19 AM
> Subject: RE: Really Newbie Problem
>
>
> > Hey, do a search for your log4j*.jar file and see exactly where it 
> > is, delete all of them. Then copy log4j*.jar to /common/lib.
> >
> > May help may not, everything looks good in your script. Haven't you 
> > all ready said you got it working? It would be a good idea to make 
> > sure there is only 1 log4j*.jar file, so when the next version comes 
> > out you *know* which version your using, not what you *think* your 
> > using.
> >
> > Also how come you not running it as a service, you said you had XP 
> > on
your
> > desktop, I assume ur running 2k or XP on ur laptop, makes things a 
> > lot easier I reckon, batch files only need to look like this
> > *
> > Start.bat
> > *
> > net start "Apache Tomcat 4.1"
> >
> > *
> > Start.bat
> > *
> > net stop "Apache Tomcat 4.1"
> >
> > *
> > Restart.bat
> > *
> > net stop "Apache Tomcat 4.1"
> > net start "Apache Tomcat 4.1"
> >
> > Makes sense to me. Oh well . . .
> >
> > Nicholas Orr
> >
> > -Original Message-
> > From: Ronnie [mailto:[EMAIL PROTECTED]
> > Sent: Monday, 3 March 2003 8:07 PM
> > To: Log4J Users List
> > Subject: Re: Really Newbie Problem
> >
> >
> > 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...
> >
> >
> > 
> > **
> > 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 800

RE: Really Newbie Problem

2003-03-03 Thread Nicholas Orr
Oops, sorry in my blissful ignorance I forgot about the .zip version :P
Oh well, grab the .exe version and you'll see what I mean, I like auto
installers, do exactly the same as the .zip versions, except does all the
manual stuff automagically.

Nicholas

-Original Message-
From: Ronnie Choo [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 4 March 2003 4:26 PM
To: Log4J Users List
Subject: Re: Really Newbie Problem



Oh, I don't think I have installed TC the way you said.
I am only using the standalone version where I just unzipped the binary
files to a location and run the startup.bat from %CATALINA_HOME%\bin.

Thanks for your help and suggestions!

Ronnie

- Original Message -
From: "Nicholas Orr" <[EMAIL PROTECTED]>
To: "'Log4J Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, March 04, 2003 1:13 PM
Subject: RE: Really Newbie Problem


> Did you install TC as a service when you installed TC? Ie did you 
> "tick"
the
> bax that said "NT Service (NT/2k/XP only)".
>
> If you didn't then uninstall, then reinstall and "tick" that box. But 
> to find out if you have go to Start > Control Panel > Admin Tools >
Services -
> then look through the list for something that looks like "Apache 
> Tomcat
4.1"
>
> If you still can't figure this out (service), then just stick with the 
> scripts you all ready have.
>
> As for your log4j issue, I think it is one of those really obvious 
> errors that you don't look at because "it should be correct" type of 
> error, u
know
> the one I mean, and I can't advise anything else, cause it's working 
> here
on
> my machine with lg4j.jar in the /commons/lib dir.
>
> Nicholas Orr
>
>
> -Original Message-
> From: Ronnie Choo [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, 4 March 2003 2:53 PM
> To: Log4J Users List
> Subject: Re: Really Newbie Problem
>
>
>
> Yup, everything works on my desktop but log4j fails to initialize on 
> my laptop using the same settings as my desktop. I have only ever used 
> one version of Log4j and that's 1.1.3. What I don't understand is why 
> it can't work on my laptop when all installations are the same and the 
> config files are in the same locations.
>
> Following your suggestions,
> I tried typing the following where I usually type "startup":
>
> D:\Studies\Systems Implementation II\Codes\84105_Ex1>net start 
> "Apache Tomcat 4.1"
>
> The system returns to me:
>
> The service name is invalid.
>
> I looked at the help msg and this is what it said:
> EXPLANATION
>
> You tried to start a service that is not configured on this 
> system.
>
> ACTION
>
> Check the spelling of the service name or check the configuration 
> information for the service using the Services option from Server 
> Manager.
>
> Sorry, I'm not really familiar with the XP Pro OS, or any other OS in
fact,
> so I don't know where to configure this.
>
>
> - Original Message -
> From: "Nicholas Orr" <[EMAIL PROTECTED]>
> To: "'Log4J Users List'" <[EMAIL PROTECTED]>
> Sent: Tuesday, March 04, 2003 7:19 AM
> Subject: RE: Really Newbie Problem
>
>
> > Hey, do a search for your log4j*.jar file and see exactly where it 
> > is, delete all of them. Then copy log4j*.jar to /common/lib.
> >
> > May help may not, everything looks good in your script. Haven't you 
> > all ready said you got it working? It would be a good idea to make 
> > sure there is only 1 log4j*.jar file, so when the next version comes 
> > out you *know* which version your using, not what you *think* your 
> > using.
> >
> > Also how come you not running it as a service, you said you had XP 
> > on your desktop, I assume ur running 2k or XP on ur laptop, makes 
> > things a lot easier I reckon, batch files only need to look like 
> > this
> > *
> > Start.bat
> > *
> > net start "Apache Tomcat 4.1"
> >
> > *
> > Start.bat
> > *
> > net stop "Apache Tomcat 4.1"
> >
> > *
> > Restart.bat
> > *
> > net stop "Apache Tomcat 4.1"
> > net start "Apache Tomcat 4.1"
> >
> > Makes sense to me. Oh well . . .
> >
> > Nicholas Orr
> >
> > -Original Message-
> > From: Ronnie [mailto:[EMAIL PROTECTED]
> > Sent: Monday, 3 March 2003 8:07 PM
> > To: Log4J Users List
> > Subject: Re: Really Newbie Problem
> >
> >
> > Here's 

Re: Really Newbie Problem

2003-03-03 Thread Ronnie Choo

Oh, I don't think I have installed TC the way you said.
I am only using the standalone version where I just unzipped the binary
files to a location and run the startup.bat from %CATALINA_HOME%\bin.

Thanks for your help and suggestions!

Ronnie

- Original Message -
From: "Nicholas Orr" <[EMAIL PROTECTED]>
To: "'Log4J Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, March 04, 2003 1:13 PM
Subject: RE: Really Newbie Problem


> Did you install TC as a service when you installed TC? Ie did you "tick"
the
> bax that said "NT Service (NT/2k/XP only)".
>
> If you didn't then uninstall, then reinstall and "tick" that box. But to
> find out if you have go to Start > Control Panel > Admin Tools >
Services -
> then look through the list for something that looks like "Apache Tomcat
4.1"
>
> If you still can't figure this out (service), then just stick with the
> scripts you all ready have.
>
> As for your log4j issue, I think it is one of those really obvious errors
> that you don't look at because "it should be correct" type of error, u
know
> the one I mean, and I can't advise anything else, cause it's working here
on
> my machine with lg4j.jar in the /commons/lib dir.
>
> Nicholas Orr
>
>
> -Original Message-
> From: Ronnie Choo [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, 4 March 2003 2:53 PM
> To: Log4J Users List
> Subject: Re: Really Newbie Problem
>
>
>
> Yup, everything works on my desktop but log4j fails to initialize on my
> laptop using the same settings as my desktop. I have only ever used one
> version of Log4j and that's 1.1.3. What I don't understand is why it can't
> work on my laptop when all installations are the same and the config files
> are in the same locations.
>
> Following your suggestions,
> I tried typing the following where I usually type "startup":
>
> D:\Studies\Systems Implementation II\Codes\84105_Ex1>net start "Apache
> Tomcat 4.1"
>
> The system returns to me:
>
> The service name is invalid.
>
> I looked at the help msg and this is what it said:
> EXPLANATION
>
> You tried to start a service that is not configured on this system.
>
> ACTION
>
> Check the spelling of the service name or check the configuration
> information for the service using the Services option from Server Manager.
>
> Sorry, I'm not really familiar with the XP Pro OS, or any other OS in
fact,
> so I don't know where to configure this.
>
>
> - Original Message -
> From: "Nicholas Orr" <[EMAIL PROTECTED]>
> To: "'Log4J Users List'" <[EMAIL PROTECTED]>
> Sent: Tuesday, March 04, 2003 7:19 AM
> Subject: RE: Really Newbie Problem
>
>
> > Hey, do a search for your log4j*.jar file and see exactly where it is,
> > delete all of them. Then copy log4j*.jar to /common/lib.
> >
> > May help may not, everything looks good in your script. Haven't you
> > all ready said you got it working? It would be a good idea to make
> > sure there is only 1 log4j*.jar file, so when the next version comes
> > out you *know* which version your using, not what you *think* your
> > using.
> >
> > Also how come you not running it as a service, you said you had XP on
> > your desktop, I assume ur running 2k or XP on ur laptop, makes things
> > a lot easier I reckon, batch files only need to look like this
> > *****
> > Start.bat
> > *
> > net start "Apache Tomcat 4.1"
> >
> > *
> > Start.bat
> > *
> > net stop "Apache Tomcat 4.1"
> >
> > *
> > Restart.bat
> > *
> > net stop "Apache Tomcat 4.1"
> > net start "Apache Tomcat 4.1"
> >
> > Makes sense to me. Oh well . . .
> >
> > Nicholas Orr
> >
> > -Original Message-
> > From: Ronnie [mailto:[EMAIL PROTECTED]
> > Sent: Monday, 3 March 2003 8:07 PM
> > To: Log4J Users List
> > Subject: Re: Really Newbie Problem
> >
> >
> > 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 cor

RE: Really Newbie Problem

2003-03-03 Thread Nicholas Orr
Did you install TC as a service when you installed TC? Ie did you "tick" the
bax that said "NT Service (NT/2k/XP only)".

If you didn't then uninstall, then reinstall and "tick" that box. But to
find out if you have go to Start > Control Panel > Admin Tools > Services -
then look through the list for something that looks like "Apache Tomcat 4.1"

If you still can't figure this out (service), then just stick with the
scripts you all ready have.

As for your log4j issue, I think it is one of those really obvious errors
that you don't look at because "it should be correct" type of error, u know
the one I mean, and I can't advise anything else, cause it's working here on
my machine with lg4j.jar in the /commons/lib dir.

Nicholas Orr


-Original Message-
From: Ronnie Choo [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 4 March 2003 2:53 PM
To: Log4J Users List
Subject: Re: Really Newbie Problem



Yup, everything works on my desktop but log4j fails to initialize on my
laptop using the same settings as my desktop. I have only ever used one
version of Log4j and that's 1.1.3. What I don't understand is why it can't
work on my laptop when all installations are the same and the config files
are in the same locations.

Following your suggestions,
I tried typing the following where I usually type "startup":

D:\Studies\Systems Implementation II\Codes\84105_Ex1>net start "Apache
Tomcat 4.1"

The system returns to me:

The service name is invalid.

I looked at the help msg and this is what it said:
EXPLANATION

You tried to start a service that is not configured on this system.

ACTION

Check the spelling of the service name or check the configuration
information for the service using the Services option from Server Manager.

Sorry, I'm not really familiar with the XP Pro OS, or any other OS in fact,
so I don't know where to configure this.


- Original Message -
From: "Nicholas Orr" <[EMAIL PROTECTED]>
To: "'Log4J Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, March 04, 2003 7:19 AM
Subject: RE: Really Newbie Problem


> Hey, do a search for your log4j*.jar file and see exactly where it is, 
> delete all of them. Then copy log4j*.jar to /common/lib.
>
> May help may not, everything looks good in your script. Haven't you 
> all ready said you got it working? It would be a good idea to make 
> sure there is only 1 log4j*.jar file, so when the next version comes 
> out you *know* which version your using, not what you *think* your 
> using.
>
> Also how come you not running it as a service, you said you had XP on 
> your desktop, I assume ur running 2k or XP on ur laptop, makes things 
> a lot easier I reckon, batch files only need to look like this
> *
> Start.bat
> *
> net start "Apache Tomcat 4.1"
>
> *
> Start.bat
> *
> net stop "Apache Tomcat 4.1"
>
> *
> Restart.bat
> *****
> net stop "Apache Tomcat 4.1"
> net start "Apache Tomcat 4.1"
>
> Makes sense to me. Oh well . . .
>
> Nicholas Orr
>
> -Original Message-
> From: Ronnie [mailto:[EMAIL PROTECTED]
> Sent: Monday, 3 March 2003 8:07 PM
> To: Log4J Users List
> Subject: Re: Really Newbie Problem
>
>
> 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...
>
>
> **
> 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: [EMAIL PROTECTED]
> Support Centre phone:  Australia 1800500646
> International ++61 7 38338042
> **
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

_

Re: Really Newbie Problem

2003-03-03 Thread Martin
net start is specific to Windoze
try
go to MenuBar
programs
Apache HTTP Server 2.0.44
Control Apache Server
Start Apache in Console

or drop to command line
SYSTEM_DRIVE=(location of drive where system files are kept)
"\Program Files\Apache Group\Apache2\bin\Apache.exe" -w -f "\Program
Files\Apache Group\Apache2\conf\httpd.conf" -d "\Program Files\Apache
Group\Apache2\."

- Original Message -
From: "Ronnie Choo" <[EMAIL PROTECTED]>
To: "Log4J Users List" <[EMAIL PROTECTED]>
Sent: Monday, March 03, 2003 9:53 PM
Subject: Re: Really Newbie Problem


>
> Yup, everything works on my desktop but log4j fails to initialize on my
> laptop using the same settings as my desktop.
> I have only ever used one version of Log4j and that's 1.1.3.
> What I don't understand is why it can't work on my laptop when all
> installations are the same and the config files are in the same locations.
>
> Following your suggestions,
> I tried typing the following where I usually type "startup":
>
> D:\Studies\Systems Implementation II\Codes\84105_Ex1>net start "Apache
> Tomcat 4.1"
>
> The system returns to me:
>
> The service name is invalid.
>
> I looked at the help msg and this is what it said:
> EXPLANATION
>
> You tried to start a service that is not configured on this system.
>
> ACTION
>
> Check the spelling of the service name or check the configuration
> information for the service using the Services option from Server Manager.
>
> Sorry, I'm not really familiar with the XP Pro OS, or any other OS in
fact,
> so I don't know where to configure this.
>
>
> - Original Message -
> From: "Nicholas Orr" <[EMAIL PROTECTED]>
> To: "'Log4J Users List'" <[EMAIL PROTECTED]>
> Sent: Tuesday, March 04, 2003 7:19 AM
> Subject: RE: Really Newbie Problem
>
>
> > Hey, do a search for your log4j*.jar file and see exactly where it is,
> > delete all of them.
> > Then copy log4j*.jar to /common/lib.
> >
> > May help may not, everything looks good in your script.
> > Haven't you all ready said you got it working?
> > It would be a good idea to make sure there is only 1 log4j*.jar file, so
> > when the next version comes out you *know* which version your using, not
> > what you *think* your using.
> >
> > Also how come you not running it as a service, you said you had XP on
your
> > desktop, I assume ur running 2k or XP on ur laptop, makes things a lot
> > easier I reckon, batch files only need to look like this
> > *
> > Start.bat
> > *
> > net start "Apache Tomcat 4.1"
> >
> > *
> > Start.bat
> > *
> > net stop "Apache Tomcat 4.1"
> >
> > *
> > Restart.bat
> > *
> > net stop "Apache Tomcat 4.1"
> > net start "Apache Tomcat 4.1"
> >
> > Makes sense to me. Oh well . . .
> >
> > Nicholas Orr
> >
> > -Original Message-
> > From: Ronnie [mailto:[EMAIL PROTECTED]
> > Sent: Monday, 3 March 2003 8:07 PM
> > To: Log4J Users List
> > Subject: Re: Really Newbie Problem
> >
> >
> > 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...
> >
> >
> > **
> > 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: [EMAIL PROTECTED]
> > Support Centre phone:  Australia 1800500646
> > International ++61 7 38338042
> > **
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> __
> Do You Yahoo!?
> Promote your business from just $5 a month!
> http://sg.biztools.yahoo.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Really Newbie Problem

2003-03-03 Thread Ronnie Choo

Yup, everything works on my desktop but log4j fails to initialize on my
laptop using the same settings as my desktop.
I have only ever used one version of Log4j and that's 1.1.3.
What I don't understand is why it can't work on my laptop when all
installations are the same and the config files are in the same locations.

Following your suggestions,
I tried typing the following where I usually type "startup":

D:\Studies\Systems Implementation II\Codes\84105_Ex1>net start "Apache
Tomcat 4.1"

The system returns to me:

The service name is invalid.

I looked at the help msg and this is what it said:
EXPLANATION

You tried to start a service that is not configured on this system.

ACTION

Check the spelling of the service name or check the configuration
information for the service using the Services option from Server Manager.

Sorry, I'm not really familiar with the XP Pro OS, or any other OS in fact,
so I don't know where to configure this.


- Original Message -
From: "Nicholas Orr" <[EMAIL PROTECTED]>
To: "'Log4J Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, March 04, 2003 7:19 AM
Subject: RE: Really Newbie Problem


> Hey, do a search for your log4j*.jar file and see exactly where it is,
> delete all of them.
> Then copy log4j*.jar to /common/lib.
>
> May help may not, everything looks good in your script.
> Haven't you all ready said you got it working?
> It would be a good idea to make sure there is only 1 log4j*.jar file, so
> when the next version comes out you *know* which version your using, not
> what you *think* your using.
>
> Also how come you not running it as a service, you said you had XP on your
> desktop, I assume ur running 2k or XP on ur laptop, makes things a lot
> easier I reckon, batch files only need to look like this
> *
> Start.bat
> *
> net start "Apache Tomcat 4.1"
>
> *
> Start.bat
> *
> net stop "Apache Tomcat 4.1"
>
> *
> Restart.bat
> *
> net stop "Apache Tomcat 4.1"
> net start "Apache Tomcat 4.1"
>
> Makes sense to me. Oh well . . .
>
> Nicholas Orr
>
> -Original Message-
> From: Ronnie [mailto:[EMAIL PROTECTED]
> Sent: Monday, 3 March 2003 8:07 PM
> To: Log4J Users List
> Subject: Re: Really Newbie Problem
>
>
> 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...
>
>
> **
> 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: [EMAIL PROTECTED]
> Support Centre phone:  Australia 1800500646
> International ++61 7 38338042
> **
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

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

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Really Newbie Problem

2003-03-03 Thread Nicholas Orr
Hey, do a search for your log4j*.jar file and see exactly where it is,
delete all of them.
Then copy log4j*.jar to /common/lib.

May help may not, everything looks good in your script. 
Haven't you all ready said you got it working? 
It would be a good idea to make sure there is only 1 log4j*.jar file, so
when the next version comes out you *know* which version your using, not
what you *think* your using.

Also how come you not running it as a service, you said you had XP on your
desktop, I assume ur running 2k or XP on ur laptop, makes things a lot
easier I reckon, batch files only need to look like this 
*
Start.bat
*
net start "Apache Tomcat 4.1"

*
Start.bat
*
net stop "Apache Tomcat 4.1"

*
Restart.bat
*
net stop "Apache Tomcat 4.1"
net start "Apache Tomcat 4.1"

Makes sense to me. Oh well . . .

Nicholas Orr

-Original Message-
From: Ronnie [mailto:[EMAIL PROTECTED] 
Sent: Monday, 3 March 2003 8:07 PM
To: Log4J Users List
Subject: Re: Really Newbie Problem


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...


**
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:  [EMAIL PROTECTED]
Support Centre phone:   Australia 1800500646
International ++61 7 38338042
**


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Really Newbie Problem

2003-03-03 Thread Ronnie
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" <[EMAIL PROTECTED]>
To: "Log4J Users List" <[EMAIL PROTECTED]>
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" <[EMAIL PROTECTED]>
> To: "Log4J Users List" <[EMAIL PROTECTED]>
> 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" <[EMAIL PROTECTED]>
> > To: "'Log4J Users List'" <[EMAIL PROTECTED]>
> > 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:[EMAIL PROTECTED]
> > > 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" <[EMAIL PROTECTED]>
> > > To: "Log4J Users List" <[EMAIL PROTECTED]>
> > > 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" <[EMAIL PROTECTED]>
> > > > To: "Log4J Users List" <[EMAIL PROTECTED]>
> > > > 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//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/" and started tomcat. Got
a
> > > > > shock when it actual

Re: Really Newbie Problem

2003-03-02 Thread Martin
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" <[EMAIL PROTECTED]>
To: "Log4J Users List" <[EMAIL PROTECTED]>
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" <[EMAIL PROTECTED]>
> To: "'Log4J Users List'" <[EMAIL PROTECTED]>
> 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:[EMAIL PROTECTED]
> > 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" <[EMAIL PROTECTED]>
> > To: "Log4J Users List" <[EMAIL PROTECTED]>
> > 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" <[EMAIL PROTECTED]>
> > > To: "Log4J Users List" <[EMAIL PROTECTED]>
> > > 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//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/" 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" <[EMAIL PROTECTED]>
> > > > To: "Log4J Users List" <[EMAIL PROTECTED]>
> > > > 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?

Re: Really Newbie Problem

2003-03-02 Thread Ronnie
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" <[EMAIL PROTECTED]>
To: "'Log4J Users List'" <[EMAIL PROTECTED]>
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:[EMAIL PROTECTED]
> 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" <[EMAIL PROTECTED]>
> To: "Log4J Users List" <[EMAIL PROTECTED]>
> 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" <[EMAIL PROTECTED]>
> > To: "Log4J Users List" <[EMAIL PROTECTED]>
> > 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//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/" 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" <[EMAIL PROTECTED]>
> > > To: "Log4J Users List" <[EMAIL PROTECTED]>
> > > 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

Re: Really Newbie Problem

2003-03-02 Thread Martin
My understanding is that XP comes with Java stripped
You have to install the JDK the JRE
(as well as Apache HTTP Server if you are running Web Apps)
Anyone else?
-Martin

- Original Message -
From: "Nicholas Orr" <[EMAIL PROTECTED]>
To: "'Log4J Users List'" <[EMAIL PROTECTED]>
Sent: Sunday, March 02, 2003 9: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:[EMAIL PROTECTED]
> 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" <[EMAIL PROTECTED]>
> To: "Log4J Users List" <[EMAIL PROTECTED]>
> 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" <[EMAIL PROTECTED]>
> > To: "Log4J Users List" <[EMAIL PROTECTED]>
> > 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//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/" 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" <[EMAIL PROTECTED]>
> > > To: "Log4J Users List" <[EMAIL PROTECTED]>
> > > 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

RE: Really Newbie Problem

2003-03-02 Thread Nicholas Orr
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:[EMAIL PROTECTED] 
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" <[EMAIL PROTECTED]>
To: "Log4J Users List" <[EMAIL PROTECTED]>
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" <[EMAIL PROTECTED]>
> To: "Log4J Users List" <[EMAIL PROTECTED]>
> 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//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/" 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" <[EMAIL PROTECTED]>
> > To: "Log4J Users List" <[EMAIL PROTECTED]>
> > 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: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

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

-

Re: Really Newbie Problem

2003-03-02 Thread Ronnie
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" <[EMAIL PROTECTED]>
To: "Log4J Users List" <[EMAIL PROTECTED]>
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" <[EMAIL PROTECTED]>
> To: "Log4J Users List" <[EMAIL PROTECTED]>
> 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//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/" 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" <[EMAIL PROTECTED]>
> > To: "Log4J Users List" <[EMAIL PROTECTED]>
> > 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: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

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

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Really Newbie Problem

2003-03-01 Thread Steve Ebersole
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" <[EMAIL PROTECTED]>
To: "Log4J Users List" <[EMAIL PROTECTED]>
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//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/" 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" <[EMAIL PROTECTED]>
> To: "Log4J Users List" <[EMAIL PROTECTED]>
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Really Newbie Problem

2003-03-01 Thread Ronnie
It's working at last!!! =) :-)

I put the file log4j.jar into the "webapps//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/" 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" <[EMAIL PROTECTED]>
To: "Log4J Users List" <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Really Newbie Problem

2003-03-01 Thread Steve Ebersole
I just looked at Tomcat setup a little bit.  I seems startup.bat just calls
catalina.bat.  So go into catlina.bat and add the following (near the top):

CATALINA_OPTS=%CATALINA_OPTS% -D log4j.debug=true



- Original Message -
From: "Ronnie" <[EMAIL PROTECTED]>
To: "Log4J Users List" <[EMAIL PROTECTED]>
Sent: Saturday, March 01, 2003 3:49 AM
Subject: Re: Really Newbie Problem


> I'm using Log4J 1.1.3...
> I tried using "startup -D log4j.debug=true" and the Dos Console window
pops
> up for a split second before disappearing.
> Happens on my desktop as well. Is that the right way to execute the
command?
>
> I've tried changing "category" to "logger" as suggested but encountered
the
> same problem.
>
> I've really hit a solid stonewall this time...
>
> Thanks alot for your suggestions Mr Ebersole! I really appreciate it!
>
>
> Regards,
> Ronnie
>
> - Original Message -
> From: "Ebersole, Steven" <[EMAIL PROTECTED]>
> To: "'Log4J Users List'" <[EMAIL PROTECTED]>
> Sent: Saturday, 01 March, 2003 2:09 AM
> Subject: RE: Really Newbie Problem
>
>
> > What version of log4j are you using?  Cannot remember the switch-over
> > version, but the newer versions of log4j don't use category anymore; its
> now
> > logger.
> >
> > Just for giggles, try the following:
> > 1) First set the system property log4j.debug to true when starting
tomcat
> > (pass "-D log4j.debug=true" in the tomcat startup script).  Then you can
> > watch log4j configure itself; and more importantly if it is running into
> > problems...
> >
> > 2) Try changing the word category in your config file to logger:
> >
> > log4j.rootLogger=WARN,FILE,A1
> > log4j.logger.edu.rmit.isys2049.EmployeeAccessBean=DEBUG
> >
> > log4j.appender.FILE=org.apache.log4j.FileAppender
> > log4j.appender.FILE.File=C:/temp/tomcat.log
> > log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
> > log4j.appender.FILE.layout.ConversionPattern=%d [%t ] %-5p %c{1}-%m%n
> >
> > log4j.appender.A1=org.apache.log4j.FileAppender
> > log4j.appender.A1.File=d:/temp/trace.log
> > log4j.appender.A1.layout=org.apache.log4j.PatternLayout
> > log4j.appender.A1.layout.ConversionPattern=%d [%t ] %-5p %c{1}-%m%n
> >
> >
> >
> > |-Original Message-
> > |From: Ronnie [mailto:[EMAIL PROTECTED]
> > |Sent: Friday, February 28, 2003 11:55 AM
> > |To: Log4J Users List
> > |Subject: Re: Really Newbie Problem
> > |
> > |
> > |No question is silly for a newbie! =)
> > |
> > |Yes I did restart Tomcat after changing the file location.
> > |I'm using log4j.properties so doesn't that configure the logging?
> > |
> > |I just tried another exercise using EJB in JBoss and JBoss
> > |was unable to
> > |initialize the default ConsoleAppender as well...
> > |Headache...
> > |
> > |- Original Message -
> > |From: "Steve Ebersole" <[EMAIL PROTECTED]>
> > |To: "Log4J Users List" <[EMAIL PROTECTED]>
> > |Sent: Friday, 28 February, 2003 9:41 PM
> > |Subject: Re: Really Newbie Problem
> > |
> > |
> > |> Silly question, but did you restart Tomcat after
> > |changing the file
> > |location?
> > |>
> > |> Also, are you allowing default initilization to happen,
> > |or are you
> > |> explicitly trying to use one of the configurators?
> > |>
> > |>
> > |> - Original Message -
> > |> From: "Ronnie Choo" <[EMAIL PROTECTED]>
> > |> To: "Log4J Users List" <[EMAIL PROTECTED]>
> > |> Sent: Friday, February 28, 2003 12:43 AM
> > |> Subject: Re: Really Newbie Problem
> > |>
> > |>
> > |> > I just tried putting it in the
> > |> > webapps//WEB-INF/classes folder but still the
> > |> > same error.
> > |> >
> > |> > Thanks for the suggestion!
> > |> >
> > |> >  --- Scott Schram <[EMAIL PROTECTED]> wrote: > At 12:36
> > |> > AM 2/28/2003, you wrote:
> > |> > > >I placed it in the {catalina-home}/common/lib
> > |> > > folder.
> > |> > > >
> > |> > > >it works on my desktop though...
> > |> > &g

Re: Really Newbie Problem

2003-03-01 Thread Steve Ebersole
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.



- Original Message -
From: "Ronnie" <[EMAIL PROTECTED]>
To: "Log4J Users List" <[EMAIL PROTECTED]>
Sent: Saturday, March 01, 2003 3:49 AM
Subject: Re: Really Newbie Problem


> I'm using Log4J 1.1.3...
> I tried using "startup -D log4j.debug=true" and the Dos Console window
pops
> up for a split second before disappearing.
> Happens on my desktop as well. Is that the right way to execute the
command?
>
> I've tried changing "category" to "logger" as suggested but encountered
the
> same problem.
>
> I've really hit a solid stonewall this time...
>
> Thanks alot for your suggestions Mr Ebersole! I really appreciate it!
>
>
> Regards,
> Ronnie
>
> - Original Message -
> From: "Ebersole, Steven" <[EMAIL PROTECTED]>
> To: "'Log4J Users List'" <[EMAIL PROTECTED]>
> Sent: Saturday, 01 March, 2003 2:09 AM
> Subject: RE: Really Newbie Problem
>
>
> > What version of log4j are you using?  Cannot remember the switch-over
> > version, but the newer versions of log4j don't use category anymore; its
> now
> > logger.
> >
> > Just for giggles, try the following:
> > 1) First set the system property log4j.debug to true when starting
tomcat
> > (pass "-D log4j.debug=true" in the tomcat startup script).  Then you can
> > watch log4j configure itself; and more importantly if it is running into
> > problems...
> >
> > 2) Try changing the word category in your config file to logger:
> >
> > log4j.rootLogger=WARN,FILE,A1
> > log4j.logger.edu.rmit.isys2049.EmployeeAccessBean=DEBUG
> >
> > log4j.appender.FILE=org.apache.log4j.FileAppender
> > log4j.appender.FILE.File=C:/temp/tomcat.log
> > log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
> > log4j.appender.FILE.layout.ConversionPattern=%d [%t ] %-5p %c{1}-%m%n
> >
> > log4j.appender.A1=org.apache.log4j.FileAppender
> > log4j.appender.A1.File=d:/temp/trace.log
> > log4j.appender.A1.layout=org.apache.log4j.PatternLayout
> > log4j.appender.A1.layout.ConversionPattern=%d [%t ] %-5p %c{1}-%m%n
> >
> >
> >
> > |-Original Message-
> > |From: Ronnie [mailto:[EMAIL PROTECTED]
> > |Sent: Friday, February 28, 2003 11:55 AM
> > |To: Log4J Users List
> > |Subject: Re: Really Newbie Problem
> > |
> > |
> > |No question is silly for a newbie! =)
> > |
> > |Yes I did restart Tomcat after changing the file location.
> > |I'm using log4j.properties so doesn't that configure the logging?
> > |
> > |I just tried another exercise using EJB in JBoss and JBoss
> > |was unable to
> > |initialize the default ConsoleAppender as well...
> > |Headache...
> > |
> > |- Original Message -
> > |From: "Steve Ebersole" <[EMAIL PROTECTED]>
> > |To: "Log4J Users List" <[EMAIL PROTECTED]>
> > |Sent: Friday, 28 February, 2003 9:41 PM
> > |Subject: Re: Really Newbie Problem
> > |
> > |
> > |> Silly question, but did you restart Tomcat after
> > |changing the file
> > |location?
> > |>
> > |> Also, are you allowing default initilization to happen,
> > |or are you
> > |> explicitly trying to use one of the configurators?
> > |>
> > |>
> > |> - Original Message -
> > |> From: "Ronnie Choo" <[EMAIL PROTECTED]>
> > |> To: "Log4J Users List" <[EMAIL PROTECTED]>
> > |> Sent: Friday, February 28, 2003 12:43 AM
> > |> Subject: Re: Really Newbie Proble

Re: Really Newbie Problem

2003-03-01 Thread Ronnie
I'm using Log4J 1.1.3...
I tried using "startup -D log4j.debug=true" and the Dos Console window pops
up for a split second before disappearing.
Happens on my desktop as well. Is that the right way to execute the command?

I've tried changing "category" to "logger" as suggested but encountered the
same problem.

I've really hit a solid stonewall this time...

Thanks alot for your suggestions Mr Ebersole! I really appreciate it!


Regards,
Ronnie

- Original Message -
From: "Ebersole, Steven" <[EMAIL PROTECTED]>
To: "'Log4J Users List'" <[EMAIL PROTECTED]>
Sent: Saturday, 01 March, 2003 2:09 AM
Subject: RE: Really Newbie Problem


> What version of log4j are you using?  Cannot remember the switch-over
> version, but the newer versions of log4j don't use category anymore; its
now
> logger.
>
> Just for giggles, try the following:
> 1) First set the system property log4j.debug to true when starting tomcat
> (pass "-D log4j.debug=true" in the tomcat startup script).  Then you can
> watch log4j configure itself; and more importantly if it is running into
> problems...
>
> 2) Try changing the word category in your config file to logger:
>
> log4j.rootLogger=WARN,FILE,A1
> log4j.logger.edu.rmit.isys2049.EmployeeAccessBean=DEBUG
>
> log4j.appender.FILE=org.apache.log4j.FileAppender
> log4j.appender.FILE.File=C:/temp/tomcat.log
> log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
> log4j.appender.FILE.layout.ConversionPattern=%d [%t ] %-5p %c{1}-%m%n
>
> log4j.appender.A1=org.apache.log4j.FileAppender
> log4j.appender.A1.File=d:/temp/trace.log
> log4j.appender.A1.layout=org.apache.log4j.PatternLayout
> log4j.appender.A1.layout.ConversionPattern=%d [%t ] %-5p %c{1}-%m%n
>
>
>
>     |-Original Message-
> |From: Ronnie [mailto:[EMAIL PROTECTED]
> |Sent: Friday, February 28, 2003 11:55 AM
> |To: Log4J Users List
> |Subject: Re: Really Newbie Problem
> |
> |
> |No question is silly for a newbie! =)
> |
> |Yes I did restart Tomcat after changing the file location.
> |I'm using log4j.properties so doesn't that configure the logging?
> |
> |I just tried another exercise using EJB in JBoss and JBoss
> |was unable to
> |initialize the default ConsoleAppender as well...
>     |Headache...
> |
> |- Original Message -
> |From: "Steve Ebersole" <[EMAIL PROTECTED]>
> |To: "Log4J Users List" <[EMAIL PROTECTED]>
> |Sent: Friday, 28 February, 2003 9:41 PM
> |Subject: Re: Really Newbie Problem
> |
> |
> |> Silly question, but did you restart Tomcat after
> |changing the file
> |location?
> |>
> |> Also, are you allowing default initilization to happen,
>     |or are you
> |> explicitly trying to use one of the configurators?
> |>
> |>
> |> - Original Message -
> |> From: "Ronnie Choo" <[EMAIL PROTECTED]>
> |> To: "Log4J Users List" <[EMAIL PROTECTED]>
> |> Sent: Friday, February 28, 2003 12:43 AM
> |> Subject: Re: Really Newbie Problem
> |>
> |>
> |> > I just tried putting it in the
> |> > webapps//WEB-INF/classes folder but still the
> |> > same error.
> |> >
> |> > Thanks for the suggestion!
> |> >
> |> >  --- Scott Schram <[EMAIL PROTECTED]> wrote: > At 12:36
> |> > AM 2/28/2003, you wrote:
> |> > > >I placed it in the {catalina-home}/common/lib
> |> > > folder.
> |> > > >
> |> > > >it works on my desktop though...
> |> > > >Maybe it's an issue with Win XP with SP1?
> |> > > >I'm at my wits end...
> |> > >
> |> > > Shouldn't it be in the WEB-INF/classes directory of
> |> > > your web app?  That's
> |> > > where I'm putting log4j.xml
> |> > >
> |> > >
> |> > >
> |> > >
> |> >
> |---
> |--
> |> > > To unsubscribe, e-mail:
> |> > > [EMAIL PROTECTED]
> |> > > For additional commands, e-mail:
> |> > > [EMAIL PROTECTED]
> |> > >
> |> >
> |> > __
> |> > Do You Yahoo!?
> |> > Promote your business from just $5

RE: Really Newbie Problem

2003-02-28 Thread Ebersole, Steven
What version of log4j are you using?  Cannot remember the switch-over
version, but the newer versions of log4j don't use category anymore; its now
logger.

Just for giggles, try the following:
1) First set the system property log4j.debug to true when starting tomcat
(pass "-D log4j.debug=true" in the tomcat startup script).  Then you can
watch log4j configure itself; and more importantly if it is running into
problems...

2) Try changing the word category in your config file to logger:

log4j.rootLogger=WARN,FILE,A1
log4j.logger.edu.rmit.isys2049.EmployeeAccessBean=DEBUG

log4j.appender.FILE=org.apache.log4j.FileAppender
log4j.appender.FILE.File=C:/temp/tomcat.log
log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
log4j.appender.FILE.layout.ConversionPattern=%d [%t ] %-5p %c{1}-%m%n

log4j.appender.A1=org.apache.log4j.FileAppender
log4j.appender.A1.File=d:/temp/trace.log
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%d [%t ] %-5p %c{1}-%m%n



|-Original Message-
|From: Ronnie [mailto:[EMAIL PROTECTED]
|Sent: Friday, February 28, 2003 11:55 AM
|To: Log4J Users List
|Subject: Re: Really Newbie Problem
|
|
|No question is silly for a newbie! =)
|
|Yes I did restart Tomcat after changing the file location.
|I'm using log4j.properties so doesn't that configure the logging?
|
|I just tried another exercise using EJB in JBoss and JBoss 
|was unable to
|initialize the default ConsoleAppender as well...
|Headache...
|
|- Original Message -
|From: "Steve Ebersole" <[EMAIL PROTECTED]>
|To: "Log4J Users List" <[EMAIL PROTECTED]>
|Sent: Friday, 28 February, 2003 9:41 PM
|Subject: Re: Really Newbie Problem
|
|
|> Silly question, but did you restart Tomcat after 
|changing the file
|location?
|>
|> Also, are you allowing default initilization to happen, 
|or are you
|> explicitly trying to use one of the configurators?
|>
|>
|> - Original Message -
|> From: "Ronnie Choo" <[EMAIL PROTECTED]>
|> To: "Log4J Users List" <[EMAIL PROTECTED]>
|> Sent: Friday, February 28, 2003 12:43 AM
|> Subject: Re: Really Newbie Problem
|>
|>
|> > I just tried putting it in the
|> > webapps//WEB-INF/classes folder but still the
|> > same error.
|> >
|> > Thanks for the suggestion!
|> >
|> >  --- Scott Schram <[EMAIL PROTECTED]> wrote: > At 12:36
|> > AM 2/28/2003, you wrote:
|> > > >I placed it in the {catalina-home}/common/lib
|> > > folder.
|> > > >
|> > > >it works on my desktop though...
|> > > >Maybe it's an issue with Win XP with SP1?
|> > > >I'm at my wits end...
|> > >
|> > > Shouldn't it be in the WEB-INF/classes directory of
|> > > your web app?  That's
|> > > where I'm putting log4j.xml
|> > >
|> > >
|> > >
|> > >
|> > 
|---
|--
|> > > To unsubscribe, e-mail:
|> > > [EMAIL PROTECTED]
|> > > For additional commands, e-mail:
|> > > [EMAIL PROTECTED]
|> > >
|> >
|> > __
|> > Do You Yahoo!?
|> > Promote your business from just $5 a month!
|> > http://sg.biztools.yahoo.com
|> >
|> > 
|---
|--
|> > To unsubscribe, e-mail: 
|[EMAIL PROTECTED]
|> > For additional commands, e-mail: 
|[EMAIL PROTECTED]
|> >
|>
|>
|> 
|---
|--
|> To unsubscribe, e-mail: [EMAIL PROTECTED]
|> For additional commands, e-mail: 
|[EMAIL PROTECTED]
|
|__
|Do You Yahoo!?
|Promote your business from just $5 a month!
|http://sg.biztools.yahoo.com
|
|---
|--
|To unsubscribe, e-mail: [EMAIL PROTECTED]
|For additional commands, e-mail: [EMAIL PROTECTED]
|

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Really Newbie Problem

2003-02-28 Thread Ronnie
No question is silly for a newbie! =)

Yes I did restart Tomcat after changing the file location.
I'm using log4j.properties so doesn't that configure the logging?

I just tried another exercise using EJB in JBoss and JBoss was unable to
initialize the default ConsoleAppender as well...
Headache...

- Original Message -
From: "Steve Ebersole" <[EMAIL PROTECTED]>
To: "Log4J Users List" <[EMAIL PROTECTED]>
Sent: Friday, 28 February, 2003 9:41 PM
Subject: Re: Really Newbie Problem


> Silly question, but did you restart Tomcat after changing the file
location?
>
> Also, are you allowing default initilization to happen, or are you
> explicitly trying to use one of the configurators?
>
>
> - Original Message -
> From: "Ronnie Choo" <[EMAIL PROTECTED]>
> To: "Log4J Users List" <[EMAIL PROTECTED]>
> Sent: Friday, February 28, 2003 12:43 AM
> Subject: Re: Really Newbie Problem
>
>
> > I just tried putting it in the
> > webapps//WEB-INF/classes folder but still the
> > same error.
> >
> > Thanks for the suggestion!
> >
> >  --- Scott Schram <[EMAIL PROTECTED]> wrote: > At 12:36
> > AM 2/28/2003, you wrote:
> > > >I placed it in the {catalina-home}/common/lib
> > > folder.
> > > >
> > > >it works on my desktop though...
> > > >Maybe it's an issue with Win XP with SP1?
> > > >I'm at my wits end...
> > >
> > > Shouldn't it be in the WEB-INF/classes directory of
> > > your web app?  That's
> > > where I'm putting log4j.xml
> > >
> > >
> > >
> > >
> > -
> > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > >
> >
> > __
> > Do You Yahoo!?
> > Promote your business from just $5 a month!
> > http://sg.biztools.yahoo.com
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

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

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Really Newbie Problem

2003-02-28 Thread Steve Ebersole
Silly question, but did you restart Tomcat after changing the file location?

Also, are you allowing default initilization to happen, or are you
explicitly trying to use one of the configurators?


- Original Message -
From: "Ronnie Choo" <[EMAIL PROTECTED]>
To: "Log4J Users List" <[EMAIL PROTECTED]>
Sent: Friday, February 28, 2003 12:43 AM
Subject: Re: Really Newbie Problem


> I just tried putting it in the
> webapps//WEB-INF/classes folder but still the
> same error.
>
> Thanks for the suggestion!
>
>  --- Scott Schram <[EMAIL PROTECTED]> wrote: > At 12:36
> AM 2/28/2003, you wrote:
> > >I placed it in the {catalina-home}/common/lib
> > folder.
> > >
> > >it works on my desktop though...
> > >Maybe it's an issue with Win XP with SP1?
> > >I'm at my wits end...
> >
> > Shouldn't it be in the WEB-INF/classes directory of
> > your web app?  That's
> > where I'm putting log4j.xml
> >
> >
> >
> >
> -
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
>
> __
> Do You Yahoo!?
> Promote your business from just $5 a month!
> http://sg.biztools.yahoo.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Really Newbie Problem

2003-02-27 Thread Ronnie Choo
I just tried putting it in the
webapps//WEB-INF/classes folder but still the
same error.

Thanks for the suggestion!

 --- Scott Schram <[EMAIL PROTECTED]> wrote: > At 12:36
AM 2/28/2003, you wrote:
> >I placed it in the {catalina-home}/common/lib
> folder.
> >
> >it works on my desktop though...
> >Maybe it's an issue with Win XP with SP1?
> >I'm at my wits end...
> 
> Shouldn't it be in the WEB-INF/classes directory of
> your web app?  That's 
> where I'm putting log4j.xml
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>  

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

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Really Newbie Problem

2003-02-27 Thread Scott Schram
At 12:36 AM 2/28/2003, you wrote:
I placed it in the {catalina-home}/common/lib folder.

it works on my desktop though...
Maybe it's an issue with Win XP with SP1?
I'm at my wits end...
Shouldn't it be in the WEB-INF/classes directory of your web app?  That's 
where I'm putting log4j.xml



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Really Newbie Problem

2003-02-27 Thread Ronnie Choo
I placed it in the {catalina-home}/common/lib folder.

it works on my desktop though...
Maybe it's an issue with Win XP with SP1?
I'm at my wits end...


 --- Ceki Gülcü <[EMAIL PROTECTED]> wrote: > 
> Log4j probably cannot find the log4j.properties
> file. Where have you placed 
> it?
> 

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

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Really Newbie Problem

2003-02-27 Thread Ceki Gülcü
Log4j probably cannot find the log4j.properties file. Where have you placed 
it?

At 02:18 PM 2/28/2003 +0800, you wrote:
Hi! I'm still a student studying J2EE and ran into
this problem while setting up my Log4J running with
Tomcat 4.0.1 for my project.
The problem is that it works Perfectly on my Desktop
but runs into this problem on my laptop:
log4j:ERROR No appenders could be found for category
(edu.rmit.isys2049.EmployeeAccessBean).
log4j:ERROR Please initialize the log4j system
properly.
The documentation states that i need to "Simply add an
appender to the rootCategory". I have done exactly
that but to no avail!
I'm using JDK1.3.1_02 and the paths have already been
set correctly as it's exactly the same as my desktop.
Ant help is greatly appreciated as nobody in school,
including the lecturers, seems to be able to help me!
Here's my log4j.properties file configuration:

log4j.rootCategory=WARN,FILE,A1
log4j.category.edu.rmit.isys2049.EmployeeAccessBean=DEBUG
log4j.appender.FILE=org.apache.log4j.FileAppender
log4j.appender.FILE.File=C:/temp/tomcat.log
log4j.appender.A1=org.apache.log4j.FileAppender
log4j.appender.A1.File=d:/temp/trace.log
log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
log4j.appender.FILE.layout.ConversionPattern=%d [%t ]
%-5p %c{1}-%m%n
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%d [%t ]
%-5p %c{1}-%m%n
Regards,
Ronnie Choo
Student of RMIT University
__
Do You Yahoo!?
Promote your business from just $5 a month!
http://sg.biztools.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Ceki 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Really Newbie Problem

2003-02-27 Thread Ronnie Choo
Hi! I'm still a student studying J2EE and ran into
this problem while setting up my Log4J running with
Tomcat 4.0.1 for my project.

The problem is that it works Perfectly on my Desktop
but runs into this problem on my laptop:

log4j:ERROR No appenders could be found for category
(edu.rmit.isys2049.EmployeeAccessBean).
log4j:ERROR Please initialize the log4j system
properly.

The documentation states that i need to "Simply add an
appender to the rootCategory". I have done exactly
that but to no avail!

I'm using JDK1.3.1_02 and the paths have already been
set correctly as it's exactly the same as my desktop.

Ant help is greatly appreciated as nobody in school,
including the lecturers, seems to be able to help me!


Here's my log4j.properties file configuration:

log4j.rootCategory=WARN,FILE,A1
log4j.category.edu.rmit.isys2049.EmployeeAccessBean=DEBUG
log4j.appender.FILE=org.apache.log4j.FileAppender
log4j.appender.FILE.File=C:/temp/tomcat.log
log4j.appender.A1=org.apache.log4j.FileAppender
log4j.appender.A1.File=d:/temp/trace.log
log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
log4j.appender.FILE.layout.ConversionPattern=%d [%t ]
%-5p %c{1}-%m%n
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%d [%t ]
%-5p %c{1}-%m%n

Regards,
Ronnie Choo
Student of RMIT University

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

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: NEWBIE PROBLEM: Another inheritence question

2002-04-08 Thread Jeff Epstein

I realize now that I'm assigning the appender to the root, so ALL levels
inherit it, regardless the name.

It's confusing that an appender can be assigned to a logger, even though
they have exactly the same names.  I don't understand how to create a
non-root appender (in the property file), and then assign it to a logger
(either in the property file, or in the Java code).

Will stop spamming now, as I await responses...  :'  )

Jeff Epstein
Internet Developer
Insight Interactive Group
302  777 0970
[EMAIL PROTECTED]

-Original Message-
From: Jeff Epstein 
Sent: Monday, April 08, 2002 2:51 PM
To: '[EMAIL PROTECTED]'
Subject: NEWBIE PROBLEM: Another inheritence question


(This is unrelated to my previous post)

I've declared a "root appender" in the property configuration file.  I
specifically assigned the appender to com.foo.Bar, and did not apply *any*
property configuration variables for com.foo.  However, com.foo is ALSO
printing out to the com.foo.Bar file.  I thought that com.foo.Bar inherits
from com.foo, but not the other way around.

Why is this happening?  I expected there to either be an error (com.foo
doesn't have an appender), or for com.foo simply to not log anything,
anywhere.

Thanks!  (Again)


PROPERTY FILE:  log4j_config2.txt

# Root logger
log4j.debug=true
log4j.rootLogger=INFO, com.foo.Bar

# com.foo.Bar
log4j.appender.com.foo.Bar=org.apache.log4j.FileAppender
log4j.appender.com.foo.Bar.file=com_foo_Bar.log
log4j.appender.com.foo.Bar.append=false
log4j.appender.com.foo.Bar.layout=org.apache.log4j.PatternLayout
log4j.appender.com.foo.Bar.layout.ConversionPattern=%-4r %-5p %c{2}
%M.%L %x - %m\n



...and here's the Java file (PropertyFile2):

import org.apache.log4j.PropertyConfigurator;
import org.apache.log4j.Logger;
public class PropertyFile2  {
public static void main(String[] as_cmdLineParams)  {
PropertyConfigurator.configure("log4j_config2.txt");

Logger  lgr = Logger.getLogger("com.foo");
lgr.debug("lgr debug");
lgr.info("lgr info");
lgr.warn("lgr warn");
lgr.error("lgr error");
lgr.fatal("lgr fatal");

Logger barlgr = Logger.getLogger("com.foo.Bar");
barlgr.debug("barlgr debug");
barlgr.info("barlgr info");
barlgr.warn("barlgr warn");
barlgr.error("barlgr error");
barlgr.fatal("barlgr fatal");
}

}



Jeff Epstein
Internet Developer
Insight Interactive Group
302  777 0970
[EMAIL PROTECTED]


DISCLAIMER: The information in this message is confidential and may be
legally privileged. It is intended solely for the addressee.  Access to this
message by anyone else is unauthorized.  If you are not the intended
recipient, any disclosure, copying, or distribution of the message, or any
action or omission taken by you in reliance on it, is prohibited and may be
unlawful.  Please immediately contact the sender if you have received this
message in error. Thank you.



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




NEWBIE PROBLEM: Another inheritence question

2002-04-08 Thread Jeff Epstein

(This is unrelated to my previous post)

I've declared a "root appender" in the property configuration file.  I
specifically assigned the appender to com.foo.Bar, and did not apply *any*
property configuration variables for com.foo.  However, com.foo is ALSO
printing out to the com.foo.Bar file.  I thought that com.foo.Bar inherits
from com.foo, but not the other way around.

Why is this happening?  I expected there to either be an error (com.foo
doesn't have an appender), or for com.foo simply to not log anything,
anywhere.

Thanks!  (Again)


PROPERTY FILE:  log4j_config2.txt

# Root logger
log4j.debug=true
log4j.rootLogger=INFO, com.foo.Bar

# com.foo.Bar
log4j.appender.com.foo.Bar=org.apache.log4j.FileAppender
log4j.appender.com.foo.Bar.file=com_foo_Bar.log
log4j.appender.com.foo.Bar.append=false
log4j.appender.com.foo.Bar.layout=org.apache.log4j.PatternLayout
log4j.appender.com.foo.Bar.layout.ConversionPattern=%-4r %-5p %c{2}
%M.%L %x - %m\n



...and here's the Java file (PropertyFile2):

import org.apache.log4j.PropertyConfigurator;
import org.apache.log4j.Logger;
public class PropertyFile2  {
public static void main(String[] as_cmdLineParams)  {
PropertyConfigurator.configure("log4j_config2.txt");

Logger  lgr = Logger.getLogger("com.foo");
lgr.debug("lgr debug");
lgr.info("lgr info");
lgr.warn("lgr warn");
lgr.error("lgr error");
lgr.fatal("lgr fatal");

Logger barlgr = Logger.getLogger("com.foo.Bar");
barlgr.debug("barlgr debug");
barlgr.info("barlgr info");
barlgr.warn("barlgr warn");
barlgr.error("barlgr error");
barlgr.fatal("barlgr fatal");
}

}



Jeff Epstein
Internet Developer
Insight Interactive Group
302  777 0970
[EMAIL PROTECTED]


DISCLAIMER: The information in this message is confidential and may be
legally privileged. It is intended solely for the addressee.  Access to this
message by anyone else is unauthorized.  If you are not the intended
recipient, any disclosure, copying, or distribution of the message, or any
action or omission taken by you in reliance on it, is prohibited and may be
unlawful.  Please immediately contact the sender if you have received this
message in error. Thank you.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




NEWBIE PROBLEM: Inheritence in property config file

2002-04-08 Thread Jeff Epstein

I am an experienced Java programmer, but am new to log4j.  I'm confused as
to why I'm getting this error (error output and code below).

I understand that naming conventions for "inheritence" of loggers should be
the same as your class heirarchy.  Hence:  com.foo and com.foo.Bar.  But I'm
getting an error saying ":WARN No such property [bar] in
org.apache.log4j.ConsoleAppender."

I don't see anything relating to this in the documentation.  I don't see ANY
(complete) listing of all configuration variables avaliable to
PropertyConfigurator's Pmroperty file.

(My goal is to have com.foo.Bar inherit everything from com.foo, *except* I
want it to output only to file, instead of System.out.  I'm pretty sure that
"log4j.additivity.com.foo.Bar=false" is how to do this, but I can't get
beyond this error to confirm.  Does additivity also prevent the formatting
and LEVEL settings from being inherited?)


THE OUTPUT

[c:\files\a_sandbox\iig\java\development\test\log4j]java
PropertyFileBARERROR
log4j: Parsing for [root] with value=[INFO, com.foo.Bar, com.foo].
log4j: Level token is [INFO].
log4j: Category root set to INFO
log4j: Parsing appender named "com.foo.Bar".
log4j: Parsing layout options for "com.foo.Bar".
log4j: End of parsing for "com.foo.Bar".
log4j: Setting property [file] to [com_foo_Bar.log].
log4j: setFile called: com_foo_Bar.log, true
log4j: setFile ended
log4j: Parsed "com.foo.Bar" options.
log4j: Parsing appender named "com.foo".
log4j: Parsing layout options for "com.foo".
log4j: End of parsing for "com.foo".
log4j:WARN No such property [bar] in org.apache.log4j.ConsoleAppender.
log4j: Parsed "com.foo" options.
log4j: Finished configuring.
lgr info
lgr warn
lgr error
lgr fatal
barlgr info
barlgr warn
barlgr error
barlgr fatal


PROPERTY FILE:  log4j_configBARERROR.txt


# Root logger
log4j.debug=true
log4j.rootLogger=INFO, com.foo.Bar, com.foo

# com.foo
log4j.appender.com.foo=org.apache.log4j.ConsoleAppender
log4j.appender.com.foo.layout=org.apache.log4j.PatternLayout

# com.foo.Bar
log4j.appender.com.foo.Bar=org.apache.log4j.FileAppender
log4j.appender.com.foo.Bar.file=com_foo_Bar.log
log4j.appender.com.foo.Bar.layout=org.apache.log4j.PatternLayout


JAVA CODE:  PropertyFileBARERROR.java

import org.apache.log4j.PropertyConfigurator;
import org.apache.log4j.Logger;

public class PropertyFileBARERROR  {
public static void main(String[] as_cmdLineParams)  {
PropertyConfigurator.configure("log4j_configBARERROR.txt");

Logger  lgr = Logger.getLogger("com.foo");
lgr.debug("lgr debug");
lgr.info("lgr info");
lgr.warn("lgr warn");
lgr.error("lgr error");
lgr.fatal("lgr fatal");

Logger barlgr = Logger.getLogger("com.foo.Bar");
barlgr.debug("barlgr debug");
barlgr.info("barlgr info");
barlgr.warn("barlgr warn");
barlgr.error("barlgr error");
barlgr.fatal("barlgr fatal");
}
}





Thank you!


Jeff Epstein
Internet Developer
Insight Interactive Group
302  777 0970
[EMAIL PROTECTED]


DISCLAIMER: The information in this message is confidential and may be
legally privileged. It is intended solely for the addressee.  Access to this
message by anyone else is unauthorized.  If you are not the intended
recipient, any disclosure, copying, or distribution of the message, or any
action or omission taken by you in reliance on it, is prohibited and may be
unlawful.  Please immediately contact the sender if you have received this
message in error. Thank you.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: