Chris,
Sorry for the delay. I tried the following on Linux and it works
perfectly.
bin/wrapper ../conf/wrapper.conf
"wrapper.java.additional.1=-Djava.rmi.server.codebase=ftp:<host>/jar1.jar
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
problems. In my script,
I do the following:
COMMAND_LINE="$CMDNICE $WRAPPER_CMD $WRAPPER_CONF
wrapper.syslog.ident=$APP_NAME wrapper.pidfile=$PIDFILE $ANCHORPROP
$LOCKPROP
\"wrapper.java.additional.1=-Djava.rmi.server.codebase=ftp:<host>/jar1.jar
ftp:<host>/jar2.jar\""
echo $COMMAND_LINE
exec $COMMAND_LINE
Escaping the nested quotes causes the echo to appear correct. But
those quotes in the
actual command are being stripped when the command is actually
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:
>
>
> wrapper <prop file>
> wrapper.java.additional.1=-Djava.rmi.server.codebase=ftp:<host>/jar1.jar;ftp:<host>/jar2.jar
>
> This works fine on a Windows box, but on a *nix boc, the jvm requires
> that the jar file paths in the codebase property be delimited with
> spaces instead of simicolons. Per some notes iin the docs, I have tried:
>
> wrapper <prop file>
> "wrapper.java.additional.1=-Djava.rmi.server.codebase=ftp:<host>/jar1.jar
> ftp:<host>/jar2.jar"
>
> with no success. The error message printed to the console looks like:
>
> Starting XXX...
> FATAL | wrapper | The argument 'ftp:<host>/jar2.jar' is not a valid
> 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?
>
> Thanks,
> Chris
|