|
From: Chris C. <cco...@pd...> - 2006-05-02 16:55:59
|
All, Thanks for your responses, your creativity helped me find a solution. In order to close this thread and document this for future generations, here is what I found: Using the wrapper config file, things work as you would expect. Windows wrapper.conf wrapper.java.additional.1=3D-Djava.rmi.server.codebase=3D"ftp:<host>/jar1= .ja r;ftp:<host>/jar2.jar" Linux/AIX wrapper.conf wrapper.java.additional.1=3D-Djava.rmi.server.codebase=3D"ftp:<host>/jar1= .ja r ftp:<host>/jar2.jar" Unfortunatly, I needed to build the property on the fly in the start scripts, and have it passed on the wrapper command line. On windows this not a problem, as the URLs can be separated with ';'.=20 Wrapper.exe <conf file > wrapper.java.additional.1=3D-Djava.rmi.server.codebase=3D"ftp:<host>/jar1= .ja r;ftp:<host>/jar2.jar" On *nix, the space seperated list understandably causes the wrapper to have problems parsing the command line. The solution that worked was to export an environment variable in the startup script that contained the property value, and use the environment variable expansion feature on the wrapper command line export ENV_VAR=3D"\"ftp:<host>/jar1.jar ftp:<host>/jar2.jar\"" wrapper <conf file> wrapper.java.additional.1=3D-Djava.rmi.server.codebase=3D%ENV_VAR% This allowed the wrapper to properly read the command line, and correctly pass the quoted value to the JVM. Thanks, Chris -----Original Message----- From: wra...@li... [mailto:wra...@li...] On Behalf Of da...@sm... Sent: Tuesday, May 02, 2006 5:52 AM To: wra...@li... Subject: RE: [Wrapper-user] Problems with spaces in property values Well the other thing to try maybe is to just have the thing after the space to be another java additional, i.e.: wrapper.java.additional.1=3D-Djava.rmi.server.codebase=3Dftp:<host>/jar1.= jar wrapper.java.additional.2=3Dftp:<host>/jar2.jar and let the wrapper put the spaces in itself. It's not quite as ideal, but it'd get the job done. Many thanks, David Hayes Quoting Chris Compton <cco...@pd...>: > Yea, tried that too, the wrapper still seems to see anything after the > space as a new argument. > > Thanks though. > > Chris > -----Original Message----- > From: wra...@li... > [mailto:wra...@li...] On Behalf Of=20 > da...@sm... > Sent: Monday, May 01, 2006 2:36 PM > To: wra...@li... > Subject: Re: [Wrapper-user] Problems with spaces in property values > > How about > = wrapper.java.additional.1=3D"-Djava.rmi.server.codebase=3Dftp:<host>/jar1= . > ja > r > ftp:<host>/jar2.jar" > > > Quoting Chris Compton <cco...@pd...>: > >> Hello, >> I need to set a property on the wrapper command line, Similar to: >> >> >> wrapper <prop file> >> = wrapper.java.additional.1=3D-Djava.rmi.server.codebase=3Dftp:<host>/jar1.= >> j >> ar >> ;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=20 >> spaces instead of simicolons. Per some notes iin the docs, I have > tried: >> >> wrapper <prop file> >> "wrapper.java.additional.1=3D-Djava.rmi.server.codebase=3Dftp:<host>/jar1= . >> ja >> r 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=20 >> something > >> that I'm missing, or some work-around that I'm not aware of that=20 >> would > >> allow me to pass a property containing spaces on the command line? >> >> Thanks, >> Chris >> > > > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services,=20 > 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=20 > Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=3Dk&kid=120709&bid&3057&dat=121642 > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > > ------------------------------------------------------- > 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=20 > Apache Geronimo > = http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=120709&bid&3057&dat=121642 > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > ------------------------------------------------------- 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=3Dk&kid=120709&bid&3057&dat=121642 _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user |