RE: Log4j, websphere, rad, and log4j.xml location

2005-08-24 Thread Jitendra Kharche
Hi,

I am using Websphere to deploy my enterprise application. I put my log4j.xml 
file in WAS_HOME/properties directory and it works fine. I don't know whether 
this is a correct way but this issue is more serious for an ear that for a war.

Jitendra

-Original Message-
From: Schuweiler, Joel J. [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 12, 2005 2:58 AM
To: 'Log4J Users List'
Subject: RE: Log4j, websphere, rad, and log4j.xml location

Thanks. I think the classpath would make the most sense in case since I'm using 
sockets this would allow me to quickly adjust where they all log to. 

-Original Message-
From: Mark Womack [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 11, 2005 4:27 PM
To: 'Log4J Users List'
Subject: RE: Log4j, websphere, rad, and log4j.xml location

If you just use log4j, by default it looks for a file named "log4j.xml" or 
log4j.properties" in the classpath.  If it finds one of them, then it uses it 
to configure itself (with the proper configurator).

There are schemes for initializing log4j in a web application if you have a 
different name for your file or want it to live in a different place.  There 
are servlets and app context listeners that can be configured to locate the 
file and then use it to configure.

-Mark

> -Original Message-
> From: Schuweiler, Joel J. [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 11, 2005 2:18 PM
> To: 'Log4J Users List'
> Subject: RE: Log4j, websphere, rad, and log4j.xml location
> 
> I would think with the absolute path there would have to be some way 
> to use the proper ../ combination to get yourself to the right 
> directory? Or build off of the assumed root directory? Or am I missing 
> something important?
> 
> -Original Message-
> From: Jan Pernica [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 11, 2005 4:16 PM
> To: Log4J Users List
> Subject: Re: Log4j, websphere, rad, and log4j.xml location
> 
> The absolute path
> 
> Schuweiler, Joel J. wrote:
> 
> >For which of the issues?
> >
> >-Original Message-
> >From: Jan Pernica [mailto:[EMAIL PROTECTED]
> >Sent: Thursday, August 11, 2005 4:06 PM
> >To: Log4J Users List
> >Subject: Re: Log4j, websphere, rad, and log4j.xml location
> >
> >We use the same but you have to specify the JNDI name to load it 
> >correctly or do not provide file name but provide it as a resource 
> >stream
> >
> >Jan
> >
> >Schuweiler, Joel J. wrote:
> >
> >
> >
> >>I am trying to configure log4j using
> >>
> >>PropertyConfigurator.configure("log4j.xml");
> >>
> >>I am however having an issue. I never receive a logging event. When 
> >>I
> look at the websphere log, log4j says it is unable to find log4j.xml. 
> I'm using RAD (IBM's Rappid Application Developer) to write the 
> program that uses the log4j and I'm wondering exactly what I need to 
> feed it for a path to this file. I can not use an absolute path 
> because I will never know what that absolute path is since it will be running 
> in websphere.
> >>
> >>Another issue I'm having is when I import an external jar and then
> upload my war to websphere it can't find any of the log4j stuff.
> >>
> >>I can include exact errors if this will help.
> >>
> >>thanks
> >>
> >>
> >>
> >>Joel Schuweiler
> >>Middleware
> >>[EMAIL PROTECTED]
> >>Tel: 8-7900
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>Příchozí zpráva neobsahuje viry.
> >>Zkontrolováno Antivirovým systémem AVG.
> >>Verze: 7.0.338 / Virová báze: 267.10.6/69 - datum vydání: 11.8.2005
> >>
> >>
> >>
> >>
> >>
> >
> >-
> >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]


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


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



RE: Log4j, websphere, rad, and log4j.xml location

2005-08-11 Thread Schuweiler, Joel J.
Thanks. I think the classpath would make the most sense in case since I'm using 
sockets this would allow me to quickly adjust where they all log to. 

-Original Message-
From: Mark Womack [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 11, 2005 4:27 PM
To: 'Log4J Users List'
Subject: RE: Log4j, websphere, rad, and log4j.xml location

If you just use log4j, by default it looks for a file named "log4j.xml" or
log4j.properties" in the classpath.  If it finds one of them, then it uses
it to configure itself (with the proper configurator).

There are schemes for initializing log4j in a web application if you have a
different name for your file or want it to live in a different place.  There
are servlets and app context listeners that can be configured to locate the
file and then use it to configure.

-Mark

> -Original Message-
> From: Schuweiler, Joel J. [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 11, 2005 2:18 PM
> To: 'Log4J Users List'
> Subject: RE: Log4j, websphere, rad, and log4j.xml location
> 
> I would think with the absolute path there would have to be some way to
> use the proper ../ combination to get yourself to the right directory? Or
> build off of the assumed root directory? Or am I missing something
> important?
> 
> -Original Message-
> From: Jan Pernica [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 11, 2005 4:16 PM
> To: Log4J Users List
> Subject: Re: Log4j, websphere, rad, and log4j.xml location
> 
> The absolute path
> 
> Schuweiler, Joel J. wrote:
> 
> >For which of the issues?
> >
> >-Original Message-
> >From: Jan Pernica [mailto:[EMAIL PROTECTED]
> >Sent: Thursday, August 11, 2005 4:06 PM
> >To: Log4J Users List
> >Subject: Re: Log4j, websphere, rad, and log4j.xml location
> >
> >We use the same but you have to specify the JNDI name to load it
> >correctly or do not provide file name but provide it as a resource stream
> >
> >Jan
> >
> >Schuweiler, Joel J. wrote:
> >
> >
> >
> >>I am trying to configure log4j using
> >>
> >>PropertyConfigurator.configure("log4j.xml");
> >>
> >>I am however having an issue. I never receive a logging event. When I
> look at the websphere log, log4j says it is unable to find log4j.xml. I'm
> using RAD (IBM's Rappid Application Developer) to write the program that
> uses the log4j and I'm wondering exactly what I need to feed it for a path
> to this file. I can not use an absolute path because I will never know
> what that absolute path is since it will be running in websphere.
> >>
> >>Another issue I'm having is when I import an external jar and then
> upload my war to websphere it can't find any of the log4j stuff.
> >>
> >>I can include exact errors if this will help.
> >>
> >>thanks
> >>
> >>
> >>
> >>Joel Schuweiler
> >>Middleware
> >>[EMAIL PROTECTED]
> >>Tel: 8-7900
> >>
> >>
> >>
> >>
> >>
> >>
> >>Příchozí zpráva neobsahuje viry.
> >>Zkontrolováno Antivirovým systémem AVG.
> >>Verze: 7.0.338 / Virová báze: 267.10.6/69 - datum vydání: 11.8.2005
> >>
> >>
> >>
> >>
> >>
> >
> >-
> >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]


-
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: Log4j, websphere, rad, and log4j.xml location

2005-08-11 Thread Mark Womack
If you just use log4j, by default it looks for a file named "log4j.xml" or
log4j.properties" in the classpath.  If it finds one of them, then it uses
it to configure itself (with the proper configurator).

There are schemes for initializing log4j in a web application if you have a
different name for your file or want it to live in a different place.  There
are servlets and app context listeners that can be configured to locate the
file and then use it to configure.

-Mark

> -Original Message-
> From: Schuweiler, Joel J. [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 11, 2005 2:18 PM
> To: 'Log4J Users List'
> Subject: RE: Log4j, websphere, rad, and log4j.xml location
> 
> I would think with the absolute path there would have to be some way to
> use the proper ../ combination to get yourself to the right directory? Or
> build off of the assumed root directory? Or am I missing something
> important?
> 
> -Original Message-
> From: Jan Pernica [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 11, 2005 4:16 PM
> To: Log4J Users List
> Subject: Re: Log4j, websphere, rad, and log4j.xml location
> 
> The absolute path
> 
> Schuweiler, Joel J. wrote:
> 
> >For which of the issues?
> >
> >-Original Message-
> >From: Jan Pernica [mailto:[EMAIL PROTECTED]
> >Sent: Thursday, August 11, 2005 4:06 PM
> >To: Log4J Users List
> >Subject: Re: Log4j, websphere, rad, and log4j.xml location
> >
> >We use the same but you have to specify the JNDI name to load it
> >correctly or do not provide file name but provide it as a resource stream
> >
> >Jan
> >
> >Schuweiler, Joel J. wrote:
> >
> >
> >
> >>I am trying to configure log4j using
> >>
> >>PropertyConfigurator.configure("log4j.xml");
> >>
> >>I am however having an issue. I never receive a logging event. When I
> look at the websphere log, log4j says it is unable to find log4j.xml. I'm
> using RAD (IBM's Rappid Application Developer) to write the program that
> uses the log4j and I'm wondering exactly what I need to feed it for a path
> to this file. I can not use an absolute path because I will never know
> what that absolute path is since it will be running in websphere.
> >>
> >>Another issue I'm having is when I import an external jar and then
> upload my war to websphere it can't find any of the log4j stuff.
> >>
> >>I can include exact errors if this will help.
> >>
> >>thanks
> >>
> >>
> >>
> >>Joel Schuweiler
> >>Middleware
> >>[EMAIL PROTECTED]
> >>Tel: 8-7900
> >>
> >>
> >>
> >>
> >>
> >>
> >>Příchozí zpráva neobsahuje viry.
> >>Zkontrolováno Antivirovým systémem AVG.
> >>Verze: 7.0.338 / Virová báze: 267.10.6/69 - datum vydání: 11.8.2005
> >>
> >>
> >>
> >>
> >>
> >
> >-
> >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]


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



RE: Log4j, websphere, rad, and log4j.xml location

2005-08-11 Thread Schuweiler, Joel J.
Xml. Switched to domconfig and it didn't help any. 

-Original Message-
From: Mark Womack [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 11, 2005 4:23 PM
To: 'Log4J Users List'
Subject: RE: Log4j, websphere, rad, and log4j.xml location

Well, unless you actually have properties in a file with ".xml" for the file
type, you should be using DOMConfigurator.  Is the file in property or xml
format?

-Mark

> -Original Message-
> From: Schuweiler, Joel J. [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 11, 2005 2:11 PM
> To: 'Log4J Users List'
> Subject: RE: Log4j, websphere, rad, and log4j.xml location
> 
> Wow. Nice. I've used it before and it works.
> 
> What should I be using with xml files? :P
> 
> -Original Message-
> From: Mark Womack [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 11, 2005 4:10 PM
> To: 'Log4J Users List'
> Subject: RE: Log4j, websphere, rad, and log4j.xml location
> 
> You sure that is how you are configuring?  PropertyConfigurator cannot
> process xml files.
> 
> -Mark
> 
> > -Original Message-
> > From: Schuweiler, Joel J. [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, August 11, 2005 2:02 PM
> > To: log4j-user@logging.apache.org
> > Subject: Log4j, websphere, rad, and log4j.xml location
> >
> > I am trying to configure log4j using
> >
> > PropertyConfigurator.configure("log4j.xml");
> >
> > I am however having an issue. I never receive a logging event. When I
> look
> > at the websphere log, log4j says it is unable to find log4j.xml. I'm
> using
> > RAD (IBM's Rappid Application Developer) to write the program that uses
> > the log4j and I'm wondering exactly what I need to feed it for a path to
> > this file. I can not use an absolute path because I will never know what
> > that absolute path is since it will be running in websphere.
> >
> > Another issue I'm having is when I import an external jar and then
> upload
> > my war to websphere it can't find any of the log4j stuff.
> >
> > I can include exact errors if this will help.
> >
> > thanks
> >
> >
> >
> > Joel Schuweiler
> > Middleware
> > [EMAIL PROTECTED]
> > Tel: 8-7900
> 
> 
> 
> -
> 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]


-
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: Log4j, websphere, rad, and log4j.xml location

2005-08-11 Thread Mark Womack
Well, unless you actually have properties in a file with ".xml" for the file
type, you should be using DOMConfigurator.  Is the file in property or xml
format?

-Mark

> -Original Message-
> From: Schuweiler, Joel J. [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 11, 2005 2:11 PM
> To: 'Log4J Users List'
> Subject: RE: Log4j, websphere, rad, and log4j.xml location
> 
> Wow. Nice. I've used it before and it works.
> 
> What should I be using with xml files? :P
> 
> -Original Message-
> From: Mark Womack [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 11, 2005 4:10 PM
> To: 'Log4J Users List'
> Subject: RE: Log4j, websphere, rad, and log4j.xml location
> 
> You sure that is how you are configuring?  PropertyConfigurator cannot
> process xml files.
> 
> -Mark
> 
> > -Original Message-
> > From: Schuweiler, Joel J. [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, August 11, 2005 2:02 PM
> > To: log4j-user@logging.apache.org
> > Subject: Log4j, websphere, rad, and log4j.xml location
> >
> > I am trying to configure log4j using
> >
> > PropertyConfigurator.configure("log4j.xml");
> >
> > I am however having an issue. I never receive a logging event. When I
> look
> > at the websphere log, log4j says it is unable to find log4j.xml. I'm
> using
> > RAD (IBM's Rappid Application Developer) to write the program that uses
> > the log4j and I'm wondering exactly what I need to feed it for a path to
> > this file. I can not use an absolute path because I will never know what
> > that absolute path is since it will be running in websphere.
> >
> > Another issue I'm having is when I import an external jar and then
> upload
> > my war to websphere it can't find any of the log4j stuff.
> >
> > I can include exact errors if this will help.
> >
> > thanks
> >
> >
> >
> > Joel Schuweiler
> > Middleware
> > [EMAIL PROTECTED]
> > Tel: 8-7900
> 
> 
> 
> -
> 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]


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



RE: Log4j, websphere, rad, and log4j.xml location

2005-08-11 Thread Schuweiler, Joel J.
I would think with the absolute path there would have to be some way to use the 
proper ../ combination to get yourself to the right directory? Or build off of 
the assumed root directory? Or am I missing something important? 

-Original Message-
From: Jan Pernica [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 11, 2005 4:16 PM
To: Log4J Users List
Subject: Re: Log4j, websphere, rad, and log4j.xml location

The absolute path

Schuweiler, Joel J. wrote:

>For which of the issues? 
>
>-Original Message-
>From: Jan Pernica [mailto:[EMAIL PROTECTED] 
>Sent: Thursday, August 11, 2005 4:06 PM
>To: Log4J Users List
>Subject: Re: Log4j, websphere, rad, and log4j.xml location
>
>We use the same but you have to specify the JNDI name to load it 
>correctly or do not provide file name but provide it as a resource stream
>
>Jan
>
>Schuweiler, Joel J. wrote:
>
>  
>
>>I am trying to configure log4j using 
>>
>>PropertyConfigurator.configure("log4j.xml");
>>
>>I am however having an issue. I never receive a logging event. When I look at 
>>the websphere log, log4j says it is unable to find log4j.xml. I'm using RAD 
>>(IBM's Rappid Application Developer) to write the program that uses the log4j 
>>and I'm wondering exactly what I need to feed it for a path to this file. I 
>>can not use an absolute path because I will never know what that absolute 
>>path is since it will be running in websphere. 
>>
>>Another issue I'm having is when I import an external jar and then upload my 
>>war to websphere it can't find any of the log4j stuff.
>>
>>I can include exact errors if this will help.
>>
>>thanks
>>
>>
>>
>>Joel Schuweiler
>>Middleware
>>[EMAIL PROTECTED]
>>Tel: 8-7900
>>
>>
>> 
>>
>>
>>
>>Příchozí zpráva neobsahuje viry.
>>Zkontrolováno Antivirovým systémem AVG.
>>Verze: 7.0.338 / Virová báze: 267.10.6/69 - datum vydání: 11.8.2005
>>
>> 
>>
>>
>>
>
>-
>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: Log4j, websphere, rad, and log4j.xml location

2005-08-11 Thread Jan Pernica

The absolute path

Schuweiler, Joel J. wrote:

For which of the issues? 


-Original Message-
From: Jan Pernica [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 11, 2005 4:06 PM

To: Log4J Users List
Subject: Re: Log4j, websphere, rad, and log4j.xml location

We use the same but you have to specify the JNDI name to load it 
correctly or do not provide file name but provide it as a resource stream


Jan

Schuweiler, Joel J. wrote:

 

I am trying to configure log4j using 


PropertyConfigurator.configure("log4j.xml");

I am however having an issue. I never receive a logging event. When I look at the websphere log, log4j says it is unable to find log4j.xml. I'm using RAD (IBM's Rappid Application Developer) to write the program that uses the log4j and I'm wondering exactly what I need to feed it for a path to this file. I can not use an absolute path because I will never know what that absolute path is since it will be running in websphere. 


Another issue I'm having is when I import an external jar and then upload my 
war to websphere it can't find any of the log4j stuff.

I can include exact errors if this will help.

thanks



Joel Schuweiler
Middleware
[EMAIL PROTECTED]
Tel: 8-7900






Příchozí zpráva neobsahuje viry.
Zkontrolováno Antivirovým systémem AVG.
Verze: 7.0.338 / Virová báze: 267.10.6/69 - datum vydání: 11.8.2005



   



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




 





RE: Log4j, websphere, rad, and log4j.xml location

2005-08-11 Thread Schuweiler, Joel J.
Wow. Nice. I've used it before and it works.

What should I be using with xml files? :P 

-Original Message-
From: Mark Womack [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 11, 2005 4:10 PM
To: 'Log4J Users List'
Subject: RE: Log4j, websphere, rad, and log4j.xml location

You sure that is how you are configuring?  PropertyConfigurator cannot
process xml files.

-Mark

> -Original Message-
> From: Schuweiler, Joel J. [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 11, 2005 2:02 PM
> To: log4j-user@logging.apache.org
> Subject: Log4j, websphere, rad, and log4j.xml location
> 
> I am trying to configure log4j using
> 
> PropertyConfigurator.configure("log4j.xml");
> 
> I am however having an issue. I never receive a logging event. When I look
> at the websphere log, log4j says it is unable to find log4j.xml. I'm using
> RAD (IBM's Rappid Application Developer) to write the program that uses
> the log4j and I'm wondering exactly what I need to feed it for a path to
> this file. I can not use an absolute path because I will never know what
> that absolute path is since it will be running in websphere.
> 
> Another issue I'm having is when I import an external jar and then upload
> my war to websphere it can't find any of the log4j stuff.
> 
> I can include exact errors if this will help.
> 
> thanks
> 
> 
> 
> Joel Schuweiler
> Middleware
> [EMAIL PROTECTED]
> Tel: 8-7900



-
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: Log4j, websphere, rad, and log4j.xml location

2005-08-11 Thread Mark Womack
You sure that is how you are configuring?  PropertyConfigurator cannot
process xml files.

-Mark

> -Original Message-
> From: Schuweiler, Joel J. [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 11, 2005 2:02 PM
> To: log4j-user@logging.apache.org
> Subject: Log4j, websphere, rad, and log4j.xml location
> 
> I am trying to configure log4j using
> 
> PropertyConfigurator.configure("log4j.xml");
> 
> I am however having an issue. I never receive a logging event. When I look
> at the websphere log, log4j says it is unable to find log4j.xml. I'm using
> RAD (IBM's Rappid Application Developer) to write the program that uses
> the log4j and I'm wondering exactly what I need to feed it for a path to
> this file. I can not use an absolute path because I will never know what
> that absolute path is since it will be running in websphere.
> 
> Another issue I'm having is when I import an external jar and then upload
> my war to websphere it can't find any of the log4j stuff.
> 
> I can include exact errors if this will help.
> 
> thanks
> 
> 
> 
> Joel Schuweiler
> Middleware
> [EMAIL PROTECTED]
> Tel: 8-7900



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



RE: Log4j, websphere, rad, and log4j.xml location

2005-08-11 Thread Schuweiler, Joel J.
For which of the issues? 

-Original Message-
From: Jan Pernica [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 11, 2005 4:06 PM
To: Log4J Users List
Subject: Re: Log4j, websphere, rad, and log4j.xml location

We use the same but you have to specify the JNDI name to load it 
correctly or do not provide file name but provide it as a resource stream

Jan

Schuweiler, Joel J. wrote:

>I am trying to configure log4j using 
>
>PropertyConfigurator.configure("log4j.xml");
>
>I am however having an issue. I never receive a logging event. When I look at 
>the websphere log, log4j says it is unable to find log4j.xml. I'm using RAD 
>(IBM's Rappid Application Developer) to write the program that uses the log4j 
>and I'm wondering exactly what I need to feed it for a path to this file. I 
>can not use an absolute path because I will never know what that absolute path 
>is since it will be running in websphere. 
>
>Another issue I'm having is when I import an external jar and then upload my 
>war to websphere it can't find any of the log4j stuff.
>
>I can include exact errors if this will help.
>
>thanks
>
>
>
>Joel Schuweiler
>Middleware
>[EMAIL PROTECTED]
>Tel: 8-7900
>
>
>  
>
>
>
>Příchozí zpráva neobsahuje viry.
>Zkontrolováno Antivirovým systémem AVG.
>Verze: 7.0.338 / Virová báze: 267.10.6/69 - datum vydání: 11.8.2005
>
>  
>

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



Re: Log4j, websphere, rad, and log4j.xml location

2005-08-11 Thread Jan Pernica
We use the same but you have to specify the JNDI name to load it 
correctly or do not provide file name but provide it as a resource stream


Jan

Schuweiler, Joel J. wrote:

I am trying to configure log4j using 


PropertyConfigurator.configure("log4j.xml");

I am however having an issue. I never receive a logging event. When I look at the websphere log, log4j says it is unable to find log4j.xml. I'm using RAD (IBM's Rappid Application Developer) to write the program that uses the log4j and I'm wondering exactly what I need to feed it for a path to this file. I can not use an absolute path because I will never know what that absolute path is since it will be running in websphere. 


Another issue I'm having is when I import an external jar and then upload my 
war to websphere it can't find any of the log4j stuff.

I can include exact errors if this will help.

thanks



Joel Schuweiler
Middleware
[EMAIL PROTECTED]
Tel: 8-7900


 




Příchozí zpráva neobsahuje viry.
Zkontrolováno Antivirovým systémem AVG.
Verze: 7.0.338 / Virová báze: 267.10.6/69 - datum vydání: 11.8.2005