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