|
From: Todd E. <ten...@te...> - 2002-11-27 17:08:19
|
Hey Leif,
Sorry.... totally forgot some good information. I am passing in windir =
as an argument, then returning the value to web server scripts through a =
cgi. I don't think I'm getting the argument passed properly. Here is =
what I have in my wrapper.conf for application parameters.
wrapper.app.parameter.1=3DP2PShell
wrapper.app.parameter.3=3D-DasService=3Dyes=20
wrapper.app.parameter.4=3D-Dwindir=3D%windir%
I told java to return verbose information, and although it breaks the =
command, it shows the construction of the command. Here's what it =
shows. Can you tell me if the construction of the command looks good =
(other than the -v which breaks things)
wrapper | --> Wrapper Started as Console
wrapper | Launching a JVM...
wrapper | can not execute ""C:\WINDOWS\java.exe -v" -Xms16m -Xmx128m =
-Djava.lib
rary.path=3D"./lib" -classpath =
"./lib/wrapper.jar;./lib/wrappertest.jar;C:\Program
Files\ClearCube Management Suite\DataFailover\.;C:\Program =
Files\ClearCube Mana
gement Suite\DataFailover\jaxp1.0.1\parser.jar;C:\Program =
Files\ClearCube Manage
ment Suite\DataFailover\jaxp1.0.1\jaxp.jar;C:\Program Files\ClearCube =
Management
Suite\DataFailover\lf\oyoahalnf\oyoahalnf.jar;C:\Program =
Files\ClearCube Manage
ment Suite\DataFailover\soap.jar;C:\Program Files\ClearCube Management =
Suite\Dat
aFailover;C:\Program Files\ClearCube Management =
Suite\DataFailover\xerces.jar;C:
\Program Files\ClearCube Management Suite\DataFailover\xalan.jar" =
-Dwrapper.key=3D
"nsYL7tEdn_k1zaW1" -Dwrapper.port=3D1777 -Dwrapper.debug=3D"TRUE" =
-Dwrapper.cpu.time
out=3D"10" -Dwrapper.jvmid=3D1 com.silveregg.wrapper.WrapperSimpleApp =
P2PShell -Dshu
tdown.method=3DstopApplication -Dwindir=3DC:\WINDOWS" (ERR=3D2)
wrapper | Critical error: wait for JVM process failed
----- Original Message -----=20
From: Leif Mortenson=20
To: wra...@li...=20
Sent: Wednesday, November 27, 2002 10:22 AM
Subject: Re: [Wrapper-user] environment variables
Todd,
Strange, All the wrapper does is call the standard Windows API to =
get the
system environment variable's value.
I just tested this on a Windows XP machine and on my machine I got =
the correct
value: C:\WINDOWS
What do you get if you open a command prompt and type SET at the =
prompt?
Do you see this problem when run as both a service and as a =
console app? Or
just one or the other?
You might want to go in and look at the environment variable =
setting in the
system control panel. There are two sections. User variables and =
system
variables. I have windir=3Dc:\windows in the system variables but no =
setting in the
user section. If the variable is set in both places, then you may be =
getting
different values depending on context.
Let me know whether or not any of this helps.
Cheers,
Leif
Todd Enright wrote:
I am using ver 2.2.9 on XP. =20
The environment variable for WINDIR returning c:\winnt, but the =
actuall WINDIR variable on my machine is c:\windows, and further i don't =
have any c:\winnt directory on my machine. =20
Do you know why this is happening?
|