|
From: Leif M. <le...@ta...> - 2003-10-21 18:47:06
|
Yasir,
If the Wrapper encounters an error before it has learned where it is
supposed to
write its log file it defaults to writing to a file called wrapper.log
in the same directory
as the wrapper binary.
In this case, the Wrapper is having problems expanding your CLASSPATH
environment variable because doing so would lead to a buffer overflow. The
Wrapper currently only allows expanded environment variables to be 16384
bytes long. That seemed like it would be plenty large at the time. I
guess that
proved wrong. I don't want to make it any bigger as it just wastes
memory for
most users. I'll have to do some dynamic allocation of the buffer so
it will meet
the needs of any user.
For now though it is just a warning. You will not be able to
reference the
CLASSPATH environment variable in your wrapper.conf file. But the Wrapper
should work just fine.
I posted a feature request so I remember to get this fixed:
http://sourceforge.net/tracker/index.php?func=detail&aid=827659&group_id=39428&atid=425190
To get rid of this warning, you will have to shorten that CLASSPATH
a bit.
Let me know if you have any other questions / concerns.
Cheers,
Leif
Yasir Khan wrote:
> Hi,
>
> In wrapper.conf file I have given the specific path of wrapper.log
> file i.e. my application's log directory. I successfully installed the
> service using method-1. Now when I start the service, two wrapper.log
> files are created, one in my application's log directory (its OK)
> other is created in the same directory where wrapper.exe is placed
> (why one is created here?). First wrapper.log contains some wrapper
> messages and the application output that is printed as System.out or
> System.in (its OK) but the other wrapper.log contains the following
> message.
>
> WARN | wrapper | 2003/10/21 10:52:44 | Unable to expand environment
> variable, CLASSPATH as it would be longer than the 16384 byte buffer size.
>
> Why this second wrapper.log file is created and what is it indicating ..?
>
> Best Regards,
> Yasir Khan
|