|
From: <Tho...@ub...> - 2004-11-11 17:20:12
|
Hi all,
Alan Stuart posted this problem on 5th Oct this year but no resolution =
was posted.
I have a Java app that uses log4j as well as other '-D' additional flags =
on the command line.
When I ran the app previously all was well (the app found the file and =
appenders with no issues) however when using it with the wrapper I get :
jvm 1 | log4j:WARN No appenders could be found for logger =
(com.ubs.datait.ustax.WhTcpServer).
jvm 1 | log4j:WARN Please initialize the log4j system properly.
I obviously then get no logger output.
The command line I execute (when it works) is : - note: I formatted it =
for easy reading
java -Dlog4j.configuration=3Dc:\whTcpServer\configs\log4j.properties
-Dconfig.location=3Dfile=20
-Dconfig.filename=3Dc:\whTcpServer\configs\config.xml=20
-classpath %JAR%=20
com.ubs.datait.ustax.WhTcpServer lnd1 lnd1
The relavant entries in my wrapper.conf file are:
=
wrapper.java.additional.1=3D-Dlog4j.configuration=3Dc:\whTcpServer\config=
s\log4j.properties
wrapper.java.additional.2=3D-Dconfig.location=3Dfile
=
wrapper.java.additional.3=3D-Dconfig.filename=3Dc:\whTcpServer\configs\co=
nfig.xml
When Alan asked this question, the responce he got was:
---------------------------
Alan,
From what you posted, I don"t see a problem with how your=20
configuration. But it is not
possible to tell without seeing your full wrapper.conf file and the=20
debug output from the
startup of your application.
=20
Add the wrapper.debug=3Dtrue property and look closely at the full=20
java command that
the Wrapper generates and see if anything stands out. If you don"t =
see=20
the problem, then
post that output back to this list and I"ll take a look at it.
=20
Cheers,
Leif
---------------------------
So here it is:
- wrapper.conf is attached
- debug output is attached
- the exact command being executed by the wrapper is : - note: I =
formatted it for easy reading
C:\Java\J2sdk_1.4.2_05\bin\java =
-Dlog4j.configuration=3Dc:\whTcpServer\configs\log4j.properties=20
-Dconfig.location=3Dfile=20
=
-Dconfig.filename=3Dc:\whTcpServer\configs\config.xml=20
=
-Djava.library.path=3D"C:\whTcpServer\lib"=20
-classpath =
"C:\Java\J2sdk_1.4.2_05\lib\tools.jar;C:\whTcpServer\lib\wrapper.jar;
C:\whTcpServer\lib\ustax.jar;C:\whTcpServer\lib\j2ee.jar;
=
C:\whTcpServer\lib\classes12.jar;C:\whTcpServer\lib\jconn2.jar;
=
C:\whTcpServer\lib\jfig-1.4.1.jar;C:\whTcpServer\lib\log4j-1.2.6.jar;
=
C:\whTcpServer\lib\pwcrules.jar;C:\whTcpServer\lib\xml-apis.jar;
C:\whTcpServer\lib\xercesImpl.jar"=20
-Dwrapper.key=3D"Pol5M55D_K14nYDg"=20
-Dwrapper.port=3D32000=20
-Dwrapper.debug=3D"TRUE"=20
-Dwrapper.use_system_time=3D"TRUE"=20
-Dwrapper.version=3D"3.1.2"=20
-Dwrapper.native_library=3D"wrapper"=20
-Dwrapper.cpu.timeout=3D"10"=20
-Dwrapper.jvmid=3D1=20
org.tanukisoftware.wrapper.WrapperSimpleApp=20
com.ubs.datait.ustax.WhTcpServer lnd1 lnd1
Any help would be most appriciated.
Thank you for your time
Tom Place
|