You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(5) |
Oct
(13) |
Nov
(16) |
Dec
(29) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(38) |
Feb
(51) |
Mar
(51) |
Apr
(115) |
May
(82) |
Jun
(30) |
Jul
(50) |
Aug
(68) |
Sep
(57) |
Oct
(160) |
Nov
(80) |
Dec
(78) |
| 2004 |
Jan
(71) |
Feb
(75) |
Mar
(108) |
Apr
(87) |
May
(79) |
Jun
(70) |
Jul
(69) |
Aug
(39) |
Sep
(52) |
Oct
(47) |
Nov
(50) |
Dec
(32) |
| 2005 |
Jan
(22) |
Feb
(122) |
Mar
(46) |
Apr
(76) |
May
(31) |
Jun
(51) |
Jul
(61) |
Aug
(70) |
Sep
(37) |
Oct
(46) |
Nov
(57) |
Dec
(83) |
| 2006 |
Jan
(55) |
Feb
(81) |
Mar
(51) |
Apr
(67) |
May
(77) |
Jun
(43) |
Jul
(106) |
Aug
(64) |
Sep
(47) |
Oct
(64) |
Nov
(60) |
Dec
(12) |
| 2007 |
Jan
(50) |
Feb
(93) |
Mar
(49) |
Apr
(56) |
May
(40) |
Jun
(63) |
Jul
(40) |
Aug
(47) |
Sep
(54) |
Oct
(37) |
Nov
(54) |
Dec
(37) |
| 2008 |
Jan
(35) |
Feb
(39) |
Mar
(26) |
Apr
(14) |
May
(23) |
Jun
(51) |
Jul
(43) |
Aug
(26) |
Sep
(29) |
Oct
(31) |
Nov
(24) |
Dec
(16) |
| 2009 |
Jan
(21) |
Feb
(30) |
Mar
(74) |
Apr
(26) |
May
(26) |
Jun
(43) |
Jul
(23) |
Aug
(23) |
Sep
(15) |
Oct
(27) |
Nov
(37) |
Dec
(10) |
| 2010 |
Jan
(16) |
Feb
(28) |
Mar
(16) |
Apr
(45) |
May
(8) |
Jun
(68) |
Jul
(45) |
Aug
(44) |
Sep
(51) |
Oct
(7) |
Nov
(20) |
Dec
(21) |
| 2011 |
Jan
(14) |
Feb
(17) |
Mar
(7) |
Apr
(7) |
May
(48) |
Jun
(23) |
Jul
(5) |
Aug
(33) |
Sep
(22) |
Oct
(14) |
Nov
(14) |
Dec
(5) |
| 2012 |
Jan
|
Feb
(10) |
Mar
(12) |
Apr
(51) |
May
(10) |
Jun
(8) |
Jul
(14) |
Aug
(22) |
Sep
(9) |
Oct
(24) |
Nov
(14) |
Dec
(13) |
| 2013 |
Jan
(12) |
Feb
(4) |
Mar
(14) |
Apr
(19) |
May
(2) |
Jun
(5) |
Jul
(13) |
Aug
(10) |
Sep
(4) |
Oct
(11) |
Nov
(13) |
Dec
(2) |
| 2014 |
Jan
(3) |
Feb
(14) |
Mar
(5) |
Apr
(10) |
May
(10) |
Jun
(11) |
Jul
(10) |
Aug
(3) |
Sep
(13) |
Oct
(22) |
Nov
(14) |
Dec
(32) |
| 2015 |
Jan
(8) |
Feb
(2) |
Mar
(17) |
Apr
(1) |
May
(24) |
Jun
|
Jul
(4) |
Aug
|
Sep
(9) |
Oct
(9) |
Nov
(5) |
Dec
(2) |
| 2016 |
Jan
(8) |
Feb
(6) |
Mar
(6) |
Apr
(9) |
May
(3) |
Jun
(2) |
Jul
(7) |
Aug
(6) |
Sep
|
Oct
|
Nov
(1) |
Dec
(6) |
| 2017 |
Jan
(9) |
Feb
(8) |
Mar
(6) |
Apr
|
May
|
Jun
(3) |
Jul
(13) |
Aug
(10) |
Sep
(8) |
Oct
|
Nov
(6) |
Dec
|
| 2018 |
Jan
|
Feb
(5) |
Mar
(7) |
Apr
(2) |
May
|
Jun
|
Jul
(3) |
Aug
(2) |
Sep
(9) |
Oct
(1) |
Nov
(1) |
Dec
(1) |
| 2019 |
Jan
(9) |
Feb
|
Mar
|
Apr
(10) |
May
(3) |
Jun
|
Jul
(7) |
Aug
(1) |
Sep
|
Oct
(2) |
Nov
|
Dec
|
| 2020 |
Jan
(1) |
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2021 |
Jan
(1) |
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
(3) |
| 2022 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2023 |
Jan
(3) |
Feb
|
Mar
(1) |
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2024 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
(1) |
Jun
(1) |
Jul
(1) |
Aug
|
Sep
(1) |
Oct
|
Nov
(1) |
Dec
|
| 2025 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
(1) |
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
| 2026 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Sujatha B. <suj...@td...> - 2007-09-06 08:33:28
|
Hi,
=20
I tried that..but still the java is not returning and the wrapper is givin =
a message saying=20
that unable to start the service after trying 5 times.
=20
How do i handle this? Is this something to be fixed with wrapper or with th=
e java?
My program will be running as a background thread..and is not suppose to re=
turn until you execute stop on the service.
=20
Please guide me
=20
Thanks
Sujie=20
=20
----- Original Message -----
From: wra...@li... on behalf of Rodrigo Vega=
=20
Sent: Wed, 5/9/2007 18:17
To: wra...@li...
Subject: Re: [Wrapper-user] Help regarding starting a service=20
=20
=20
I think your are making a main method, and this method call a thread. If th=
is
is your case you must do something like
public static void main(String args[]){
YourThread t =3D new YoruThread();
t.start();
t.join();
}
In that way your java program will not day until the thread die.
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: Wed 05/09/2007 12:28
To: wra...@li...
Subject: [Wrapper-user] Help regarding starting a service
Hi,
I have used the wrapper class to create a windows service . I am successful
in creating the service but have an issue in starting it.
My service calls a java and the java starts a thread to run and it does not
return anything and has to keep running in the background.
But when i click on start in administrative tools>> service>> my service i=
t
comes back and says unable to start and it failed.
My java program is a thread and it will not return anything , Is there any
configuration variable which i could specify in my conf file so that i coul=
d
just run the java program
and return immediately without waiting for an output?
Looking forward for your help.
Thanks in advance.
Sujie
|
|
From: Rodrigo V. <rv...@i4...> - 2007-09-05 17:17:18
|
I think your are making a main method, and this method call a thread. If =
this
is your case you must do something like
public static void main(String args[]){
YourThread t =3D new YoruThread();
t.start();
t.join();
}
In that way your java program will not day until the thread die.
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: Wed 05/09/2007 12:28
To: wra...@li...
Subject: [Wrapper-user] Help regarding starting a service
=20
Hi,
=20
I have used the wrapper class to create a windows service . I am =
successful
in creating the service but have an issue in starting it.
=20
My service calls a java and the java starts a thread to run and it does =
not
return anything and has to keep running in the background.
=20
But when i click on start in administrative tools>> service>> my service =
it
comes back and says unable to start and it failed.
My java program is a thread and it will not return anything , Is there =
any
configuration variable which i could specify in my conf file so that i =
could
just run the java program
and return immediately without waiting for an output?
=20
Looking forward for your help.
=20
Thanks in advance.
Sujie
=20
=20
|
|
From: Sujatha B. <suj...@td...> - 2007-09-05 15:29:06
|
Hi, I have used the wrapper class to create a windows service . I am successful in creating the service but have an issue in starting it. My service calls a java and the java starts a thread to run and it does not return anything and has to keep running in the background. But when i click on start in administrative tools>> service>> my service it comes back and says unable to start and it failed. My java program is a thread and it will not return anything , Is there any configuration variable which i could specify in my conf file so that i could just run the java program and return immediately without waiting for an output? Looking forward for your help. Thanks in advance. Sujie |
|
From: Alex K. <al...@kr...> - 2007-09-05 14:31:54
|
Hello, i am running a server application using the wrapper as a daemon on various platforms. I am using the 3d integration method (implement WrapperListener) and also use the WrapperActionServer telnet interface. While all is fine under windows and linux with respect to starting, stopping etc i have an issue with thread dumps on Linux. On windows if i telnet to the action server port and send a D command i get the thread dump on my wrapper log. On linux i also have the dump command but this produces STATUS | wrapper | 2007/09/05 15:24:36 | Dumping JVM state. but no thread dump. Similarly if i use the action server method i get INFO | jvm 1 | 2007/09/05 15:27:58 | Sending SIGQUIT event to process group 5559. but again no thread dump... Can anyone help? Thanks, Alex Kritikos PS : My Linux is Linux showcase 2.4.18-14 #1 Wed Sep 4 13:35:50 EDT 2002 i686 i686 i386 GNU/Linux PS2: I am running the latest 3.2.3 version of the wrapper |
|
From: Marc T. <MT...@bl...> - 2007-08-30 15:37:19
|
Leif, Many thanks for your answers. I was a bit confused with the WrapperManager.sendServiceControlCode() method, mainly because the documentation says "If the service was not currently running then the control code will not be sent.". I wrongly interpreted "running" as "started" instead of "installed". I realize now, that it is very easy to start/stop and query the status of an installed service with this method. Best regards, Marc -----Original Message----- Message: 2 Date: Tue, 28 Aug 2007 14:07:20 +0900 From: Leif Mortenson <le...@ta...> Subject: Re: [Wrapper-user] Monitoring services from a Java application To: wra...@li... Message-ID: <46D...@ta...> Content-Type: text/plain; charset=3DISO-8859-1; format=3Dflowed Marc, If they are services, you could do this from the Wrapper using the WrapperManager.listServices(), or if you know a specific service you can use the WrapperManager.sendServiceControlCode() method. Pass in the SERVICE_CONTROL_CODE_INTERROGATE controlCode to find out what its latest state is. See the javadocs here: http://wrapper.tanukisoftware.org/doc/english/javadocs.html Cheers, Leif Marc Tibout wrote: > > Hi, > > I have a Java application that requires a number of services to be up=20 > and running. > > The application target platform is Windows and the services are=20 > installed/started/stopped with Java Service Wrapper. > > How could the application monitor whether the required services are up > and running? > > Thanks, > > Marc > |
|
From: Tim W. <Tim...@or...> - 2007-08-30 08:41:15
|
SSBoYXZlbid0IGdvdCBhIDUuMiBzeXN0ZW0gdG8gdGVzdCBvbiwgYnV0IHdlIGJ1aWxkIG91ciBi aW5hcmllcyBsb2NhbGx5IGZvciA1LjMgdXNpbmcgZ2NjLg0KSSBoYXZlbid0IHRyaWVkIHhsYywg c2luY2UgdGhlIGdjYyBidWlsZHMgd29yayBmaW5lIGZvciB1cywgYW5kIEknbSBub3QgbG9va2lu ZyBmb3IgdHJvdWJsZSBqdXN0IG5vdy4NCg0KSWYgeW91J3ZlIGdvdCA1LjMsIHRoZW4gZ2NjIGlz IGluY2x1ZGVkIGluIHRoZSBMaW51eCBUb29sa2l0IGZvciBBSVggKG9yIHNpbWlsYXIgbmFtZSku DQpJZiB5b3UgZG9uJ3QgaGF2ZSB0aGUgQ0QgKGl0IGNvbWVzIGFsb25nc2lkZSB0aGUgQUlYIG9u ZXMgdXN1YWxseSksIHRoZW4gaXQncyBhdmFpbGFibGUgb25saW5lIGZyb20gSUJNIGFzIHdlbGwg ZnJvbSBtZW1vcnkuDQoNCklmIHlvdSdyZSByZWFsbHkgc3R1Y2ssIGRyb3AgbWUgYSBsaW5lIGFu ZCBJIGNhbiBzZW5kIHlvdSBvdXIgQUlYIGJpbmFyeSB0byBzZWUgaWYgaXQgd29ya3MuDQoNCmNo ZWVycw0KdGltDQoNCiAgDQoNClRpbSBXaGl0dGluZ3Rvbg0KRGV2ZWxvcG1lbnQgVW5pdCBNYW5h Z2VyIC0gQ29uY2VydG8gUG9ydGFsDQpUaW0uV2hpdHRpbmd0b25Ab3Jpb25oZWFsdGguY29tDQpQ OiArNjQgOSA2MzggMDYwMCB4Mzg3Mw0KTTogKzY0IDIxIDMwNyA5MjUgDQpGOiArNjQgOSA2Mzgg MDY5OQ0KUzogdGltLndoaXR0aW5ndG9uDQp3d3cub3Jpb25oZWFsdGguY29tIA0KDQoNClRoaXMg ZS1tYWlsIGFuZCBhbnkgYXR0YWNobWVudHMgYXJlIGludGVuZGVkIG9ubHkgZm9yIHRoZSBwZXJz b24gdG8gd2hvbSBpdCBpcyBhZGRyZXNzZWQgYW5kIG1heSBjb250YWluIHByaXZpbGVnZWQsIHBy b3ByaWV0YXJ5LCBvciBvdGhlciBkYXRhIHByb3RlY3RlZCBmcm9tIGRpc2Nsb3N1cmUgdW5kZXIg YXBwbGljYWJsZSBsYXcuIElmIHlvdSBhcmUgbm90IHRoZSBhZGRyZXNzZWUgb3IgdGhlIHBlcnNv biByZXNwb25zaWJsZSBmb3IgZGVsaXZlcmluZyB0aGlzIHRvIHRoZSBhZGRyZXNzZWUgeW91IGFy ZSBoZXJlYnkgbm90aWZpZWQgdGhhdCByZWFkaW5nLCBjb3B5aW5nIG9yIGRpc3RyaWJ1dGluZyB0 aGlzIHRyYW5zbWlzc2lvbiBpcyBwcm9oaWJpdGVkLiBJZiB5b3UgaGF2ZSByZWNlaXZlZCB0aGlz IGUtbWFpbCBpbiBlcnJvciwgcGxlYXNlIHRlbGVwaG9uZSB1cyBpbW1lZGlhdGVseSBhbmQgcmVt b3ZlIGFsbCBjb3BpZXMgb2YgaXQgZnJvbSB5b3VyIHN5c3RlbS4gVGhhbmsgeW91IGZvciB5b3Vy IGNvLW9wZXJhdGlvbi4NCg0KDQo+Pj4gT24gMzAvMDgvMjAwNyBhdCA4OjEyIGEubS4sIGluIG1l c3NhZ2UgPDYzQkVBNUU2MjNFMDlGNEQ5MjIzM0ZCMTJBOUY3OTQzQzQxNTRDQGVtYWlsbW4ubXFz b2Z0d2FyZS5jb20+LCAiV2F5bmUgSm9obnNvbiIgPHdqb2huc29uQG1xc29mdHdhcmUuY29tPiB3 cm90ZToNCg0KV2hlbiBJIHJ1biB0aGUgMzIgYml0IHZlcnNpb24gb2YgdGhlIHdyYXBwZXIgb24g QUlYIDUuMiBJIGdldCB0aGUgZXJyb3I6DQoNClt3am9obnNvbkB2ZWdhIHFwYXNhXSQgd3JhcHBl cg0KZXhlYygpOiAwNTA5LTAzNiBDYW5ub3QgbG9hZCBwcm9ncmFtIHdyYXBwZXIgYmVjYXVzZSBv ZiB0aGUgZm9sbG93aW5nIGVycm9yczoNCiAgICAgICAgMDUwOS0xMzAgU3ltYm9sIHJlc29sdXRp b24gZmFpbGVkIGZvciB3cmFwcGVyIGJlY2F1c2U6DQogICAgICAgIDA1MDktMTM2ICAgU3ltYm9s IF9fZmRfc2VsZWN0IChudW1iZXIgNDgpIGlzIG5vdCBleHBvcnRlZCBmcm9tDQogICAgICAgICAg ICAgICAgICAgZGVwZW5kZW50IG1vZHVsZSAvdXNyL2xpYi9saWJjLmEoc2hyLm8pLg0KICAgICAg ICAwNTA5LTEzNiAgIFN5bWJvbCBfX2ZkX2dldGR0YWJsZXNpemUgKG51bWJlciA3MCkgaXMgbm90 IGV4cG9ydGVkIGZyb20NCiAgICAgICAgICAgICAgICAgICBkZXBlbmRlbnQgbW9kdWxlIC91c3Iv bGliL2xpYmMuYShzaHIubykuDQogICAgICAgIDA1MDktMTkyIEV4YW1pbmUgLmxvYWRlciBzZWN0 aW9uIHN5bWJvbHMgd2l0aCB0aGUNCiAgICAgICAgICAgICAgICAgJ2R1bXAgLVR2JyBjb21tYW5k Lg0KDQpGcm9tIGFsbCBteSBpbnZlc3RpZ2F0aW9ucywgdGhpcyBpcyBkdWUgdG8gdGhlIGZhY3Qg dGhhdCB0aGUgd3JhcHBlciB3YXMgYnVpbGQgb24gYSBuZXdlciBzeXN0ZW0gKGkuZS4gQUlYIDUu MykgdGhlbiB3aGVyZSBJJ20gcnVubmluZyBpdCBvbiAoQUlYIDUuMikuDQoNCkRvZXMgYW55b25l IGhhdmUgZXhlY3V0YWJsZXMgZm9yIEFJWCA1LjI/IA0KDQpBbnlvbmUgaGF2ZSBkb2N1bWVudHMg b24gYnVpbGRpbmcgd3JhcHBlciwgbGlrZSB3aGF0IHRoZSBwcmVyZXFzIGFyZS4gIFNlZW1zIHRv IHdhbnQgZ2NjLCBidXQgd2Ugb25seSBoYXZlIHRoZSBBSVggQy9DKysgY29tcGlsZXIgeGxjLg0K DQpUaGFua3MuDQpXYXluZSBKb2huc29uIA0KU2VuaW9yIFNvZnR3YXJlIEVuZ2luZWVyIA0KTVFT b2Z0d2FyZSwgSW5jLiANCjE2NjAgUyBIaWdod2F5IDEwMCANCk1pbm5lYXBvbGlzLCBNTiA1NTQx NiANCig5NTIpIDM0NS04NjI4IA== |
|
From: Toadie <toa...@gm...> - 2007-08-30 05:34:43
|
not sure if this is relevant or not. I am also looking for 64 bit support for Intel X64. Looks like the 'other' Java Service has a binary distro for x64 however, even though 1 . the service runs and insltalls OK on Win2K3 64 bit (4G of physical ram) 2. the -Xms and -Xmx JVM options are installed properly the process in which the service runs is not able to utilize any memory over 2 GIG which makes me suspect that we are still running in 32 bit mode. WHen I run as a console using -Xms2200m -Xmx2200m, Task Manager will show that the process has a VM size of 2200m . However as a service, its VM size is only showing up as 1.9G. I took a quick look at your source code and saw that you are also creating the service using Win32API CreateService. I am not sure if this is the cause or not. Thanks T. |
|
From: Wayne J. <wjo...@mq...> - 2007-08-29 20:12:43
|
When I run the 32 bit version of the wrapper on AIX 5.2 I get the error:
=20
[wjohnson@vega qpasa]$ wrapper
exec(): 0509-036 Cannot load program wrapper because of the following =
errors:
0509-130 Symbol resolution failed for wrapper because:
0509-136 Symbol __fd_select (number 48) is not exported from
dependent module /usr/lib/libc.a(shr.o).
0509-136 Symbol __fd_getdtablesize (number 70) is not exported =
from
dependent module /usr/lib/libc.a(shr.o).
0509-192 Examine .loader section symbols with the
'dump -Tv' command.
>From all my investigations, this is due to the fact that the wrapper was =
build on a newer system (i.e. AIX 5.3) then where I'm running it on (AIX =
5.2).
=20
Does anyone have executables for AIX 5.2?=20
=20
Anyone have documents on building wrapper, like what the prereqs are. =
Seems to want gcc, but we only have the AIX C/C++ compiler xlc.
=20
Thanks.
Wayne Johnson=20
Senior Software Engineer=20
MQSoftware, Inc.=20
1660 S Highway 100=20
Minneapolis, MN 55416=20
(952) 345-8628=20
=20
|
|
From: Leif M. <le...@ta...> - 2007-08-29 15:29:13
|
Rodrigo,
I can explain what was happening. You had never sent me a
wrapper.conf file that contained the additional parameters
or I would have noticed it.
Your old configuration combined two properties in the same
configuration:
wrapper.java.additional.1=-Dlog4j.debug
-Dlog4j.configuration=/home/i411/software/so/adlistener/conf/is/log4j.xml
This works on Windows because the OS expects a single long
string as a command line. The Wrapper adds everything
together to generate the command line.
On UNIX however, the OS expects an array of strings for the
command line. The Wrapper does not do any parsing, but
rather takes each individual value and sets it as a single
command line element. So on UNIX, the two properties above
were being passed to Java as a single property. This meant
that log4j would not find either of them.
By doing the following, you make it so the command line can
be generated correctly on either OS.
wrapper.java.additional.1=-Dlog4j.debug
wrapper.java.additional.2=-Dlog4j.configuration=/home/i411/software/so/adlistener/conf/is/log4j.xml
You can see how the command was being generated
incorrectly here:
DEBUG | wrapper | 2007/08/29 10:07:23 | Command[1] : -Dlog4j.debug
-Dlog4j.configuration=/home/i411/software/so/adlistener/conf/is/log4j.xml
Cheers,
Leif
Rodrigo Vega wrote:
> Leif, I found my problem...
>
> I initialize the log4j in this way:
> public class Server {
>
> static {
> String log4j = System.getProperty("log4j.configuration");
> System.out.println("Configuring log4j from :" + log4j);
> Logger.initLogging(log4j);
> }
> ...
>
> This config doesn't work:
>
> wrapper.conf
> ...
> # Java Additional Parameters
> wrapper.java.additional.1=-Dlog4j.debug
> -Dlog4j.configuration=/home/i411/software/so/adlistener/conf/is/log4j.xml
>
> # Initial Java Heap Size (in MB)
> #wrapper.java.initmemory=3
> .....
>
> However the log show:
>
> STATUS | wrapper | 2007/08/29 10:07:23 | --> Wrapper Started as Console
> DEBUG | wrapper | 2007/08/29 10:07:23 | Using tick timer.
> DEBUG | wrapperp | 2007/08/29 10:07:23 | server listening on port 32000.
> DEBUG | wrapper | 2007/08/29 10:07:23 | Command[0] : java
> DEBUG | wrapper | 2007/08/29 10:07:23 | Command[1] : -Dlog4j.debug
> -Dlog4j.configuration=/home/i411/software/so/adlistener/conf/is/log4j.xml
> DEBUG | wrapper | 2007/08/29 10:07:23 | Command[2] : -Xmx512m
> DEBUG | wrapper | 2007/08/29 10:07:23 | Command[3] :
> -Djava.library.path=../lib
> DEBUG | wrapper | 2007/08/29 10:07:23 | Command[4] : -classpath
> DEBUG | wrapper | 2007/08/29 10:07:23 | Command[5] :
> ../lib/wrapper.jar:../../../../lib/nekohtml.jar:../../../../lib/oscache-2.3.2
> .jar:../../../../lib/jsch-0.1.33.jar:../../../../lib/activation.jar:../../../
> ../lib/i411ad-listener.jar:../../../../lib/args4j-2.0.1.jar:../../../../lib/c
> ommons-logging.jar:../../../../lib/i411ad-native.jar:../../../../lib/log4j-1.
> 2.7.jar:../../../../lib/chartcreator-1.2.0-RC1.jar:../../../../lib/com4j.jar:
> ../../../../lib/i411ad-commons.jar:../../../../lib/xstream-1.1.3.jar:../../..
> /../lib/xercesImpl.jar:../../../../lib/ISWbem.jar:../../../../lib/commons-lan
> g-2.2.jar:../../../../lib/compress.jar:../../../../lib/jmml.jar:../../../../l
> ib/xml-apis.jar:../../../../lib/jdom.jar:../../../../lib/mail.jar:../../../..
> /lib/hadoop-0.14.0-core.jar:../../../../lib/xalan.jar:../../../../lib/jcommon
> -1.0.0-rc1.jar:../../../../lib/jfreechart-1.0.0-rc1.jar:../../../../lib/tlbim
> p.jar:../../../../lib/junit.jar:../../../../lib/xpp3-1.1.3.4d_b4_min.jar:../.
> ./../../conf/is/:../../../../../web/WEB-INF/lib/i411de.jar:../../../../../web
> /WEB-INF/lib/activation-1.0.2.jar:../../../../../web/WEB-INF/lib/oscache-2.3.
> 2.jar:../../../../../web/WEB-INF/lib/commons-cli-1.0.jar:../../../../../web/W
> EB-INF/lib/commons-jxpath-1.1.jar:../../../../../web/WEB-INF/lib/xercesImpl.j
> ar:../../../../../web/WEB-INF/lib/xml-apis.jar:../../../../../web/WEB-INF/lib
> /jcommon-0.9.1.jar:../../../../../web/WEB-INF/lib/jdom.jar:../../../../../web
> /WEB-INF/lib/ognl-2.6.5.jar:../../../../../web/WEB-INF/lib/pvcommons.jar:../.
> ./../../../web/WEB-INF/lib/commons-codec-1.3.jar:../../../../../web/WEB-INF/l
> ib/xalan.jar:../../../../../web/WEB-INF/lib/antlr.jar:../../../../../web/WEB-
> INF/lib/javamail-1.3ea.jar:../../../../../web/WEB-INF/lib/i411de.jar:../../..
> /../../web/WEB-INF/lib/kxml.jar:../../../../../web/WEB-INF/lib/commons-io-1.0
> .jar:../../../../../web/WEB-INF/lib/truelicense.jar:../../../../../web/WEB-IN
> F/lib/jakarta-oro-2.0.6.jar:../../../../../web/WEB-INF/lib/truexml.jar:../../
> ../../../web/WEB-INF/lib/junit.jar:/usr/hadoop/conf/
> DEBUG | wrapper | 2007/08/29 10:07:23 | Command[6] :
> -Dwrapper.key=3jD6Qd6Xj67mRZWN
> DEBUG | wrapper | 2007/08/29 10:07:23 | Command[7] : -Dwrapper.port=32000
> DEBUG | wrapper | 2007/08/29 10:07:23 | Command[8] :
> -Dwrapper.jvm.port.min=31000
> DEBUG | wrapper | 2007/08/29 10:07:23 | Command[9] :
> -Dwrapper.jvm.port.max=31999
> DEBUG | wrapper | 2007/08/29 10:07:23 | Command[10] : -Dwrapper.debug=TRUE
> DEBUG | wrapper | 2007/08/29 10:07:23 | Command[11] : -Dwrapper.pid=28494
> DEBUG | wrapper | 2007/08/29 10:07:23 | Command[12] :
> -Dwrapper.version=3.2.3
> DEBUG | wrapper | 2007/08/29 10:07:23 | Command[13] :
> -Dwrapper.native_library=wrapper
> DEBUG | wrapper | 2007/08/29 10:07:23 | Command[14] :
> -Dwrapper.cpu.timeout=10
> DEBUG | wrapper | 2007/08/29 10:07:23 | Command[15] : -Dwrapper.jvmid=1
> DEBUG | wrapper | 2007/08/29 10:07:23 | Command[16] :
> org.tanukisoftware.wrapper.WrapperSimpleApp
> DEBUG | wrapper | 2007/08/29 10:07:23 | Command[17] :
> com.i411.ad.listener.server.Server
> STATUS | wrapper | 2007/08/29 10:07:23 | Launching a JVM...
> INFO | jvm 1 | 2007/08/29 10:07:23 | WrapperManager class initialized by
> thread: main Using classloader: sun.misc.Launcher$AppClassLoader@ba5ab41
> INFO | jvm 1 | 2007/08/29 10:07:23 | Wrapper (Version 3.2.3)
> http://wrapper.tanukisoftware.org
> INFO | jvm 1 | 2007/08/29 10:07:23 | Copyright 1999-2006 Tanuki
> Software, Inc. All Rights Reserved.
> INFO | jvm 1 | 2007/08/29 10:07:23 |
> INFO | jvm 1 | 2007/08/29 10:07:23 | Wrapper Manager: JVM #1
> INFO | jvm 1 | 2007/08/29 10:07:23 | Running a 64-bit JVM.
> INFO | jvm 1 | 2007/08/29 10:07:23 | Wrapper Manager: Registering
> shutdown hook
> INFO | jvm 1 | 2007/08/29 10:07:23 | Wrapper Manager: Using wrapper
> INFO | jvm 1 | 2007/08/29 10:07:23 | Load native library. One or more
> attempts may fail if platform specific libraries do not exist.
> INFO | jvm 1 | 2007/08/29 10:07:23 | Loading native library failed:
> libwrapper-linux-x86-64.so Cause: java.lang.UnsatisfiedLinkError: no
> wrapper-linux-x86-64 in java.library.path
> INFO | jvm 1 | 2007/08/29 10:07:23 | Loaded native library:
> libwrapper.so
> INFO | jvm 1 | 2007/08/29 10:07:23 | Calling native initialization
> method.
> INFO | jvm 1 | 2007/08/29 10:07:23 | Inside native WrapperManager
> initialization method
> INFO | jvm 1 | 2007/08/29 10:07:23 | Java Version : 1.5.0_10-b03 Java
> HotSpot(TM) 64-Bit Server VM
> INFO | jvm 1 | 2007/08/29 10:07:23 | Java VM Vendor : Sun Microsystems
> Inc.
> INFO | jvm 1 | 2007/08/29 10:07:23 |
> INFO | jvm 1 | 2007/08/29 10:07:23 | Control event monitor thread
> started.
> INFO | jvm 1 | 2007/08/29 10:07:23 | Startup runner thread started.
> INFO | jvm 1 | 2007/08/29 10:07:23 | Configuring log4j from :null
> INFO | jvm 1 | 2007/08/29 10:07:23 | log4j: Threshold ="null".
> INFO | jvm 1 | 2007/08/29 10:07:23 | log4j: Retreiving an instance of
> org.apache.log4j.Logger.
> INFO | jvm 1 | 2007/08/29 10:07:23 | log4j: Setting [Adl] additivity to
> [false].
> INFO | jvm 1 | 2007/08/29 10:07:23 | log4j: Level value for Adl is
> [INFO].
> .. continue initializing log4j.
>
>
> But pay atention to this line
> INFO | jvm 1 | 2007/08/29 10:07:23 | Configuring log4j from :null
>
> You was right java was loading the log4j from the classpath and then when i
> force the initialization i was overriding the configuration.
>
> But why the property log4j.configuration was null if it's appear in the
> command line ??... so i tried this:
>
> wrapper.conf
> ...
> # Java Additional Parameters
> wrapper.java.additional.1=-Dlog4j.debug
> wrapper.java.additional.2=-Dlog4j.configuration=/home/i411/software/so/adlist
> ener/conf/is/log4j.xml
> ...
>
>
> And ALL START TO WORK NICELY!!!!!
>
> I don't know why this never fail yet in windows... :-S
>
>
> Thanks Leif for your help.
>
> Regards..
>
>
>
> Rodrigo G. Vega
> i411 Argentina
> rv...@i4...
>
> Este mensaje es confidencial. Si usted ha recibido este e-mail por error, por
> favor comuníquenoslo inmediatamente vía e-mail y tenga la amabilidad de
> eliminarlo de su sistema; no deberá 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 Leif Mortenson
> Sent: Tue 28/08/2007 22:41
> To: wra...@li...
> Subject: Re: [Wrapper-user] FW: Debian64 + log4j + wrapper
>
> Dodrigo,
> How is the -Dlog4j.debug property being set?It is not in the
> wrapper.conf that you posted. You can set the following to see
> the command line that the wrapper generates.
> wrapper.java.command.loglevel=INFO
>
> I can not imagine how the log files could be getting created but
> not have anything written to them. That rules out a file permission
> problem.
>
> Maybe this is a class loader problem of some sort. The Wrapper
> may be causing the log4j classes to be loaded and initialized
> before the log4j config file is loaded? (Guessing that you are setting
> log4j.debug in your code)
>
> log4j defaults to all categories having a DEBUG log level. So them being
> debug does not prove anything. Rather seeing a log level other than
> DEBUG is proof that a configuration file is being found.
>
> Another possibility is that you have two log4j config files. One forgotten
> one may be in your jar and the other you are expecting to load is not
> being loaded. I have seen problems like this in the past. One reason I
> am not a fan of loading config files off of the class path.
>
> Cheers,
> Leif
>
> Rodrigo Vega wrote:
>
>> sorry i forget something... about log4j. Even the files are created...
>>
>>
>> -----Original Message-----
>> From: wra...@li... on behalf of Rodrigo Vega
>> Sent: Tue 28/08/2007 21:36
>> To: wra...@li...
>> Subject: RE: [Wrapper-user] FW: Debian64 + log4j + wrapper
>>
>> I'm sure about log4j because i have setted the proeprty -Dlog4j.debug and
>>
> in
>
>> the wrapper log i can see how all the appenders and categories are created.
>> Look:
>>
>> so01:/home/i411/software# less so/logs/de5_ss_service.log
>> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting property [append]
>>
> to
>
>> [true].
>> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting property
>> [datePattern] to ['.'yyyy-MM-dd].
>> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Parsing layout of class:
>> "com.i411.util.ConsoleLayout"
>> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting property
>> [printStackTrace] to [true].
>> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting property
>> [conversionPattern] to [%d{ISO8601} %-5p [%c] %m%n].
>> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: setFile called:
>> /home/i411/software/so/logs/i411IS.log, true
>> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: setFile ended
>> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Appender [FILE] to be
>>
> rolled
>
>> at midnight.
>> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Adding appender named
>>
> [FILE]
>
>> to category [Index].
>> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Retreiving an instance of
>> org.apache.log4j.Logger.
>> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting [Data] additivity
>>
> to
>
>> [false].
>> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Level value for Data is
>> [DEBUG].
>> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Data level set to DEBUG
>> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Adding appender named
>>
> [FILE]
>
>> to category [Data].
>> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Retreiving an instance of
>> org.apache.log4j.Logger.
>> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting [API] additivity
>>
> to
>
>> [false].
>> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Level value for API is
>> [DEBUG].
>> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: API level set to DEBUG
>> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Adding appender named
>>
> [FILE]
>
>> to category [API].
>> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Retreiving an instance of
>> org.apache.log4j.Logger.
>> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting [Plugin]
>>
> additivity
>
>> to [false].
>> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Level value for Plugin is
>> [DEBUG].
>> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Plugin level set to DEBUG
>> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Adding appender named
>>
> [FILE]
>
>> to category [Plugin].
>> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Retreiving an instance of
>> org.apache.log4j.Logger.
>> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting [Resource]
>> additivity to [false].
>> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Level value for Resource
>>
> is
>
>> [DEBUG].
>> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Resource level set to
>>
> DEBUG
>
>> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Adding appender named
>>
> [FILE]
>
>> to category [Resource].
>> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Retreiving an instance of
>> org.apache.log4j.Logger.
>> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting [Unknown]
>>
> additivity
>
>> to [false].
>> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Level value for Unknown is
>> [DEBUG].
>> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Unknown level set to DEBUG
>> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Adding appender named
>>
> [FILE]
>
>> to category [Unknown].
>> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Retreiving an instance of
>> org.apache.log4j.Logger.
>> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting [Debug] additivity
>> to [false].
>> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Level value for Debug is
>> [DEBUG].
>> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Debug level set to DEBUG
>> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Adding appender named
>> [FILE_ADLISTENER] to category [Debug].
>> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Adding appender named
>>
> [FILE]
>
>> to category [Debug].
>> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: System property is :null
>> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Standard
>> DocumentBuilderFactory search succeded.
>> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: DocumentBuilderFactory is:
>> org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
>> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: URL to log4j.dtd is
>> ...
>>
>>
>>
>> Thanks for the suggestion about wild cards... i tried to do it once and it
>> did not work. Maybe a was using an old version or something.
>>
>> Thanks for your answers... :-)
>>
>>
>> -----Original Message-----
>> From: wra...@li... on behalf of Leif
>>
> Mortenson
>
>> Sent: Tue 28/08/2007 19:48
>> To: wra...@li...
>> Subject: Re: [Wrapper-user] FW: Debian64 + log4j + wrapper
>>
>> Rodrigo,
>> Why are you sure that the log4j configuration file is being loaded?
>> Where do you have it? Is it embedded one of your jar files or in the
>> is directory? I do not see any other way it would be loaded as you
>> have not placed any other directories on your classpath nor have
>> you specified a system property with the location of the log4j
>> config file.
>>
>> There is nothing about the wrapper that would prevent log4j from
>> working if its config file is being read correctly.
>>
>> You might want to try using wildcards in your classpath
>> definitions, that would simplify things for you greatly.
>>
>> # Java Classpath (include wrapper.jar) Add class path elements as
>> # needed starting from 1
>> wrapper.java.classpath.1=../lib/wrapper.jar
>> wrapper.java.classpath.2=../../../../lib/*.jar
>> wrapper.java.classpath.3=../../../../conf/is/
>> wrapper.java.classpath.4=../../../../../web/WEB-INF/lib/*.jar
>>
>> Cheers,
>> Leif
>>
>> Rodrigo Vega wrote:
>>
>>
>>> Hi guys... this is my first post in this mail list. I hope i can
>>> explain well my problem.
>>>
>>>
>>> I'm running a java application in a Debian 64 server, and my
>>> application needs to create several log files. This files are very
>>> important to me.
>>>
>>> But this is the problem, if i run the app without the wrapper all the
>>> loggers are generated, but when i use the wrapper, i can see in the
>>> wrapper log that the configuration for log4j is loaded but then
>>> nothing is write to the files.
>>>
>>> I was using the same application in Windows XP/Vista/2003 and it runs
>>> without any problem. I already check if the user has permission to
>>> write in the log file location and all is ok.
>>>
>>> Can anybody help me is kind of urgent... Thanks!
>>>
>>> These are my configuration files.
>>>
>>> WRAPPER.CONF
>>>
>>> # Java Application
>>> wrapper.java.command=java
>>>
>>> # Java Main class. This class must implement the WrapperListener
>>> interface
>>> # or guarantee that the WrapperManager class is initialized. Helper
>>> # classes are provided to do this for you. See the Integration section
>>> # of the documentation for details.
>>> wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp
>>>
>>> # Java Classpath (include wrapper.jar) Add class path elements as
>>> # needed starting from 1
>>> wrapper.java.classpath.1=../lib/wrapper.jar
>>> wrapper.java.classpath.2=../../../../lib/args4j-2.0.1.jar
>>> wrapper.java.classpath.3=../../../../lib/chartcreator-1.2.0-RC1.jar
>>> wrapper.java.classpath.4=../../../../lib/com4j.jar
>>> wrapper.java.classpath.5=../../../../lib/commons-lang-2.2.jar
>>> wrapper.java.classpath.6=../../../../lib/commons-logging.jar
>>> wrapper.java.classpath.7=../../../../lib/compress.jar
>>> wrapper.java.classpath.8=../../../../lib/i411ad-commons.jar
>>> wrapper.java.classpath.9=../../../..//lib/i411ad-listener.jar
>>> wrapper.java.classpath.10=../../../../lib/i411ad-native.jar
>>> wrapper.java.classpath.11=../../../../lib/ISWbem.jar
>>> wrapper.java.classpath.12=../../../../lib/jcommon-1.0.0-rc1.jar
>>> wrapper.java.classpath.13=../../../../lib/jdom.jar
>>> wrapper.java.classpath.14=../../../../lib/jfreechart-1.0.0-rc1.jar
>>> wrapper.java.classpath.15=../../../../lib/jmml.jar
>>> wrapper.java.classpath.16=../../../../lib/junit.jar
>>> wrapper.java.classpath.17=../../../../lib/log4j-1.2.7.jar
>>> wrapper.java.classpath.18=../../../../lib/oscache-2.3.2.jar
>>> wrapper.java.classpath.19=../../../../lib/tlbimp.jar
>>> wrapper.java.classpath.20=../../../../lib/xercesImpl.jar
>>> wrapper.java.classpath.21=../../../../lib/xml-apis.jar
>>> wrapper.java.classpath.22=../../../../lib/xpp3-1.1.3.4d_b4_min.jar
>>> wrapper.java.classpath.23=../../../../lib/xstream-1.1.3.jar
>>>
>>> # AD config files needed in claspath
>>> wrapper.java.classpath.24=../../../../conf/is/
>>>
>>> # DE5 API reference
>>> wrapper.java.classpath.25=../../../../../web/WEB-INF/lib/i411de.jar
>>>
>>> # Here put all custom jars nedded
>>>
>>>
>>>
> wrapper.java.classpath.26=../../../../../web/WEB-INF/lib/activation-1.0.2.jar
>
>>
>>
>>> wrapper.java.classpath.27=../../../../../web/WEB-INF/lib/antlr.jar
>>>
>>>
>>>
> wrapper.java.classpath.28=../../../../../web/WEB-INF/lib/commons-cli-1.0.jar
>
>>
>>
>>
> wrapper.java.classpath.29=../../../../../web/WEB-INF/lib/commons-codec-1.3.ja
>
>> r
>>
>>
> wrapper.java.classpath.30=../../../../../web/WEB-INF/lib/commons-io-1.0.jar
>
>>>
>>>
> wrapper.java.classpath.31=../../../../../web/WEB-INF/lib/commons-jxpath-1.1.j
>
>> ar
>>
>>
>>
> wrapper.java.classpath.32=../../../../../web/WEB-INF/lib/commons-logging-1.0.
>
>> 4.jar
>>
>>
>>
> wrapper.java.classpath.33=../../../../../web/WEB-INF/lib/jakarta-oro-2.0.6.ja
>
>> r
>>
>>
> wrapper.java.classpath.34=../../../../../web/WEB-INF/lib/javamail-1.3ea.jar
>
>>> wrapper.java.classpath.35=../../../../../web/WEB-INF/lib/jcommon-0.9.1.jar
>>> wrapper.java.classpath.36=../../../../../web/WEB-INF/lib/jdom.jar
>>> wrapper.java.classpath.37=../../../../../web/WEB-INF/lib/kxml.jar
>>> wrapper.java.classpath.38=../../../../../web/WEB-INF/lib/log4j-1.2.7.jar
>>> wrapper.java.classpath.39=../../../../../web/WEB-INF/lib/ognl-2.6.5.jar
>>> wrapper.java.classpath.40=../../../../../web/WEB-INF/lib/oscache-2.3.2.jar
>>> wrapper.java.classpath.41=../../../../../web/WEB-INF/lib/pvcommons.jar
>>> wrapper.java.classpath.42=../../../../../web/WEB-INF/lib/sample.jar
>>> wrapper.java.classpath.43=../../../../../web/WEB-INF/lib/truelicense.jar
>>> wrapper.java.classpath.44=../../../../../web/WEB-INF/lib/truexml.jar
>>> wrapper.java.classpath.45=../../../../../web/WEB-INF/lib/xalan.jar
>>> wrapper.java.classpath.46=../../../../../web/WEB-INF/lib/xercesImpl.jar
>>> wrapper.java.classpath.47=../../../../../web/WEB-INF/lib/xml-apis.jar
>>>
>>> //SO Custom jars
>>> wrapper.java.classpath.48=../../../../lib/jsch.jar
>>> wrapper.java.classpath.49=../../../../lib/adCustoms.jar
>>>
>>>
>>>
>>>
>>> # Java Library Path (location of Wrapper.DLL or libwrapper.so)
>>> wrapper.java.library.path.1=../lib
>>>
>>> # Java Additional Parameters
>>> wrapper.java.additional.1=
>>>
>>> # Initial Java Heap Size (in MB)
>>> #wrapper.java.initmemory=3
>>>
>>> # Maximum Java Heap Size (in MB)
>>> wrapper.java.maxmemory=512
>>>
>>> # Application parameters. Add parameters as needed starting from 1
>>> wrapper.app.parameter.1=com.i411.ad.listener.server.Server
>>>
>>> #********************************************************************
>>> # Wrapper Logging Properties
>>> #********************************************************************
>>> # Format of output for the console. (See docs for formats)
>>> wrapper.console.format=PM
>>>
>>> # Log Level for console output. (See docs for log levels)
>>> wrapper.console.loglevel=NONE
>>>
>>> # Log file to use for wrapper output logging.
>>> wrapper.logfile=../../../../../logs/de5_ss_service.log
>>>
>>> # Format of output for the log file. (See docs for formats)
>>> wrapper.logfile.format=LPTM
>>>
>>> # Log Level for log file output. (See docs for log levels)
>>> wrapper.logfile.loglevel=DEBUG
>>>
>>> # Maximum size that the log file will be allowed to grow to before
>>> # the log is rolled. Size is specified in bytes. The default value
>>> # of 0, disables log rolling. May abbreviate with the 'k' (kb) or
>>> # 'm' (mb) suffix. For example: 10m = 10 megabytes.
>>> wrapper.logfile.maxsize=0
>>>
>>> # Maximum number of rolled log files which will be allowed before old
>>> # files are deleted. The default value of 0 implies no limit.
>>> wrapper.logfile.maxfiles=0
>>>
>>> # Log Level for sys/event log output. (See docs for log levels)
>>> wrapper.syslog.loglevel=NONE
>>>
>>> #********************************************************************
>>> # Wrapper Windows Properties
>>> #********************************************************************
>>> # Title to use when running as a console
>>> wrapper.console.title=DE5 Index Engine Listener
>>>
>>> #********************************************************************
>>> # Wrapper Windows NT/2000/XP Service Properties
>>> #********************************************************************
>>> # WARNING - Do not modify any of these properties when an application
>>> # using this configuration file has been installed as a service.
>>> # Please uninstall the service before modifying this section. The
>>> # service can then be reinstalled.
>>>
>>> # Name of the service
>>> wrapper.ntservice.name=de5_index_engine
>>>
>>> # Display name of the service
>>> wrapper.ntservice.displayname=DE5 Index Engine Listener
>>>
>>> # Description of the service
>>> wrapper.ntservice.description=DE5 Index Engine Listener
>>>
>>> # Service dependencies. Add dependencies as needed starting from 1
>>> wrapper.ntservice.dependency.1=
>>>
>>> # Mode in which the service is installed. AUTO_START or DEMAND_START
>>> wrapper.ntservice.starttype=DEMAND_START
>>>
>>> # Allow the service to interact with the desktop.
>>> wrapper.ntservice.interactive=false
>>>
>>> wrapper.ntservice.process_priority=REALTIMEs
>>>
>>>
|
|
From: Rodrigo V. <rv...@i4...> - 2007-08-29 14:16:38
|
Leif, I found my problem...=20
I initialize the log4j in this way:
public class Server {
static {
String log4j =3D System.getProperty("log4j.configuration");
System.out.println("Configuring log4j from :" + log4j);
Logger.initLogging(log4j);
}
...
This config doesn't work:
wrapper.conf
...
# Java Additional Parameters
wrapper.java.additional.1=3D-Dlog4j.debug
-Dlog4j.configuration=3D/home/i411/software/so/adlistener/conf/is/log4j.x=
ml
# Initial Java Heap Size (in MB)
#wrapper.java.initmemory=3D3
.....
However the log show:
STATUS | wrapper | 2007/08/29 10:07:23 | --> Wrapper Started as Console
DEBUG | wrapper | 2007/08/29 10:07:23 | Using tick timer.
DEBUG | wrapperp | 2007/08/29 10:07:23 | server listening on port =
32000.
DEBUG | wrapper | 2007/08/29 10:07:23 | Command[0] : java
DEBUG | wrapper | 2007/08/29 10:07:23 | Command[1] : -Dlog4j.debug
-Dlog4j.configuration=3D/home/i411/software/so/adlistener/conf/is/log4j.x=
ml
DEBUG | wrapper | 2007/08/29 10:07:23 | Command[2] : -Xmx512m
DEBUG | wrapper | 2007/08/29 10:07:23 | Command[3] :
-Djava.library.path=3D../lib
DEBUG | wrapper | 2007/08/29 10:07:23 | Command[4] : -classpath
DEBUG | wrapper | 2007/08/29 10:07:23 | Command[5] :
../lib/wrapper.jar:../../../../lib/nekohtml.jar:../../../../lib/oscache-2=
.3.2
.jar:../../../../lib/jsch-0.1.33.jar:../../../../lib/activation.jar:../..=
/../
../lib/i411ad-listener.jar:../../../../lib/args4j-2.0.1.jar:../../../../l=
ib/c
ommons-logging.jar:../../../../lib/i411ad-native.jar:../../../../lib/log4=
j-1.
2.7.jar:../../../../lib/chartcreator-1.2.0-RC1.jar:../../../../lib/com4j.=
jar:
../../../../lib/i411ad-commons.jar:../../../../lib/xstream-1.1.3.jar:../.=
./..
/../lib/xercesImpl.jar:../../../../lib/ISWbem.jar:../../../../lib/commons=
-lan
g-2.2.jar:../../../../lib/compress.jar:../../../../lib/jmml.jar:../../../=
../l
ib/xml-apis.jar:../../../../lib/jdom.jar:../../../../lib/mail.jar:../../.=
./..
/lib/hadoop-0.14.0-core.jar:../../../../lib/xalan.jar:../../../../lib/jco=
mmon
-1.0.0-rc1.jar:../../../../lib/jfreechart-1.0.0-rc1.jar:../../../../lib/t=
lbim
p.jar:../../../../lib/junit.jar:../../../../lib/xpp3-1.1.3.4d_b4_min.jar:=
../.
./../../conf/is/:../../../../../web/WEB-INF/lib/i411de.jar:../../../../..=
/web
/WEB-INF/lib/activation-1.0.2.jar:../../../../../web/WEB-INF/lib/oscache-=
2.3.
2.jar:../../../../../web/WEB-INF/lib/commons-cli-1.0.jar:../../../../../w=
eb/W
EB-INF/lib/commons-jxpath-1.1.jar:../../../../../web/WEB-INF/lib/xercesIm=
pl.j
ar:../../../../../web/WEB-INF/lib/xml-apis.jar:../../../../../web/WEB-INF=
/lib
/jcommon-0.9.1.jar:../../../../../web/WEB-INF/lib/jdom.jar:../../../../..=
/web
/WEB-INF/lib/ognl-2.6.5.jar:../../../../../web/WEB-INF/lib/pvcommons.jar:=
../.
./../../../web/WEB-INF/lib/commons-codec-1.3.jar:../../../../../web/WEB-I=
NF/l
ib/xalan.jar:../../../../../web/WEB-INF/lib/antlr.jar:../../../../../web/=
WEB-
INF/lib/javamail-1.3ea.jar:../../../../../web/WEB-INF/lib/i411de.jar:../.=
./..
/../../web/WEB-INF/lib/kxml.jar:../../../../../web/WEB-INF/lib/commons-io=
-1.0
.jar:../../../../../web/WEB-INF/lib/truelicense.jar:../../../../../web/WE=
B-IN
F/lib/jakarta-oro-2.0.6.jar:../../../../../web/WEB-INF/lib/truexml.jar:..=
/../
../../../web/WEB-INF/lib/junit.jar:/usr/hadoop/conf/
DEBUG | wrapper | 2007/08/29 10:07:23 | Command[6] :
-Dwrapper.key=3D3jD6Qd6Xj67mRZWN
DEBUG | wrapper | 2007/08/29 10:07:23 | Command[7] : =
-Dwrapper.port=3D32000
DEBUG | wrapper | 2007/08/29 10:07:23 | Command[8] :
-Dwrapper.jvm.port.min=3D31000
DEBUG | wrapper | 2007/08/29 10:07:23 | Command[9] :
-Dwrapper.jvm.port.max=3D31999
DEBUG | wrapper | 2007/08/29 10:07:23 | Command[10] : =
-Dwrapper.debug=3DTRUE
DEBUG | wrapper | 2007/08/29 10:07:23 | Command[11] : =
-Dwrapper.pid=3D28494
DEBUG | wrapper | 2007/08/29 10:07:23 | Command[12] :
-Dwrapper.version=3D3.2.3
DEBUG | wrapper | 2007/08/29 10:07:23 | Command[13] :
-Dwrapper.native_library=3Dwrapper
DEBUG | wrapper | 2007/08/29 10:07:23 | Command[14] :
-Dwrapper.cpu.timeout=3D10
DEBUG | wrapper | 2007/08/29 10:07:23 | Command[15] : =
-Dwrapper.jvmid=3D1
DEBUG | wrapper | 2007/08/29 10:07:23 | Command[16] :
org.tanukisoftware.wrapper.WrapperSimpleApp
DEBUG | wrapper | 2007/08/29 10:07:23 | Command[17] :
com.i411.ad.listener.server.Server
STATUS | wrapper | 2007/08/29 10:07:23 | Launching a JVM...
INFO | jvm 1 | 2007/08/29 10:07:23 | WrapperManager class =
initialized by
thread: main Using classloader: =
sun.misc.Launcher$AppClassLoader@ba5ab41
INFO | jvm 1 | 2007/08/29 10:07:23 | Wrapper (Version 3.2.3)
http://wrapper.tanukisoftware.org
INFO | jvm 1 | 2007/08/29 10:07:23 | Copyright 1999-2006 Tanuki
Software, Inc. All Rights Reserved.
INFO | jvm 1 | 2007/08/29 10:07:23 |=20
INFO | jvm 1 | 2007/08/29 10:07:23 | Wrapper Manager: JVM #1
INFO | jvm 1 | 2007/08/29 10:07:23 | Running a 64-bit JVM.
INFO | jvm 1 | 2007/08/29 10:07:23 | Wrapper Manager: Registering
shutdown hook
INFO | jvm 1 | 2007/08/29 10:07:23 | Wrapper Manager: Using wrapper
INFO | jvm 1 | 2007/08/29 10:07:23 | Load native library. One or =
more
attempts may fail if platform specific libraries do not exist.
INFO | jvm 1 | 2007/08/29 10:07:23 | Loading native library failed:
libwrapper-linux-x86-64.so Cause: java.lang.UnsatisfiedLinkError: no
wrapper-linux-x86-64 in java.library.path
INFO | jvm 1 | 2007/08/29 10:07:23 | Loaded native library:
libwrapper.so
INFO | jvm 1 | 2007/08/29 10:07:23 | Calling native initialization
method.
INFO | jvm 1 | 2007/08/29 10:07:23 | Inside native WrapperManager
initialization method
INFO | jvm 1 | 2007/08/29 10:07:23 | Java Version : 1.5.0_10-b03 =
Java
HotSpot(TM) 64-Bit Server VM
INFO | jvm 1 | 2007/08/29 10:07:23 | Java VM Vendor : Sun =
Microsystems
Inc.
INFO | jvm 1 | 2007/08/29 10:07:23 |=20
INFO | jvm 1 | 2007/08/29 10:07:23 | Control event monitor thread
started.
INFO | jvm 1 | 2007/08/29 10:07:23 | Startup runner thread started.
INFO | jvm 1 | 2007/08/29 10:07:23 | Configuring log4j from :null
INFO | jvm 1 | 2007/08/29 10:07:23 | log4j: Threshold =3D"null".
INFO | jvm 1 | 2007/08/29 10:07:23 | log4j: Retreiving an instance =
of
org.apache.log4j.Logger.
INFO | jvm 1 | 2007/08/29 10:07:23 | log4j: Setting [Adl] =
additivity to
[false].
INFO | jvm 1 | 2007/08/29 10:07:23 | log4j: Level value for Adl is
[INFO].
.. continue initializing log4j.
But pay atention to this line=20
INFO | jvm 1 | 2007/08/29 10:07:23 | Configuring log4j from :null
You was right java was loading the log4j from the classpath and then =
when i
force the initialization i was overriding the configuration.
But why the property log4j.configuration was null if it's appear in the
command line ??... so i tried this:
wrapper.conf
...
# Java Additional Parameters
wrapper.java.additional.1=3D-Dlog4j.debug
wrapper.java.additional.2=3D-Dlog4j.configuration=3D/home/i411/software/s=
o/adlist
ener/conf/is/log4j.xml
...
And ALL START TO WORK NICELY!!!!!
I don't know why this never fail yet in windows... :-S
Thanks Leif for your help.
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 Leif =
Mortenson
Sent: Tue 28/08/2007 22:41
To: wra...@li...
Subject: Re: [Wrapper-user] FW: Debian64 + log4j + wrapper
=20
Dodrigo,
How is the -Dlog4j.debug property being set?It is not in the
wrapper.conf that you posted. You can set the following to see
the command line that the wrapper generates.
wrapper.java.command.loglevel=3DINFO
I can not imagine how the log files could be getting created but
not have anything written to them. That rules out a file permission
problem.
Maybe this is a class loader problem of some sort. The Wrapper
may be causing the log4j classes to be loaded and initialized
before the log4j config file is loaded? (Guessing that you are setting
log4j.debug in your code)
log4j defaults to all categories having a DEBUG log level. So them being
debug does not prove anything. Rather seeing a log level other than
DEBUG is proof that a configuration file is being found.
Another possibility is that you have two log4j config files. One =
forgotten
one may be in your jar and the other you are expecting to load is not
being loaded. I have seen problems like this in the past. One reason I
am not a fan of loading config files off of the class path.
Cheers,
Leif
Rodrigo Vega wrote:
> sorry i forget something... about log4j. Even the files are created...
>
>
> -----Original Message-----
> From: wra...@li... on behalf of Rodrigo =
Vega
> Sent: Tue 28/08/2007 21:36
> To: wra...@li...
> Subject: RE: [Wrapper-user] FW: Debian64 + log4j + wrapper
> =20
> I'm sure about log4j because i have setted the proeprty -Dlog4j.debug =
and
in
> the wrapper log i can see how all the appenders and categories are =
created.
> Look:
>
> so01:/home/i411/software# less so/logs/de5_ss_service.log
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting property =
[append]
to
> [true].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting property
> [datePattern] to ['.'yyyy-MM-dd].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Parsing layout of =
class:
> "com.i411.util.ConsoleLayout"
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting property
> [printStackTrace] to [true].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting property
> [conversionPattern] to [%d{ISO8601} %-5p [%c] %m%n].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: setFile called:
> /home/i411/software/so/logs/i411IS.log, true
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: setFile ended
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Appender [FILE] to be
rolled
> at midnight.
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Adding appender named
[FILE]
> to category [Index].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Retreiving an =
instance of
> org.apache.log4j.Logger.
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting [Data] =
additivity
to
> [false].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Level value for Data =
is
> [DEBUG].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Data level set to =
DEBUG
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Adding appender named
[FILE]
> to category [Data].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Retreiving an =
instance of
> org.apache.log4j.Logger.
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting [API] =
additivity
to
> [false].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Level value for API =
is
> [DEBUG].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: API level set to =
DEBUG
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Adding appender named
[FILE]
> to category [API].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Retreiving an =
instance of
> org.apache.log4j.Logger.
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting [Plugin]
additivity
> to [false].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Level value for =
Plugin is
> [DEBUG].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Plugin level set to =
DEBUG
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Adding appender named
[FILE]
> to category [Plugin].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Retreiving an =
instance of
> org.apache.log4j.Logger.
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting [Resource]
> additivity to [false].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Level value for =
Resource
is
> [DEBUG].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Resource level set to
DEBUG
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Adding appender named
[FILE]
> to category [Resource].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Retreiving an =
instance of
> org.apache.log4j.Logger.
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting [Unknown]
additivity
> to [false].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Level value for =
Unknown is
> [DEBUG].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Unknown level set to =
DEBUG
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Adding appender named
[FILE]
> to category [Unknown].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Retreiving an =
instance of
> org.apache.log4j.Logger.
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting [Debug] =
additivity
> to [false].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Level value for Debug =
is
> [DEBUG].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Debug level set to =
DEBUG
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Adding appender named
> [FILE_ADLISTENER] to category [Debug].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Adding appender named
[FILE]
> to category [Debug].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: System property is =
:null
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Standard
> DocumentBuilderFactory search succeded.
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: =
DocumentBuilderFactory is:
> org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: URL to log4j.dtd is=20
> ...
>
>
>
> Thanks for the suggestion about wild cards... i tried to do it once =
and it
> did not work. Maybe a was using an old version or something.
>
> Thanks for your answers... :-)
>
>
> -----Original Message-----
> From: wra...@li... on behalf of Leif
Mortenson
> Sent: Tue 28/08/2007 19:48
> To: wra...@li...
> Subject: Re: [Wrapper-user] FW: Debian64 + log4j + wrapper
> =20
> Rodrigo,
> Why are you sure that the log4j configuration file is being loaded?
> Where do you have it? Is it embedded one of your jar files or in the
> is directory? I do not see any other way it would be loaded as you
> have not placed any other directories on your classpath nor have
> you specified a system property with the location of the log4j
> config file.
>
> There is nothing about the wrapper that would prevent log4j from
> working if its config file is being read correctly.
>
> You might want to try using wildcards in your classpath
> definitions, that would simplify things for you greatly.
>
> # Java Classpath (include wrapper.jar) Add class path elements as
> # needed starting from 1
> wrapper.java.classpath.1=3D../lib/wrapper.jar
> wrapper.java.classpath.2=3D../../../../lib/*.jar
> wrapper.java.classpath.3=3D../../../../conf/is/
> wrapper.java.classpath.4=3D../../../../../web/WEB-INF/lib/*.jar
>
> Cheers,
> Leif
>
> Rodrigo Vega wrote:
> =20
>> Hi guys... this is my first post in this mail list. I hope i can=20
>> explain well my problem.
>>
>>
>> I'm running a java application in a Debian 64 server, and my=20
>> application needs to create several log files. This files are very=20
>> important to me.
>>
>> But this is the problem, if i run the app without the wrapper all the =
>> loggers are generated, but when i use the wrapper, i can see in the=20
>> wrapper log that the configuration for log4j is loaded but then=20
>> nothing is write to the files.
>>
>> I was using the same application in Windows XP/Vista/2003 and it runs =
>> without any problem. I already check if the user has permission to=20
>> write in the log file location and all is ok.
>>
>> Can anybody help me is kind of urgent... Thanks!
>>
>> These are my configuration files.
>>
>> WRAPPER.CONF
>>
>> # Java Application
>> wrapper.java.command=3Djava
>>
>> # Java Main class. This class must implement the WrapperListener=20
>> interface
>> # or guarantee that the WrapperManager class is initialized. Helper
>> # classes are provided to do this for you. See the Integration =
section
>> # of the documentation for details.
>> wrapper.java.mainclass=3Dorg.tanukisoftware.wrapper.WrapperSimpleApp
>>
>> # Java Classpath (include wrapper.jar) Add class path elements as
>> # needed starting from 1
>> wrapper.java.classpath.1=3D../lib/wrapper.jar
>> wrapper.java.classpath.2=3D../../../../lib/args4j-2.0.1.jar
>> wrapper.java.classpath.3=3D../../../../lib/chartcreator-1.2.0-RC1.jar
>> wrapper.java.classpath.4=3D../../../../lib/com4j.jar
>> wrapper.java.classpath.5=3D../../../../lib/commons-lang-2.2.jar
>> wrapper.java.classpath.6=3D../../../../lib/commons-logging.jar
>> wrapper.java.classpath.7=3D../../../../lib/compress.jar
>> wrapper.java.classpath.8=3D../../../../lib/i411ad-commons.jar
>> wrapper.java.classpath.9=3D../../../..//lib/i411ad-listener.jar
>> wrapper.java.classpath.10=3D../../../../lib/i411ad-native.jar
>> wrapper.java.classpath.11=3D../../../../lib/ISWbem.jar
>> wrapper.java.classpath.12=3D../../../../lib/jcommon-1.0.0-rc1.jar
>> wrapper.java.classpath.13=3D../../../../lib/jdom.jar
>> wrapper.java.classpath.14=3D../../../../lib/jfreechart-1.0.0-rc1.jar
>> wrapper.java.classpath.15=3D../../../../lib/jmml.jar
>> wrapper.java.classpath.16=3D../../../../lib/junit.jar
>> wrapper.java.classpath.17=3D../../../../lib/log4j-1.2.7.jar
>> wrapper.java.classpath.18=3D../../../../lib/oscache-2.3.2.jar
>> wrapper.java.classpath.19=3D../../../../lib/tlbimp.jar
>> wrapper.java.classpath.20=3D../../../../lib/xercesImpl.jar
>> wrapper.java.classpath.21=3D../../../../lib/xml-apis.jar
>> wrapper.java.classpath.22=3D../../../../lib/xpp3-1.1.3.4d_b4_min.jar
>> wrapper.java.classpath.23=3D../../../../lib/xstream-1.1.3.jar
>>
>> # AD config files needed in claspath
>> wrapper.java.classpath.24=3D../../../../conf/is/
>>
>> # DE5 API reference
>> wrapper.java.classpath.25=3D../../../../../web/WEB-INF/lib/i411de.jar
>>
>> # Here put all custom jars nedded
>>
>> =20
>
wrapper.java.classpath.26=3D../../../../../web/WEB-INF/lib/activation-1.0=
.2.jar
> =20
>> wrapper.java.classpath.27=3D../../../../../web/WEB-INF/lib/antlr.jar
>>
>> =20
>
wrapper.java.classpath.28=3D../../../../../web/WEB-INF/lib/commons-cli-1.=
0.jar
> =20
>
wrapper.java.classpath.29=3D../../../../../web/WEB-INF/lib/commons-codec-=
1.3.ja
> r
> =20
>>
wrapper.java.classpath.30=3D../../../../../web/WEB-INF/lib/commons-io-1.0=
.jar
>>
>> =20
>
wrapper.java.classpath.31=3D../../../../../web/WEB-INF/lib/commons-jxpath=
-1.1.j
> ar
> =20
>
wrapper.java.classpath.32=3D../../../../../web/WEB-INF/lib/commons-loggin=
g-1.0.
> 4.jar
> =20
>
wrapper.java.classpath.33=3D../../../../../web/WEB-INF/lib/jakarta-oro-2.=
0.6.ja
> r
> =20
>>
wrapper.java.classpath.34=3D../../../../../web/WEB-INF/lib/javamail-1.3ea=
.jar
>> =
wrapper.java.classpath.35=3D../../../../../web/WEB-INF/lib/jcommon-0.9.1.=
jar
>> wrapper.java.classpath.36=3D../../../../../web/WEB-INF/lib/jdom.jar
>> wrapper.java.classpath.37=3D../../../../../web/WEB-INF/lib/kxml.jar
>> =
wrapper.java.classpath.38=3D../../../../../web/WEB-INF/lib/log4j-1.2.7.ja=
r
>> =
wrapper.java.classpath.39=3D../../../../../web/WEB-INF/lib/ognl-2.6.5.jar=
>> =
wrapper.java.classpath.40=3D../../../../../web/WEB-INF/lib/oscache-2.3.2.=
jar
>> =
wrapper.java.classpath.41=3D../../../../../web/WEB-INF/lib/pvcommons.jar
>> wrapper.java.classpath.42=3D../../../../../web/WEB-INF/lib/sample.jar
>> =
wrapper.java.classpath.43=3D../../../../../web/WEB-INF/lib/truelicense.ja=
r
>> =
wrapper.java.classpath.44=3D../../../../../web/WEB-INF/lib/truexml.jar
>> wrapper.java.classpath.45=3D../../../../../web/WEB-INF/lib/xalan.jar
>> =
wrapper.java.classpath.46=3D../../../../../web/WEB-INF/lib/xercesImpl.jar=
>> =
wrapper.java.classpath.47=3D../../../../../web/WEB-INF/lib/xml-apis.jar
>>
>> //SO Custom jars
>> wrapper.java.classpath.48=3D../../../../lib/jsch.jar
>> wrapper.java.classpath.49=3D../../../../lib/adCustoms.jar
>>
>>
>>
>>
>> # Java Library Path (location of Wrapper.DLL or libwrapper.so)
>> wrapper.java.library.path.1=3D../lib
>>
>> # Java Additional Parameters
>> wrapper.java.additional.1=3D
>>
>> # Initial Java Heap Size (in MB)
>> #wrapper.java.initmemory=3D3
>>
>> # Maximum Java Heap Size (in MB)
>> wrapper.java.maxmemory=3D512
>>
>> # Application parameters. Add parameters as needed starting from 1
>> wrapper.app.parameter.1=3Dcom.i411.ad.listener.server.Server
>>
>> #********************************************************************
>> # Wrapper Logging Properties
>> #********************************************************************
>> # Format of output for the console. (See docs for formats)
>> wrapper.console.format=3DPM
>>
>> # Log Level for console output. (See docs for log levels)
>> wrapper.console.loglevel=3DNONE
>>
>> # Log file to use for wrapper output logging.
>> wrapper.logfile=3D../../../../../logs/de5_ss_service.log
>>
>> # Format of output for the log file. (See docs for formats)
>> wrapper.logfile.format=3DLPTM
>>
>> # Log Level for log file output. (See docs for log levels)
>> wrapper.logfile.loglevel=3DDEBUG
>>
>> # Maximum size that the log file will be allowed to grow to before
>> # the log is rolled. Size is specified in bytes. The default value
>> # of 0, disables log rolling. May abbreviate with the 'k' (kb) or
>> # 'm' (mb) suffix. For example: 10m =3D 10 megabytes.
>> wrapper.logfile.maxsize=3D0
>>
>> # Maximum number of rolled log files which will be allowed before old
>> # files are deleted. The default value of 0 implies no limit.
>> wrapper.logfile.maxfiles=3D0
>>
>> # Log Level for sys/event log output. (See docs for log levels)
>> wrapper.syslog.loglevel=3DNONE
>>
>> #********************************************************************
>> # Wrapper Windows Properties
>> #********************************************************************
>> # Title to use when running as a console
>> wrapper.console.title=3DDE5 Index Engine Listener
>>
>> #********************************************************************
>> # Wrapper Windows NT/2000/XP Service Properties
>> #********************************************************************
>> # WARNING - Do not modify any of these properties when an application
>> # using this configuration file has been installed as a service.
>> # Please uninstall the service before modifying this section. The
>> # service can then be reinstalled.
>>
>> # Name of the service
>> wrapper.ntservice.name=3Dde5_index_engine
>>
>> # Display name of the service
>> wrapper.ntservice.displayname=3DDE5 Index Engine Listener
>>
>> # Description of the service
>> wrapper.ntservice.description=3DDE5 Index Engine Listener
>>
>> # Service dependencies. Add dependencies as needed starting from 1
>> wrapper.ntservice.dependency.1=3D
>>
>> # Mode in which the service is installed. AUTO_START or DEMAND_START
>> wrapper.ntservice.starttype=3DDEMAND_START
>>
>> # Allow the service to interact with the desktop.
>> wrapper.ntservice.interactive=3Dfalse
>>
>> wrapper.ntservice.process_priority=3DREALTIMEs
>> =20
-------------------------------------------------------------------------=
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: <SA...@sy...> - 2007-08-29 08:05:07
|
I will be out of the office starting 29/08/2007 and will not return until 13/09/2007. I will respond to your message when I return. |
|
From: Rodrigo V. <rv...@i4...> - 2007-08-29 04:47:33
|
See the names of the categories created... for example API, Plugin even =
see
the com.i411.util.ConsoleLayout all of these are mine custom =
implementations
and configurations... that's the probe that my log4j.xml is loaded.
i'm setting the -Dlog4j.debug in the wrapper.java.additional parameters =
(i
miss this config in the file that i attach before)..=20
I will remove all this classpath lines and use will cards.... just to =
make
the configuration small and see if i'm including something wrong by
mistake... however the most strange think is that this configuration =
works on
windows without problems.
Thanks for your help.... tomorrow i will make a couple more of test and =
see
if i can found the problem... if not i will try to send a more complete =
and
organized information about this.
once again... thanks for your comments..
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 Leif =
Mortenson
Sent: Tue 28/08/2007 22:41
To: wra...@li...
Subject: Re: [Wrapper-user] FW: Debian64 + log4j + wrapper
=20
Dodrigo,
How is the -Dlog4j.debug property being set?It is not in the
wrapper.conf that you posted. You can set the following to see
the command line that the wrapper generates.
wrapper.java.command.loglevel=3DINFO
I can not imagine how the log files could be getting created but
not have anything written to them. That rules out a file permission
problem.
Maybe this is a class loader problem of some sort. The Wrapper
may be causing the log4j classes to be loaded and initialized
before the log4j config file is loaded? (Guessing that you are setting
log4j.debug in your code)
log4j defaults to all categories having a DEBUG log level. So them being
debug does not prove anything. Rather seeing a log level other than
DEBUG is proof that a configuration file is being found.
Another possibility is that you have two log4j config files. One =
forgotten
one may be in your jar and the other you are expecting to load is not
being loaded. I have seen problems like this in the past. One reason I
am not a fan of loading config files off of the class path.
Cheers,
Leif
Rodrigo Vega wrote:
> sorry i forget something... about log4j. Even the files are created...
>
>
> -----Original Message-----
> From: wra...@li... on behalf of Rodrigo =
Vega
> Sent: Tue 28/08/2007 21:36
> To: wra...@li...
> Subject: RE: [Wrapper-user] FW: Debian64 + log4j + wrapper
> =20
> I'm sure about log4j because i have setted the proeprty -Dlog4j.debug =
and
in
> the wrapper log i can see how all the appenders and categories are =
created.
> Look:
>
> so01:/home/i411/software# less so/logs/de5_ss_service.log
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting property =
[append]
to
> [true].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting property
> [datePattern] to ['.'yyyy-MM-dd].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Parsing layout of =
class:
> "com.i411.util.ConsoleLayout"
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting property
> [printStackTrace] to [true].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting property
> [conversionPattern] to [%d{ISO8601} %-5p [%c] %m%n].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: setFile called:
> /home/i411/software/so/logs/i411IS.log, true
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: setFile ended
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Appender [FILE] to be
rolled
> at midnight.
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Adding appender named
[FILE]
> to category [Index].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Retreiving an =
instance of
> org.apache.log4j.Logger.
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting [Data] =
additivity
to
> [false].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Level value for Data =
is
> [DEBUG].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Data level set to =
DEBUG
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Adding appender named
[FILE]
> to category [Data].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Retreiving an =
instance of
> org.apache.log4j.Logger.
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting [API] =
additivity
to
> [false].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Level value for API =
is
> [DEBUG].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: API level set to =
DEBUG
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Adding appender named
[FILE]
> to category [API].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Retreiving an =
instance of
> org.apache.log4j.Logger.
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting [Plugin]
additivity
> to [false].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Level value for =
Plugin is
> [DEBUG].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Plugin level set to =
DEBUG
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Adding appender named
[FILE]
> to category [Plugin].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Retreiving an =
instance of
> org.apache.log4j.Logger.
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting [Resource]
> additivity to [false].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Level value for =
Resource
is
> [DEBUG].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Resource level set to
DEBUG
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Adding appender named
[FILE]
> to category [Resource].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Retreiving an =
instance of
> org.apache.log4j.Logger.
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting [Unknown]
additivity
> to [false].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Level value for =
Unknown is
> [DEBUG].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Unknown level set to =
DEBUG
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Adding appender named
[FILE]
> to category [Unknown].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Retreiving an =
instance of
> org.apache.log4j.Logger.
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting [Debug] =
additivity
> to [false].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Level value for Debug =
is
> [DEBUG].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Debug level set to =
DEBUG
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Adding appender named
> [FILE_ADLISTENER] to category [Debug].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Adding appender named
[FILE]
> to category [Debug].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: System property is =
:null
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Standard
> DocumentBuilderFactory search succeded.
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: =
DocumentBuilderFactory is:
> org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: URL to log4j.dtd is=20
> ...
>
>
>
> Thanks for the suggestion about wild cards... i tried to do it once =
and it
> did not work. Maybe a was using an old version or something.
>
> Thanks for your answers... :-)
>
>
> -----Original Message-----
> From: wra...@li... on behalf of Leif
Mortenson
> Sent: Tue 28/08/2007 19:48
> To: wra...@li...
> Subject: Re: [Wrapper-user] FW: Debian64 + log4j + wrapper
> =20
> Rodrigo,
> Why are you sure that the log4j configuration file is being loaded?
> Where do you have it? Is it embedded one of your jar files or in the
> is directory? I do not see any other way it would be loaded as you
> have not placed any other directories on your classpath nor have
> you specified a system property with the location of the log4j
> config file.
>
> There is nothing about the wrapper that would prevent log4j from
> working if its config file is being read correctly.
>
> You might want to try using wildcards in your classpath
> definitions, that would simplify things for you greatly.
>
> # Java Classpath (include wrapper.jar) Add class path elements as
> # needed starting from 1
> wrapper.java.classpath.1=3D../lib/wrapper.jar
> wrapper.java.classpath.2=3D../../../../lib/*.jar
> wrapper.java.classpath.3=3D../../../../conf/is/
> wrapper.java.classpath.4=3D../../../../../web/WEB-INF/lib/*.jar
>
> Cheers,
> Leif
>
> Rodrigo Vega wrote:
> =20
>> Hi guys... this is my first post in this mail list. I hope i can=20
>> explain well my problem.
>>
>>
>> I'm running a java application in a Debian 64 server, and my=20
>> application needs to create several log files. This files are very=20
>> important to me.
>>
>> But this is the problem, if i run the app without the wrapper all the =
>> loggers are generated, but when i use the wrapper, i can see in the=20
>> wrapper log that the configuration for log4j is loaded but then=20
>> nothing is write to the files.
>>
>> I was using the same application in Windows XP/Vista/2003 and it runs =
>> without any problem. I already check if the user has permission to=20
>> write in the log file location and all is ok.
>>
>> Can anybody help me is kind of urgent... Thanks!
>>
>> These are my configuration files.
>>
>> WRAPPER.CONF
>>
>> # Java Application
>> wrapper.java.command=3Djava
>>
>> # Java Main class. This class must implement the WrapperListener=20
>> interface
>> # or guarantee that the WrapperManager class is initialized. Helper
>> # classes are provided to do this for you. See the Integration =
section
>> # of the documentation for details.
>> wrapper.java.mainclass=3Dorg.tanukisoftware.wrapper.WrapperSimpleApp
>>
>> # Java Classpath (include wrapper.jar) Add class path elements as
>> # needed starting from 1
>> wrapper.java.classpath.1=3D../lib/wrapper.jar
>> wrapper.java.classpath.2=3D../../../../lib/args4j-2.0.1.jar
>> wrapper.java.classpath.3=3D../../../../lib/chartcreator-1.2.0-RC1.jar
>> wrapper.java.classpath.4=3D../../../../lib/com4j.jar
>> wrapper.java.classpath.5=3D../../../../lib/commons-lang-2.2.jar
>> wrapper.java.classpath.6=3D../../../../lib/commons-logging.jar
>> wrapper.java.classpath.7=3D../../../../lib/compress.jar
>> wrapper.java.classpath.8=3D../../../../lib/i411ad-commons.jar
>> wrapper.java.classpath.9=3D../../../..//lib/i411ad-listener.jar
>> wrapper.java.classpath.10=3D../../../../lib/i411ad-native.jar
>> wrapper.java.classpath.11=3D../../../../lib/ISWbem.jar
>> wrapper.java.classpath.12=3D../../../../lib/jcommon-1.0.0-rc1.jar
>> wrapper.java.classpath.13=3D../../../../lib/jdom.jar
>> wrapper.java.classpath.14=3D../../../../lib/jfreechart-1.0.0-rc1.jar
>> wrapper.java.classpath.15=3D../../../../lib/jmml.jar
>> wrapper.java.classpath.16=3D../../../../lib/junit.jar
>> wrapper.java.classpath.17=3D../../../../lib/log4j-1.2.7.jar
>> wrapper.java.classpath.18=3D../../../../lib/oscache-2.3.2.jar
>> wrapper.java.classpath.19=3D../../../../lib/tlbimp.jar
>> wrapper.java.classpath.20=3D../../../../lib/xercesImpl.jar
>> wrapper.java.classpath.21=3D../../../../lib/xml-apis.jar
>> wrapper.java.classpath.22=3D../../../../lib/xpp3-1.1.3.4d_b4_min.jar
>> wrapper.java.classpath.23=3D../../../../lib/xstream-1.1.3.jar
>>
>> # AD config files needed in claspath
>> wrapper.java.classpath.24=3D../../../../conf/is/
>>
>> # DE5 API reference
>> wrapper.java.classpath.25=3D../../../../../web/WEB-INF/lib/i411de.jar
>>
>> # Here put all custom jars nedded
>>
>> =20
>
wrapper.java.classpath.26=3D../../../../../web/WEB-INF/lib/activation-1.0=
.2.jar
> =20
>> wrapper.java.classpath.27=3D../../../../../web/WEB-INF/lib/antlr.jar
>>
>> =20
>
wrapper.java.classpath.28=3D../../../../../web/WEB-INF/lib/commons-cli-1.=
0.jar
> =20
>
wrapper.java.classpath.29=3D../../../../../web/WEB-INF/lib/commons-codec-=
1.3.ja
> r
> =20
>>
wrapper.java.classpath.30=3D../../../../../web/WEB-INF/lib/commons-io-1.0=
.jar
>>
>> =20
>
wrapper.java.classpath.31=3D../../../../../web/WEB-INF/lib/commons-jxpath=
-1.1.j
> ar
> =20
>
wrapper.java.classpath.32=3D../../../../../web/WEB-INF/lib/commons-loggin=
g-1.0.
> 4.jar
> =20
>
wrapper.java.classpath.33=3D../../../../../web/WEB-INF/lib/jakarta-oro-2.=
0.6.ja
> r
> =20
>>
wrapper.java.classpath.34=3D../../../../../web/WEB-INF/lib/javamail-1.3ea=
.jar
>> =
wrapper.java.classpath.35=3D../../../../../web/WEB-INF/lib/jcommon-0.9.1.=
jar
>> wrapper.java.classpath.36=3D../../../../../web/WEB-INF/lib/jdom.jar
>> wrapper.java.classpath.37=3D../../../../../web/WEB-INF/lib/kxml.jar
>> =
wrapper.java.classpath.38=3D../../../../../web/WEB-INF/lib/log4j-1.2.7.ja=
r
>> =
wrapper.java.classpath.39=3D../../../../../web/WEB-INF/lib/ognl-2.6.5.jar=
>> =
wrapper.java.classpath.40=3D../../../../../web/WEB-INF/lib/oscache-2.3.2.=
jar
>> =
wrapper.java.classpath.41=3D../../../../../web/WEB-INF/lib/pvcommons.jar
>> wrapper.java.classpath.42=3D../../../../../web/WEB-INF/lib/sample.jar
>> =
wrapper.java.classpath.43=3D../../../../../web/WEB-INF/lib/truelicense.ja=
r
>> =
wrapper.java.classpath.44=3D../../../../../web/WEB-INF/lib/truexml.jar
>> wrapper.java.classpath.45=3D../../../../../web/WEB-INF/lib/xalan.jar
>> =
wrapper.java.classpath.46=3D../../../../../web/WEB-INF/lib/xercesImpl.jar=
>> =
wrapper.java.classpath.47=3D../../../../../web/WEB-INF/lib/xml-apis.jar
>>
>> //SO Custom jars
>> wrapper.java.classpath.48=3D../../../../lib/jsch.jar
>> wrapper.java.classpath.49=3D../../../../lib/adCustoms.jar
>>
>>
>>
>>
>> # Java Library Path (location of Wrapper.DLL or libwrapper.so)
>> wrapper.java.library.path.1=3D../lib
>>
>> # Java Additional Parameters
>> wrapper.java.additional.1=3D
>>
>> # Initial Java Heap Size (in MB)
>> #wrapper.java.initmemory=3D3
>>
>> # Maximum Java Heap Size (in MB)
>> wrapper.java.maxmemory=3D512
>>
>> # Application parameters. Add parameters as needed starting from 1
>> wrapper.app.parameter.1=3Dcom.i411.ad.listener.server.Server
>>
>> #********************************************************************
>> # Wrapper Logging Properties
>> #********************************************************************
>> # Format of output for the console. (See docs for formats)
>> wrapper.console.format=3DPM
>>
>> # Log Level for console output. (See docs for log levels)
>> wrapper.console.loglevel=3DNONE
>>
>> # Log file to use for wrapper output logging.
>> wrapper.logfile=3D../../../../../logs/de5_ss_service.log
>>
>> # Format of output for the log file. (See docs for formats)
>> wrapper.logfile.format=3DLPTM
>>
>> # Log Level for log file output. (See docs for log levels)
>> wrapper.logfile.loglevel=3DDEBUG
>>
>> # Maximum size that the log file will be allowed to grow to before
>> # the log is rolled. Size is specified in bytes. The default value
>> # of 0, disables log rolling. May abbreviate with the 'k' (kb) or
>> # 'm' (mb) suffix. For example: 10m =3D 10 megabytes.
>> wrapper.logfile.maxsize=3D0
>>
>> # Maximum number of rolled log files which will be allowed before old
>> # files are deleted. The default value of 0 implies no limit.
>> wrapper.logfile.maxfiles=3D0
>>
>> # Log Level for sys/event log output. (See docs for log levels)
>> wrapper.syslog.loglevel=3DNONE
>>
>> #********************************************************************
>> # Wrapper Windows Properties
>> #********************************************************************
>> # Title to use when running as a console
>> wrapper.console.title=3DDE5 Index Engine Listener
>>
>> #********************************************************************
>> # Wrapper Windows NT/2000/XP Service Properties
>> #********************************************************************
>> # WARNING - Do not modify any of these properties when an application
>> # using this configuration file has been installed as a service.
>> # Please uninstall the service before modifying this section. The
>> # service can then be reinstalled.
>>
>> # Name of the service
>> wrapper.ntservice.name=3Dde5_index_engine
>>
>> # Display name of the service
>> wrapper.ntservice.displayname=3DDE5 Index Engine Listener
>>
>> # Description of the service
>> wrapper.ntservice.description=3DDE5 Index Engine Listener
>>
>> # Service dependencies. Add dependencies as needed starting from 1
>> wrapper.ntservice.dependency.1=3D
>>
>> # Mode in which the service is installed. AUTO_START or DEMAND_START
>> wrapper.ntservice.starttype=3DDEMAND_START
>>
>> # Allow the service to interact with the desktop.
>> wrapper.ntservice.interactive=3Dfalse
>>
>> wrapper.ntservice.process_priority=3DREALTIMEs
>> =20
-------------------------------------------------------------------------=
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: Leif M. <le...@ta...> - 2007-08-29 01:42:05
|
Dodrigo,
How is the -Dlog4j.debug property being set?It is not in the
wrapper.conf that you posted. You can set the following to see
the command line that the wrapper generates.
wrapper.java.command.loglevel=INFO
I can not imagine how the log files could be getting created but
not have anything written to them. That rules out a file permission
problem.
Maybe this is a class loader problem of some sort. The Wrapper
may be causing the log4j classes to be loaded and initialized
before the log4j config file is loaded? (Guessing that you are setting
log4j.debug in your code)
log4j defaults to all categories having a DEBUG log level. So them being
debug does not prove anything. Rather seeing a log level other than
DEBUG is proof that a configuration file is being found.
Another possibility is that you have two log4j config files. One forgotten
one may be in your jar and the other you are expecting to load is not
being loaded. I have seen problems like this in the past. One reason I
am not a fan of loading config files off of the class path.
Cheers,
Leif
Rodrigo Vega wrote:
> sorry i forget something... about log4j. Even the files are created...
>
>
> -----Original Message-----
> From: wra...@li... on behalf of Rodrigo Vega
> Sent: Tue 28/08/2007 21:36
> To: wra...@li...
> Subject: RE: [Wrapper-user] FW: Debian64 + log4j + wrapper
>
> I'm sure about log4j because i have setted the proeprty -Dlog4j.debug and in
> the wrapper log i can see how all the appenders and categories are created.
> Look:
>
> so01:/home/i411/software# less so/logs/de5_ss_service.log
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting property [append] to
> [true].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting property
> [datePattern] to ['.'yyyy-MM-dd].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Parsing layout of class:
> "com.i411.util.ConsoleLayout"
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting property
> [printStackTrace] to [true].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting property
> [conversionPattern] to [%d{ISO8601} %-5p [%c] %m%n].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: setFile called:
> /home/i411/software/so/logs/i411IS.log, true
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: setFile ended
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Appender [FILE] to be rolled
> at midnight.
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Adding appender named [FILE]
> to category [Index].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Retreiving an instance of
> org.apache.log4j.Logger.
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting [Data] additivity to
> [false].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Level value for Data is
> [DEBUG].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Data level set to DEBUG
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Adding appender named [FILE]
> to category [Data].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Retreiving an instance of
> org.apache.log4j.Logger.
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting [API] additivity to
> [false].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Level value for API is
> [DEBUG].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: API level set to DEBUG
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Adding appender named [FILE]
> to category [API].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Retreiving an instance of
> org.apache.log4j.Logger.
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting [Plugin] additivity
> to [false].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Level value for Plugin is
> [DEBUG].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Plugin level set to DEBUG
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Adding appender named [FILE]
> to category [Plugin].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Retreiving an instance of
> org.apache.log4j.Logger.
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting [Resource]
> additivity to [false].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Level value for Resource is
> [DEBUG].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Resource level set to DEBUG
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Adding appender named [FILE]
> to category [Resource].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Retreiving an instance of
> org.apache.log4j.Logger.
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting [Unknown] additivity
> to [false].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Level value for Unknown is
> [DEBUG].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Unknown level set to DEBUG
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Adding appender named [FILE]
> to category [Unknown].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Retreiving an instance of
> org.apache.log4j.Logger.
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting [Debug] additivity
> to [false].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Level value for Debug is
> [DEBUG].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Debug level set to DEBUG
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Adding appender named
> [FILE_ADLISTENER] to category [Debug].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Adding appender named [FILE]
> to category [Debug].
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: System property is :null
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Standard
> DocumentBuilderFactory search succeded.
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: DocumentBuilderFactory is:
> org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
> INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: URL to log4j.dtd is
> ...
>
>
>
> Thanks for the suggestion about wild cards... i tried to do it once and it
> did not work. Maybe a was using an old version or something.
>
> Thanks for your answers... :-)
>
>
> -----Original Message-----
> From: wra...@li... on behalf of Leif Mortenson
> Sent: Tue 28/08/2007 19:48
> To: wra...@li...
> Subject: Re: [Wrapper-user] FW: Debian64 + log4j + wrapper
>
> Rodrigo,
> Why are you sure that the log4j configuration file is being loaded?
> Where do you have it? Is it embedded one of your jar files or in the
> is directory? I do not see any other way it would be loaded as you
> have not placed any other directories on your classpath nor have
> you specified a system property with the location of the log4j
> config file.
>
> There is nothing about the wrapper that would prevent log4j from
> working if its config file is being read correctly.
>
> You might want to try using wildcards in your classpath
> definitions, that would simplify things for you greatly.
>
> # Java Classpath (include wrapper.jar) Add class path elements as
> # needed starting from 1
> wrapper.java.classpath.1=../lib/wrapper.jar
> wrapper.java.classpath.2=../../../../lib/*.jar
> wrapper.java.classpath.3=../../../../conf/is/
> wrapper.java.classpath.4=../../../../../web/WEB-INF/lib/*.jar
>
> Cheers,
> Leif
>
> Rodrigo Vega wrote:
>
>> Hi guys... this is my first post in this mail list. I hope i can
>> explain well my problem.
>>
>>
>> I'm running a java application in a Debian 64 server, and my
>> application needs to create several log files. This files are very
>> important to me.
>>
>> But this is the problem, if i run the app without the wrapper all the
>> loggers are generated, but when i use the wrapper, i can see in the
>> wrapper log that the configuration for log4j is loaded but then
>> nothing is write to the files.
>>
>> I was using the same application in Windows XP/Vista/2003 and it runs
>> without any problem. I already check if the user has permission to
>> write in the log file location and all is ok.
>>
>> Can anybody help me is kind of urgent... Thanks!
>>
>> These are my configuration files.
>>
>> WRAPPER.CONF
>>
>> # Java Application
>> wrapper.java.command=java
>>
>> # Java Main class. This class must implement the WrapperListener
>> interface
>> # or guarantee that the WrapperManager class is initialized. Helper
>> # classes are provided to do this for you. See the Integration section
>> # of the documentation for details.
>> wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp
>>
>> # Java Classpath (include wrapper.jar) Add class path elements as
>> # needed starting from 1
>> wrapper.java.classpath.1=../lib/wrapper.jar
>> wrapper.java.classpath.2=../../../../lib/args4j-2.0.1.jar
>> wrapper.java.classpath.3=../../../../lib/chartcreator-1.2.0-RC1.jar
>> wrapper.java.classpath.4=../../../../lib/com4j.jar
>> wrapper.java.classpath.5=../../../../lib/commons-lang-2.2.jar
>> wrapper.java.classpath.6=../../../../lib/commons-logging.jar
>> wrapper.java.classpath.7=../../../../lib/compress.jar
>> wrapper.java.classpath.8=../../../../lib/i411ad-commons.jar
>> wrapper.java.classpath.9=../../../..//lib/i411ad-listener.jar
>> wrapper.java.classpath.10=../../../../lib/i411ad-native.jar
>> wrapper.java.classpath.11=../../../../lib/ISWbem.jar
>> wrapper.java.classpath.12=../../../../lib/jcommon-1.0.0-rc1.jar
>> wrapper.java.classpath.13=../../../../lib/jdom.jar
>> wrapper.java.classpath.14=../../../../lib/jfreechart-1.0.0-rc1.jar
>> wrapper.java.classpath.15=../../../../lib/jmml.jar
>> wrapper.java.classpath.16=../../../../lib/junit.jar
>> wrapper.java.classpath.17=../../../../lib/log4j-1.2.7.jar
>> wrapper.java.classpath.18=../../../../lib/oscache-2.3.2.jar
>> wrapper.java.classpath.19=../../../../lib/tlbimp.jar
>> wrapper.java.classpath.20=../../../../lib/xercesImpl.jar
>> wrapper.java.classpath.21=../../../../lib/xml-apis.jar
>> wrapper.java.classpath.22=../../../../lib/xpp3-1.1.3.4d_b4_min.jar
>> wrapper.java.classpath.23=../../../../lib/xstream-1.1.3.jar
>>
>> # AD config files needed in claspath
>> wrapper.java.classpath.24=../../../../conf/is/
>>
>> # DE5 API reference
>> wrapper.java.classpath.25=../../../../../web/WEB-INF/lib/i411de.jar
>>
>> # Here put all custom jars nedded
>>
>>
> wrapper.java.classpath.26=../../../../../web/WEB-INF/lib/activation-1.0.2.jar
>
>> wrapper.java.classpath.27=../../../../../web/WEB-INF/lib/antlr.jar
>>
>>
> wrapper.java.classpath.28=../../../../../web/WEB-INF/lib/commons-cli-1.0.jar
>
> wrapper.java.classpath.29=../../../../../web/WEB-INF/lib/commons-codec-1.3.ja
> r
>
>> wrapper.java.classpath.30=../../../../../web/WEB-INF/lib/commons-io-1.0.jar
>>
>>
> wrapper.java.classpath.31=../../../../../web/WEB-INF/lib/commons-jxpath-1.1.j
> ar
>
> wrapper.java.classpath.32=../../../../../web/WEB-INF/lib/commons-logging-1.0.
> 4.jar
>
> wrapper.java.classpath.33=../../../../../web/WEB-INF/lib/jakarta-oro-2.0.6.ja
> r
>
>> wrapper.java.classpath.34=../../../../../web/WEB-INF/lib/javamail-1.3ea.jar
>> wrapper.java.classpath.35=../../../../../web/WEB-INF/lib/jcommon-0.9.1.jar
>> wrapper.java.classpath.36=../../../../../web/WEB-INF/lib/jdom.jar
>> wrapper.java.classpath.37=../../../../../web/WEB-INF/lib/kxml.jar
>> wrapper.java.classpath.38=../../../../../web/WEB-INF/lib/log4j-1.2.7.jar
>> wrapper.java.classpath.39=../../../../../web/WEB-INF/lib/ognl-2.6.5.jar
>> wrapper.java.classpath.40=../../../../../web/WEB-INF/lib/oscache-2.3.2.jar
>> wrapper.java.classpath.41=../../../../../web/WEB-INF/lib/pvcommons.jar
>> wrapper.java.classpath.42=../../../../../web/WEB-INF/lib/sample.jar
>> wrapper.java.classpath.43=../../../../../web/WEB-INF/lib/truelicense.jar
>> wrapper.java.classpath.44=../../../../../web/WEB-INF/lib/truexml.jar
>> wrapper.java.classpath.45=../../../../../web/WEB-INF/lib/xalan.jar
>> wrapper.java.classpath.46=../../../../../web/WEB-INF/lib/xercesImpl.jar
>> wrapper.java.classpath.47=../../../../../web/WEB-INF/lib/xml-apis.jar
>>
>> //SO Custom jars
>> wrapper.java.classpath.48=../../../../lib/jsch.jar
>> wrapper.java.classpath.49=../../../../lib/adCustoms.jar
>>
>>
>>
>>
>> # Java Library Path (location of Wrapper.DLL or libwrapper.so)
>> wrapper.java.library.path.1=../lib
>>
>> # Java Additional Parameters
>> wrapper.java.additional.1=
>>
>> # Initial Java Heap Size (in MB)
>> #wrapper.java.initmemory=3
>>
>> # Maximum Java Heap Size (in MB)
>> wrapper.java.maxmemory=512
>>
>> # Application parameters. Add parameters as needed starting from 1
>> wrapper.app.parameter.1=com.i411.ad.listener.server.Server
>>
>> #********************************************************************
>> # Wrapper Logging Properties
>> #********************************************************************
>> # Format of output for the console. (See docs for formats)
>> wrapper.console.format=PM
>>
>> # Log Level for console output. (See docs for log levels)
>> wrapper.console.loglevel=NONE
>>
>> # Log file to use for wrapper output logging.
>> wrapper.logfile=../../../../../logs/de5_ss_service.log
>>
>> # Format of output for the log file. (See docs for formats)
>> wrapper.logfile.format=LPTM
>>
>> # Log Level for log file output. (See docs for log levels)
>> wrapper.logfile.loglevel=DEBUG
>>
>> # Maximum size that the log file will be allowed to grow to before
>> # the log is rolled. Size is specified in bytes. The default value
>> # of 0, disables log rolling. May abbreviate with the 'k' (kb) or
>> # 'm' (mb) suffix. For example: 10m = 10 megabytes.
>> wrapper.logfile.maxsize=0
>>
>> # Maximum number of rolled log files which will be allowed before old
>> # files are deleted. The default value of 0 implies no limit.
>> wrapper.logfile.maxfiles=0
>>
>> # Log Level for sys/event log output. (See docs for log levels)
>> wrapper.syslog.loglevel=NONE
>>
>> #********************************************************************
>> # Wrapper Windows Properties
>> #********************************************************************
>> # Title to use when running as a console
>> wrapper.console.title=DE5 Index Engine Listener
>>
>> #********************************************************************
>> # Wrapper Windows NT/2000/XP Service Properties
>> #********************************************************************
>> # WARNING - Do not modify any of these properties when an application
>> # using this configuration file has been installed as a service.
>> # Please uninstall the service before modifying this section. The
>> # service can then be reinstalled.
>>
>> # Name of the service
>> wrapper.ntservice.name=de5_index_engine
>>
>> # Display name of the service
>> wrapper.ntservice.displayname=DE5 Index Engine Listener
>>
>> # Description of the service
>> wrapper.ntservice.description=DE5 Index Engine Listener
>>
>> # Service dependencies. Add dependencies as needed starting from 1
>> wrapper.ntservice.dependency.1=
>>
>> # Mode in which the service is installed. AUTO_START or DEMAND_START
>> wrapper.ntservice.starttype=DEMAND_START
>>
>> # Allow the service to interact with the desktop.
>> wrapper.ntservice.interactive=false
>>
>> wrapper.ntservice.process_priority=REALTIMEs
>>
|
|
From: Rodrigo V. <rv...@i4...> - 2007-08-29 00:42:35
|
sorry i forget something... about log4j. Even the files 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 Rodrigo =
Vega
Sent: Tue 28/08/2007 21:36
To: wra...@li...
Subject: RE: [Wrapper-user] FW: Debian64 + log4j + wrapper
=20
I'm sure about log4j because i have setted the proeprty -Dlog4j.debug =
and in
the wrapper log i can see how all the appenders and categories are =
created.
Look:
so01:/home/i411/software# less so/logs/de5_ss_service.log
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting property =
[append] to
[true].
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting property
[datePattern] to ['.'yyyy-MM-dd].
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Parsing layout of =
class:
"com.i411.util.ConsoleLayout"
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting property
[printStackTrace] to [true].
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting property
[conversionPattern] to [%d{ISO8601} %-5p [%c] %m%n].
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: setFile called:
/home/i411/software/so/logs/i411IS.log, true
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: setFile ended
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Appender [FILE] to be =
rolled
at midnight.
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Adding appender named =
[FILE]
to category [Index].
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Retreiving an instance =
of
org.apache.log4j.Logger.
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting [Data] =
additivity to
[false].
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Level value for Data is
[DEBUG].
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Data level set to DEBUG
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Adding appender named =
[FILE]
to category [Data].
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Retreiving an instance =
of
org.apache.log4j.Logger.
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting [API] =
additivity to
[false].
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Level value for API is
[DEBUG].
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: API level set to DEBUG
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Adding appender named =
[FILE]
to category [API].
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Retreiving an instance =
of
org.apache.log4j.Logger.
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting [Plugin] =
additivity
to [false].
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Level value for Plugin =
is
[DEBUG].
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Plugin level set to =
DEBUG
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Adding appender named =
[FILE]
to category [Plugin].
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Retreiving an instance =
of
org.apache.log4j.Logger.
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting [Resource]
additivity to [false].
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Level value for =
Resource is
[DEBUG].
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Resource level set to =
DEBUG
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Adding appender named =
[FILE]
to category [Resource].
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Retreiving an instance =
of
org.apache.log4j.Logger.
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting [Unknown] =
additivity
to [false].
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Level value for Unknown =
is
[DEBUG].
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Unknown level set to =
DEBUG
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Adding appender named =
[FILE]
to category [Unknown].
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Retreiving an instance =
of
org.apache.log4j.Logger.
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting [Debug] =
additivity
to [false].
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Level value for Debug =
is
[DEBUG].
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Debug level set to =
DEBUG
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Adding appender named
[FILE_ADLISTENER] to category [Debug].
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Adding appender named =
[FILE]
to category [Debug].
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: System property is =
:null
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Standard
DocumentBuilderFactory search succeded.
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: DocumentBuilderFactory =
is:
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: URL to log4j.dtd is=20
...
Thanks for the suggestion about wild cards... i tried to do it once and =
it
did not work. Maybe a was using an old version or something.
Thanks for your answers... :-)
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 Leif =
Mortenson
Sent: Tue 28/08/2007 19:48
To: wra...@li...
Subject: Re: [Wrapper-user] FW: Debian64 + log4j + wrapper
=20
Rodrigo,
Why are you sure that the log4j configuration file is being loaded?
Where do you have it? Is it embedded one of your jar files or in the
is directory? I do not see any other way it would be loaded as you
have not placed any other directories on your classpath nor have
you specified a system property with the location of the log4j
config file.
There is nothing about the wrapper that would prevent log4j from
working if its config file is being read correctly.
You might want to try using wildcards in your classpath
definitions, that would simplify things for you greatly.
# Java Classpath (include wrapper.jar) Add class path elements as
# needed starting from 1
wrapper.java.classpath.1=3D../lib/wrapper.jar
wrapper.java.classpath.2=3D../../../../lib/*.jar
wrapper.java.classpath.3=3D../../../../conf/is/
wrapper.java.classpath.4=3D../../../../../web/WEB-INF/lib/*.jar
Cheers,
Leif
Rodrigo Vega wrote:
>
>
> Hi guys... this is my first post in this mail list. I hope i can=20
> explain well my problem.
>
>
> I'm running a java application in a Debian 64 server, and my=20
> application needs to create several log files. This files are very=20
> important to me.
>
> But this is the problem, if i run the app without the wrapper all the=20
> loggers are generated, but when i use the wrapper, i can see in the=20
> wrapper log that the configuration for log4j is loaded but then=20
> nothing is write to the files.
>
> I was using the same application in Windows XP/Vista/2003 and it runs=20
> without any problem. I already check if the user has permission to=20
> write in the log file location and all is ok.
>
> Can anybody help me is kind of urgent... Thanks!
>
> These are my configuration files.
>
> WRAPPER.CONF
>
> # Java Application
> wrapper.java.command=3Djava
>
> # Java Main class. This class must implement the WrapperListener=20
> interface
> # or guarantee that the WrapperManager class is initialized. Helper
> # classes are provided to do this for you. See the Integration =
section
> # of the documentation for details.
> wrapper.java.mainclass=3Dorg.tanukisoftware.wrapper.WrapperSimpleApp
>
> # Java Classpath (include wrapper.jar) Add class path elements as
> # needed starting from 1
> wrapper.java.classpath.1=3D../lib/wrapper.jar
> wrapper.java.classpath.2=3D../../../../lib/args4j-2.0.1.jar
> wrapper.java.classpath.3=3D../../../../lib/chartcreator-1.2.0-RC1.jar
> wrapper.java.classpath.4=3D../../../../lib/com4j.jar
> wrapper.java.classpath.5=3D../../../../lib/commons-lang-2.2.jar
> wrapper.java.classpath.6=3D../../../../lib/commons-logging.jar
> wrapper.java.classpath.7=3D../../../../lib/compress.jar
> wrapper.java.classpath.8=3D../../../../lib/i411ad-commons.jar
> wrapper.java.classpath.9=3D../../../..//lib/i411ad-listener.jar
> wrapper.java.classpath.10=3D../../../../lib/i411ad-native.jar
> wrapper.java.classpath.11=3D../../../../lib/ISWbem.jar
> wrapper.java.classpath.12=3D../../../../lib/jcommon-1.0.0-rc1.jar
> wrapper.java.classpath.13=3D../../../../lib/jdom.jar
> wrapper.java.classpath.14=3D../../../../lib/jfreechart-1.0.0-rc1.jar
> wrapper.java.classpath.15=3D../../../../lib/jmml.jar
> wrapper.java.classpath.16=3D../../../../lib/junit.jar
> wrapper.java.classpath.17=3D../../../../lib/log4j-1.2.7.jar
> wrapper.java.classpath.18=3D../../../../lib/oscache-2.3.2.jar
> wrapper.java.classpath.19=3D../../../../lib/tlbimp.jar
> wrapper.java.classpath.20=3D../../../../lib/xercesImpl.jar
> wrapper.java.classpath.21=3D../../../../lib/xml-apis.jar
> wrapper.java.classpath.22=3D../../../../lib/xpp3-1.1.3.4d_b4_min.jar
> wrapper.java.classpath.23=3D../../../../lib/xstream-1.1.3.jar
>
> # AD config files needed in claspath
> wrapper.java.classpath.24=3D../../../../conf/is/
>
> # DE5 API reference
> wrapper.java.classpath.25=3D../../../../../web/WEB-INF/lib/i411de.jar
>
> # Here put all custom jars nedded
>
wrapper.java.classpath.26=3D../../../../../web/WEB-INF/lib/activation-1.0=
.2.jar
> wrapper.java.classpath.27=3D../../../../../web/WEB-INF/lib/antlr.jar
>
wrapper.java.classpath.28=3D../../../../../web/WEB-INF/lib/commons-cli-1.=
0.jar
>
wrapper.java.classpath.29=3D../../../../../web/WEB-INF/lib/commons-codec-=
1.3.ja
r
> =
wrapper.java.classpath.30=3D../../../../../web/WEB-INF/lib/commons-io-1.0=
.jar
>
wrapper.java.classpath.31=3D../../../../../web/WEB-INF/lib/commons-jxpath=
-1.1.j
ar
>
wrapper.java.classpath.32=3D../../../../../web/WEB-INF/lib/commons-loggin=
g-1.0.
4.jar
>
wrapper.java.classpath.33=3D../../../../../web/WEB-INF/lib/jakarta-oro-2.=
0.6.ja
r
> =
wrapper.java.classpath.34=3D../../../../../web/WEB-INF/lib/javamail-1.3ea=
.jar
> =
wrapper.java.classpath.35=3D../../../../../web/WEB-INF/lib/jcommon-0.9.1.=
jar
> wrapper.java.classpath.36=3D../../../../../web/WEB-INF/lib/jdom.jar
> wrapper.java.classpath.37=3D../../../../../web/WEB-INF/lib/kxml.jar
> =
wrapper.java.classpath.38=3D../../../../../web/WEB-INF/lib/log4j-1.2.7.ja=
r
> =
wrapper.java.classpath.39=3D../../../../../web/WEB-INF/lib/ognl-2.6.5.jar=
> =
wrapper.java.classpath.40=3D../../../../../web/WEB-INF/lib/oscache-2.3.2.=
jar
> =
wrapper.java.classpath.41=3D../../../../../web/WEB-INF/lib/pvcommons.jar
> wrapper.java.classpath.42=3D../../../../../web/WEB-INF/lib/sample.jar
> =
wrapper.java.classpath.43=3D../../../../../web/WEB-INF/lib/truelicense.ja=
r
> wrapper.java.classpath.44=3D../../../../../web/WEB-INF/lib/truexml.jar
> wrapper.java.classpath.45=3D../../../../../web/WEB-INF/lib/xalan.jar
> =
wrapper.java.classpath.46=3D../../../../../web/WEB-INF/lib/xercesImpl.jar=
> =
wrapper.java.classpath.47=3D../../../../../web/WEB-INF/lib/xml-apis.jar
>
> //SO Custom jars
> wrapper.java.classpath.48=3D../../../../lib/jsch.jar
> wrapper.java.classpath.49=3D../../../../lib/adCustoms.jar
>
>
>
>
> # Java Library Path (location of Wrapper.DLL or libwrapper.so)
> wrapper.java.library.path.1=3D../lib
>
> # Java Additional Parameters
> wrapper.java.additional.1=3D
>
> # Initial Java Heap Size (in MB)
> #wrapper.java.initmemory=3D3
>
> # Maximum Java Heap Size (in MB)
> wrapper.java.maxmemory=3D512
>
> # Application parameters. Add parameters as needed starting from 1
> wrapper.app.parameter.1=3Dcom.i411.ad.listener.server.Server
>
> #********************************************************************
> # Wrapper Logging Properties
> #********************************************************************
> # Format of output for the console. (See docs for formats)
> wrapper.console.format=3DPM
>
> # Log Level for console output. (See docs for log levels)
> wrapper.console.loglevel=3DNONE
>
> # Log file to use for wrapper output logging.
> wrapper.logfile=3D../../../../../logs/de5_ss_service.log
>
> # Format of output for the log file. (See docs for formats)
> wrapper.logfile.format=3DLPTM
>
> # Log Level for log file output. (See docs for log levels)
> wrapper.logfile.loglevel=3DDEBUG
>
> # Maximum size that the log file will be allowed to grow to before
> # the log is rolled. Size is specified in bytes. The default value
> # of 0, disables log rolling. May abbreviate with the 'k' (kb) or
> # 'm' (mb) suffix. For example: 10m =3D 10 megabytes.
> wrapper.logfile.maxsize=3D0
>
> # Maximum number of rolled log files which will be allowed before old
> # files are deleted. The default value of 0 implies no limit.
> wrapper.logfile.maxfiles=3D0
>
> # Log Level for sys/event log output. (See docs for log levels)
> wrapper.syslog.loglevel=3DNONE
>
> #********************************************************************
> # Wrapper Windows Properties
> #********************************************************************
> # Title to use when running as a console
> wrapper.console.title=3DDE5 Index Engine Listener
>
> #********************************************************************
> # Wrapper Windows NT/2000/XP Service Properties
> #********************************************************************
> # WARNING - Do not modify any of these properties when an application
> # using this configuration file has been installed as a service.
> # Please uninstall the service before modifying this section. The
> # service can then be reinstalled.
>
> # Name of the service
> wrapper.ntservice.name=3Dde5_index_engine
>
> # Display name of the service
> wrapper.ntservice.displayname=3DDE5 Index Engine Listener
>
> # Description of the service
> wrapper.ntservice.description=3DDE5 Index Engine Listener
>
> # Service dependencies. Add dependencies as needed starting from 1
> wrapper.ntservice.dependency.1=3D
>
> # Mode in which the service is installed. AUTO_START or DEMAND_START
> wrapper.ntservice.starttype=3DDEMAND_START
>
> # Allow the service to interact with the desktop.
> wrapper.ntservice.interactive=3Dfalse
>
> wrapper.ntservice.process_priority=3DREALTIMEs
>
>
>
> Rodrigo G. Vega
> i411 Argentina
> rv...@i4...
>
> Este mensaje es confidencial. Si usted ha recibido este e-mail por=20
> error, por favor comun=EDquenoslo inmediatamente v=EDa e-mail y tenga =
la=20
> amabilidad de eliminarlo de su sistema; no deber=E1 copiar el mensaje =
ni=20
> divulgar su contenido a ninguna persona. Muchas gracias.
>
> This message is confidential. If you have received it by mistake=20
> please let us know by e-mail immediately and delete it from your=20
> system; you should also not copy the message nor disclose its contents =
> to anyone. Many thanks.
>
>
> =
------------------------------------------------------------------------
>
> =
-------------------------------------------------------------------------=
> 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
> =20
-------------------------------------------------------------------------=
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: Rodrigo V. <rv...@i4...> - 2007-08-29 00:36:35
|
I'm sure about log4j because i have setted the proeprty -Dlog4j.debug =
and in
the wrapper log i can see how all the appenders and categories are =
created.
Look:
so01:/home/i411/software# less so/logs/de5_ss_service.log
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting property =
[append] to
[true].
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting property
[datePattern] to ['.'yyyy-MM-dd].
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Parsing layout of =
class:
"com.i411.util.ConsoleLayout"
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting property
[printStackTrace] to [true].
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting property
[conversionPattern] to [%d{ISO8601} %-5p [%c] %m%n].
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: setFile called:
/home/i411/software/so/logs/i411IS.log, true
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: setFile ended
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Appender [FILE] to be =
rolled
at midnight.
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Adding appender named =
[FILE]
to category [Index].
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Retreiving an instance =
of
org.apache.log4j.Logger.
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting [Data] =
additivity to
[false].
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Level value for Data is
[DEBUG].
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Data level set to DEBUG
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Adding appender named =
[FILE]
to category [Data].
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Retreiving an instance =
of
org.apache.log4j.Logger.
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting [API] =
additivity to
[false].
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Level value for API is
[DEBUG].
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: API level set to DEBUG
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Adding appender named =
[FILE]
to category [API].
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Retreiving an instance =
of
org.apache.log4j.Logger.
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting [Plugin] =
additivity
to [false].
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Level value for Plugin =
is
[DEBUG].
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Plugin level set to =
DEBUG
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Adding appender named =
[FILE]
to category [Plugin].
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Retreiving an instance =
of
org.apache.log4j.Logger.
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting [Resource]
additivity to [false].
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Level value for =
Resource is
[DEBUG].
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Resource level set to =
DEBUG
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Adding appender named =
[FILE]
to category [Resource].
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Retreiving an instance =
of
org.apache.log4j.Logger.
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting [Unknown] =
additivity
to [false].
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Level value for Unknown =
is
[DEBUG].
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Unknown level set to =
DEBUG
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Adding appender named =
[FILE]
to category [Unknown].
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Retreiving an instance =
of
org.apache.log4j.Logger.
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Setting [Debug] =
additivity
to [false].
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Level value for Debug =
is
[DEBUG].
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Debug level set to =
DEBUG
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Adding appender named
[FILE_ADLISTENER] to category [Debug].
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Adding appender named =
[FILE]
to category [Debug].
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: System property is =
:null
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: Standard
DocumentBuilderFactory search succeded.
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: DocumentBuilderFactory =
is:
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
INFO | jvm 1 | 2007/08/28 18:40:08 | log4j: URL to log4j.dtd is=20
...
Thanks for the suggestion about wild cards... i tried to do it once and =
it
did not work. Maybe a was using an old version or something.
Thanks for your answers... :-)
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 Leif =
Mortenson
Sent: Tue 28/08/2007 19:48
To: wra...@li...
Subject: Re: [Wrapper-user] FW: Debian64 + log4j + wrapper
=20
Rodrigo,
Why are you sure that the log4j configuration file is being loaded?
Where do you have it? Is it embedded one of your jar files or in the
is directory? I do not see any other way it would be loaded as you
have not placed any other directories on your classpath nor have
you specified a system property with the location of the log4j
config file.
There is nothing about the wrapper that would prevent log4j from
working if its config file is being read correctly.
You might want to try using wildcards in your classpath
definitions, that would simplify things for you greatly.
# Java Classpath (include wrapper.jar) Add class path elements as
# needed starting from 1
wrapper.java.classpath.1=3D../lib/wrapper.jar
wrapper.java.classpath.2=3D../../../../lib/*.jar
wrapper.java.classpath.3=3D../../../../conf/is/
wrapper.java.classpath.4=3D../../../../../web/WEB-INF/lib/*.jar
Cheers,
Leif
Rodrigo Vega wrote:
>
>
> Hi guys... this is my first post in this mail list. I hope i can=20
> explain well my problem.
>
>
> I'm running a java application in a Debian 64 server, and my=20
> application needs to create several log files. This files are very=20
> important to me.
>
> But this is the problem, if i run the app without the wrapper all the=20
> loggers are generated, but when i use the wrapper, i can see in the=20
> wrapper log that the configuration for log4j is loaded but then=20
> nothing is write to the files.
>
> I was using the same application in Windows XP/Vista/2003 and it runs=20
> without any problem. I already check if the user has permission to=20
> write in the log file location and all is ok.
>
> Can anybody help me is kind of urgent... Thanks!
>
> These are my configuration files.
>
> WRAPPER.CONF
>
> # Java Application
> wrapper.java.command=3Djava
>
> # Java Main class. This class must implement the WrapperListener=20
> interface
> # or guarantee that the WrapperManager class is initialized. Helper
> # classes are provided to do this for you. See the Integration =
section
> # of the documentation for details.
> wrapper.java.mainclass=3Dorg.tanukisoftware.wrapper.WrapperSimpleApp
>
> # Java Classpath (include wrapper.jar) Add class path elements as
> # needed starting from 1
> wrapper.java.classpath.1=3D../lib/wrapper.jar
> wrapper.java.classpath.2=3D../../../../lib/args4j-2.0.1.jar
> wrapper.java.classpath.3=3D../../../../lib/chartcreator-1.2.0-RC1.jar
> wrapper.java.classpath.4=3D../../../../lib/com4j.jar
> wrapper.java.classpath.5=3D../../../../lib/commons-lang-2.2.jar
> wrapper.java.classpath.6=3D../../../../lib/commons-logging.jar
> wrapper.java.classpath.7=3D../../../../lib/compress.jar
> wrapper.java.classpath.8=3D../../../../lib/i411ad-commons.jar
> wrapper.java.classpath.9=3D../../../..//lib/i411ad-listener.jar
> wrapper.java.classpath.10=3D../../../../lib/i411ad-native.jar
> wrapper.java.classpath.11=3D../../../../lib/ISWbem.jar
> wrapper.java.classpath.12=3D../../../../lib/jcommon-1.0.0-rc1.jar
> wrapper.java.classpath.13=3D../../../../lib/jdom.jar
> wrapper.java.classpath.14=3D../../../../lib/jfreechart-1.0.0-rc1.jar
> wrapper.java.classpath.15=3D../../../../lib/jmml.jar
> wrapper.java.classpath.16=3D../../../../lib/junit.jar
> wrapper.java.classpath.17=3D../../../../lib/log4j-1.2.7.jar
> wrapper.java.classpath.18=3D../../../../lib/oscache-2.3.2.jar
> wrapper.java.classpath.19=3D../../../../lib/tlbimp.jar
> wrapper.java.classpath.20=3D../../../../lib/xercesImpl.jar
> wrapper.java.classpath.21=3D../../../../lib/xml-apis.jar
> wrapper.java.classpath.22=3D../../../../lib/xpp3-1.1.3.4d_b4_min.jar
> wrapper.java.classpath.23=3D../../../../lib/xstream-1.1.3.jar
>
> # AD config files needed in claspath
> wrapper.java.classpath.24=3D../../../../conf/is/
>
> # DE5 API reference
> wrapper.java.classpath.25=3D../../../../../web/WEB-INF/lib/i411de.jar
>
> # Here put all custom jars nedded
>
wrapper.java.classpath.26=3D../../../../../web/WEB-INF/lib/activation-1.0=
.2.jar
> wrapper.java.classpath.27=3D../../../../../web/WEB-INF/lib/antlr.jar
>
wrapper.java.classpath.28=3D../../../../../web/WEB-INF/lib/commons-cli-1.=
0.jar
>
wrapper.java.classpath.29=3D../../../../../web/WEB-INF/lib/commons-codec-=
1.3.ja
r
> =
wrapper.java.classpath.30=3D../../../../../web/WEB-INF/lib/commons-io-1.0=
.jar
>
wrapper.java.classpath.31=3D../../../../../web/WEB-INF/lib/commons-jxpath=
-1.1.j
ar
>
wrapper.java.classpath.32=3D../../../../../web/WEB-INF/lib/commons-loggin=
g-1.0.
4.jar
>
wrapper.java.classpath.33=3D../../../../../web/WEB-INF/lib/jakarta-oro-2.=
0.6.ja
r
> =
wrapper.java.classpath.34=3D../../../../../web/WEB-INF/lib/javamail-1.3ea=
.jar
> =
wrapper.java.classpath.35=3D../../../../../web/WEB-INF/lib/jcommon-0.9.1.=
jar
> wrapper.java.classpath.36=3D../../../../../web/WEB-INF/lib/jdom.jar
> wrapper.java.classpath.37=3D../../../../../web/WEB-INF/lib/kxml.jar
> =
wrapper.java.classpath.38=3D../../../../../web/WEB-INF/lib/log4j-1.2.7.ja=
r
> =
wrapper.java.classpath.39=3D../../../../../web/WEB-INF/lib/ognl-2.6.5.jar=
> =
wrapper.java.classpath.40=3D../../../../../web/WEB-INF/lib/oscache-2.3.2.=
jar
> =
wrapper.java.classpath.41=3D../../../../../web/WEB-INF/lib/pvcommons.jar
> wrapper.java.classpath.42=3D../../../../../web/WEB-INF/lib/sample.jar
> =
wrapper.java.classpath.43=3D../../../../../web/WEB-INF/lib/truelicense.ja=
r
> wrapper.java.classpath.44=3D../../../../../web/WEB-INF/lib/truexml.jar
> wrapper.java.classpath.45=3D../../../../../web/WEB-INF/lib/xalan.jar
> =
wrapper.java.classpath.46=3D../../../../../web/WEB-INF/lib/xercesImpl.jar=
> =
wrapper.java.classpath.47=3D../../../../../web/WEB-INF/lib/xml-apis.jar
>
> //SO Custom jars
> wrapper.java.classpath.48=3D../../../../lib/jsch.jar
> wrapper.java.classpath.49=3D../../../../lib/adCustoms.jar
>
>
>
>
> # Java Library Path (location of Wrapper.DLL or libwrapper.so)
> wrapper.java.library.path.1=3D../lib
>
> # Java Additional Parameters
> wrapper.java.additional.1=3D
>
> # Initial Java Heap Size (in MB)
> #wrapper.java.initmemory=3D3
>
> # Maximum Java Heap Size (in MB)
> wrapper.java.maxmemory=3D512
>
> # Application parameters. Add parameters as needed starting from 1
> wrapper.app.parameter.1=3Dcom.i411.ad.listener.server.Server
>
> #********************************************************************
> # Wrapper Logging Properties
> #********************************************************************
> # Format of output for the console. (See docs for formats)
> wrapper.console.format=3DPM
>
> # Log Level for console output. (See docs for log levels)
> wrapper.console.loglevel=3DNONE
>
> # Log file to use for wrapper output logging.
> wrapper.logfile=3D../../../../../logs/de5_ss_service.log
>
> # Format of output for the log file. (See docs for formats)
> wrapper.logfile.format=3DLPTM
>
> # Log Level for log file output. (See docs for log levels)
> wrapper.logfile.loglevel=3DDEBUG
>
> # Maximum size that the log file will be allowed to grow to before
> # the log is rolled. Size is specified in bytes. The default value
> # of 0, disables log rolling. May abbreviate with the 'k' (kb) or
> # 'm' (mb) suffix. For example: 10m =3D 10 megabytes.
> wrapper.logfile.maxsize=3D0
>
> # Maximum number of rolled log files which will be allowed before old
> # files are deleted. The default value of 0 implies no limit.
> wrapper.logfile.maxfiles=3D0
>
> # Log Level for sys/event log output. (See docs for log levels)
> wrapper.syslog.loglevel=3DNONE
>
> #********************************************************************
> # Wrapper Windows Properties
> #********************************************************************
> # Title to use when running as a console
> wrapper.console.title=3DDE5 Index Engine Listener
>
> #********************************************************************
> # Wrapper Windows NT/2000/XP Service Properties
> #********************************************************************
> # WARNING - Do not modify any of these properties when an application
> # using this configuration file has been installed as a service.
> # Please uninstall the service before modifying this section. The
> # service can then be reinstalled.
>
> # Name of the service
> wrapper.ntservice.name=3Dde5_index_engine
>
> # Display name of the service
> wrapper.ntservice.displayname=3DDE5 Index Engine Listener
>
> # Description of the service
> wrapper.ntservice.description=3DDE5 Index Engine Listener
>
> # Service dependencies. Add dependencies as needed starting from 1
> wrapper.ntservice.dependency.1=3D
>
> # Mode in which the service is installed. AUTO_START or DEMAND_START
> wrapper.ntservice.starttype=3DDEMAND_START
>
> # Allow the service to interact with the desktop.
> wrapper.ntservice.interactive=3Dfalse
>
> wrapper.ntservice.process_priority=3DREALTIMEs
>
>
>
> Rodrigo G. Vega
> i411 Argentina
> rv...@i4...
>
> Este mensaje es confidencial. Si usted ha recibido este e-mail por=20
> error, por favor comun=EDquenoslo inmediatamente v=EDa e-mail y tenga =
la=20
> amabilidad de eliminarlo de su sistema; no deber=E1 copiar el mensaje =
ni=20
> divulgar su contenido a ninguna persona. Muchas gracias.
>
> This message is confidential. If you have received it by mistake=20
> please let us know by e-mail immediately and delete it from your=20
> system; you should also not copy the message nor disclose its contents =
> to anyone. Many thanks.
>
>
> =
------------------------------------------------------------------------
>
> =
-------------------------------------------------------------------------=
> 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
> =20
-------------------------------------------------------------------------=
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: Leif M. <le...@ta...> - 2007-08-28 22:48:22
|
Rodrigo, Why are you sure that the log4j configuration file is being loaded? Where do you have it? Is it embedded one of your jar files or in the is directory? I do not see any other way it would be loaded as you have not placed any other directories on your classpath nor have you specified a system property with the location of the log4j config file. There is nothing about the wrapper that would prevent log4j from working if its config file is being read correctly. You might want to try using wildcards in your classpath definitions, that would simplify things for you greatly. # Java Classpath (include wrapper.jar) Add class path elements as # needed starting from 1 wrapper.java.classpath.1=../lib/wrapper.jar wrapper.java.classpath.2=../../../../lib/*.jar wrapper.java.classpath.3=../../../../conf/is/ wrapper.java.classpath.4=../../../../../web/WEB-INF/lib/*.jar Cheers, Leif Rodrigo Vega wrote: > > > Hi guys... this is my first post in this mail list. I hope i can > explain well my problem. > > > I'm running a java application in a Debian 64 server, and my > application needs to create several log files. This files are very > important to me. > > But this is the problem, if i run the app without the wrapper all the > loggers are generated, but when i use the wrapper, i can see in the > wrapper log that the configuration for log4j is loaded but then > nothing is write to the files. > > I was using the same application in Windows XP/Vista/2003 and it runs > without any problem. I already check if the user has permission to > write in the log file location and all is ok. > > Can anybody help me is kind of urgent... Thanks! > > These are my configuration files. > > WRAPPER.CONF > > # Java Application > wrapper.java.command=java > > # Java Main class. This class must implement the WrapperListener > interface > # or guarantee that the WrapperManager class is initialized. Helper > # classes are provided to do this for you. See the Integration section > # of the documentation for details. > wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp > > # Java Classpath (include wrapper.jar) Add class path elements as > # needed starting from 1 > wrapper.java.classpath.1=../lib/wrapper.jar > wrapper.java.classpath.2=../../../../lib/args4j-2.0.1.jar > wrapper.java.classpath.3=../../../../lib/chartcreator-1.2.0-RC1.jar > wrapper.java.classpath.4=../../../../lib/com4j.jar > wrapper.java.classpath.5=../../../../lib/commons-lang-2.2.jar > wrapper.java.classpath.6=../../../../lib/commons-logging.jar > wrapper.java.classpath.7=../../../../lib/compress.jar > wrapper.java.classpath.8=../../../../lib/i411ad-commons.jar > wrapper.java.classpath.9=../../../..//lib/i411ad-listener.jar > wrapper.java.classpath.10=../../../../lib/i411ad-native.jar > wrapper.java.classpath.11=../../../../lib/ISWbem.jar > wrapper.java.classpath.12=../../../../lib/jcommon-1.0.0-rc1.jar > wrapper.java.classpath.13=../../../../lib/jdom.jar > wrapper.java.classpath.14=../../../../lib/jfreechart-1.0.0-rc1.jar > wrapper.java.classpath.15=../../../../lib/jmml.jar > wrapper.java.classpath.16=../../../../lib/junit.jar > wrapper.java.classpath.17=../../../../lib/log4j-1.2.7.jar > wrapper.java.classpath.18=../../../../lib/oscache-2.3.2.jar > wrapper.java.classpath.19=../../../../lib/tlbimp.jar > wrapper.java.classpath.20=../../../../lib/xercesImpl.jar > wrapper.java.classpath.21=../../../../lib/xml-apis.jar > wrapper.java.classpath.22=../../../../lib/xpp3-1.1.3.4d_b4_min.jar > wrapper.java.classpath.23=../../../../lib/xstream-1.1.3.jar > > # AD config files needed in claspath > wrapper.java.classpath.24=../../../../conf/is/ > > # DE5 API reference > wrapper.java.classpath.25=../../../../../web/WEB-INF/lib/i411de.jar > > # Here put all custom jars nedded > wrapper.java.classpath.26=../../../../../web/WEB-INF/lib/activation-1.0.2.jar > wrapper.java.classpath.27=../../../../../web/WEB-INF/lib/antlr.jar > wrapper.java.classpath.28=../../../../../web/WEB-INF/lib/commons-cli-1.0.jar > wrapper.java.classpath.29=../../../../../web/WEB-INF/lib/commons-codec-1.3.jar > wrapper.java.classpath.30=../../../../../web/WEB-INF/lib/commons-io-1.0.jar > wrapper.java.classpath.31=../../../../../web/WEB-INF/lib/commons-jxpath-1.1.jar > wrapper.java.classpath.32=../../../../../web/WEB-INF/lib/commons-logging-1.0.4.jar > wrapper.java.classpath.33=../../../../../web/WEB-INF/lib/jakarta-oro-2.0.6.jar > wrapper.java.classpath.34=../../../../../web/WEB-INF/lib/javamail-1.3ea.jar > wrapper.java.classpath.35=../../../../../web/WEB-INF/lib/jcommon-0.9.1.jar > wrapper.java.classpath.36=../../../../../web/WEB-INF/lib/jdom.jar > wrapper.java.classpath.37=../../../../../web/WEB-INF/lib/kxml.jar > wrapper.java.classpath.38=../../../../../web/WEB-INF/lib/log4j-1.2.7.jar > wrapper.java.classpath.39=../../../../../web/WEB-INF/lib/ognl-2.6.5.jar > wrapper.java.classpath.40=../../../../../web/WEB-INF/lib/oscache-2.3.2.jar > wrapper.java.classpath.41=../../../../../web/WEB-INF/lib/pvcommons.jar > wrapper.java.classpath.42=../../../../../web/WEB-INF/lib/sample.jar > wrapper.java.classpath.43=../../../../../web/WEB-INF/lib/truelicense.jar > wrapper.java.classpath.44=../../../../../web/WEB-INF/lib/truexml.jar > wrapper.java.classpath.45=../../../../../web/WEB-INF/lib/xalan.jar > wrapper.java.classpath.46=../../../../../web/WEB-INF/lib/xercesImpl.jar > wrapper.java.classpath.47=../../../../../web/WEB-INF/lib/xml-apis.jar > > //SO Custom jars > wrapper.java.classpath.48=../../../../lib/jsch.jar > wrapper.java.classpath.49=../../../../lib/adCustoms.jar > > > > > # Java Library Path (location of Wrapper.DLL or libwrapper.so) > wrapper.java.library.path.1=../lib > > # Java Additional Parameters > wrapper.java.additional.1= > > # Initial Java Heap Size (in MB) > #wrapper.java.initmemory=3 > > # Maximum Java Heap Size (in MB) > wrapper.java.maxmemory=512 > > # Application parameters. Add parameters as needed starting from 1 > wrapper.app.parameter.1=com.i411.ad.listener.server.Server > > #******************************************************************** > # Wrapper Logging Properties > #******************************************************************** > # Format of output for the console. (See docs for formats) > wrapper.console.format=PM > > # Log Level for console output. (See docs for log levels) > wrapper.console.loglevel=NONE > > # Log file to use for wrapper output logging. > wrapper.logfile=../../../../../logs/de5_ss_service.log > > # Format of output for the log file. (See docs for formats) > wrapper.logfile.format=LPTM > > # Log Level for log file output. (See docs for log levels) > wrapper.logfile.loglevel=DEBUG > > # Maximum size that the log file will be allowed to grow to before > # the log is rolled. Size is specified in bytes. The default value > # of 0, disables log rolling. May abbreviate with the 'k' (kb) or > # 'm' (mb) suffix. For example: 10m = 10 megabytes. > wrapper.logfile.maxsize=0 > > # Maximum number of rolled log files which will be allowed before old > # files are deleted. The default value of 0 implies no limit. > wrapper.logfile.maxfiles=0 > > # Log Level for sys/event log output. (See docs for log levels) > wrapper.syslog.loglevel=NONE > > #******************************************************************** > # Wrapper Windows Properties > #******************************************************************** > # Title to use when running as a console > wrapper.console.title=DE5 Index Engine Listener > > #******************************************************************** > # Wrapper Windows NT/2000/XP Service Properties > #******************************************************************** > # WARNING - Do not modify any of these properties when an application > # using this configuration file has been installed as a service. > # Please uninstall the service before modifying this section. The > # service can then be reinstalled. > > # Name of the service > wrapper.ntservice.name=de5_index_engine > > # Display name of the service > wrapper.ntservice.displayname=DE5 Index Engine Listener > > # Description of the service > wrapper.ntservice.description=DE5 Index Engine Listener > > # Service dependencies. Add dependencies as needed starting from 1 > wrapper.ntservice.dependency.1= > > # Mode in which the service is installed. AUTO_START or DEMAND_START > wrapper.ntservice.starttype=DEMAND_START > > # Allow the service to interact with the desktop. > wrapper.ntservice.interactive=false > > wrapper.ntservice.process_priority=REALTIMEs > > > > Rodrigo G. Vega > i411 Argentina > rv...@i4... > > Este mensaje es confidencial. Si usted ha recibido este e-mail por > error, por favor comuníquenoslo inmediatamente vía e-mail y tenga la > amabilidad de eliminarlo de su sistema; no deberá 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. > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > 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: Rodrigo V. <rv...@i4...> - 2007-08-28 14:53:49
|
=20 Hi guys... this is my first post in this mail list. I hope i can explain = well my problem. I'm running a java application in a Debian 64 server, and my application needs to create several log files. This files are very important to me. But this is the problem, if i run the app without the wrapper all the = loggers are generated, but when i use the wrapper, i can see in the wrapper log = that the configuration for log4j is loaded but then nothing is write to the = files. I was using the same application in Windows XP/Vista/2003 and it runs = without any problem. I already check if the user has permission to write in the = log file location and all is ok. Can anybody help me is kind of urgent... Thanks! These are my configuration files. WRAPPER.CONF # Java Application wrapper.java.command=3Djava # Java Main class. This class must implement the WrapperListener = interface # or guarantee that the WrapperManager class is initialized. Helper # classes are provided to do this for you. See the Integration section # of the documentation for details. wrapper.java.mainclass=3Dorg.tanukisoftware.wrapper.WrapperSimpleApp # Java Classpath (include wrapper.jar) Add class path elements as # needed starting from 1 wrapper.java.classpath.1=3D../lib/wrapper.jar wrapper.java.classpath.2=3D../../../../lib/args4j-2.0.1.jar wrapper.java.classpath.3=3D../../../../lib/chartcreator-1.2.0-RC1.jar wrapper.java.classpath.4=3D../../../../lib/com4j.jar wrapper.java.classpath.5=3D../../../../lib/commons-lang-2.2.jar wrapper.java.classpath.6=3D../../../../lib/commons-logging.jar wrapper.java.classpath.7=3D../../../../lib/compress.jar wrapper.java.classpath.8=3D../../../../lib/i411ad-commons.jar wrapper.java.classpath.9=3D../../../..//lib/i411ad-listener.jar wrapper.java.classpath.10=3D../../../../lib/i411ad-native.jar wrapper.java.classpath.11=3D../../../../lib/ISWbem.jar wrapper.java.classpath.12=3D../../../../lib/jcommon-1.0.0-rc1.jar wrapper.java.classpath.13=3D../../../../lib/jdom.jar wrapper.java.classpath.14=3D../../../../lib/jfreechart-1.0.0-rc1.jar wrapper.java.classpath.15=3D../../../../lib/jmml.jar wrapper.java.classpath.16=3D../../../../lib/junit.jar wrapper.java.classpath.17=3D../../../../lib/log4j-1.2.7.jar wrapper.java.classpath.18=3D../../../../lib/oscache-2.3.2.jar wrapper.java.classpath.19=3D../../../../lib/tlbimp.jar wrapper.java.classpath.20=3D../../../../lib/xercesImpl.jar wrapper.java.classpath.21=3D../../../../lib/xml-apis.jar wrapper.java.classpath.22=3D../../../../lib/xpp3-1.1.3.4d_b4_min.jar wrapper.java.classpath.23=3D../../../../lib/xstream-1.1.3.jar # AD config files needed in claspath wrapper.java.classpath.24=3D../../../../conf/is/ # DE5 API reference wrapper.java.classpath.25=3D../../../../../web/WEB-INF/lib/i411de.jar # Here put all custom jars nedded wrapper.java.classpath.26=3D../../../../../web/WEB-INF/lib/activation-1.0= .2.jar wrapper.java.classpath.27=3D../../../../../web/WEB-INF/lib/antlr.jar wrapper.java.classpath.28=3D../../../../../web/WEB-INF/lib/commons-cli-1.= 0.jar wrapper.java.classpath.29=3D../../../../../web/WEB-INF/lib/commons-codec-= 1.3.ja r wrapper.java.classpath.30=3D../../../../../web/WEB-INF/lib/commons-io-1.0= .jar wrapper.java.classpath.31=3D../../../../../web/WEB-INF/lib/commons-jxpath= -1.1.j ar wrapper.java.classpath.32=3D../../../../../web/WEB-INF/lib/commons-loggin= g-1.0. 4.jar wrapper.java.classpath.33=3D../../../../../web/WEB-INF/lib/jakarta-oro-2.= 0.6.ja r wrapper.java.classpath.34=3D../../../../../web/WEB-INF/lib/javamail-1.3ea= .jar wrapper.java.classpath.35=3D../../../../../web/WEB-INF/lib/jcommon-0.9.1.= jar wrapper.java.classpath.36=3D../../../../../web/WEB-INF/lib/jdom.jar wrapper.java.classpath.37=3D../../../../../web/WEB-INF/lib/kxml.jar wrapper.java.classpath.38=3D../../../../../web/WEB-INF/lib/log4j-1.2.7.ja= r wrapper.java.classpath.39=3D../../../../../web/WEB-INF/lib/ognl-2.6.5.jar= wrapper.java.classpath.40=3D../../../../../web/WEB-INF/lib/oscache-2.3.2.= jar wrapper.java.classpath.41=3D../../../../../web/WEB-INF/lib/pvcommons.jar wrapper.java.classpath.42=3D../../../../../web/WEB-INF/lib/sample.jar wrapper.java.classpath.43=3D../../../../../web/WEB-INF/lib/truelicense.ja= r wrapper.java.classpath.44=3D../../../../../web/WEB-INF/lib/truexml.jar wrapper.java.classpath.45=3D../../../../../web/WEB-INF/lib/xalan.jar wrapper.java.classpath.46=3D../../../../../web/WEB-INF/lib/xercesImpl.jar= wrapper.java.classpath.47=3D../../../../../web/WEB-INF/lib/xml-apis.jar //SO Custom jars wrapper.java.classpath.48=3D../../../../lib/jsch.jar wrapper.java.classpath.49=3D../../../../lib/adCustoms.jar # Java Library Path (location of Wrapper.DLL or libwrapper.so) wrapper.java.library.path.1=3D../lib # Java Additional Parameters wrapper.java.additional.1=3D # Initial Java Heap Size (in MB) #wrapper.java.initmemory=3D3 # Maximum Java Heap Size (in MB) wrapper.java.maxmemory=3D512 # Application parameters. Add parameters as needed starting from 1 wrapper.app.parameter.1=3Dcom.i411.ad.listener.server.Server #******************************************************************** # Wrapper Logging Properties #******************************************************************** # Format of output for the console. (See docs for formats) wrapper.console.format=3DPM # Log Level for console output. (See docs for log levels) wrapper.console.loglevel=3DNONE # Log file to use for wrapper output logging. wrapper.logfile=3D../../../../../logs/de5_ss_service.log # Format of output for the log file. (See docs for formats) wrapper.logfile.format=3DLPTM # Log Level for log file output. (See docs for log levels) wrapper.logfile.loglevel=3DDEBUG # Maximum size that the log file will be allowed to grow to before # the log is rolled. Size is specified in bytes. The default value # of 0, disables log rolling. May abbreviate with the 'k' (kb) or # 'm' (mb) suffix. For example: 10m =3D 10 megabytes. wrapper.logfile.maxsize=3D0 # Maximum number of rolled log files which will be allowed before old # files are deleted. The default value of 0 implies no limit. wrapper.logfile.maxfiles=3D0 # Log Level for sys/event log output. (See docs for log levels) wrapper.syslog.loglevel=3DNONE #******************************************************************** # Wrapper Windows Properties #******************************************************************** # Title to use when running as a console wrapper.console.title=3DDE5 Index Engine Listener #******************************************************************** # Wrapper Windows NT/2000/XP Service Properties #******************************************************************** # WARNING - Do not modify any of these properties when an application # using this configuration file has been installed as a service. # Please uninstall the service before modifying this section. The # service can then be reinstalled. # Name of the service wrapper.ntservice.name=3Dde5_index_engine # Display name of the service wrapper.ntservice.displayname=3DDE5 Index Engine Listener # Description of the service wrapper.ntservice.description=3DDE5 Index Engine Listener # Service dependencies. Add dependencies as needed starting from 1 wrapper.ntservice.dependency.1=3D # Mode in which the service is installed. AUTO_START or DEMAND_START wrapper.ntservice.starttype=3DDEMAND_START # Allow the service to interact with the desktop. wrapper.ntservice.interactive=3Dfalse wrapper.ntservice.process_priority=3DREALTIMEs 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. |
|
From: Leif M. <le...@ta...> - 2007-08-28 05:07:29
|
Marc, If they are services, you could do this from the Wrapper using the WrapperManager.listServices(), or if you know a specific service you can use the WrapperManager.sendServiceControlCode() method. Pass in the SERVICE_CONTROL_CODE_INTERROGATE controlCode to find out what its latest state is. See the javadocs here: http://wrapper.tanukisoftware.org/doc/english/javadocs.html Cheers, Leif Marc Tibout wrote: > > Hi, > > I have a Java application that requires a number of services to be up > and running. > > The application target platform is Windows and the services are > installed/started/stopped with Java Service Wrapper. > > How could the application monitor whether the required services are up > and running? > > Thanks, > > Marc > |
|
From: Nicki T. <nta...@us...> - 2007-08-27 22:08:22
|
I will be out of the office starting 08/26/2007 and will not return until 08/30/2007. I will respond to your message when I return. Please contact Bao Vu for urgent matters. |
|
From: Marc T. <MT...@bl...> - 2007-08-27 19:54:35
|
Hi, I have a Java application that requires a number of services to be up and running. The application target platform is Windows and the services are installed/started/stopped with Java Service Wrapper. How could the application monitor whether the required services are up and running? Thanks, Marc |
|
From: Leif M. <le...@ta...> - 2007-08-25 02:34:15
|
Vinod, If that is the only message then it sounds like the JVM process crashed. You do not always get a dump file when that happens. Try setting wrapper.debug=true and reproduce this. Send the log for a minute or so before the exit through the start of the restart. I should then be able to tell you with more certainty what happened. Cheers, Leif Vinod Panicker wrote: > Hi, > > I'm doing a stress test on my server and am getting this in the > wrapper.log file - > > JVM exited unexpectedly > > And wrapper restarts the JVM after that. The issue is that I don't > know the reason why the JVM is exiting. Is this a JVM crash? If so, > where is the dump file generated when the JVM crashes? > > Environment - > > Ubuntu Feisty 64 bit server > JDK 6.0 Update 2 - 64 bit > Wrapper 3.2.3 > > Regards, > Vinod. |
|
From: Marc T. <MT...@bl...> - 2007-08-24 19:11:57
|
Hi, I would like to start a database server (HSQLDB) as a Windows service. The database server needs to be started in its data directory, so I specified wrapper.working.dir=3DC:\data. Now, if I specify all other paths as absolute paths (e.g. wrapper.java.classpath.1=3DC:\Program Files\MyApp\wrapper.jar), = everything is fine. =20 I was wondering whether there would be a more portable way, especially since the application may be installed in a user chosen directory. For example, if the wrapper.exe path was available in a wrapper variable, I could use it to set up all paths relative to the wrapper.exe location, a bit the way it is when wrapper.working.dir is not set. I was hoping to use %CD%, but this Windows variable does not seem to be available within the wrapper. =20 Thanks, =20 Marc |
|
From: Vinod P. <vi...@gm...> - 2007-08-24 06:03:42
|
Hi, I'm doing a stress test on my server and am getting this in the wrapper.log file - JVM exited unexpectedly And wrapper restarts the JVM after that. The issue is that I don't know the reason why the JVM is exiting. Is this a JVM crash? If so, where is the dump file generated when the JVM crashes? Environment - Ubuntu Feisty 64 bit server JDK 6.0 Update 2 - 64 bit Wrapper 3.2.3 Regards, Vinod. |
|
From: Leif M. <le...@ta...> - 2007-08-23 16:57:02
|
Jacob, Java is throwing that error because another expection is being thrown within your CMClient class's class initializer. Java is finding the class but can not initialize it. It could be that a class referenced in there is not being found, or some of the initialization logic is failing. What is that class doing? Are you getting more of a stack trace? Does it load any native libraries or anything like that? You want to see what the root exception is. That will tell you the exact cause. Can you post the full log output you are getting? Cheers, Leif Jacob Caniparoli wrote: > I am having some real trouble getting the wrapper to start up my > application. This is the error that I get: > > Unable to locate the class cashmatch.client.CMClient: > java.lang.ExceptionInInitializerError > > I am using integration method #1. The weird thing is that it is > finding the class, because if I spell the class name wrong I get a > different error: > > Unable to locate the class cashmatch.client.CMlient: > java.lang.ClassNotFoundException: cashmatch.client.CMlient > > So, I don't know why it is telling me it can't find the class, when it > obviously is. If anybody has seen anything like this or has any > suggestions, that would be greatly appreciated. > > -Jacob > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > 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: Jacob C. <jca...@gm...> - 2007-08-23 16:41:53
|
I am having some real trouble getting the wrapper to start up my application. This is the error that I get: Unable to locate the class cashmatch.client.CMClient: java.lang.ExceptionInInitializerError I am using integration method #1. The weird thing is that it is finding the class, because if I spell the class name wrong I get a different error: Unable to locate the class cashmatch.client.CMlient: java.lang.ClassNotFoundException: cashmatch.client.CMlient So, I don't know why it is telling me it can't find the class, when it obviously is. If anybody has seen anything like this or has any suggestions, that would be greatly appreciated. -Jacob |