|
From: Chris C. <cco...@pd...> - 2006-05-11 14:43:05
|
Leif,
No problem on the delay. I experienced this on both AIX 5.2 and SLES 9.
I am starting from a slightly modified wrapper sh script. I apparently
did the same thing you did with the escaped quotes, and got the same
result - the echo would look correct, but the quotes would be stripped
when executing the command line. I would agree that this is happening at
the shell level, and is not a problem with the wrapper. I posted a work
around using environment variable expansion a few days ago; it's not an
optimal solution, but it is working for us.
Thanks,
Chris
-----Original Message-----
From: wra...@li...
[mailto:wra...@li...] On Behalf Of Leif
Mortenson
Sent: Wednesday, May 10, 2006 10:24 PM
To: wra...@li...
Subject: Re: [Wrapper-user] Problems with spaces in property values
Chris,
Sorry for the delay. I tried the following on Linux and it works=20
perfectly.
bin/wrapper ../conf/wrapper.conf=20
"wrapper.java.additional.1=3D-Djava.rmi.server.codebase=3Dftp:<host>/jar1=
.ja
r=20
ftp:<host>/jar2.jar"
Removing the quotes would of course not work.
Are you running from within a shell script or something else which
could
possibly be effecting things? What kind of *nix box are you running
on?
I tested this with 3.2.0 of the Wrapper.
Running this is the wrapper sh script does appear to be having=20
problems. In my script,
I do the following:
COMMAND_LINE=3D"$CMDNICE $WRAPPER_CMD $WRAPPER_CONF=20
wrapper.syslog.ident=3D$APP_NAME wrapper.pidfile=3D$PIDFILE $ANCHORPROP=20
$LOCKPROP=20
\"wrapper.java.additional.1=3D-Djava.rmi.server.codebase=3Dftp:<host>/jar=
1.j
ar=20
ftp:<host>/jar2.jar\""
echo $COMMAND_LINE
exec $COMMAND_LINE
Escaping the nested quotes causes the echo to appear correct. But=20
those quotes in the
actual command are being stripped when the command is actually=20
executed. It appears
this is happening at the shell level and not actually a problem with the
wrapper process.
More a but in the shell script if anything.
Anyone have any ideas?
Cheers,
Leif
Chris Compton wrote:
> Hello,
> I need to set a property on the wrapper command line, Similar to:
> =20
> =20
> wrapper <prop file>=20
>
wrapper.java.additional.1=3D-Djava.rmi.server.codebase=3Dftp:<host>/jar1.=
jar
;ftp:<host>/jar2.jar
> =20
> This works fine on a Windows box, but on a *nix boc, the jvm requires=20
> that the jar file paths in the codebase property be delimited with=20
> spaces instead of simicolons. Per some notes iin the docs, I have
tried:
> =20
> wrapper <prop file>=20
>
"wrapper.java.additional.1=3D-Djava.rmi.server.codebase=3Dftp:<host>/jar1=
.ja
r=20
> ftp:<host>/jar2.jar"
> =20
> with no success. The error message printed to the console looks like:
> =20
> Starting XXX...
> FATAL | wrapper | The argument 'ftp:<host>/jar2.jar' is not a valid=20
> property name-value pair.
> I have also tried versions 3.1.1, 3.1.2, and 3.2.0. Is there something
> that I'm missing, or some work-around that I'm not aware of that would
> allow me to pass a property containing spaces on the command line?
> =20
> Thanks,
> Chris
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D=
121642
_______________________________________________
Wrapper-user mailing list
Wra...@li...
https://lists.sourceforge.net/lists/listinfo/wrapper-user
|