|
From: Doug T. <dou...@be...> - 2006-01-31 12:30:42
|
Leif,
Yes, my log4j.xml is in the same folder as the wrapper.exe. I know the=20
-Dlog4j.configuration=3Dlog4j.xml is correct b/c if I try to run my
program without the wrapper, it runs just fine.
Here is the command I use to run my program:
Java -Dlog4j.configuration=3Dlog4j.xml -Dlog4j.debug=3Dtrue=20
-Dconnection.properties=3Dtest.connection.properties =
-classpath=3D[insert
all jars that I have included in the wrapper.conf file] -Xmx256m
bf.cbm.util.shecduler.SchedulerManager
I actually have a .bat file that runs the command.
Also, while trying to figure out this log4j problem, I have encountered
a new error. Please see attachment for this new error.
Thanks for the help,
Doug Tanner
-----Original Message-----
From: wra...@li...
[mailto:wra...@li...] On Behalf Of Leif
Mortenson
Sent: Monday, January 30, 2006 9:35 PM
To: wra...@li...
Subject: Re: [Wrapper-user] Log4j problem.
Doug,
I 'm not a bit log4j user myself. I had to read over the log to=20
even see what
your problem is. I assume it is the following two lines?
INFO | jvm 1 | 2006/01/30 08:42:25 | log4j:WARN No appenders could=20
be found for logger (bf.cbm.util.io.Loader).
INFO | jvm 1 | 2006/01/30 08:42:25 | log4j:WARN Please initialize=20
the log4j system properly.
This is most likely because of a log4j configuration problem. Ie=20
the configuration
is invalid or more likely, the config file is not being found. Log4j=20
can locate its
configuration on the classpath or in your case by specifying a specific=20
log file
using a system property.
I assume that the -Dlog4j.configuration=3Dlog4j.xml syntax is=20
correct. This will be
looking for a file ./log4j.xml in the same directory as your=20
wrapper.exe. Is that where
it is located? Remember that all relative paths are relative to the=20
location of the
wrapper.exe.
Cheers,
Leif
Doug Tanner wrote:
>
> I have read the different threads dealing with Log4j problems, but=20
> none of them seem to have posted the fix/conclusion to the problem.
>
> =20
>
> Here is my wrapper.log file:
>
<snip log file>
>
> =20
> Can anyone tell me if they see a problem with this setup? I cannot=20
> seem to get the wrapper to use the log4j.xml file so that I can=20
> monitor the output of the java program that it is running.
>
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D103432&bid=3D230486&dat=3D=
121642
_______________________________________________
Wrapper-user mailing list
Wra...@li...
https://lists.sourceforge.net/lists/listinfo/wrapper-user
*************************************************************************=
***************
BENEFITFOCUS.COM CONFIDENTIALITY NOTICE: This electronic message is =
intended only for the individual or entity to which it is addressed and =
may contain information that is confidential and protected by law. =
Unauthorized review, use, disclosure, or dissemination of this =
communication or its contents in any way is prohibited and may be =
unlawful. If you are not the intended recipient or a person responsible =
for delivering this message to an intended recipient, please notify the =
original sender immediately by e-mail or telephone, return the original =
message to the original sender or to bfp...@be..., and =
destroy all copies or derivations of the original message. Thank you. =
(BFeComNote Rev. 08/01/2005)
*************************************************************************=
**************
|