|
From: Sujatha B. <suj...@td...> - 2007-09-06 09:01:47
|
Hi, I am using the webservice to create a windows service for my java program. I have configured log4j for seeing hte logging for my java file. But i see that my log file is not created at all. I see a wrapper.log file and all my console output appears in the wrapper.log. But i am expecting all the same in my logfile. Does the wrapper override any existing configuration for log4j and can write only inside the configuration file of the wrapper? Is there any work around for this? Thanks Sujie |
|
From: Rodrigo V. <rv...@i4...> - 2007-09-06 12:43:03
|
I have a very similar problem a couple of weeks ago... An the wrapper = works fine.=20 Attach your wrapper.conf and show me how you are initializing your = log4j. If you are loading your log4j.xml from the classpath there are many = possible problems like: log4j doesn't found the log4j.xml in the classpath you have multiples log4j.xml in your classpath and is not loading the = right one etc.. Regards.. Rodrigo G. Vega i411 Argentina rv...@i4... =20 Este mensaje es confidencial. Si usted ha recibido este e-mail por = error, por favor comun=EDquenoslo inmediatamente v=EDa e-mail y tenga la amabilidad = de eliminarlo de su sistema; no deber=E1 copiar el mensaje ni divulgar su contenido a ninguna persona. Muchas gracias. =20 This message is confidential. If you have received it by mistake please = let us know by e-mail immediately and delete it from your system; you should = also not copy the message nor disclose its contents to anyone. Many thanks. -----Original Message----- From: wra...@li... on behalf of Sujatha Bharathan Sent: Thu 06/09/2007 6:01 To: wra...@li... Subject: [Wrapper-user] Log4j with the wrapper =20 Hi, =20 I am using the webservice to create a windows service for my java = program. I have configured log4j for seeing hte logging for my java file. =20 But i see that my log file is not created at all. I see a wrapper.log = file and all my console output appears in the wrapper.log. But i am expecting = all the same in my logfile. =20 Does the wrapper override any existing configuration for log4j and can = write only inside the configuration file of the wrapper? =20 Is there any work around for this? =20 Thanks Sujie |
|
From: Sujatha B. <suj...@td...> - 2007-09-06 13:02:36
Attachments:
log4j.properties
wrapper.conf
|
Please find wrapper.conf and log4j.properties file attached.
=20
This is how i am initializing in my java program.
static Logger logger =3D Logger.getRootLogger();
=20
----- Original Message -----
From: wra...@li... on behalf of Rodrigo Vega=
=20
Sent: Thu, 6/9/2007 13:44
To: wra...@li...
Subject: Re: [Wrapper-user] Log4j with the wrapper=20
=20
=20
I have a very similar problem a couple of weeks ago... An the wrapper works
fine.=20
Attach your wrapper.conf and show me how you are initializing your log4j. I=
f
you are loading your log4j.xml from the classpath there are many possible
problems like:
log4j doesn't found the log4j.xml in the classpath
you have multiples log4j.xml in your classpath and is not loading the right
one
etc..
Regards..
Rodrigo G. Vega
i411 Argentina
rv...@i4...
Este mensaje es confidencial. Si usted ha recibido este e-mail por error, p=
or
favor comun=EDquenoslo inmediatamente v=EDa e-mail y tenga la amabilidad de
eliminarlo de su sistema; no deber=E1 copiar el mensaje ni divulgar su
contenido a ninguna persona. Muchas gracias.
This message is confidential. If you have received it by mistake please let
us know by e-mail immediately and delete it from your system; you should al=
so
not copy the message nor disclose its contents to anyone. Many thanks.
-----Original Message-----
From: wra...@li... on behalf of Sujatha
Bharathan
Sent: Thu 06/09/2007 6:01
To: wra...@li...
Subject: [Wrapper-user] Log4j with the wrapper
Hi,
I am using the webservice to create a windows service for my java program. =
I
have configured log4j for seeing hte logging for my java file.
But i see that my log file is not created at all. I see a wrapper.log file
and all my console output appears in the wrapper.log. But i am expecting al=
l
the same in my logfile.
Does the wrapper override any existing configuration for log4j and can writ=
e
only inside the configuration file of the wrapper?
Is there any work around for this?
Thanks
Sujie |
|
From: Rodrigo V. <rv...@i4...> - 2007-09-06 13:38:58
|
Can you try changing that:
# Java Classpath (include wrapper.jar) Add class path elements as
# needed starting from 1
wrapper.java.classpath.1=3DC:\Program
Files\sb\3rdParty\wrapper-windows\lib\wrapper.jar
wrapper.java.classpath.2=3DC:\Program =
Files\Java\jdk1.5.0_12\lib\tools.jar
wrapper.java.classpath.3=3DC:\Program Files\sb\lib\jar\sb_Bus_Core.jar
wrapper.java.classpath.4=3DC:\Program
Files\sb\lib\jar\sb_sgPlugin_FileLogger.jar
wrapper.java.classpath.5=3DC:\Program
Files\sb\lib\jar\sb_sgPlugin_JdbcLogger.jar
wrapper.java.classpath.6=3DC:\Program
Files\sb\lib\jar\sb_sgPlugin_VitalSuite.jar
wrapper.java.classpath.7=3DC:\Program
Files\sb\lib\jar\sb_sgPlugin_VoyenceControl.jar
wrapper.java.classpath.8=3DC:\Program Files\sb\lib\jar\sb_voyenceApi.jar
wrapper.java.classpath.9=3DC:\Program Files\sb\3rdParty\jar\log4j.jar
wrapper.java.classpath.10=3DC:\Program Files\sb\lib\jar\sb_util.jar
wrapper.java.classpath.11=3DC:\Program =
Files\sb\lib\jar\sb_sgFilter_String.jar
wrapper.java.classpath.12=3DC:\Program Files\sb\cfg\log4j.properties
to that:
wrapper.java.classpath.1=3DC:\Program
Files\sb\3rdParty\wrapper-windows\lib\wrapper.jar
wrapper.java.classpath.2=3DC:\Program =
Files\Java\jdk1.5.0_12\lib\tools.jar
wrapper.java.classpath.3=3DC:\Program Files\sb\lib\jar\*.jar
wrapper.java.classpath.4=3DC:\Program Files\sb\3rdParty\jar\log4j.jar
wrapper.java.classpath.5=3DC:\Program Files\sb\cfg\
Pay attention to the last line... where you include the log4j =
configuration.
I remember i had a couple of problems because if you specify a file that =
is
not a jar then the application doesn't work, but if you specify a =
directory
all the files in the directory will be in the classpath.
And try to use wild cards to simplify your configuration file.
BTW... My application works in the same way than yours... with a thread. =
So
it is possible.
Regards!
Rodrigo G. Vega
i411 Argentina
rv...@i4...
=20
Este mensaje es confidencial. Si usted ha recibido este e-mail por =
error, por
favor comun=EDquenoslo inmediatamente v=EDa e-mail y tenga la amabilidad =
de
eliminarlo de su sistema; no deber=E1 copiar el mensaje ni divulgar su
contenido a ninguna persona. Muchas gracias.
=20
This message is confidential. If you have received it by mistake please =
let
us know by e-mail immediately and delete it from your system; you should =
also
not copy the message nor disclose its contents to anyone. Many thanks.
-----Original Message-----
From: wra...@li... on behalf of Sujatha
Bharathan
Sent: Thu 06/09/2007 10:02
To: wra...@li...
Subject: Re: [Wrapper-user] Log4j with the wrapper
=20
Please find wrapper.conf and log4j.properties file attached.
=20
This is how i am initializing in my java program.
static Logger logger =3D Logger.getRootLogger();
=20
----- Original Message -----
From: wra...@li... on behalf of Rodrigo =
Vega=20
Sent: Thu, 6/9/2007 13:44
To: wra...@li...
Subject: Re: [Wrapper-user] Log4j with the wrapper=20
=20
=20
I have a very similar problem a couple of weeks ago... An the wrapper =
works
fine.=20
Attach your wrapper.conf and show me how you are initializing your =
log4j. If
you are loading your log4j.xml from the classpath there are many =
possible
problems like:
log4j doesn't found the log4j.xml in the classpath
you have multiples log4j.xml in your classpath and is not loading the =
right
one
etc..
Regards..
Rodrigo G. Vega
i411 Argentina
rv...@i4...
Este mensaje es confidencial. Si usted ha recibido este e-mail por =
error, por
favor comun=EDquenoslo inmediatamente v=EDa e-mail y tenga la amabilidad =
de
eliminarlo de su sistema; no deber=E1 copiar el mensaje ni divulgar su
contenido a ninguna persona. Muchas gracias.
This message is confidential. If you have received it by mistake please =
let
us know by e-mail immediately and delete it from your system; you should =
also
not copy the message nor disclose its contents to anyone. Many thanks.
-----Original Message-----
From: wra...@li... on behalf of Sujatha
Bharathan
Sent: Thu 06/09/2007 6:01
To: wra...@li...
Subject: [Wrapper-user] Log4j with the wrapper
Hi,
I am using the webservice to create a windows service for my java =
program. I
have configured log4j for seeing hte logging for my java file.
But i see that my log file is not created at all. I see a wrapper.log =
file
and all my console output appears in the wrapper.log. But i am expecting =
all
the same in my logfile.
Does the wrapper override any existing configuration for log4j and can =
write
only inside the configuration file of the wrapper?
Is there any work around for this?
Thanks
Sujie
|
|
From: Sujatha B. <suj...@td...> - 2007-09-06 13:51:06
|
I have simplified my config file and the last line i tried the path till cf=
g .
But stil the log file is not getting generated.=20
=20
Any other reason you could think of?
=20
----- Original Message -----
From: wra...@li... on behalf of Rodrigo Vega=
=20
Sent: Thu, 6/9/2007 14:39
To: wra...@li...
Subject: Re: [Wrapper-user] Log4j with the wrapper=20
=20
=20
Can you try changing that:
# Java Classpath (include wrapper.jar) Add class path elements as
# needed starting from 1
wrapper.java.classpath.1=3DC:\Program
Files\sb\3rdParty\wrapper-windows\lib\wrapper.jar
wrapper.java.classpath.2=3DC:\Program Files\Java\jdk1.5.0_12\lib\tools.jar
wrapper.java.classpath.3=3DC:\Program Files\sb\lib\jar\sb_Bus_Core.jar
wrapper.java.classpath.4=3DC:\Program
Files\sb\lib\jar\sb_sgPlugin_FileLogger.jar
wrapper.java.classpath.5=3DC:\Program
Files\sb\lib\jar\sb_sgPlugin_JdbcLogger.jar
wrapper.java.classpath.6=3DC:\Program
Files\sb\lib\jar\sb_sgPlugin_VitalSuite.jar
wrapper.java.classpath.7=3DC:\Program
Files\sb\lib\jar\sb_sgPlugin_VoyenceControl.jar
wrapper.java.classpath.8=3DC:\Program Files\sb\lib\jar\sb_voyenceApi.jar
wrapper.java.classpath.9=3DC:\Program Files\sb\3rdParty\jar\log4j.jar
wrapper.java.classpath.10=3DC:\Program Files\sb\lib\jar\sb_util.jar
wrapper.java.classpath.11=3DC:\Program Files\sb\lib\jar\sb_sgFilter_String.=
jar
wrapper.java.classpath.12=3DC:\Program Files\sb\cfg\log4j.properties
to that:
wrapper.java.classpath.1=3DC:\Program
Files\sb\3rdParty\wrapper-windows\lib\wrapper.jar
wrapper.java.classpath.2=3DC:\Program Files\Java\jdk1.5.0_12\lib\tools.jar
wrapper.java.classpath.3=3DC:\Program Files\sb\lib\jar\*.jar
wrapper.java.classpath.4=3DC:\Program Files\sb\3rdParty\jar\log4j.jar
wrapper.java.classpath.5=3DC:\Program Files\sb\cfg\
Pay attention to the last line... where you include the log4j configuration=
.
I remember i had a couple of problems because if you specify a file that is
not a jar then the application doesn't work, but if you specify a directory
all the files in the directory will be in the classpath.
And try to use wild cards to simplify your configuration file.
BTW... My application works in the same way than yours... with a thread. So
it is possible.
Regards!
Rodrigo G. Vega
i411 Argentina
rv...@i4...
Este mensaje es confidencial. Si usted ha recibido este e-mail por error, p=
or
favor comun=EDquenoslo inmediatamente v=EDa e-mail y tenga la amabilidad de
eliminarlo de su sistema; no deber=E1 copiar el mensaje ni divulgar su
contenido a ninguna persona. Muchas gracias.
This message is confidential. If you have received it by mistake please let
us know by e-mail immediately and delete it from your system; you should al=
so
not copy the message nor disclose its contents to anyone. Many thanks.
-----Original Message-----
From: wra...@li... on behalf of Sujatha
Bharathan
Sent: Thu 06/09/2007 10:02
To: wra...@li...
Subject: Re: [Wrapper-user] Log4j with the wrapper
Please find wrapper.conf and log4j.properties file attached.
This is how i am initializing in my java program.
static Logger logger =3D Logger.getRootLogger();
----- Original Message -----
From: wra...@li... on behalf of Rodrigo Vega=
=20
Sent: Thu, 6/9/2007 13:44
To: wra...@li...
Subject: Re: [Wrapper-user] Log4j with the wrapper=20
I have a very similar problem a couple of weeks ago... An the wrapper works
fine.=20
Attach your wrapper.conf and show me how you are initializing your log4j. I=
f
you are loading your log4j.xml from the classpath there are many possible
problems like:
log4j doesn't found the log4j.xml in the classpath
you have multiples log4j.xml in your classpath and is not loading the right
one
etc..
Regards..
Rodrigo G. Vega
i411 Argentina
rv...@i4...
Este mensaje es confidencial. Si usted ha recibido este e-mail por error, p=
or
favor comun=EDquenoslo inmediatamente v=EDa e-mail y tenga la amabilidad de
eliminarlo de su sistema; no deber=E1 copiar el mensaje ni divulgar su
contenido a ninguna persona. Muchas gracias.
This message is confidential. If you have received it by mistake please let
us know by e-mail immediately and delete it from your system; you should al=
so
not copy the message nor disclose its contents to anyone. Many thanks.
-----Original Message-----
From: wra...@li... on behalf of Sujatha
Bharathan
Sent: Thu 06/09/2007 6:01
To: wra...@li...
Subject: [Wrapper-user] Log4j with the wrapper
Hi,
I am using the webservice to create a windows service for my java program. =
I
have configured log4j for seeing hte logging for my java file.
But i see that my log file is not created at all. I see a wrapper.log file
and all my console output appears in the wrapper.log. But i am expecting al=
l
the same in my logfile.
Does the wrapper override any existing configuration for log4j and can writ=
e
only inside the configuration file of the wrapper?
Is there any work around for this?
Thanks
Sujie
|
|
From: Rodrigo V. <rv...@i4...> - 2007-09-06 13:56:46
|
I see you are setting the parameter -Dlog4j.debug... so can you see in =
the
wrapper log file if your appenders, and categories are created?
Rodrigo G. Vega
i411 Argentina
rv...@i4...
=20
Este mensaje es confidencial. Si usted ha recibido este e-mail por =
error, por
favor comun=EDquenoslo inmediatamente v=EDa e-mail y tenga la amabilidad =
de
eliminarlo de su sistema; no deber=E1 copiar el mensaje ni divulgar su
contenido a ninguna persona. Muchas gracias.
=20
This message is confidential. If you have received it by mistake please =
let
us know by e-mail immediately and delete it from your system; you should =
also
not copy the message nor disclose its contents to anyone. Many thanks.
-----Original Message-----
From: wra...@li... on behalf of Sujatha
Bharathan
Sent: Thu 06/09/2007 10:49
To: wra...@li...
Subject: Re: [Wrapper-user] Log4j with the wrapper
=20
I have simplified my config file and the last line i tried the path till =
cfg
.
But stil the log file is not getting generated.=20
=20
Any other reason you could think of?
=20
----- Original Message -----
From: wra...@li... on behalf of Rodrigo =
Vega=20
Sent: Thu, 6/9/2007 14:39
To: wra...@li...
Subject: Re: [Wrapper-user] Log4j with the wrapper=20
=20
=20
Can you try changing that:
# Java Classpath (include wrapper.jar) Add class path elements as
# needed starting from 1
wrapper.java.classpath.1=3DC:\Program
Files\sb\3rdParty\wrapper-windows\lib\wrapper.jar
wrapper.java.classpath.2=3DC:\Program =
Files\Java\jdk1.5.0_12\lib\tools.jar
wrapper.java.classpath.3=3DC:\Program Files\sb\lib\jar\sb_Bus_Core.jar
wrapper.java.classpath.4=3DC:\Program
Files\sb\lib\jar\sb_sgPlugin_FileLogger.jar
wrapper.java.classpath.5=3DC:\Program
Files\sb\lib\jar\sb_sgPlugin_JdbcLogger.jar
wrapper.java.classpath.6=3DC:\Program
Files\sb\lib\jar\sb_sgPlugin_VitalSuite.jar
wrapper.java.classpath.7=3DC:\Program
Files\sb\lib\jar\sb_sgPlugin_VoyenceControl.jar
wrapper.java.classpath.8=3DC:\Program Files\sb\lib\jar\sb_voyenceApi.jar
wrapper.java.classpath.9=3DC:\Program Files\sb\3rdParty\jar\log4j.jar
wrapper.java.classpath.10=3DC:\Program Files\sb\lib\jar\sb_util.jar
wrapper.java.classpath.11=3DC:\Program =
Files\sb\lib\jar\sb_sgFilter_String.jar
wrapper.java.classpath.12=3DC:\Program Files\sb\cfg\log4j.properties
to that:
wrapper.java.classpath.1=3DC:\Program
Files\sb\3rdParty\wrapper-windows\lib\wrapper.jar
wrapper.java.classpath.2=3DC:\Program =
Files\Java\jdk1.5.0_12\lib\tools.jar
wrapper.java.classpath.3=3DC:\Program Files\sb\lib\jar\*.jar
wrapper.java.classpath.4=3DC:\Program Files\sb\3rdParty\jar\log4j.jar
wrapper.java.classpath.5=3DC:\Program Files\sb\cfg\
Pay attention to the last line... where you include the log4j =
configuration.
I remember i had a couple of problems because if you specify a file that =
is
not a jar then the application doesn't work, but if you specify a =
directory
all the files in the directory will be in the classpath.
And try to use wild cards to simplify your configuration file.
BTW... My application works in the same way than yours... with a thread. =
So
it is possible.
Regards!
Rodrigo G. Vega
i411 Argentina
rv...@i4...
Este mensaje es confidencial. Si usted ha recibido este e-mail por =
error, por
favor comun=EDquenoslo inmediatamente v=EDa e-mail y tenga la amabilidad =
de
eliminarlo de su sistema; no deber=E1 copiar el mensaje ni divulgar su
contenido a ninguna persona. Muchas gracias.
This message is confidential. If you have received it by mistake please =
let
us know by e-mail immediately and delete it from your system; you should =
also
not copy the message nor disclose its contents to anyone. Many thanks.
-----Original Message-----
From: wra...@li... on behalf of Sujatha
Bharathan
Sent: Thu 06/09/2007 10:02
To: wra...@li...
Subject: Re: [Wrapper-user] Log4j with the wrapper
Please find wrapper.conf and log4j.properties file attached.
This is how i am initializing in my java program.
static Logger logger =3D Logger.getRootLogger();
----- Original Message -----
From: wra...@li... on behalf of Rodrigo =
Vega=20
Sent: Thu, 6/9/2007 13:44
To: wra...@li...
Subject: Re: [Wrapper-user] Log4j with the wrapper=20
I have a very similar problem a couple of weeks ago... An the wrapper =
works
fine.=20
Attach your wrapper.conf and show me how you are initializing your =
log4j. If
you are loading your log4j.xml from the classpath there are many =
possible
problems like:
log4j doesn't found the log4j.xml in the classpath
you have multiples log4j.xml in your classpath and is not loading the =
right
one
etc..
Regards..
Rodrigo G. Vega
i411 Argentina
rv...@i4...
Este mensaje es confidencial. Si usted ha recibido este e-mail por =
error, por
favor comun=EDquenoslo inmediatamente v=EDa e-mail y tenga la amabilidad =
de
eliminarlo de su sistema; no deber=E1 copiar el mensaje ni divulgar su
contenido a ninguna persona. Muchas gracias.
This message is confidential. If you have received it by mistake please =
let
us know by e-mail immediately and delete it from your system; you should =
also
not copy the message nor disclose its contents to anyone. Many thanks.
-----Original Message-----
From: wra...@li... on behalf of Sujatha
Bharathan
Sent: Thu 06/09/2007 6:01
To: wra...@li...
Subject: [Wrapper-user] Log4j with the wrapper
Hi,
I am using the webservice to create a windows service for my java =
program. I
have configured log4j for seeing hte logging for my java file.
But i see that my log file is not created at all. I see a wrapper.log =
file
and all my console output appears in the wrapper.log. But i am expecting =
all
the same in my logfile.
Does the wrapper override any existing configuration for log4j and can =
write
only inside the configuration file of the wrapper?
Is there any work around for this?
Thanks
Sujie
-------------------------------------------------------------------------=
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Wrapper-user mailing list
Wra...@li...
https://lists.sourceforge.net/lists/listinfo/wrapper-user
|
|
From: Sujatha B. <suj...@td...> - 2007-09-06 14:15:42
|
yes i see all the appenders and the message which i had given in my java fi=
le.
I understand that console output is working fine..but the problem is writin=
g to a file..dont know why it is not working!=20
=20
----- Original Message -----
From: wra...@li... on behalf of Rodrigo Vega=
=20
Sent: Thu, 6/9/2007 14:57
To: wra...@li...
Subject: Re: [Wrapper-user] Log4j with the wrapper=20
=20
=20
I see you are setting the parameter -Dlog4j.debug... so can you see in the
wrapper log file if your appenders, and categories are created?
Rodrigo G. Vega
i411 Argentina
rv...@i4...
Este mensaje es confidencial. Si usted ha recibido este e-mail por error, p=
or
favor comun=EDquenoslo inmediatamente v=EDa e-mail y tenga la amabilidad de
eliminarlo de su sistema; no deber=E1 copiar el mensaje ni divulgar su
contenido a ninguna persona. Muchas gracias.
This message is confidential. If you have received it by mistake please let
us know by e-mail immediately and delete it from your system; you should al=
so
not copy the message nor disclose its contents to anyone. Many thanks.
-----Original Message-----
From: wra...@li... on behalf of Sujatha
Bharathan
Sent: Thu 06/09/2007 10:49
To: wra...@li...
Subject: Re: [Wrapper-user] Log4j with the wrapper
I have simplified my config file and the last line i tried the path till cf=
g
.
But stil the log file is not getting generated.=20
Any other reason you could think of?
----- Original Message -----
From: wra...@li... on behalf of Rodrigo Vega=
=20
Sent: Thu, 6/9/2007 14:39
To: wra...@li...
Subject: Re: [Wrapper-user] Log4j with the wrapper=20
Can you try changing that:
# Java Classpath (include wrapper.jar) Add class path elements as
# needed starting from 1
wrapper.java.classpath.1=3DC:\Program
Files\sb\3rdParty\wrapper-windows\lib\wrapper.jar
wrapper.java.classpath.2=3DC:\Program Files\Java\jdk1.5.0_12\lib\tools.jar
wrapper.java.classpath.3=3DC:\Program Files\sb\lib\jar\sb_Bus_Core.jar
wrapper.java.classpath.4=3DC:\Program
Files\sb\lib\jar\sb_sgPlugin_FileLogger.jar
wrapper.java.classpath.5=3DC:\Program
Files\sb\lib\jar\sb_sgPlugin_JdbcLogger.jar
wrapper.java.classpath.6=3DC:\Program
Files\sb\lib\jar\sb_sgPlugin_VitalSuite.jar
wrapper.java.classpath.7=3DC:\Program
Files\sb\lib\jar\sb_sgPlugin_VoyenceControl.jar
wrapper.java.classpath.8=3DC:\Program Files\sb\lib\jar\sb_voyenceApi.jar
wrapper.java.classpath.9=3DC:\Program Files\sb\3rdParty\jar\log4j.jar
wrapper.java.classpath.10=3DC:\Program Files\sb\lib\jar\sb_util.jar
wrapper.java.classpath.11=3DC:\Program Files\sb\lib\jar\sb_sgFilter_String.=
jar
wrapper.java.classpath.12=3DC:\Program Files\sb\cfg\log4j.properties
to that:
wrapper.java.classpath.1=3DC:\Program
Files\sb\3rdParty\wrapper-windows\lib\wrapper.jar
wrapper.java.classpath.2=3DC:\Program Files\Java\jdk1.5.0_12\lib\tools.jar
wrapper.java.classpath.3=3DC:\Program Files\sb\lib\jar\*.jar
wrapper.java.classpath.4=3DC:\Program Files\sb\3rdParty\jar\log4j.jar
wrapper.java.classpath.5=3DC:\Program Files\sb\cfg\
Pay attention to the last line... where you include the log4j configuration=
.
I remember i had a couple of problems because if you specify a file that is
not a jar then the application doesn't work, but if you specify a directory
all the files in the directory will be in the classpath.
And try to use wild cards to simplify your configuration file.
BTW... My application works in the same way than yours... with a thread. So
it is possible.
Regards!
Rodrigo G. Vega
i411 Argentina
rv...@i4...
Este mensaje es confidencial. Si usted ha recibido este e-mail por error, p=
or
favor comun=EDquenoslo inmediatamente v=EDa e-mail y tenga la amabilidad de
eliminarlo de su sistema; no deber=E1 copiar el mensaje ni divulgar su
contenido a ninguna persona. Muchas gracias.
This message is confidential. If you have received it by mistake please let
us know by e-mail immediately and delete it from your system; you should al=
so
not copy the message nor disclose its contents to anyone. Many thanks.
-----Original Message-----
From: wra...@li... on behalf of Sujatha
Bharathan
Sent: Thu 06/09/2007 10:02
To: wra...@li...
Subject: Re: [Wrapper-user] Log4j with the wrapper
Please find wrapper.conf and log4j.properties file attached.
This is how i am initializing in my java program.
static Logger logger =3D Logger.getRootLogger();
----- Original Message -----
From: wra...@li... on behalf of Rodrigo Vega=
=20
Sent: Thu, 6/9/2007 13:44
To: wra...@li...
Subject: Re: [Wrapper-user] Log4j with the wrapper=20
I have a very similar problem a couple of weeks ago... An the wrapper works
fine.=20
Attach your wrapper.conf and show me how you are initializing your log4j. I=
f
you are loading your log4j.xml from the classpath there are many possible
problems like:
log4j doesn't found the log4j.xml in the classpath
you have multiples log4j.xml in your classpath and is not loading the right
one
etc..
Regards..
Rodrigo G. Vega
i411 Argentina
rv...@i4...
Este mensaje es confidencial. Si usted ha recibido este e-mail por error, p=
or
favor comun=EDquenoslo inmediatamente v=EDa e-mail y tenga la amabilidad de
eliminarlo de su sistema; no deber=E1 copiar el mensaje ni divulgar su
contenido a ninguna persona. Muchas gracias.
This message is confidential. If you have received it by mistake please let
us know by e-mail immediately and delete it from your system; you should al=
so
not copy the message nor disclose its contents to anyone. Many thanks.
-----Original Message-----
From: wra...@li... on behalf of Sujatha
Bharathan
Sent: Thu 06/09/2007 6:01
To: wra...@li...
Subject: [Wrapper-user] Log4j with the wrapper
Hi,
I am using the webservice to create a windows service for my java program. =
I
have configured log4j for seeing hte logging for my java file.
But i see that my log file is not created at all. I see a wrapper.log file
and all my console output appears in the wrapper.log. But i am expecting al=
l
the same in my logfile.
Does the wrapper override any existing configuration for log4j and can writ=
e
only inside the configuration file of the wrapper?
Is there any work around for this?
Thanks
Sujie
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Wrapper-user mailing list
Wra...@li...
https://lists.sourceforge.net/lists/listinfo/wrapper-user
|