To reproduce:
./start_xwiki.sh -j -p 8091 -sp 8090
The problem is that -j is "consuming" -p and the script ends up with the option 8091