One thing to keep in mind when using set -x is that if the script you're evaluating has internal functions, set -x will carry over to its child function if placed in the root body of the code.
All Teamprise tools are designed with cross-platform support in mind and currently run on a wide a variety of operating systems including OS x, Linux, Solaris, AIX, and HP-UX.
Just keep in mind that JBoss Portal 2.7 is the ultimate combination of everything we have to offer and versions 2.6.x are the supported stable releases that only support JSR-168 (portlet 1.0).