Re: JOnAS 5.2 duplicated arguments in jonas script
"Guillaume Sauthier (OW2)" <[email protected]> Thu, 19 Jan 2012 16:59:27 +0100
| Newsgroups | gmane.comp.java.objectweb.jonas |
|---|---|
| Message-ID | <CAG1yf3NUh56QmKt+OSnShD8Kd+26ub3HJdWkE2+=WnzZftutTg@mail.gmail.com> |
--f46d043748f3215b6004b6e3a622 Content-Type: text/plain; charset=ISO-8859-1 Please open a Bug in our JIRA:http://jira.ow2.org/browse/JONAS If you can provide a patch or discussing a solution for this issue, it will be even better :) Thanks --G 2012/1/19 <[email protected]> > Hello, when using 5.2.0-M4-SNAPSHOT I happened to notice that the jonas > process had some duplicated arguments > (among which a long library path) which made the arguments list much > longer than expected. > > By looking closer into the jonas script, I found that the arguments passed > with "-D" are repeated due to the use of both > JONAS_OPTS and START_OPS variables in that script : > > JONAS_OPTS="\ > -Djonas.root=$JONAS_ROOT \ > -Djonas.base=$JONAS_BASE \ > ... > " > ... > START_OPTS= > ... > while [ "$#" -gt 0 ] > do case "$1" in > ... > -D*) > JONAS_OPTS="$JONAS_OPTS $1" > START_OPTS="$START_OPTS $1" > ;; > ... > esac > if [ "$1" != "-win" ]; then > PARAMS="$PARAMS $1" > fi > shift > done > ... > $JAVA $JAVA_OPTS $START_OPTS $JONAS_OPTS -cp $JONAS_CLASSPATH ... > ... > > > I found no report of this problem in the archives and it seems the same > problem is present in Jonas 5.2.2 script that we are going to use soon. > > > -- > > ------------------------------------------------------------------------ > mailto: [email protected] EVIDIAN > Phone : 01.30.80.61.17 Avenue Jean Jaures > Fax : 01.30.80.77.99 78340 Les Clayes sous Bois > FRANCE > > OpenMaster http://www.evidian.com > ------------------------------------------------------------------------ --f46d043748f3215b6004b6e3a622 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Please open a Bug in our JIRA:<a href=3D"http://jira.ow2.org/browse/JONAS">= http://jira.ow2.org/browse/JONAS</a><div>If you can provide a patch or disc= ussing a solution for this issue, it will be even better :)</div><div><br> </div><div>Thanks</div><div>--G<br><br><div class=3D"gmail_quote">2012/1/19= <span dir=3D"ltr"><<a href=3D"mailto:[email protected]">= [email protected]</a>></span><br><blockquote class=3D"gmai= l_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left= :1ex"> <font face=3D"sans-serif">Hello, when using 5.2.0-M4-SNAPSHOT I happened to notice that the jonas process had some duplicated arguments</font> <br><font face=3D"sans-serif">(among which a long library path) which made the arguments list much longer than expected.</font> <br> <br><font face=3D"sans-serif">By looking closer into the jonas script, I found that the arguments passed with "-D" are repeated due to the use of both</font> <br><font face=3D"Arial">JONAS_OPTS</font><font face=3D"sans-serif"> and START_OPS variables in that script :</font> <br> <br><font face=3D"sans-serif">JONAS_OPTS=3D"\</font> <br><font face=3D"sans-serif">=A0-Djonas.root=3D$JONAS_ROOT \</font> <br><font face=3D"sans-serif">=A0-Djonas.base=3D$JONAS_BASE \</font> <br><font face=3D"sans-serif">...</font> <br><font face=3D"sans-serif">"</font> <br><font face=3D"sans-serif">...</font> <br><font face=3D"sans-serif">START_OPTS=3D</font> <br><font face=3D"sans-serif">...</font> <br><font face=3D"sans-serif">while [ "$#" -gt 0 ]</font> <br><font face=3D"sans-serif">=A0 do case "$1" in</font> <br><font face=3D"sans-serif">...</font> <br><font face=3D"sans-serif">=A0 =A0 -D*)</font> <br><font face=3D"sans-serif">=A0 =A0 =A0 JONAS_OPTS=3D"$JONAS_OPTS $1"</font> <br><font face=3D"sans-serif">=A0 =A0 =A0 START_OPTS=3D"$START_OPTS $1"</font> <br><font face=3D"sans-serif">=A0 =A0 =A0 ;;</font> <br><font face=3D"sans-serif">...</font> <br><font face=3D"sans-serif">=A0 esac</font> <br><font face=3D"sans-serif">=A0 if [ "$1" !=3D "-win" ]; then</font> <br><font face=3D"sans-serif">=A0 =A0 PARAMS=3D"$PARAMS $1"</font= > <br><font face=3D"sans-serif">=A0 fi</font> <br><font face=3D"sans-serif">=A0 shift</font> <br><font face=3D"sans-serif">done</font> <br><font face=3D"sans-serif">...</font> <br><font face=3D"sans-serif">=A0 =A0 =A0$JAVA $JAVA_OPTS $START_OPTS $JONAS_OPTS -cp $JONAS_CLASSPATH ...</font> <br><font face=3D"sans-serif">...</font> <br> <br> <br><font face=3D"sans-serif">I found no report of this problem in the archives and it seems the same problem is present in Jonas 5.2.2 script that we are going to use soon.</font> <br><span class=3D"HOEnZb"><font color=3D"#888888"> <br> <br><font face=3D"Courier New">--</font> <br> <br><font face=3D"Courier New">--------------------------------------------= ----------------------------</font> <br><font face=3D"Courier New">mailto: <a href=3D"mailto:Christophe.Guilbau= [email protected]" target=3D"_blank">[email protected]</a> =A0EVIDIAN</font> <br><font face=3D"Courier New">Phone : 01.30.80.61.17 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Avenue Jean Jaures</font> <br><font face=3D"Courier New">Fax =A0 : 01.30.80.77.99 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 78340 Les Clayes sous Bois</font> <br><font face=3D"Courier New">=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0FRANCE</font> <br> <br><font face=3D"Courier New">=A0 =A0 =A0 =A0 OpenMaster =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 </font><a href=3D"http://www.evidian.com/" target=3D"_blank"><font face=3D"= Courier New">http://www.evidian.com</font></a> <br><font face=3D"Courier New">--------------------------------------------= ----------------------------</font></font></span></blockquote></div><br></d= iv> --f46d043748f3215b6004b6e3a622--