|
From: Leif M. <le...@ta...> - 2004-11-17 09:33:33
|
Thomas,
I looked over the files you sent (thanks for the complete request),
but I don't see anything
that stands out as being wrong. Can you go through the following steps
to track this down?
1) Copy the exact command generated by the Wrapper into a new bat file.
It should be one
long line. Place the file in the directory where the Wrapper.exe is
located.
2) Edit the resulting command by removing the -Dwrapper.key property.
3) Start the batch file and see what happens. You should get the exact
same behavior.
4) Edit the file again and make a copy of the line, commenting out the
original.
5) Remove the -Djava.library.path property.
6) Try again.
7) Repeat 4-6 as many times as necessary to get the exact same command
as the one that was
working for you.
A little bit of work, but that is how I usually track down such problems
at this point.
Please post back with the results.
Cheers,
Leif
Tho...@ub... wrote:
>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=c:\whTcpServer\configs\log4j.properties
> -Dconfig.location=file
> -Dconfig.filename=c:\whTcpServer\configs\config.xml
> -classpath %JAR%
> com.ubs.datait.ustax.WhTcpServer lnd1 lnd1
>
>The relavant entries in my wrapper.conf file are:
>
> wrapper.java.additional.1=-Dlog4j.configuration=c:\whTcpServer\configs\log4j.properties
> wrapper.java.additional.2=-Dconfig.location=file
> wrapper.java.additional.3=-Dconfig.filename=c:\whTcpServer\configs\config.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
> configuration. But it is not
> possible to tell without seeing your full wrapper.conf file and the
> debug output from the
> startup of your application.
>
> Add the wrapper.debug=true property and look closely at the full
> java command that
> the Wrapper generates and see if anything stands out. If you don"t see
> the problem, then
> post that output back to this list and I"ll take a look at it.
>
> 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=c:\whTcpServer\configs\log4j.properties
> -Dconfig.location=file
> -Dconfig.filename=c:\whTcpServer\configs\config.xml
> -Djava.library.path="C:\whTcpServer\lib"
> -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"
> -Dwrapper.key="Pol5M55D_K14nYDg"
> -Dwrapper.port=32000
> -Dwrapper.debug="TRUE"
> -Dwrapper.use_system_time="TRUE"
> -Dwrapper.version="3.1.2"
> -Dwrapper.native_library="wrapper"
> -Dwrapper.cpu.timeout="10"
> -Dwrapper.jvmid=1
> org.tanukisoftware.wrapper.WrapperSimpleApp
> com.ubs.datait.ustax.WhTcpServer lnd1 lnd1
>
>Any help would be most appriciated.
>
>Thank you for your time
>
>Tom Place
>
>
|