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