JOnAS 5.2 duplicated arguments in jonas script
[email protected] Thu, 19 Jan 2012 16:28:15 +0100
| Newsgroups | gmane.comp.java.objectweb.jonas |
|---|---|
| Message-ID | <OF2EFB2B09.7753203C-ONC125798A.005318A5-C125798A.00550253@bull.net> |
Message en plusieurs parties au format MIME
--=_alternative 00550233C125798A_=
Content-Type: text/plain; charset="US-ASCII"
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
------------------------------------------------------------------------
--=_alternative 00550233C125798A_=
Content-Type: text/html; charset="US-ASCII"
<font size=2 face="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 size=2 face="sans-serif">(among which a long library path) which
made the arguments list much longer than expected.</font>
<br>
<br><font size=2 face="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 size=2 face="Arial">JONAS_OPTS</font><font size=2 face="sans-serif">
and START_OPS variables in that script :</font>
<br>
<br><font size=2 face="sans-serif">JONAS_OPTS="\</font>
<br><font size=2 face="sans-serif"> -Djonas.root=$JONAS_ROOT \</font>
<br><font size=2 face="sans-serif"> -Djonas.base=$JONAS_BASE \</font>
<br><font size=2 face="sans-serif">...</font>
<br><font size=2 face="sans-serif">"</font>
<br><font size=2 face="sans-serif">...</font>
<br><font size=2 face="sans-serif">START_OPTS=</font>
<br><font size=2 face="sans-serif">...</font>
<br><font size=2 face="sans-serif">while [ "$#" -gt 0 ]</font>
<br><font size=2 face="sans-serif"> do case "$1" in</font>
<br><font size=2 face="sans-serif">...</font>
<br><font size=2 face="sans-serif"> -D*)</font>
<br><font size=2 face="sans-serif"> JONAS_OPTS="$JONAS_OPTS
$1"</font>
<br><font size=2 face="sans-serif"> START_OPTS="$START_OPTS
$1"</font>
<br><font size=2 face="sans-serif"> ;;</font>
<br><font size=2 face="sans-serif">...</font>
<br><font size=2 face="sans-serif"> esac</font>
<br><font size=2 face="sans-serif"> if [ "$1" != "-win"
]; then</font>
<br><font size=2 face="sans-serif"> PARAMS="$PARAMS $1"</font>
<br><font size=2 face="sans-serif"> fi</font>
<br><font size=2 face="sans-serif"> shift</font>
<br><font size=2 face="sans-serif">done</font>
<br><font size=2 face="sans-serif">...</font>
<br><font size=2 face="sans-serif"> $JAVA $JAVA_OPTS
$START_OPTS $JONAS_OPTS -cp $JONAS_CLASSPATH ...</font>
<br><font size=2 face="sans-serif">...</font>
<br>
<br>
<br><font size=2 face="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>
<br>
<br><font size=2 face="Courier New">--</font>
<br>
<br><font size=2 face="Courier New">------------------------------------------------------------------------</font>
<br><font size=2 face="Courier New">mailto: [email protected]
EVIDIAN</font>
<br><font size=2 face="Courier New">Phone : 01.30.80.61.17
Avenue Jean Jaures</font>
<br><font size=2 face="Courier New">Fax : 01.30.80.77.99
78340 Les Clayes
sous Bois</font>
<br><font size=2 face="Courier New">
FRANCE</font>
<br>
<br><font size=2 face="Courier New"> OpenMaster
</font><a href=http://www.evidian.com/><font size=2 face="Courier New">http://www.evidian.com</font></a>
<br><font size=2 face="Courier New">------------------------------------------------------------------------</font>
--=_alternative 00550233C125798A_=--